Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
112 changes: 112 additions & 0 deletions components/grid-visualizer/src/data/account-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,4 +277,116 @@ export const accountTypeSpecs: Record<string, AccountTypeSpec> = {
],
beneficiaryRequired: false,
},
ETHEREUM_WALLET: {
accountType: 'ETHEREUM_WALLET',
fields: [
{ name: 'address', example: '0xAbCDEF1234567890aBCdEf1234567890ABcDef12' },
],
beneficiaryRequired: false,
},
AED_ACCOUNT: {
accountType: 'AED_ACCOUNT',
fields: [
{ name: 'iban', example: 'AE070331234567890123456', description: 'UAE IBAN (23 characters)' },
{ name: 'swiftCode', example: 'EBILAEAD', description: 'Optional' },
],
paymentRails: ['BANK_TRANSFER'],
beneficiaryRequired: true,
},
BWP_ACCOUNT: {
accountType: 'BWP_ACCOUNT',
fields: [
{ name: 'phoneNumber', example: '+26771234567' },
{ name: 'provider', example: 'Orange', description: 'Mobile money provider' },
],
paymentRails: ['MOBILE_MONEY'],
beneficiaryRequired: true,
},
XAF_ACCOUNT: {
accountType: 'XAF_ACCOUNT',
fields: [
{ name: 'phoneNumber', example: '+237671234567' },
{ name: 'provider', example: 'MTN', description: 'Mobile money provider' },
{ name: 'region', example: 'CM', description: 'Country code (CM or CG)' },
],
paymentRails: ['MOBILE_MONEY'],
beneficiaryRequired: true,
},
BDT_ACCOUNT: {
accountType: 'BDT_ACCOUNT',
fields: [
{ name: 'accountNumber', example: '1234567890123' },
{ name: 'branchCode', example: '12345', description: '5-digit branch code' },
{ name: 'phoneNumber', example: '+8801712345678' },
{ name: 'swiftCode', example: 'BABORUMMYYY', description: 'Optional' },
],
paymentRails: ['BANK_TRANSFER', 'MOBILE_MONEY'],
beneficiaryRequired: true,
},
COP_ACCOUNT: {
accountType: 'COP_ACCOUNT',
fields: [
{ name: 'accountNumber', example: '1234567890' },
{ name: 'bankAccountType', example: 'SAVINGS', description: 'CHECKING or SAVINGS' },
{ name: 'phoneNumber', example: '+573001234567' },
],
paymentRails: ['BANK_TRANSFER', 'MOBILE_MONEY'],
beneficiaryRequired: true,
},
EGP_ACCOUNT: {
accountType: 'EGP_ACCOUNT',
fields: [
{ name: 'accountNumber', example: '1234567890123456' },
{ name: 'iban', example: 'EG380019000500000000263180002', description: 'Optional' },
{ name: 'swiftCode', example: 'NBEGEGCX', description: 'Optional' },
],
paymentRails: ['BANK_TRANSFER'],
beneficiaryRequired: true,
},
GHS_ACCOUNT: {
accountType: 'GHS_ACCOUNT',
fields: [
{ name: 'accountNumber', example: '1234567890' },
{ name: 'phoneNumber', example: '+233241234567' },
],
paymentRails: ['BANK_TRANSFER', 'MOBILE_MONEY'],
beneficiaryRequired: true,
},
GTQ_ACCOUNT: {
accountType: 'GTQ_ACCOUNT',
fields: [
{ name: 'accountNumber', example: '1234567890' },
{ name: 'phoneNumber', example: '+50212345678' },
],
paymentRails: ['BANK_TRANSFER', 'MOBILE_MONEY'],
beneficiaryRequired: true,
},
HTG_ACCOUNT: {
accountType: 'HTG_ACCOUNT',
fields: [
{ name: 'phoneNumber', example: '+50934567890' },
],
paymentRails: ['MOBILE_MONEY'],
beneficiaryRequired: true,
},
JMD_ACCOUNT: {
accountType: 'JMD_ACCOUNT',
fields: [
{ name: 'accountNumber', example: '1234567890' },
{ name: 'branchCode', example: '12345', description: '5-digit branch code' },
{ name: 'bankAccountType', example: 'CHECKING', description: 'CHECKING or SAVINGS' },
],
paymentRails: ['BANK_TRANSFER'],
beneficiaryRequired: true,
},
PKR_ACCOUNT: {
accountType: 'PKR_ACCOUNT',
fields: [
{ name: 'accountNumber', example: '1234567890123456' },
{ name: 'phoneNumber', example: '+923001234567' },
{ name: 'iban', example: 'PK36SCBL0000001123456702', description: 'Optional' },
],
paymentRails: ['BANK_TRANSFER', 'MOBILE_MONEY'],
beneficiaryRequired: true,
},
};
2 changes: 2 additions & 0 deletions mintlify/snippets/sandbox-beneficiary-verification.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@ For account types that support beneficiary name verification, you can simulate d
| **103** | `PARTIAL_MATCH` | Account is valid, name is a fuzzy match |
| **104** | `PENDING` | Verification still in progress |
| **105** | _(error)_ | Returns `400` — invalid account |
| **106** | `UNSUPPORTED` | Payment rail does not support name verification |
| **107** | `CHECKED_BY_RECEIVING_FI` | Verification deferred to receiving financial institution (e.g., ACH) |
| **109** | _(error)_ | Returns `500` — simulated API error |
Comment on lines +9 to 11
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.

P2 Gap at suffix 108 still undocumented

The table now covers suffixes 102–107 and 109, but 108 is still absent. Before this PR the gap was larger (106, 107, 108 all missing); now only 108 remains. Is this intentional — i.e., 108 is reserved or not yet implemented in the sandbox — or was it accidentally skipped when adding the new rows? If 108 is intentionally omitted, a brief note (e.g., "108 is reserved") would help developers avoid confusion when they happen to test with that number and get an unexpected MATCHED result from the catch-all.

Prompt To Fix With AI
This is a comment left during a code review.
Path: mintlify/snippets/sandbox-beneficiary-verification.mdx
Line: 9-11

Comment:
**Gap at suffix 108 still undocumented**

The table now covers suffixes 102–107 and 109, but `108` is still absent. Before this PR the gap was larger (106, 107, 108 all missing); now only 108 remains. Is this intentional — i.e., 108 is reserved or not yet implemented in the sandbox — or was it accidentally skipped when adding the new rows? If 108 is intentionally omitted, a brief note (e.g., "108 is reserved") would help developers avoid confusion when they happen to test with that number and get an unexpected `MATCHED` result from the catch-all.

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

| **Any other** | `MATCHED` | Account is valid, name matches exactly |
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,19 @@ package com.grid.sample.routes

import com.fasterxml.jackson.databind.JsonNode
import com.lightspark.grid.models.customers.externalaccounts.Address
import com.lightspark.grid.models.customers.externalaccounts.BrlBeneficiary
import com.lightspark.grid.models.customers.externalaccounts.BrlExternalAccountInfo
import com.lightspark.grid.models.customers.externalaccounts.ExternalAccountCreate
import com.lightspark.grid.models.customers.externalaccounts.ExternalAccountCreateParams
import com.lightspark.grid.models.customers.externalaccounts.ExternalAccountInfoOneOf
import com.lightspark.grid.models.customers.externalaccounts.GbpBeneficiary
import com.lightspark.grid.models.customers.externalaccounts.GbpExternalAccountInfo
import com.lightspark.grid.models.customers.externalaccounts.InrBeneficiary
import com.lightspark.grid.models.customers.externalaccounts.InrExternalAccountInfo
import com.lightspark.grid.models.customers.externalaccounts.MxnBeneficiary
import com.lightspark.grid.models.customers.externalaccounts.MxnExternalAccountInfo
import com.lightspark.grid.models.customers.externalaccounts.UsdBeneficiary
import com.lightspark.grid.models.customers.externalaccounts.UsdExternalAccountInfo
import com.lightspark.grid.models.platform.externalaccounts.InrAccountInfo
import com.grid.sample.GridClientBuilder
import com.grid.sample.JsonUtils
Expand Down
Loading