chore: sync account schemas, including the create side - #880
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 2 Skipped Deployments
|
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
|
✱ Stainless preview builds for gridThis PR will update the cli kotlin php ruby Edit this comment to update them. They will appear in their respective SDK's changelogs. ⏳ grid-typescript studio⏳ grid-openapi studio⏳ grid-ruby studio⏳ grid-kotlin studio⏳ grid-go studio⏳ grid-python studio⏳ grid-php studio⏳ grid-cli studio⏳ These are partial results; builds are still running. This comment is auto-generated by GitHub Actions and is automatically kept up to date as you push. |
|
@greptile review |
Greptile SummaryThe PR synchronizes generated external-account create and response schemas, adds complete ILS account support, and replaces shared business-beneficiary definitions with corridor-specific contracts.
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains.
|
| Filename | Overview |
|---|---|
| openapi/components/schemas/external_accounts/ExternalAccountCreateInfoOneOf.yaml | Extends the create union and discriminator mapping with the generated currency variants, including ILS. |
| openapi/components/schemas/external_accounts/ExternalAccountInfoOneOf.yaml | Synchronizes response variants and discriminator mappings with the supported currency account schemas. |
| openapi/components/schemas/external_accounts/IlsExternalAccountCreateInfo.yaml | Introduces the ILS external-account creation contract using base account and ILS beneficiary schemas. |
| openapi/components/schemas/external_accounts/IlsExternalAccountInfo.yaml | Introduces the corresponding ILS response contract with payment-rail information. |
| openapi/components/schemas/common/PaymentInstructions.yaml | Adds ILS payment-account information to the payment-instruction union and discriminator. |
| openapi.yaml | Regenerates the assembled API contract with the synchronized account schemas. |
| mintlify/openapi.yaml | Updates the documentation contract with the generated schema changes. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart LR
S[Modular currency schemas] --> C[External-account create union]
S --> R[External-account response union]
I[ILS account schemas] --> C
I --> R
I --> P[Payment instructions]
C --> O[Assembled OpenAPI contract]
R --> O
P --> O
O --> M[Mintlify API contract]
Reviews (2): Last reviewed commit: "chore: sync account schemas, including t..." | Re-trigger Greptile
Regenerated from the schema generator, which now emits the create variant alongside the response variant for every currency. - ILS is complete: account, beneficiary, business beneficiary, payment account, and both external account variants, plus its entries in the two unions and the account type enum. Creating an ILS external account was not expressible before this. - Every currency now references its own business beneficiary schema where one exists, on both variants, so a corridor states the fields it actually requires. The Yellowcard corridors require a registration number and tax ID; EUR also requires a country of residence; AED, CNY and ILS require an address. The shared schema asked only for a legal name, so those requests were accepted and failed later at payout. - Corridors whose partners serve no business payee keep the shared business schema. They are unimplemented rather than impossible, and the payout refuses them when attempted. No schema loses a property or a beneficiary option. CAD, SLV and SWIFT are unchanged: they have no generated counterpart and stay hand-maintained.
1b94950 to
effd247
Compare
|
@greptile review |
Regenerated from the schema generator, which now emits the create variant alongside the response variant for every currency.
CAD, SLV and SWIFT are unchanged: they have no generated counterpart and stay hand-maintained.
Supersedes #876.