Skip to content

docs: sync documentation with SLV_ACCOUNT schema changes#464

Merged
pengying merged 1 commit into
mainfrom
docs/sync-20260513
May 13, 2026
Merged

docs: sync documentation with SLV_ACCOUNT schema changes#464
pengying merged 1 commit into
mainfrom
docs/sync-20260513

Conversation

@claude
Copy link
Copy Markdown
Contributor

@claude claude Bot commented May 13, 2026

Summary

Sync documentation and Grid Visualizer with recent OpenAPI schema changes, specifically the new SLV_ACCOUNT external account type for El Salvador added in commit 39dd985.

Changes

Mintlify Documentation (mintlify/snippets/external-accounts.mdx)

  • Added "El Salvador" tab with examples for both payment rails:
    • Bank Transfer (requires bankName, accountNumber, bankAccountType)
    • Mobile Money/Tigo Money (requires phoneNumber in international format)

Grid Visualizer (components/grid-visualizer/src/data/)

  • Added SLV_ACCOUNT to account-types.ts with field specs for both rails
  • Added El Salvador USD entry to currencies.ts (countryCode: sv, accountType: SLV_ACCOUNT)

Not Updated

Kotlin Sample App - Requires SDK updates first. The sample app imports SDK model classes (SlvExternalAccountCreateInfo, SlvBeneficiary) that need to be generated from the OpenAPI spec before the sample can be updated.

Related Commits Reviewed

Other changes (auth session refresh, wallet privacy, signed request ID examples) were already documented or don't require documentation updates.

Test plan

  • Verify make lint passes
  • Review El Salvador examples in external-accounts.mdx match OpenAPI schema
  • Verify Grid Visualizer builds without errors

🤖 Generated with Claude Code

Sync documentation with recent OpenAPI changes from commit 39dd985:
- Add El Salvador tab to external-accounts.mdx with bank transfer and
  mobile money (Tigo Money) examples
- Add SLV_ACCOUNT to Grid Visualizer account-types.ts
- Add El Salvador USD entry to Grid Visualizer currencies.ts

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 13, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
grid-flow-builder Ready Ready Preview, Comment May 13, 2026 9:10am

Request Review

@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps Bot commented May 13, 2026

Greptile Summary

This PR syncs documentation and the Grid Visualizer with the SLV_ACCOUNT external account type introduced for El Salvador in commit 39dd985. The examples and field names in the new El Salvador tab align with the OpenAPI schema for both the Bank Transfer and Mobile Money rails.

  • mintlify/snippets/external-accounts.mdx: Adds an "El Salvador" tab with cURL examples for both rails; the <Note> incorrectly lists bankName as required for Bank Transfer when the schema marks it optional, and El Salvador is absent from the minimum required beneficiary fields table.
  • components/grid-visualizer/src/data/account-types.ts: Adds SLV_ACCOUNT spec with correct field names, examples, and descriptions matching the OpenAPI schema.
  • components/grid-visualizer/src/data/currencies.ts: Adds El Salvador USD entry with countryCode: 'sv' and correct rails, consistent with existing entries.

Confidence Score: 3/5

The Grid Visualizer changes are correct and safe to merge; the documentation has a factual inaccuracy about required fields and a missing table entry that should be resolved before publishing.

The in the El Salvador tab tells developers that bankName is required for Bank Transfer, but the OpenAPI schema only mandates accountNumber and bankAccountType — bankName is optional. This mismatch between the published docs and the schema is present on the live documentation path. The missing row for El Salvador in the required beneficiary fields table compounds the gap.

mintlify/snippets/external-accounts.mdx — the required-fields note and the beneficiary table both need correction before this ships.

Important Files Changed

Filename Overview
mintlify/snippets/external-accounts.mdx Adds El Salvador tab with Bank Transfer and Mobile Money examples; field names match the OpenAPI schema, but the Note incorrectly lists bankName as required (it is optional per SlvAccountInfoBase.yaml), and El Salvador is omitted from the minimum required beneficiary fields table.
components/grid-visualizer/src/data/account-types.ts Adds SLV_ACCOUNT spec with correct field names, examples, and descriptions matching the OpenAPI schema; beneficiaryRequired: true aligns with the schema.
components/grid-visualizer/src/data/currencies.ts Adds El Salvador USD entry with correct countryCode: 'sv', accountType: 'SLV_ACCOUNT', and rails matching the schema; consistent with existing currency entries.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[POST /customers/external-accounts] --> B{accountType == SLV_ACCOUNT?}
    B -- No --> C[Existing account types]
    B -- Yes --> D{Which rail?}
    D -- BANK_TRANSFER --> E[Required: accountNumber, bankAccountType\nOptional: bankName]
    D -- MOBILE_MONEY --> F[Required: phoneNumber\ne.g. +50312345678]
    E --> G[beneficiary required\nfullName + beneficiaryType]
    F --> G
    G --> H[External Account Created]
Loading

Comments Outside Diff (1)

  1. mintlify/snippets/external-accounts.mdx, line 810-817 (link)

    P2 El Salvador missing from the required beneficiary fields table

    The table documents minimum required beneficiary fields per country, but El Salvador (SLV_ACCOUNT) is not added. The SlvBeneficiary.yaml schema marks beneficiaryType and fullName as required, with address being optional. Without a row for El Salvador, developers have no authoritative reference for what they must include — particularly whether address or birthDate are mandatory for compliance.

    Prompt To Fix With AI
    This is a comment left during a code review.
    Path: mintlify/snippets/external-accounts.mdx
    Line: 810-817
    
    Comment:
    **El Salvador missing from the required beneficiary fields table**
    
    The table documents minimum required beneficiary fields per country, but El Salvador (`SLV_ACCOUNT`) is not added. The `SlvBeneficiary.yaml` schema marks `beneficiaryType` and `fullName` as required, with address being optional. Without a row for El Salvador, developers have no authoritative reference for what they must include — particularly whether `address` or `birthDate` are mandatory for compliance.
    
    How can I resolve this? If you propose a fix, please make it concise.

    Fix in Claude Code

Fix All in Claude Code

Prompt To Fix All With AI
Fix the following 2 code review issues. Work through them one at a time, proposing concise fixes.

---

### Issue 1 of 2
mintlify/snippets/external-accounts.mdx:215-218
**`bankName` listed as required, but OpenAPI schema marks it as optional**

The `<Note>` states "Bank transfer requires `bankName`, `accountNumber`, and `bankAccountType`", but `SlvAccountInfoBase.yaml` only lists `bankAccountType` and `accountNumber` as conditionally required for the `BANK_TRANSFER` rail — `bankName` has no `required` annotation in the schema. Documenting an optional field as mandatory could confuse developers who omit it (expecting it to be optional per the spec) or who encounter a mismatch between the docs and any client-side validation they derive from the OpenAPI spec.

### Issue 2 of 2
mintlify/snippets/external-accounts.mdx:810-817
**El Salvador missing from the required beneficiary fields table**

The table documents minimum required beneficiary fields per country, but El Salvador (`SLV_ACCOUNT`) is not added. The `SlvBeneficiary.yaml` schema marks `beneficiaryType` and `fullName` as required, with address being optional. Without a row for El Salvador, developers have no authoritative reference for what they must include — particularly whether `address` or `birthDate` are mandatory for compliance.

Reviews (1): Last reviewed commit: "docs: add SLV_ACCOUNT documentation for ..." | Re-trigger Greptile

Comment on lines +215 to +218
<Note>
Bank transfer requires `bankName`, `accountNumber`, and `bankAccountType` (CHECKING or SAVINGS).
Mobile money requires `phoneNumber` in international format (e.g., +50312345678).
</Note>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 bankName listed as required, but OpenAPI schema marks it as optional

The <Note> states "Bank transfer requires bankName, accountNumber, and bankAccountType", but SlvAccountInfoBase.yaml only lists bankAccountType and accountNumber as conditionally required for the BANK_TRANSFER rail — bankName has no required annotation in the schema. Documenting an optional field as mandatory could confuse developers who omit it (expecting it to be optional per the spec) or who encounter a mismatch between the docs and any client-side validation they derive from the OpenAPI spec.

Prompt To Fix With AI
This is a comment left during a code review.
Path: mintlify/snippets/external-accounts.mdx
Line: 215-218

Comment:
**`bankName` listed as required, but OpenAPI schema marks it as optional**

The `<Note>` states "Bank transfer requires `bankName`, `accountNumber`, and `bankAccountType`", but `SlvAccountInfoBase.yaml` only lists `bankAccountType` and `accountNumber` as conditionally required for the `BANK_TRANSFER` rail — `bankName` has no `required` annotation in the schema. Documenting an optional field as mandatory could confuse developers who omit it (expecting it to be optional per the spec) or who encounter a mismatch between the docs and any client-side validation they derive from the OpenAPI spec.

How can I resolve this? If you propose a fix, please make it concise.

Fix in Claude Code

@mintlify
Copy link
Copy Markdown
Contributor

mintlify Bot commented May 13, 2026

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
Grid 🟢 Ready View Preview May 13, 2026, 10:55 AM

@pengying pengying merged commit 89fa1ef into main May 13, 2026
10 checks passed
@pengying pengying deleted the docs/sync-20260513 branch May 13, 2026 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant