From b81d099c575472ea28f859146d391fcc2fd4df88 Mon Sep 17 00:00:00 2001 From: Lightspark Eng Date: Wed, 3 Jun 2026 17:40:07 +0000 Subject: [PATCH] chore: Sync account schemas --- mintlify/openapi.yaml | 68 +++++++++++++++---- openapi.yaml | 68 +++++++++++++++---- .../schemas/common/BdtAccountInfoBase.yaml | 11 ++- .../schemas/common/CopAccountInfoBase.yaml | 11 ++- .../schemas/common/EgpAccountInfoBase.yaml | 11 ++- .../schemas/common/GhsAccountInfoBase.yaml | 11 ++- .../schemas/common/PkrAccountInfoBase.yaml | 15 ++-- .../schemas/common/UsdAccountInfoBase.yaml | 9 +++ 8 files changed, 159 insertions(+), 45 deletions(-) diff --git a/mintlify/openapi.yaml b/mintlify/openapi.yaml index 945af58f..df0e1be2 100644 --- a/mintlify/openapi.yaml +++ b/mintlify/openapi.yaml @@ -9573,10 +9573,19 @@ components: minLength: 9 maxLength: 9 pattern: ^[0-9]{9}$ + accountHolderName: + type: string + description: The name of the account holder at the receiving bank + example: Jane Doe + bankAddress: + allOf: + - $ref: '#/components/schemas/Address' + description: The address of the receiving bank example: accountType: USD_ACCOUNT accountNumber: '1234567890' routingNumber: '021000021' + accountHolderName: Jane Doe UsdAccountInfo: allOf: - $ref: '#/components/schemas/UsdAccountInfoBase' @@ -11208,10 +11217,11 @@ components: type: object required: - accountType + - bankName description: |- Required fields depend on the selected paymentRails: - - BANK_TRANSFER: accountNumber - - MOBILE_MONEY: phoneNumber + - BANK_TRANSFER: accountNumber, bankName + - MOBILE_MONEY: bankName, phoneNumber properties: accountType: type: string @@ -11222,6 +11232,11 @@ components: description: The account number of the bank minLength: 1 maxLength: 34 + bankName: + type: string + description: The name of the bank + minLength: 1 + maxLength: 255 branchCode: type: string description: The branch code @@ -11245,6 +11260,7 @@ components: example: accountType: BDT_ACCOUNT accountNumber: '1234567890' + bankName: Example Bank branchCode: '11111' swiftCode: DEUTDEFF phoneNumber: '+1234567890' @@ -11315,10 +11331,11 @@ components: type: object required: - accountType + - bankName description: |- Required fields depend on the selected paymentRails: - - BANK_TRANSFER: iban - - MOBILE_MONEY: phoneNumber + - BANK_TRANSFER: bankName, iban + - MOBILE_MONEY: bankName, phoneNumber properties: accountType: type: string @@ -11331,6 +11348,11 @@ components: minLength: 29 maxLength: 29 pattern: ^EG[0-9]{27}$ + bankName: + type: string + description: The name of the bank + minLength: 1 + maxLength: 255 phoneNumber: type: string description: The phone number in international format @@ -11341,6 +11363,7 @@ components: example: accountType: EGP_ACCOUNT iban: EG380019000500000000263180002 + bankName: Example Bank phoneNumber: '+1234567890' EgpAccountInfo: allOf: @@ -11373,10 +11396,11 @@ components: type: object required: - accountType + - bankName description: |- Required fields depend on the selected paymentRails: - - BANK_TRANSFER: accountNumber - - MOBILE_MONEY: phoneNumber + - BANK_TRANSFER: accountNumber, bankName + - MOBILE_MONEY: bankName, phoneNumber properties: accountType: type: string @@ -11387,6 +11411,11 @@ components: description: The account number of the bank minLength: 1 maxLength: 34 + bankName: + type: string + description: The name of the bank + minLength: 1 + maxLength: 255 phoneNumber: type: string description: The phone number in international format @@ -11397,6 +11426,7 @@ components: example: accountType: GHS_ACCOUNT accountNumber: '1234567890' + bankName: Example Bank phoneNumber: '+1234567890' GhsAccountInfo: allOf: @@ -11587,15 +11617,21 @@ components: type: object required: - accountType + - bankName description: |- Required fields depend on the selected paymentRails: - - BANK_TRANSFER: accountNumber + - BANK_TRANSFER: accountNumber, bankName - MOBILE_MONEY: bankName, phoneNumber properties: accountType: type: string enum: - PKR_ACCOUNT + bankName: + type: string + description: The name of the bank + minLength: 1 + maxLength: 255 accountNumber: type: string description: The account number of the bank @@ -11615,17 +11651,12 @@ components: minLength: 7 maxLength: 15 pattern: ^\+[0-9]{6,14}$ - bankName: - type: string - description: The name of the bank - minLength: 1 - maxLength: 255 example: accountType: PKR_ACCOUNT + bankName: Example Bank accountNumber: '1234567890' iban: PK36SCBL0000001123456702 phoneNumber: '+1234567890' - bankName: Example Bank PkrAccountInfo: allOf: - $ref: '#/components/schemas/PkrAccountInfoBase' @@ -12435,10 +12466,11 @@ components: type: object required: - accountType + - bankName description: |- Required fields depend on the selected paymentRails: - - BANK_TRANSFER: accountNumber, bankAccountType - - MOBILE_MONEY: phoneNumber + - BANK_TRANSFER: accountNumber, bankAccountType, bankName + - MOBILE_MONEY: bankName, phoneNumber properties: accountType: type: string @@ -12455,6 +12487,11 @@ components: enum: - CHECKING - SAVINGS + bankName: + type: string + description: The name of the bank + minLength: 1 + maxLength: 255 phoneNumber: type: string description: The phone number in international format @@ -12466,6 +12503,7 @@ components: accountType: COP_ACCOUNT accountNumber: '1234567890' bankAccountType: CHECKING + bankName: Example Bank phoneNumber: '+1234567890' CopAccountInfo: allOf: diff --git a/openapi.yaml b/openapi.yaml index 945af58f..df0e1be2 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -9573,10 +9573,19 @@ components: minLength: 9 maxLength: 9 pattern: ^[0-9]{9}$ + accountHolderName: + type: string + description: The name of the account holder at the receiving bank + example: Jane Doe + bankAddress: + allOf: + - $ref: '#/components/schemas/Address' + description: The address of the receiving bank example: accountType: USD_ACCOUNT accountNumber: '1234567890' routingNumber: '021000021' + accountHolderName: Jane Doe UsdAccountInfo: allOf: - $ref: '#/components/schemas/UsdAccountInfoBase' @@ -11208,10 +11217,11 @@ components: type: object required: - accountType + - bankName description: |- Required fields depend on the selected paymentRails: - - BANK_TRANSFER: accountNumber - - MOBILE_MONEY: phoneNumber + - BANK_TRANSFER: accountNumber, bankName + - MOBILE_MONEY: bankName, phoneNumber properties: accountType: type: string @@ -11222,6 +11232,11 @@ components: description: The account number of the bank minLength: 1 maxLength: 34 + bankName: + type: string + description: The name of the bank + minLength: 1 + maxLength: 255 branchCode: type: string description: The branch code @@ -11245,6 +11260,7 @@ components: example: accountType: BDT_ACCOUNT accountNumber: '1234567890' + bankName: Example Bank branchCode: '11111' swiftCode: DEUTDEFF phoneNumber: '+1234567890' @@ -11315,10 +11331,11 @@ components: type: object required: - accountType + - bankName description: |- Required fields depend on the selected paymentRails: - - BANK_TRANSFER: iban - - MOBILE_MONEY: phoneNumber + - BANK_TRANSFER: bankName, iban + - MOBILE_MONEY: bankName, phoneNumber properties: accountType: type: string @@ -11331,6 +11348,11 @@ components: minLength: 29 maxLength: 29 pattern: ^EG[0-9]{27}$ + bankName: + type: string + description: The name of the bank + minLength: 1 + maxLength: 255 phoneNumber: type: string description: The phone number in international format @@ -11341,6 +11363,7 @@ components: example: accountType: EGP_ACCOUNT iban: EG380019000500000000263180002 + bankName: Example Bank phoneNumber: '+1234567890' EgpAccountInfo: allOf: @@ -11373,10 +11396,11 @@ components: type: object required: - accountType + - bankName description: |- Required fields depend on the selected paymentRails: - - BANK_TRANSFER: accountNumber - - MOBILE_MONEY: phoneNumber + - BANK_TRANSFER: accountNumber, bankName + - MOBILE_MONEY: bankName, phoneNumber properties: accountType: type: string @@ -11387,6 +11411,11 @@ components: description: The account number of the bank minLength: 1 maxLength: 34 + bankName: + type: string + description: The name of the bank + minLength: 1 + maxLength: 255 phoneNumber: type: string description: The phone number in international format @@ -11397,6 +11426,7 @@ components: example: accountType: GHS_ACCOUNT accountNumber: '1234567890' + bankName: Example Bank phoneNumber: '+1234567890' GhsAccountInfo: allOf: @@ -11587,15 +11617,21 @@ components: type: object required: - accountType + - bankName description: |- Required fields depend on the selected paymentRails: - - BANK_TRANSFER: accountNumber + - BANK_TRANSFER: accountNumber, bankName - MOBILE_MONEY: bankName, phoneNumber properties: accountType: type: string enum: - PKR_ACCOUNT + bankName: + type: string + description: The name of the bank + minLength: 1 + maxLength: 255 accountNumber: type: string description: The account number of the bank @@ -11615,17 +11651,12 @@ components: minLength: 7 maxLength: 15 pattern: ^\+[0-9]{6,14}$ - bankName: - type: string - description: The name of the bank - minLength: 1 - maxLength: 255 example: accountType: PKR_ACCOUNT + bankName: Example Bank accountNumber: '1234567890' iban: PK36SCBL0000001123456702 phoneNumber: '+1234567890' - bankName: Example Bank PkrAccountInfo: allOf: - $ref: '#/components/schemas/PkrAccountInfoBase' @@ -12435,10 +12466,11 @@ components: type: object required: - accountType + - bankName description: |- Required fields depend on the selected paymentRails: - - BANK_TRANSFER: accountNumber, bankAccountType - - MOBILE_MONEY: phoneNumber + - BANK_TRANSFER: accountNumber, bankAccountType, bankName + - MOBILE_MONEY: bankName, phoneNumber properties: accountType: type: string @@ -12455,6 +12487,11 @@ components: enum: - CHECKING - SAVINGS + bankName: + type: string + description: The name of the bank + minLength: 1 + maxLength: 255 phoneNumber: type: string description: The phone number in international format @@ -12466,6 +12503,7 @@ components: accountType: COP_ACCOUNT accountNumber: '1234567890' bankAccountType: CHECKING + bankName: Example Bank phoneNumber: '+1234567890' CopAccountInfo: allOf: diff --git a/openapi/components/schemas/common/BdtAccountInfoBase.yaml b/openapi/components/schemas/common/BdtAccountInfoBase.yaml index 064f4793..3fe98550 100644 --- a/openapi/components/schemas/common/BdtAccountInfoBase.yaml +++ b/openapi/components/schemas/common/BdtAccountInfoBase.yaml @@ -1,11 +1,12 @@ type: object required: - accountType +- bankName description: 'Required fields depend on the selected paymentRails: - - BANK_TRANSFER: accountNumber + - BANK_TRANSFER: accountNumber, bankName - - MOBILE_MONEY: phoneNumber' + - MOBILE_MONEY: bankName, phoneNumber' properties: accountType: type: string @@ -16,6 +17,11 @@ properties: description: The account number of the bank minLength: 1 maxLength: 34 + bankName: + type: string + description: The name of the bank + minLength: 1 + maxLength: 255 branchCode: type: string description: The branch code @@ -39,6 +45,7 @@ properties: example: accountType: BDT_ACCOUNT accountNumber: '1234567890' + bankName: Example Bank branchCode: '11111' swiftCode: DEUTDEFF phoneNumber: '+1234567890' diff --git a/openapi/components/schemas/common/CopAccountInfoBase.yaml b/openapi/components/schemas/common/CopAccountInfoBase.yaml index a6f7f4e1..baf627b4 100644 --- a/openapi/components/schemas/common/CopAccountInfoBase.yaml +++ b/openapi/components/schemas/common/CopAccountInfoBase.yaml @@ -1,11 +1,12 @@ type: object required: - accountType +- bankName description: 'Required fields depend on the selected paymentRails: - - BANK_TRANSFER: accountNumber, bankAccountType + - BANK_TRANSFER: accountNumber, bankAccountType, bankName - - MOBILE_MONEY: phoneNumber' + - MOBILE_MONEY: bankName, phoneNumber' properties: accountType: type: string @@ -22,6 +23,11 @@ properties: enum: - CHECKING - SAVINGS + bankName: + type: string + description: The name of the bank + minLength: 1 + maxLength: 255 phoneNumber: type: string description: The phone number in international format @@ -33,4 +39,5 @@ example: accountType: COP_ACCOUNT accountNumber: '1234567890' bankAccountType: CHECKING + bankName: Example Bank phoneNumber: '+1234567890' diff --git a/openapi/components/schemas/common/EgpAccountInfoBase.yaml b/openapi/components/schemas/common/EgpAccountInfoBase.yaml index 6b51a643..06b9b4ac 100644 --- a/openapi/components/schemas/common/EgpAccountInfoBase.yaml +++ b/openapi/components/schemas/common/EgpAccountInfoBase.yaml @@ -1,11 +1,12 @@ type: object required: - accountType +- bankName description: 'Required fields depend on the selected paymentRails: - - BANK_TRANSFER: iban + - BANK_TRANSFER: bankName, iban - - MOBILE_MONEY: phoneNumber' + - MOBILE_MONEY: bankName, phoneNumber' properties: accountType: type: string @@ -18,6 +19,11 @@ properties: minLength: 29 maxLength: 29 pattern: ^EG[0-9]{27}$ + bankName: + type: string + description: The name of the bank + minLength: 1 + maxLength: 255 phoneNumber: type: string description: The phone number in international format @@ -28,4 +34,5 @@ properties: example: accountType: EGP_ACCOUNT iban: EG380019000500000000263180002 + bankName: Example Bank phoneNumber: '+1234567890' diff --git a/openapi/components/schemas/common/GhsAccountInfoBase.yaml b/openapi/components/schemas/common/GhsAccountInfoBase.yaml index c2ec03c6..e4c8218a 100644 --- a/openapi/components/schemas/common/GhsAccountInfoBase.yaml +++ b/openapi/components/schemas/common/GhsAccountInfoBase.yaml @@ -1,11 +1,12 @@ type: object required: - accountType +- bankName description: 'Required fields depend on the selected paymentRails: - - BANK_TRANSFER: accountNumber + - BANK_TRANSFER: accountNumber, bankName - - MOBILE_MONEY: phoneNumber' + - MOBILE_MONEY: bankName, phoneNumber' properties: accountType: type: string @@ -16,6 +17,11 @@ properties: description: The account number of the bank minLength: 1 maxLength: 34 + bankName: + type: string + description: The name of the bank + minLength: 1 + maxLength: 255 phoneNumber: type: string description: The phone number in international format @@ -26,4 +32,5 @@ properties: example: accountType: GHS_ACCOUNT accountNumber: '1234567890' + bankName: Example Bank phoneNumber: '+1234567890' diff --git a/openapi/components/schemas/common/PkrAccountInfoBase.yaml b/openapi/components/schemas/common/PkrAccountInfoBase.yaml index 0f4e0547..ebf36205 100644 --- a/openapi/components/schemas/common/PkrAccountInfoBase.yaml +++ b/openapi/components/schemas/common/PkrAccountInfoBase.yaml @@ -1,9 +1,10 @@ type: object required: - accountType +- bankName description: 'Required fields depend on the selected paymentRails: - - BANK_TRANSFER: accountNumber + - BANK_TRANSFER: accountNumber, bankName - MOBILE_MONEY: bankName, phoneNumber' properties: @@ -11,6 +12,11 @@ properties: type: string enum: - PKR_ACCOUNT + bankName: + type: string + description: The name of the bank + minLength: 1 + maxLength: 255 accountNumber: type: string description: The account number of the bank @@ -30,14 +36,9 @@ properties: minLength: 7 maxLength: 15 pattern: ^\+[0-9]{6,14}$ - bankName: - type: string - description: The name of the bank - minLength: 1 - maxLength: 255 example: accountType: PKR_ACCOUNT + bankName: Example Bank accountNumber: '1234567890' iban: PK36SCBL0000001123456702 phoneNumber: '+1234567890' - bankName: Example Bank diff --git a/openapi/components/schemas/common/UsdAccountInfoBase.yaml b/openapi/components/schemas/common/UsdAccountInfoBase.yaml index 77ad361d..60a50af2 100644 --- a/openapi/components/schemas/common/UsdAccountInfoBase.yaml +++ b/openapi/components/schemas/common/UsdAccountInfoBase.yaml @@ -20,7 +20,16 @@ properties: minLength: 9 maxLength: 9 pattern: ^[0-9]{9}$ + accountHolderName: + type: string + description: The name of the account holder at the receiving bank + example: Jane Doe + bankAddress: + allOf: + - $ref: ./Address.yaml + description: The address of the receiving bank example: accountType: USD_ACCOUNT accountNumber: '1234567890' routingNumber: '021000021' + accountHolderName: Jane Doe