diff --git a/mintlify/openapi.yaml b/mintlify/openapi.yaml index 0b06ca6bb..a559b6b64 100644 --- a/mintlify/openapi.yaml +++ b/mintlify/openapi.yaml @@ -946,8 +946,7 @@ paths: accountType: USD_ACCOUNT accountNumber: '12345678901' routingNumber: '123456789' - bankAccountType: CHECKING - bankName: Chase Bank + phoneNumber: '+14155550100' platformAccountId: ext_acc_123456 beneficiary: beneficiaryType: INDIVIDUAL @@ -1136,8 +1135,7 @@ paths: accountType: USD_ACCOUNT accountNumber: '12345678901' routingNumber: '123456789' - bankAccountType: CHECKING - bankName: Chase Bank + phoneNumber: '+14155550100' platformAccountId: ext_acc_123456 beneficiary: beneficiaryType: INDIVIDUAL @@ -6121,6 +6119,7 @@ components: - accountType - accountNumber - routingNumber + - phoneNumber properties: accountType: type: string @@ -6138,12 +6137,13 @@ components: minLength: 9 maxLength: 9 pattern: ^[0-9]{9}$ - bankAccountType: + phoneNumber: type: string - description: The bank account type. Required for certain corridors (e.g., El Salvador). - enum: - - CHECKING - - SAVINGS + description: The phone number in international format + example: '+1234567890' + minLength: 7 + maxLength: 15 + pattern: ^\+[0-9]{6,14}$ UsdAccountInfo: allOf: - $ref: '#/components/schemas/UsdAccountInfoBase' @@ -6160,7 +6160,7 @@ components: - WIRE - RTP - FEDNOW - - BANK_TRANSFER + - MOBILE_MONEY PaymentUsdAccountInfo: title: USD Bank Account allOf: @@ -7673,6 +7673,7 @@ components: type: object required: - accountType + - bankName - accountNumber - branchCode - phoneNumber @@ -7681,6 +7682,11 @@ components: type: string enum: - BDT_ACCOUNT + bankName: + type: string + description: The name of the bank + minLength: 1 + maxLength: 255 accountNumber: type: string description: The account number of the bank @@ -7773,12 +7779,18 @@ components: type: object required: - accountType + - bankName - accountNumber properties: accountType: type: string enum: - EGP_ACCOUNT + bankName: + type: string + description: The name of the bank + minLength: 1 + maxLength: 255 accountNumber: type: string description: The account number of the bank @@ -7828,6 +7840,7 @@ components: type: object required: - accountType + - bankName - accountNumber - phoneNumber properties: @@ -7835,6 +7848,11 @@ components: type: string enum: - GHS_ACCOUNT + bankName: + type: string + description: The name of the bank + minLength: 1 + maxLength: 255 accountNumber: type: string description: The account number of the bank @@ -7878,25 +7896,30 @@ components: type: object required: - accountType + - bankName - accountNumber - - phoneNumber + - bankAccountType properties: accountType: type: string enum: - GTQ_ACCOUNT + bankName: + type: string + description: The name of the bank + minLength: 1 + maxLength: 255 accountNumber: type: string description: The account number of the bank minLength: 1 maxLength: 34 - phoneNumber: + bankAccountType: type: string - description: The phone number in international format - example: '+1234567890' - minLength: 7 - maxLength: 15 - pattern: ^\+[0-9]{6,14}$ + description: The bank account type + enum: + - CHECKING + - SAVINGS GtqAccountInfo: allOf: - $ref: '#/components/schemas/GtqAccountInfoBase' @@ -7910,7 +7933,6 @@ components: type: string enum: - BANK_TRANSFER - - MOBILE_MONEY PaymentGtqAccountInfo: title: GTQ Account allOf: @@ -7971,6 +7993,7 @@ components: type: object required: - accountType + - bankName - accountNumber - branchCode - bankAccountType @@ -7979,6 +8002,11 @@ components: type: string enum: - JMD_ACCOUNT + bankName: + type: string + description: The name of the bank + minLength: 1 + maxLength: 255 accountNumber: type: string description: The account number of the bank @@ -8026,6 +8054,7 @@ components: type: object required: - accountType + - bankName - accountNumber - phoneNumber properties: @@ -8033,6 +8062,11 @@ components: 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 @@ -9926,15 +9960,19 @@ components: type: object required: - accountType + - bankName - accountNumber - bankAccountType - - bankName - - phoneNumber properties: accountType: type: string enum: - COP_ACCOUNT + bankName: + type: string + description: The name of the bank + minLength: 1 + maxLength: 255 accountNumber: type: string description: The account number of the bank @@ -9946,16 +9984,6 @@ components: enum: - CHECKING - SAVINGS - bankName: - type: string - description: The name of the bank - phoneNumber: - type: string - description: The phone number in international format - example: '+1234567890' - minLength: 7 - maxLength: 15 - pattern: ^\+[0-9]{6,14}$ CopAccountInfo: allOf: - $ref: '#/components/schemas/CopAccountInfoBase' @@ -9969,13 +9997,13 @@ components: type: string enum: - BANK_TRANSFER - - MOBILE_MONEY CopBeneficiary: title: Individual Beneficiary type: object required: - beneficiaryType - - countryOfResidence + - documentNumber + - documentType - fullName properties: beneficiaryType: @@ -10000,14 +10028,14 @@ components: countryOfResidence: type: string description: The country of residence of the beneficiary + address: + $ref: '#/components/schemas/Address' documentType: type: string description: The type of identity document (e.g., national ID, passport) documentNumber: type: string description: The identity document number - address: - $ref: '#/components/schemas/Address' CopExternalAccountInfo: title: COP Account allOf: @@ -10140,6 +10168,7 @@ components: - beneficiaryType - countryOfResidence - fullName + - phoneNumber properties: beneficiaryType: type: string @@ -12244,7 +12273,7 @@ components: - WIRE accountNumber: '1234567890' routingNumber: '021000021' - bankName: Chase Bank + phoneNumber: '+14155550100' reference: UMA-Q12345-REF instructionsNotes: Include reference UMA-Q12345-REF in memo - accountOrWalletInfo: @@ -12640,7 +12669,7 @@ components: - WIRE accountNumber: '1234567890' routingNumber: '021000021' - bankName: Chase Bank + phoneNumber: '+14155550100' reference: UMA-Q12345-REF instructionsNotes: Include reference UMA-Q12345-REF in memo - accountOrWalletInfo: diff --git a/openapi.yaml b/openapi.yaml index 0b06ca6bb..a559b6b64 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -946,8 +946,7 @@ paths: accountType: USD_ACCOUNT accountNumber: '12345678901' routingNumber: '123456789' - bankAccountType: CHECKING - bankName: Chase Bank + phoneNumber: '+14155550100' platformAccountId: ext_acc_123456 beneficiary: beneficiaryType: INDIVIDUAL @@ -1136,8 +1135,7 @@ paths: accountType: USD_ACCOUNT accountNumber: '12345678901' routingNumber: '123456789' - bankAccountType: CHECKING - bankName: Chase Bank + phoneNumber: '+14155550100' platformAccountId: ext_acc_123456 beneficiary: beneficiaryType: INDIVIDUAL @@ -6121,6 +6119,7 @@ components: - accountType - accountNumber - routingNumber + - phoneNumber properties: accountType: type: string @@ -6138,12 +6137,13 @@ components: minLength: 9 maxLength: 9 pattern: ^[0-9]{9}$ - bankAccountType: + phoneNumber: type: string - description: The bank account type. Required for certain corridors (e.g., El Salvador). - enum: - - CHECKING - - SAVINGS + description: The phone number in international format + example: '+1234567890' + minLength: 7 + maxLength: 15 + pattern: ^\+[0-9]{6,14}$ UsdAccountInfo: allOf: - $ref: '#/components/schemas/UsdAccountInfoBase' @@ -6160,7 +6160,7 @@ components: - WIRE - RTP - FEDNOW - - BANK_TRANSFER + - MOBILE_MONEY PaymentUsdAccountInfo: title: USD Bank Account allOf: @@ -7673,6 +7673,7 @@ components: type: object required: - accountType + - bankName - accountNumber - branchCode - phoneNumber @@ -7681,6 +7682,11 @@ components: type: string enum: - BDT_ACCOUNT + bankName: + type: string + description: The name of the bank + minLength: 1 + maxLength: 255 accountNumber: type: string description: The account number of the bank @@ -7773,12 +7779,18 @@ components: type: object required: - accountType + - bankName - accountNumber properties: accountType: type: string enum: - EGP_ACCOUNT + bankName: + type: string + description: The name of the bank + minLength: 1 + maxLength: 255 accountNumber: type: string description: The account number of the bank @@ -7828,6 +7840,7 @@ components: type: object required: - accountType + - bankName - accountNumber - phoneNumber properties: @@ -7835,6 +7848,11 @@ components: type: string enum: - GHS_ACCOUNT + bankName: + type: string + description: The name of the bank + minLength: 1 + maxLength: 255 accountNumber: type: string description: The account number of the bank @@ -7878,25 +7896,30 @@ components: type: object required: - accountType + - bankName - accountNumber - - phoneNumber + - bankAccountType properties: accountType: type: string enum: - GTQ_ACCOUNT + bankName: + type: string + description: The name of the bank + minLength: 1 + maxLength: 255 accountNumber: type: string description: The account number of the bank minLength: 1 maxLength: 34 - phoneNumber: + bankAccountType: type: string - description: The phone number in international format - example: '+1234567890' - minLength: 7 - maxLength: 15 - pattern: ^\+[0-9]{6,14}$ + description: The bank account type + enum: + - CHECKING + - SAVINGS GtqAccountInfo: allOf: - $ref: '#/components/schemas/GtqAccountInfoBase' @@ -7910,7 +7933,6 @@ components: type: string enum: - BANK_TRANSFER - - MOBILE_MONEY PaymentGtqAccountInfo: title: GTQ Account allOf: @@ -7971,6 +7993,7 @@ components: type: object required: - accountType + - bankName - accountNumber - branchCode - bankAccountType @@ -7979,6 +8002,11 @@ components: type: string enum: - JMD_ACCOUNT + bankName: + type: string + description: The name of the bank + minLength: 1 + maxLength: 255 accountNumber: type: string description: The account number of the bank @@ -8026,6 +8054,7 @@ components: type: object required: - accountType + - bankName - accountNumber - phoneNumber properties: @@ -8033,6 +8062,11 @@ components: 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 @@ -9926,15 +9960,19 @@ components: type: object required: - accountType + - bankName - accountNumber - bankAccountType - - bankName - - phoneNumber properties: accountType: type: string enum: - COP_ACCOUNT + bankName: + type: string + description: The name of the bank + minLength: 1 + maxLength: 255 accountNumber: type: string description: The account number of the bank @@ -9946,16 +9984,6 @@ components: enum: - CHECKING - SAVINGS - bankName: - type: string - description: The name of the bank - phoneNumber: - type: string - description: The phone number in international format - example: '+1234567890' - minLength: 7 - maxLength: 15 - pattern: ^\+[0-9]{6,14}$ CopAccountInfo: allOf: - $ref: '#/components/schemas/CopAccountInfoBase' @@ -9969,13 +9997,13 @@ components: type: string enum: - BANK_TRANSFER - - MOBILE_MONEY CopBeneficiary: title: Individual Beneficiary type: object required: - beneficiaryType - - countryOfResidence + - documentNumber + - documentType - fullName properties: beneficiaryType: @@ -10000,14 +10028,14 @@ components: countryOfResidence: type: string description: The country of residence of the beneficiary + address: + $ref: '#/components/schemas/Address' documentType: type: string description: The type of identity document (e.g., national ID, passport) documentNumber: type: string description: The identity document number - address: - $ref: '#/components/schemas/Address' CopExternalAccountInfo: title: COP Account allOf: @@ -10140,6 +10168,7 @@ components: - beneficiaryType - countryOfResidence - fullName + - phoneNumber properties: beneficiaryType: type: string @@ -12244,7 +12273,7 @@ components: - WIRE accountNumber: '1234567890' routingNumber: '021000021' - bankName: Chase Bank + phoneNumber: '+14155550100' reference: UMA-Q12345-REF instructionsNotes: Include reference UMA-Q12345-REF in memo - accountOrWalletInfo: @@ -12640,7 +12669,7 @@ components: - WIRE accountNumber: '1234567890' routingNumber: '021000021' - bankName: Chase Bank + phoneNumber: '+14155550100' reference: UMA-Q12345-REF instructionsNotes: Include reference UMA-Q12345-REF in memo - accountOrWalletInfo: diff --git a/openapi/components/schemas/common/BdtAccountInfoBase.yaml b/openapi/components/schemas/common/BdtAccountInfoBase.yaml index a28a003f6..84921e324 100644 --- a/openapi/components/schemas/common/BdtAccountInfoBase.yaml +++ b/openapi/components/schemas/common/BdtAccountInfoBase.yaml @@ -1,6 +1,7 @@ type: object required: - accountType +- bankName - accountNumber - branchCode - phoneNumber @@ -9,6 +10,11 @@ properties: type: string enum: - BDT_ACCOUNT + bankName: + type: string + description: The name of the bank + minLength: 1 + maxLength: 255 accountNumber: type: string description: The account number of the bank diff --git a/openapi/components/schemas/common/CopAccountInfo.yaml b/openapi/components/schemas/common/CopAccountInfo.yaml index e16c7af97..d8d4a779c 100644 --- a/openapi/components/schemas/common/CopAccountInfo.yaml +++ b/openapi/components/schemas/common/CopAccountInfo.yaml @@ -10,4 +10,3 @@ allOf: type: string enum: - BANK_TRANSFER - - MOBILE_MONEY diff --git a/openapi/components/schemas/common/CopAccountInfoBase.yaml b/openapi/components/schemas/common/CopAccountInfoBase.yaml index c10ab5813..fca9708e5 100644 --- a/openapi/components/schemas/common/CopAccountInfoBase.yaml +++ b/openapi/components/schemas/common/CopAccountInfoBase.yaml @@ -1,15 +1,19 @@ type: object required: - accountType +- bankName - accountNumber - bankAccountType -- bankName -- phoneNumber properties: accountType: type: string enum: - COP_ACCOUNT + bankName: + type: string + description: The name of the bank + minLength: 1 + maxLength: 255 accountNumber: type: string description: The account number of the bank @@ -21,13 +25,3 @@ properties: enum: - CHECKING - SAVINGS - bankName: - type: string - description: The name of the bank - phoneNumber: - type: string - description: The phone number in international format - example: '+1234567890' - minLength: 7 - maxLength: 15 - pattern: ^\+[0-9]{6,14}$ diff --git a/openapi/components/schemas/common/CopBeneficiary.yaml b/openapi/components/schemas/common/CopBeneficiary.yaml index 30db98588..45e8fdcba 100644 --- a/openapi/components/schemas/common/CopBeneficiary.yaml +++ b/openapi/components/schemas/common/CopBeneficiary.yaml @@ -2,7 +2,8 @@ title: Individual Beneficiary type: object required: - beneficiaryType -- countryOfResidence +- documentNumber +- documentType - fullName properties: beneficiaryType: @@ -27,11 +28,11 @@ properties: countryOfResidence: type: string description: The country of residence of the beneficiary + address: + $ref: ./Address.yaml documentType: type: string description: The type of identity document (e.g., national ID, passport) documentNumber: type: string description: The identity document number - address: - $ref: ./Address.yaml diff --git a/openapi/components/schemas/common/EgpAccountInfoBase.yaml b/openapi/components/schemas/common/EgpAccountInfoBase.yaml index 935cdbf7a..d156fb8b3 100644 --- a/openapi/components/schemas/common/EgpAccountInfoBase.yaml +++ b/openapi/components/schemas/common/EgpAccountInfoBase.yaml @@ -1,12 +1,18 @@ type: object required: - accountType +- bankName - accountNumber properties: accountType: type: string enum: - EGP_ACCOUNT + bankName: + type: string + description: The name of the bank + minLength: 1 + maxLength: 255 accountNumber: type: string description: The account number of the bank diff --git a/openapi/components/schemas/common/GhsAccountInfoBase.yaml b/openapi/components/schemas/common/GhsAccountInfoBase.yaml index 636581a6b..99cc49be8 100644 --- a/openapi/components/schemas/common/GhsAccountInfoBase.yaml +++ b/openapi/components/schemas/common/GhsAccountInfoBase.yaml @@ -1,6 +1,7 @@ type: object required: - accountType +- bankName - accountNumber - phoneNumber properties: @@ -8,6 +9,11 @@ properties: type: string enum: - GHS_ACCOUNT + bankName: + type: string + description: The name of the bank + minLength: 1 + maxLength: 255 accountNumber: type: string description: The account number of the bank diff --git a/openapi/components/schemas/common/GtqAccountInfo.yaml b/openapi/components/schemas/common/GtqAccountInfo.yaml index 9cbc20182..55c654cba 100644 --- a/openapi/components/schemas/common/GtqAccountInfo.yaml +++ b/openapi/components/schemas/common/GtqAccountInfo.yaml @@ -10,4 +10,3 @@ allOf: type: string enum: - BANK_TRANSFER - - MOBILE_MONEY diff --git a/openapi/components/schemas/common/GtqAccountInfoBase.yaml b/openapi/components/schemas/common/GtqAccountInfoBase.yaml index 40915add6..3c033e3ca 100644 --- a/openapi/components/schemas/common/GtqAccountInfoBase.yaml +++ b/openapi/components/schemas/common/GtqAccountInfoBase.yaml @@ -1,22 +1,27 @@ type: object required: - accountType +- bankName - accountNumber -- phoneNumber +- bankAccountType properties: accountType: type: string enum: - GTQ_ACCOUNT + bankName: + type: string + description: The name of the bank + minLength: 1 + maxLength: 255 accountNumber: type: string description: The account number of the bank minLength: 1 maxLength: 34 - phoneNumber: + bankAccountType: type: string - description: The phone number in international format - example: '+1234567890' - minLength: 7 - maxLength: 15 - pattern: ^\+[0-9]{6,14}$ + description: The bank account type + enum: + - CHECKING + - SAVINGS diff --git a/openapi/components/schemas/common/GtqBeneficiary.yaml b/openapi/components/schemas/common/GtqBeneficiary.yaml index b834477b7..6b19c5c2c 100644 --- a/openapi/components/schemas/common/GtqBeneficiary.yaml +++ b/openapi/components/schemas/common/GtqBeneficiary.yaml @@ -4,6 +4,7 @@ required: - beneficiaryType - countryOfResidence - fullName +- phoneNumber properties: beneficiaryType: type: string diff --git a/openapi/components/schemas/common/JmdAccountInfoBase.yaml b/openapi/components/schemas/common/JmdAccountInfoBase.yaml index 5c8f58547..ef97b313e 100644 --- a/openapi/components/schemas/common/JmdAccountInfoBase.yaml +++ b/openapi/components/schemas/common/JmdAccountInfoBase.yaml @@ -1,6 +1,7 @@ type: object required: - accountType +- bankName - accountNumber - branchCode - bankAccountType @@ -9,6 +10,11 @@ properties: type: string enum: - JMD_ACCOUNT + bankName: + type: string + description: The name of the bank + minLength: 1 + maxLength: 255 accountNumber: type: string description: The account number of the bank diff --git a/openapi/components/schemas/common/PkrAccountInfoBase.yaml b/openapi/components/schemas/common/PkrAccountInfoBase.yaml index 4c3e98011..e7dd89db8 100644 --- a/openapi/components/schemas/common/PkrAccountInfoBase.yaml +++ b/openapi/components/schemas/common/PkrAccountInfoBase.yaml @@ -1,6 +1,7 @@ type: object required: - accountType +- bankName - accountNumber - phoneNumber properties: @@ -8,6 +9,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 diff --git a/openapi/components/schemas/common/UsdAccountInfo.yaml b/openapi/components/schemas/common/UsdAccountInfo.yaml index 4d2f99097..6c3c991b4 100644 --- a/openapi/components/schemas/common/UsdAccountInfo.yaml +++ b/openapi/components/schemas/common/UsdAccountInfo.yaml @@ -13,4 +13,4 @@ allOf: - WIRE - RTP - FEDNOW - - BANK_TRANSFER + - MOBILE_MONEY diff --git a/openapi/components/schemas/common/UsdAccountInfoBase.yaml b/openapi/components/schemas/common/UsdAccountInfoBase.yaml index 220a50a4a..2a68a6363 100644 --- a/openapi/components/schemas/common/UsdAccountInfoBase.yaml +++ b/openapi/components/schemas/common/UsdAccountInfoBase.yaml @@ -3,6 +3,7 @@ required: - accountType - accountNumber - routingNumber +- phoneNumber properties: accountType: type: string @@ -20,9 +21,10 @@ properties: minLength: 9 maxLength: 9 pattern: ^[0-9]{9}$ - bankAccountType: + phoneNumber: type: string - description: The bank account type. Required for certain corridors (e.g., El Salvador). - enum: - - CHECKING - - SAVINGS + description: The phone number in international format + example: '+1234567890' + minLength: 7 + maxLength: 15 + pattern: ^\+[0-9]{6,14}$ diff --git a/openapi/components/schemas/quotes/Quote.yaml b/openapi/components/schemas/quotes/Quote.yaml index 5bf2d4309..a7264f17a 100644 --- a/openapi/components/schemas/quotes/Quote.yaml +++ b/openapi/components/schemas/quotes/Quote.yaml @@ -90,7 +90,7 @@ properties: - WIRE accountNumber: "1234567890" routingNumber: "021000021" - bankName: "Chase Bank" + phoneNumber: "+14155550100" reference: "UMA-Q12345-REF" instructionsNotes: "Include reference UMA-Q12345-REF in memo" - accountOrWalletInfo: diff --git a/openapi/components/schemas/transactions/OutgoingTransaction.yaml b/openapi/components/schemas/transactions/OutgoingTransaction.yaml index 54879d501..2f6cdd681 100644 --- a/openapi/components/schemas/transactions/OutgoingTransaction.yaml +++ b/openapi/components/schemas/transactions/OutgoingTransaction.yaml @@ -51,7 +51,7 @@ allOf: - WIRE accountNumber: "1234567890" routingNumber: "021000021" - bankName: "Chase Bank" + phoneNumber: "+14155550100" reference: "UMA-Q12345-REF" instructionsNotes: "Include reference UMA-Q12345-REF in memo" - accountOrWalletInfo: diff --git a/openapi/paths/customers/customers_external_accounts.yaml b/openapi/paths/customers/customers_external_accounts.yaml index 0b057ff6d..daaabb21b 100644 --- a/openapi/paths/customers/customers_external_accounts.yaml +++ b/openapi/paths/customers/customers_external_accounts.yaml @@ -90,8 +90,7 @@ post: accountType: USD_ACCOUNT accountNumber: "12345678901" routingNumber: "123456789" - bankAccountType: CHECKING - bankName: Chase Bank + phoneNumber: "+14155550100" platformAccountId: ext_acc_123456 beneficiary: beneficiaryType: INDIVIDUAL diff --git a/openapi/paths/platform/platform_external_accounts.yaml b/openapi/paths/platform/platform_external_accounts.yaml index 3cd832c4c..fdb35b8ac 100644 --- a/openapi/paths/platform/platform_external_accounts.yaml +++ b/openapi/paths/platform/platform_external_accounts.yaml @@ -66,8 +66,7 @@ post: accountType: USD_ACCOUNT accountNumber: "12345678901" routingNumber: "123456789" - bankAccountType: CHECKING - bankName: Chase Bank + phoneNumber: "+14155550100" platformAccountId: ext_acc_123456 beneficiary: beneficiaryType: INDIVIDUAL