diff --git a/openapi/components/schemas/external_accounts/ExternalAccountInfoOneOf.yaml b/openapi/components/schemas/external_accounts/ExternalAccountInfoOneOf.yaml index 3833c6b3..fa6ba888 100644 --- a/openapi/components/schemas/external_accounts/ExternalAccountInfoOneOf.yaml +++ b/openapi/components/schemas/external_accounts/ExternalAccountInfoOneOf.yaml @@ -1,36 +1,40 @@ oneOf: - - title: US Account - $ref: ./UsAccountExternalAccountInfo.yaml - - title: CLABE Account - $ref: ./ClabeAccountExternalAccountInfo.yaml - - title: PIX Account - $ref: ./PixAccountExternalAccountInfo.yaml - - title: IBAN Account - $ref: ./IbanAccountExternalAccountInfo.yaml - - title: UPI Account - $ref: ./UpiAccountExternalAccountInfo.yaml - - title: NGN Account - $ref: ./NgnAccountExternalAccountInfo.yaml - - title: CAD Account - $ref: ./CadAccountExternalAccountInfo.yaml - - title: GBP Account - $ref: ./GbpAccountExternalAccountInfo.yaml - - title: PHP Account - $ref: ./PhpAccountExternalAccountInfo.yaml - - title: SGD Account - $ref: ./SgdAccountExternalAccountInfo.yaml - - title: Spark Wallet - $ref: ./SparkWalletExternalAccountInfo.yaml - - title: Lightning - $ref: ./LightningExternalAccountInfo.yaml - - title: Solana Wallet - $ref: ./SolanaWalletExternalAccountInfo.yaml - - title: Tron Wallet - $ref: ./TronWalletExternalAccountInfo.yaml - - title: Polygon Wallet - $ref: ./PolygonWalletExternalAccountInfo.yaml - - title: Base Wallet - $ref: ./BaseWalletExternalAccountInfo.yaml +- title: US Account + $ref: ./UsAccountExternalAccountInfo.yaml +- title: CLABE Account + $ref: ./ClabeAccountExternalAccountInfo.yaml +- title: PIX Account + $ref: ./PixAccountExternalAccountInfo.yaml +- title: IBAN Account + $ref: ./IbanAccountExternalAccountInfo.yaml +- title: UPI Account + $ref: ./UpiAccountExternalAccountInfo.yaml +- title: NGN Account + $ref: ./NgnAccountExternalAccountInfo.yaml +- title: CAD Account + $ref: ./CadAccountExternalAccountInfo.yaml +- title: GBP Account + $ref: ./GbpAccountExternalAccountInfo.yaml +- title: PHP Account + $ref: ./PhpAccountExternalAccountInfo.yaml +- title: SGD Account + $ref: ./SgdAccountExternalAccountInfo.yaml +- title: Spark Wallet + $ref: ./SparkWalletExternalAccountInfo.yaml +- title: Lightning + $ref: ./LightningExternalAccountInfo.yaml +- title: Solana Wallet + $ref: ./SolanaWalletExternalAccountInfo.yaml +- title: Tron Wallet + $ref: ./TronWalletExternalAccountInfo.yaml +- title: Polygon Wallet + $ref: ./PolygonWalletExternalAccountInfo.yaml +- title: Base Wallet + $ref: ./BaseWalletExternalAccountInfo.yaml +- title: INR Account + $ref: ./InrAccountInfo.yaml +- title: MXN Account + $ref: ./MxnAccountInfo.yaml discriminator: propertyName: accountType mapping: @@ -50,3 +54,5 @@ discriminator: TRON_WALLET: ./TronWalletExternalAccountInfo.yaml POLYGON_WALLET: ./PolygonWalletExternalAccountInfo.yaml BASE_WALLET: ./BaseWalletExternalAccountInfo.yaml + INR_ACCOUNT: ./InrAccountInfo.yaml + MXN_ACCOUNT: ./MxnAccountInfo.yaml diff --git a/openapi/components/schemas/external_accounts/InrAccountInfo.yaml b/openapi/components/schemas/external_accounts/InrAccountInfo.yaml new file mode 100644 index 00000000..f9763d95 --- /dev/null +++ b/openapi/components/schemas/external_accounts/InrAccountInfo.yaml @@ -0,0 +1,59 @@ +type: object +title: INR Account +description: 'Required fields for USD -> INR corridor. Supported payment rails: Upi.' +required: +- accountType +- vpa +- beneficiary +properties: + accountType: + type: string + enum: + - INR_ACCOUNT + example: INR_ACCOUNT + payment_rails: + type: array + items: + type: string + const: + - Upi + description: Supported payment rails for this currency. Auto-populated based on + account type. + receivingCurrency: + type: string + const: INR + description: Receiving currency code. Auto-populated based on account type. + vpa: + type: string + description: The VPA of the bank + beneficiary: + type: object + required: + - birthDate + - fullName + - nationality + properties: + fullName: + type: string + description: The full name of the beneficiary + birthDate: + type: string + description: The birth date of the beneficiary + nationality: + type: string + description: The nationality of the beneficiary + email: + type: string + description: The email of the beneficiary + phoneNumber: + type: string + description: The phone number of the beneficiary + registrationNumber: + type: string + description: The registration number of the beneficiary + countryOfResidence: + type: string + description: The country of residence of the beneficiary + address: + type: string + description: The address of the beneficiary diff --git a/openapi/components/schemas/external_accounts/MxnAccountInfo.yaml b/openapi/components/schemas/external_accounts/MxnAccountInfo.yaml new file mode 100644 index 00000000..6a685a15 --- /dev/null +++ b/openapi/components/schemas/external_accounts/MxnAccountInfo.yaml @@ -0,0 +1,61 @@ +type: object +title: MXN Account +description: 'Required fields for USD -> MXN corridor. Supported payment rails: Spei.' +required: +- accountType +- clabeNumber +- beneficiary +properties: + accountType: + type: string + enum: + - MXN_ACCOUNT + example: MXN_ACCOUNT + payment_rails: + type: array + items: + type: string + const: + - Spei + description: Supported payment rails for this currency. Auto-populated based on + account type. + receivingCurrency: + type: string + const: MXN + description: Receiving currency code. Auto-populated based on account type. + clabeNumber: + type: string + description: The CLABE number of the bank + example: '123456789012345678' + minLength: 18 + maxLength: 18 + pattern: ^[0-9]{18}$ + beneficiary: + type: object + required: + - fullName + properties: + fullName: + type: string + description: The full name of the beneficiary + birthDate: + type: string + description: The birth date of the beneficiary + nationality: + type: string + description: The nationality of the beneficiary + email: + type: string + description: The email of the beneficiary + phoneNumber: + type: string + description: The phone number of the beneficiary + registrationNumber: + type: string + description: The registration number of the beneficiary + countryOfResidence: + type: string + description: The country of residence of the beneficiary + address: + type: string + description: The address of the beneficiary