🐛 server: fix bridge schema for non-us external accounts#1097
Conversation
🦋 Changeset detectedLatest commit: c9160e0 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (5)
WalkthroughThe Bridge ChangesBridge schema fix for non-US external accounts
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
✨ Simplify code
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Code Review
This pull request fixes the Bridge schema for non-US external accounts. Specifically, it updates the UpdateExternalAccountInput schema to require an address and omit account details for non-USD currencies (BRL, EUR, GBP, MXN), while keeping them optional for USD. Additionally, it makes the beneficiary_address_valid (and its mapped addressValid) field optional, as it is missing for non-US accounts. Comprehensive API and utility tests have been added to verify these changes. I have no feedback to provide as there are no review comments.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9594269d71
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1097 +/- ##
==========================================
+ Coverage 74.95% 75.72% +0.76%
==========================================
Files 245 245
Lines 11658 11874 +216
Branches 4050 4182 +132
==========================================
+ Hits 8738 8991 +253
+ Misses 2598 2561 -37
Partials 322 322
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Summary by CodeRabbit
Bug Fixes
POST /external-accounterror translations for invalid bank name, postal code requirement, and already-existing external accounts.update external accountbehavior so non-USD currencies omit account details appropriately, and bridge null values now map to optional fields.Tests