From 0f6417d435911ad70b37247a78abb3f42c029f0d Mon Sep 17 00:00:00 2001 From: "claude[bot]" <41898282+claude[bot]@users.noreply.github.com> Date: Thu, 9 Jul 2026 09:18:29 +0000 Subject: [PATCH] Sync GTQ_ACCOUNT fields with OpenAPI schema The GtqAccountInfoBase.yaml schema defines GTQ_ACCOUNT as requiring accountNumber, bankAccountType (CHECKING/SAVINGS), and bankName. Updates: - Grid Visualizer account-types.ts: replace incorrect phoneNumber field with bankAccountType and bankName - Grid Visualizer currencies.ts: add GTQ (Guatemalan Quetzal) currency - Grid Wallet Demo bankAccountFields.generated.ts: regenerate to include the bankName field that was added in commit 95ded8a8 Co-Authored-By: Claude Opus 4.5 --- .../grid-visualizer/src/data/account-types.ts | 3 +- .../grid-visualizer/src/data/currencies.ts | 10 ++++ .../src/data/bankAccountFields.generated.ts | 58 ++++++++++++++++++- 3 files changed, 69 insertions(+), 2 deletions(-) diff --git a/components/grid-visualizer/src/data/account-types.ts b/components/grid-visualizer/src/data/account-types.ts index a23a639fb..03bdb7b5a 100644 --- a/components/grid-visualizer/src/data/account-types.ts +++ b/components/grid-visualizer/src/data/account-types.ts @@ -328,7 +328,8 @@ export const accountTypeSpecs: Record = { accountType: 'GTQ_ACCOUNT', fields: [ { name: 'accountNumber', example: '1234567890' }, - { name: 'phoneNumber', example: '+50212345678' }, + { name: 'bankAccountType', example: 'CHECKING', description: 'CHECKING or SAVINGS' }, + { name: 'bankName', example: 'Example Bank' }, ], beneficiaryRequired: true, }, diff --git a/components/grid-visualizer/src/data/currencies.ts b/components/grid-visualizer/src/data/currencies.ts index 5b7ed99d0..3bcad9320 100644 --- a/components/grid-visualizer/src/data/currencies.ts +++ b/components/grid-visualizer/src/data/currencies.ts @@ -275,4 +275,14 @@ export const currencies: FiatCurrency[] = [ allRails: ['Bank Transfer', 'Mobile Money'], examplePerson: { fullName: 'Wei Zhang', nationality: 'CN' }, }, + { + code: 'GTQ', + name: 'Guatemalan Quetzal', + countryCode: 'gt', + accountType: 'GTQ_ACCOUNT', + accountLabel: 'Guatemalan Bank Account', + instantRails: [], + allRails: ['Bank Transfer'], + examplePerson: { fullName: 'Carlos López', nationality: 'GT' }, + }, ]; diff --git a/components/grid-wallet-demo/src/data/bankAccountFields.generated.ts b/components/grid-wallet-demo/src/data/bankAccountFields.generated.ts index b612e1ba8..1e12c101f 100644 --- a/components/grid-wallet-demo/src/data/bankAccountFields.generated.ts +++ b/components/grid-wallet-demo/src/data/bankAccountFields.generated.ts @@ -460,6 +460,15 @@ export const BANK_ACCOUNT_SCHEMAS: Record = { ], "description": "The bank account type", "example": "CHECKING" + }, + { + "key": "bankName", + "required": true, + "kind": "text", + "minLength": 1, + "maxLength": 255, + "description": "The name of the beneficiary's bank", + "example": "Example Bank" } ] }, @@ -563,13 +572,51 @@ export const BANK_ACCOUNT_SCHEMAS: Record = { "fields": [ { "key": "vpa", - "required": true, + "required": false, "kind": "text", "pattern": "^[a-zA-Z0-9.\\-_]+@[a-zA-Z0-9]+$", "minLength": 3, "maxLength": 255, "description": "The UPI Virtual Payment Address", "example": "user@upi" + }, + { + "key": "accountNumber", + "required": false, + "kind": "text", + "pattern": "^[0-9]{9,18}$", + "minLength": 9, + "maxLength": 18, + "description": "Indian bank account number (9–18 digits)", + "example": "000111222333" + }, + { + "key": "ifsc", + "required": false, + "kind": "text", + "pattern": "^[A-Z]{4}0[A-Z0-9]{6}$", + "minLength": 11, + "maxLength": 11, + "description": "The Indian Financial System Code (IFSC) of the beneficiary's bank branch (NEFT/RTGS)", + "example": "HDFC0001234" + }, + { + "key": "rail", + "required": false, + "kind": "text", + "minLength": 1, + "maxLength": 32, + "description": "The payment rail to route the payout over, for currencies that support more than one (e.g. NEFT or RTGS for INR).", + "example": "NEFT" + }, + { + "key": "bankName", + "required": false, + "kind": "text", + "minLength": 1, + "maxLength": 255, + "description": "The name of the bank", + "example": "Example Bank" } ] }, @@ -606,6 +653,15 @@ export const BANK_ACCOUNT_SCHEMAS: Record = { ], "description": "The bank account type", "example": "CHECKING" + }, + { + "key": "bankName", + "required": true, + "kind": "text", + "minLength": 1, + "maxLength": 255, + "description": "The name of the bank", + "example": "Example Bank" } ] },