diff --git a/mintlify/openapi.yaml b/mintlify/openapi.yaml index 9540ce96..a19d4968 100644 --- a/mintlify/openapi.yaml +++ b/mintlify/openapi.yaml @@ -5237,42 +5237,857 @@ components: - UNDER_REVIEW - INACTIVE description: Status of an external account - UsAccountExternalAccountInfo: + BaseExternalAccountInfo: + type: object + required: + - accountType + properties: + accountType: + $ref: '#/components/schemas/ExternalAccountType' + discriminator: + propertyName: accountType + mapping: + BRL_ACCOUNT: '#/components/schemas/BrlExternalAccountInfo' + CLABE_ACCOUNT: '#/components/schemas/ClabeExternalAccountInfo' + DKK_ACCOUNT: '#/components/schemas/DkkExternalAccountInfo' + HKD_ACCOUNT: '#/components/schemas/HkdExternalAccountInfo' + IBAN_ACCOUNT: '#/components/schemas/IbanExternalAccountInfo' + IDR_ACCOUNT: '#/components/schemas/IdrExternalAccountInfo' + INR_ACCOUNT: '#/components/schemas/InrExternalAccountInfo' + MXN_ACCOUNT: '#/components/schemas/MxnExternalAccountInfo' + MYR_ACCOUNT: '#/components/schemas/MyrExternalAccountInfo' + PIX_ACCOUNT: '#/components/schemas/PixExternalAccountInfo' + THB_ACCOUNT: '#/components/schemas/ThbExternalAccountInfo' + UPI_ACCOUNT: '#/components/schemas/UpiExternalAccountInfo' + USD_ACCOUNT: '#/components/schemas/UsdExternalAccountInfo' + VND_ACCOUNT: '#/components/schemas/VndExternalAccountInfo' + SPARK_WALLET: '#/components/schemas/SparkWalletExternalAccountInfo' + LIGHTNING: '#/components/schemas/LightningExternalAccountInfo' + LIGHTNING_ACCOUNT: '#/components/schemas/LightningExternalAccountInfo' + SOLANA_WALLET: '#/components/schemas/SolanaWalletExternalAccountInfo' + TRON_WALLET: '#/components/schemas/TronWalletExternalAccountInfo' + POLYGON_WALLET: '#/components/schemas/PolygonWalletExternalAccountInfo' + BASE_WALLET: '#/components/schemas/BaseWalletExternalAccountInfo' + BrlAccountInfo: + type: object + required: + - pixKey + - pixKeyType + - taxId + properties: + pixKey: + type: string + description: The PIX key of the bank + pixKeyType: + type: string + description: The type of PIX key of the bank + taxId: + type: string + description: The tax ID of the bank account + BrlBeneficiary: + 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: object + required: + - country + - line1 + - postalCode + properties: + line1: + type: string + description: Address line 1 + postalCode: + type: string + description: Postal code + country: + type: string + description: Country code + line2: + type: string + description: Address line 2 + city: + type: string + description: City + state: + type: string + description: State or province + BrlExternalAccountInfo: + allOf: + - $ref: '#/components/schemas/BaseExternalAccountInfo' + - $ref: '#/components/schemas/BrlAccountInfo' + - type: object + required: + - beneficiary + properties: + beneficiary: + $ref: '#/components/schemas/BrlBeneficiary' + ClabeExternalAccountInfo: + allOf: + - $ref: '#/components/schemas/BaseExternalAccountInfo' + - $ref: '#/components/schemas/ClabeAccountInfo' + DkkAccountInfo: + type: object + required: + - iban + properties: + iban: + type: string + description: The IBAN of the bank + swiftBic: + type: string + description: The SWIFT BIC of the bank + DkkBeneficiary: + 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: object + required: + - country + - line1 + - postalCode + properties: + line1: + type: string + description: Address line 1 + postalCode: + type: string + description: Postal code + country: + type: string + description: Country code + line2: + type: string + description: Address line 2 + city: + type: string + description: City + state: + type: string + description: State or province + DkkExternalAccountInfo: + allOf: + - $ref: '#/components/schemas/BaseExternalAccountInfo' + - $ref: '#/components/schemas/DkkAccountInfo' + - type: object + required: + - beneficiary + properties: + beneficiary: + $ref: '#/components/schemas/DkkBeneficiary' + HkdAccountInfo: + type: object + required: + - bankName + - accountNumber + properties: + bankName: + type: string + description: The bank name of the bank + accountNumber: + type: string + description: The account number of the bank + HkdBeneficiary: + 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: object + required: + - country + - line1 + - postalCode + properties: + line1: + type: string + description: Address line 1 + postalCode: + type: string + description: Postal code + country: + type: string + description: Country code + line2: + type: string + description: Address line 2 + city: + type: string + description: City + state: + type: string + description: State or province + HkdExternalAccountInfo: + allOf: + - $ref: '#/components/schemas/BaseExternalAccountInfo' + - $ref: '#/components/schemas/HkdAccountInfo' + - type: object + required: + - beneficiary + properties: + beneficiary: + $ref: '#/components/schemas/HkdBeneficiary' + IbanExternalAccountInfo: + allOf: + - $ref: '#/components/schemas/BaseExternalAccountInfo' + - $ref: '#/components/schemas/IbanAccountInfo' + IdrAccountInfo: + type: object + required: + - sortCode + - accountNumber + properties: + sortCode: + type: string + description: The sort code of the bank + accountNumber: + type: string + description: The account number of the bank + IdrBeneficiary: + 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: object + required: + - country + - line1 + - postalCode + properties: + line1: + type: string + description: Address line 1 + postalCode: + type: string + description: Postal code + country: + type: string + description: Country code + line2: + type: string + description: Address line 2 + city: + type: string + description: City + state: + type: string + description: State or province + IdrExternalAccountInfo: + allOf: + - $ref: '#/components/schemas/BaseExternalAccountInfo' + - $ref: '#/components/schemas/IdrAccountInfo' + - type: object + required: + - beneficiary + properties: + beneficiary: + $ref: '#/components/schemas/IdrBeneficiary' + InrAccountInfo: + type: object + required: + - vpa + properties: + vpa: + type: string + description: The VPA of the bank + InrBeneficiary: + 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: object + required: + - country + - line1 + - postalCode + properties: + line1: + type: string + description: Address line 1 + postalCode: + type: string + description: Postal code + country: + type: string + description: Country code + line2: + type: string + description: Address line 2 + city: + type: string + description: City + state: + type: string + description: State or province + InrExternalAccountInfo: + allOf: + - $ref: '#/components/schemas/BaseExternalAccountInfo' + - $ref: '#/components/schemas/InrAccountInfo' + - type: object + required: + - beneficiary + properties: + beneficiary: + $ref: '#/components/schemas/InrBeneficiary' + MxnAccountInfo: + type: object + required: + - clabeNumber + properties: + clabeNumber: + type: string + description: The CLABE number of the bank + example: '123456789012345678' + minLength: 18 + maxLength: 18 + pattern: ^[0-9]{18}$ + MxnBeneficiary: + 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: object + required: + - country + - line1 + - postalCode + properties: + line1: + type: string + description: Address line 1 + postalCode: + type: string + description: Postal code + country: + type: string + description: Country code + line2: + type: string + description: Address line 2 + city: + type: string + description: City + state: + type: string + description: State or province + MxnExternalAccountInfo: + allOf: + - $ref: '#/components/schemas/BaseExternalAccountInfo' + - $ref: '#/components/schemas/MxnAccountInfo' + - type: object + required: + - beneficiary + properties: + beneficiary: + $ref: '#/components/schemas/MxnBeneficiary' + MyrAccountInfo: + type: object + required: + - bankName + - accountNumber + properties: + bankName: + type: string + description: The bank name of the bank + accountNumber: + type: string + description: The account number of the bank + MyrBeneficiary: + 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: object + required: + - country + - line1 + - postalCode + properties: + line1: + type: string + description: Address line 1 + postalCode: + type: string + description: Postal code + country: + type: string + description: Country code + line2: + type: string + description: Address line 2 + city: + type: string + description: City + state: + type: string + description: State or province + MyrExternalAccountInfo: + allOf: + - $ref: '#/components/schemas/BaseExternalAccountInfo' + - $ref: '#/components/schemas/MyrAccountInfo' + - type: object + required: + - beneficiary + properties: + beneficiary: + $ref: '#/components/schemas/MyrBeneficiary' + PixExternalAccountInfo: + allOf: + - $ref: '#/components/schemas/BaseExternalAccountInfo' + - $ref: '#/components/schemas/PixAccountInfo' + ThbAccountInfo: + type: object + required: + - bankName + - accountNumber + properties: + bankName: + type: string + description: The bank name of the bank + accountNumber: + type: string + description: The account number of the bank + ThbBeneficiary: + 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: object + required: + - country + - line1 + - postalCode + properties: + line1: + type: string + description: Address line 1 + postalCode: + type: string + description: Postal code + country: + type: string + description: Country code + line2: + type: string + description: Address line 2 + city: + type: string + description: City + state: + type: string + description: State or province + ThbExternalAccountInfo: + allOf: + - $ref: '#/components/schemas/BaseExternalAccountInfo' + - $ref: '#/components/schemas/ThbAccountInfo' + - type: object + required: + - beneficiary + properties: + beneficiary: + $ref: '#/components/schemas/ThbBeneficiary' + UpiExternalAccountInfo: + allOf: + - $ref: '#/components/schemas/BaseExternalAccountInfo' + - $ref: '#/components/schemas/UpiAccountInfo' + UsdAccountInfo: + type: object + required: + - accountNumber + - routingNumber + properties: + accountNumber: + type: string + description: The account number of the bank + routingNumber: + type: string + description: The routing number of the bank + UsdBeneficiary: + 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: object + required: + - country + - line1 + - postalCode + properties: + line1: + type: string + description: Address line 1 + postalCode: + type: string + description: Postal code + country: + type: string + description: Country code + line2: + type: string + description: Address line 2 + city: + type: string + description: City + state: + type: string + description: State or province + UsdExternalAccountInfo: + allOf: + - $ref: '#/components/schemas/BaseExternalAccountInfo' + - $ref: '#/components/schemas/UsdAccountInfo' + - type: object + required: + - beneficiary + properties: + beneficiary: + $ref: '#/components/schemas/UsdBeneficiary' + VndAccountInfo: + type: object + required: + - bankName + - accountNumber + properties: + bankName: + type: string + description: The bank name of the bank + accountNumber: + type: string + description: The account number of the bank + VndBeneficiary: + 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: object + required: + - country + - line1 + - postalCode + properties: + line1: + type: string + description: Address line 1 + postalCode: + type: string + description: Postal code + country: + type: string + description: Country code + line2: + type: string + description: Address line 2 + city: + type: string + description: City + state: + type: string + description: State or province + VndExternalAccountInfo: allOf: - $ref: '#/components/schemas/BaseExternalAccountInfo' - - $ref: '#/components/schemas/UsAccountInfo' + - $ref: '#/components/schemas/VndAccountInfo' - type: object required: - beneficiary properties: beneficiary: - $ref: '#/components/schemas/BeneficiaryOneOf' - BaseExternalAccountInfo: + $ref: '#/components/schemas/VndBeneficiary' + SparkWalletExternalAccountInfo: + allOf: + - $ref: '#/components/schemas/BaseExternalAccountInfo' + - $ref: '#/components/schemas/SparkWalletInfo' + LightningInfo: type: object + description: | + Lightning payment destination. Exactly one of `invoice`, `bolt12`, or `lightningAddress` must be provided. required: - accountType properties: accountType: - $ref: '#/components/schemas/ExternalAccountType' - discriminator: - propertyName: accountType - mapping: - US_ACCOUNT: '#/components/schemas/UsAccountExternalAccountInfo' - CLABE: '#/components/schemas/ClabeAccountExternalAccountInfo' - PIX: '#/components/schemas/PixAccountExternalAccountInfo' - IBAN: '#/components/schemas/IbanAccountExternalAccountInfo' - UPI: '#/components/schemas/UpiAccountExternalAccountInfo' - NGN_ACCOUNT: '#/components/schemas/NgnAccountExternalAccountInfo' - CAD_ACCOUNT: '#/components/schemas/CadAccountExternalAccountInfo' - GBP_ACCOUNT: '#/components/schemas/GbpAccountExternalAccountInfo' - PHP_ACCOUNT: '#/components/schemas/PhpAccountExternalAccountInfo' - SGD_ACCOUNT: '#/components/schemas/SgdAccountExternalAccountInfo' - SPARK_WALLET: '#/components/schemas/SparkWalletExternalAccountInfo' - LIGHTNING: '#/components/schemas/LightningExternalAccountInfo' - SOLANA_WALLET: '#/components/schemas/SolanaWalletExternalAccountInfo' - TRON_WALLET: '#/components/schemas/TronWalletExternalAccountInfo' - POLYGON_WALLET: '#/components/schemas/PolygonWalletExternalAccountInfo' - BASE_WALLET: '#/components/schemas/BaseWalletExternalAccountInfo' + type: string + enum: + - LIGHTNING + invoice: + type: string + description: 1-time use lightning bolt11 invoice payout destination + example: lnbc15u1p3xnhl2pp5jptserfk3zk4qy42tlucycrfwxhydvlemu9pqr93tuzlv9cc7g3sdqsvfhkcap3xyhx7un8cqzpgxqzjcsp5f8c52y2stc300gl6s4xswtjpc37hrnnr3c9wvtgjfuvqmpm35evq9qyyssqy4lgd8tj637qcjp05rdpxxykjenthxftej7a2zzmwrmrl70fyj9hvj0rewhzj7jfyuwkwcg9g2jpwtk3wkjtwnkdks84hsnu8xps5vsq4gj5hs + bolt12: + type: string + description: A bolt12 offer which can be reused as a payment destination + example: lnbc15u1p3xnhl2pp5jptserfk3zk4qy42tlucycrfwxhydvlemu9pqr93tuzlv9cc7g3sdqsvfhkcap3xyhx7un8cqzpgxqzjcsp5f8c52y2stc300gl6s4xswtjpc37hrnnr3c9wvtgjfuvqmpm35evq9qyyssqy4lgd8tj637qcjp05rdpxxykjenthxftej7a2zzmwrmrl70fyj9hvj0rewhzj7jfyuwkwcg9g2jpwtk3wkjtwnkdks84hsnu8xps5vsq4gj5hs + lightningAddress: + type: string + description: A lightning address which can be used as a payment destination. Note that for UMA addresses, no external account is needed. You can use the UMA address directly as a destination. + example: john.doe@lightningwallet.com + LightningExternalAccountInfo: + allOf: + - $ref: '#/components/schemas/BaseExternalAccountInfo' + - $ref: '#/components/schemas/LightningInfo' + SolanaWalletExternalAccountInfo: + allOf: + - $ref: '#/components/schemas/BaseExternalAccountInfo' + - $ref: '#/components/schemas/SolanaWalletInfo' + TronWalletExternalAccountInfo: + allOf: + - $ref: '#/components/schemas/BaseExternalAccountInfo' + - $ref: '#/components/schemas/TronWalletInfo' + PolygonWalletExternalAccountInfo: + allOf: + - $ref: '#/components/schemas/BaseExternalAccountInfo' + - $ref: '#/components/schemas/PolygonWalletInfo' + BaseWalletExternalAccountInfo: + allOf: + - $ref: '#/components/schemas/BaseExternalAccountInfo' + - $ref: '#/components/schemas/BaseWalletInfo' + ExternalAccountType: + type: string + enum: + - BRL_ACCOUNT + - CLABE_ACCOUNT + - DKK_ACCOUNT + - HKD_ACCOUNT + - IBAN_ACCOUNT + - IDR_ACCOUNT + - INR_ACCOUNT + - MXN_ACCOUNT + - MYR_ACCOUNT + - PIX_ACCOUNT + - THB_ACCOUNT + - UPI_ACCOUNT + - USD_ACCOUNT + - VND_ACCOUNT + - SPARK_WALLET + - LIGHTNING + - LIGHTNING_ACCOUNT + - SOLANA_WALLET + - TRON_WALLET + - POLYGON_WALLET + - BASE_WALLET + description: Type of external account or wallet + example: BRL_ACCOUNT IndividualBeneficiary: allOf: - $ref: '#/components/schemas/BaseBeneficiary' @@ -5356,6 +6171,16 @@ components: mapping: INDIVIDUAL: '#/components/schemas/IndividualBeneficiary' BUSINESS: '#/components/schemas/BusinessBeneficiary' + UsAccountExternalAccountInfo: + allOf: + - $ref: '#/components/schemas/BaseExternalAccountInfo' + - $ref: '#/components/schemas/UsAccountInfo' + - type: object + required: + - beneficiary + properties: + beneficiary: + $ref: '#/components/schemas/BeneficiaryOneOf' ClabeAccountExternalAccountInfo: allOf: - $ref: '#/components/schemas/BaseExternalAccountInfo' @@ -5472,24 +6297,13 @@ components: required: - sortCode - accountNumber - - accountType properties: - accountType: - type: string - enum: - - GBP_ACCOUNT sortCode: type: string - description: UK bank sort code (6 digits, may include hyphens) - example: 20-00-00 - pattern: ^[0-9]{2}-?[0-9]{2}-?[0-9]{2}$ + description: The sort code of the bank accountNumber: type: string - description: UK bank account number (8 digits) - example: '12345678' - minLength: 8 - maxLength: 8 - pattern: ^[0-9]{8}$ + description: The account number of the bank GbpAccountExternalAccountInfo: allOf: - $ref: '#/components/schemas/BaseExternalAccountInfo' @@ -5505,20 +6319,13 @@ components: required: - bankName - accountNumber - - accountType properties: - accountType: - type: string - enum: - - PHP_ACCOUNT bankName: type: string - description: Name of the beneficiary's bank - example: BDO Unibank + description: The bank name of the bank accountNumber: type: string - description: Bank account number - example: '001234567890' + description: The account number of the bank PhpAccountExternalAccountInfo: allOf: - $ref: '#/components/schemas/BaseExternalAccountInfo' @@ -5533,29 +6340,14 @@ components: type: object required: - bankName - - swiftCode - accountNumber - - accountType properties: - accountType: - type: string - enum: - - SGD_ACCOUNT bankName: type: string - description: Name of the beneficiary's bank - example: DBS Bank Ltd - swiftCode: - type: string - description: SWIFT/BIC code (8 or 11 characters) - example: DBSSSGSG - minLength: 8 - maxLength: 11 - pattern: ^[A-Z]{4}[A-Z]{2}[A-Z0-9]{2}([A-Z0-9]{3})?$ + description: The bank name of the bank accountNumber: type: string - description: Bank account number - example: '0123456789' + description: The account number of the bank SgdAccountExternalAccountInfo: allOf: - $ref: '#/components/schemas/BaseExternalAccountInfo' @@ -5566,74 +6358,201 @@ components: properties: beneficiary: $ref: '#/components/schemas/BeneficiaryOneOf' - SparkWalletExternalAccountInfo: + CadExternalAccountInfo: allOf: - $ref: '#/components/schemas/BaseExternalAccountInfo' - - $ref: '#/components/schemas/SparkWalletInfo' - LightningInfo: + - $ref: '#/components/schemas/CadAccountInfo' + GbpBeneficiary: type: object - description: | - Lightning payment destination. Exactly one of `invoice`, `bolt12`, or `lightningAddress` must be provided. required: - - accountType + - fullName properties: - accountType: + fullName: type: string - enum: - - LIGHTNING - invoice: + description: The full name of the beneficiary + birthDate: type: string - description: 1-time use lightning bolt11 invoice payout destination - example: lnbc15u1p3xnhl2pp5jptserfk3zk4qy42tlucycrfwxhydvlemu9pqr93tuzlv9cc7g3sdqsvfhkcap3xyhx7un8cqzpgxqzjcsp5f8c52y2stc300gl6s4xswtjpc37hrnnr3c9wvtgjfuvqmpm35evq9qyyssqy4lgd8tj637qcjp05rdpxxykjenthxftej7a2zzmwrmrl70fyj9hvj0rewhzj7jfyuwkwcg9g2jpwtk3wkjtwnkdks84hsnu8xps5vsq4gj5hs - bolt12: + description: The birth date of the beneficiary + nationality: type: string - description: A bolt12 offer which can be reused as a payment destination - example: lnbc15u1p3xnhl2pp5jptserfk3zk4qy42tlucycrfwxhydvlemu9pqr93tuzlv9cc7g3sdqsvfhkcap3xyhx7un8cqzpgxqzjcsp5f8c52y2stc300gl6s4xswtjpc37hrnnr3c9wvtgjfuvqmpm35evq9qyyssqy4lgd8tj637qcjp05rdpxxykjenthxftej7a2zzmwrmrl70fyj9hvj0rewhzj7jfyuwkwcg9g2jpwtk3wkjtwnkdks84hsnu8xps5vsq4gj5hs - lightningAddress: + description: The nationality of the beneficiary + email: type: string - description: A lightning address which can be used as a payment destination. Note that for UMA addresses, no external account is needed. You can use the UMA address directly as a destination. - example: john.doe@lightningwallet.com - LightningExternalAccountInfo: + 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: object + required: + - country + - line1 + - postalCode + properties: + line1: + type: string + description: Address line 1 + postalCode: + type: string + description: Postal code + country: + type: string + description: Country code + line2: + type: string + description: Address line 2 + city: + type: string + description: City + state: + type: string + description: State or province + GbpExternalAccountInfo: allOf: - $ref: '#/components/schemas/BaseExternalAccountInfo' - - $ref: '#/components/schemas/LightningInfo' - SolanaWalletExternalAccountInfo: + - $ref: '#/components/schemas/GbpAccountInfo' + - type: object + required: + - beneficiary + properties: + beneficiary: + $ref: '#/components/schemas/GbpBeneficiary' + NgnExternalAccountInfo: allOf: - $ref: '#/components/schemas/BaseExternalAccountInfo' - - $ref: '#/components/schemas/SolanaWalletInfo' - TronWalletExternalAccountInfo: + - $ref: '#/components/schemas/NgnAccountInfo' + PhpBeneficiary: + 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: object + required: + - country + - line1 + - postalCode + properties: + line1: + type: string + description: Address line 1 + postalCode: + type: string + description: Postal code + country: + type: string + description: Country code + line2: + type: string + description: Address line 2 + city: + type: string + description: City + state: + type: string + description: State or province + PhpExternalAccountInfo: allOf: - $ref: '#/components/schemas/BaseExternalAccountInfo' - - $ref: '#/components/schemas/TronWalletInfo' - PolygonWalletExternalAccountInfo: + - $ref: '#/components/schemas/PhpAccountInfo' + - type: object + required: + - beneficiary + properties: + beneficiary: + $ref: '#/components/schemas/PhpBeneficiary' + SgdBeneficiary: + 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: object + required: + - country + - line1 + - postalCode + properties: + line1: + type: string + description: Address line 1 + postalCode: + type: string + description: Postal code + country: + type: string + description: Country code + line2: + type: string + description: Address line 2 + city: + type: string + description: City + state: + type: string + description: State or province + SgdExternalAccountInfo: allOf: - $ref: '#/components/schemas/BaseExternalAccountInfo' - - $ref: '#/components/schemas/PolygonWalletInfo' - BaseWalletExternalAccountInfo: + - $ref: '#/components/schemas/SgdAccountInfo' + - type: object + required: + - beneficiary + properties: + beneficiary: + $ref: '#/components/schemas/SgdBeneficiary' + UsExternalAccountInfo: allOf: - $ref: '#/components/schemas/BaseExternalAccountInfo' - - $ref: '#/components/schemas/BaseWalletInfo' - ExternalAccountType: - type: string - enum: - - US_ACCOUNT - - CLABE - - PIX - - IBAN - - UPI - - NGN_ACCOUNT - - CAD_ACCOUNT - - GBP_ACCOUNT - - PHP_ACCOUNT - - SGD_ACCOUNT - - SPARK_WALLET - - LIGHTNING - - SOLANA_WALLET - - TRON_WALLET - - POLYGON_WALLET - - BASE_WALLET - description: Type of external account or wallet - example: US_ACCOUNT + - $ref: '#/components/schemas/UsAccountInfo' ExternalAccountInfoOneOf: oneOf: - title: US Account @@ -5668,6 +6587,46 @@ components: $ref: '#/components/schemas/PolygonWalletExternalAccountInfo' - title: Base Wallet $ref: '#/components/schemas/BaseWalletExternalAccountInfo' + - title: Brl Account + $ref: '#/components/schemas/BrlExternalAccountInfo' + - title: Cad Account + $ref: '#/components/schemas/CadExternalAccountInfo' + - title: Clabe Account + $ref: '#/components/schemas/ClabeExternalAccountInfo' + - title: Dkk Account + $ref: '#/components/schemas/DkkExternalAccountInfo' + - title: Gbp Account + $ref: '#/components/schemas/GbpExternalAccountInfo' + - title: Hkd Account + $ref: '#/components/schemas/HkdExternalAccountInfo' + - title: Iban Account + $ref: '#/components/schemas/IbanExternalAccountInfo' + - title: Idr Account + $ref: '#/components/schemas/IdrExternalAccountInfo' + - title: Inr Account + $ref: '#/components/schemas/InrExternalAccountInfo' + - title: Mxn Account + $ref: '#/components/schemas/MxnExternalAccountInfo' + - title: Myr Account + $ref: '#/components/schemas/MyrExternalAccountInfo' + - title: Ngn Account + $ref: '#/components/schemas/NgnExternalAccountInfo' + - title: Php Account + $ref: '#/components/schemas/PhpExternalAccountInfo' + - title: Pix Account + $ref: '#/components/schemas/PixExternalAccountInfo' + - title: Sgd Account + $ref: '#/components/schemas/SgdExternalAccountInfo' + - title: Thb Account + $ref: '#/components/schemas/ThbExternalAccountInfo' + - title: Upi Account + $ref: '#/components/schemas/UpiExternalAccountInfo' + - title: Us Account + $ref: '#/components/schemas/UsExternalAccountInfo' + - title: Usd Account + $ref: '#/components/schemas/UsdExternalAccountInfo' + - title: Vnd Account + $ref: '#/components/schemas/VndExternalAccountInfo' discriminator: propertyName: accountType mapping: @@ -5687,6 +6646,21 @@ components: TRON_WALLET: '#/components/schemas/TronWalletExternalAccountInfo' POLYGON_WALLET: '#/components/schemas/PolygonWalletExternalAccountInfo' BASE_WALLET: '#/components/schemas/BaseWalletExternalAccountInfo' + BRL_ACCOUNT: '#/components/schemas/BrlExternalAccountInfo' + CLABE_ACCOUNT: '#/components/schemas/ClabeExternalAccountInfo' + DKK_ACCOUNT: '#/components/schemas/DkkExternalAccountInfo' + HKD_ACCOUNT: '#/components/schemas/HkdExternalAccountInfo' + IBAN_ACCOUNT: '#/components/schemas/IbanExternalAccountInfo' + IDR_ACCOUNT: '#/components/schemas/IdrExternalAccountInfo' + INR_ACCOUNT: '#/components/schemas/InrExternalAccountInfo' + LIGHTNING_ACCOUNT: '#/components/schemas/LightningExternalAccountInfo' + MXN_ACCOUNT: '#/components/schemas/MxnExternalAccountInfo' + MYR_ACCOUNT: '#/components/schemas/MyrExternalAccountInfo' + PIX_ACCOUNT: '#/components/schemas/PixExternalAccountInfo' + THB_ACCOUNT: '#/components/schemas/ThbExternalAccountInfo' + UPI_ACCOUNT: '#/components/schemas/UpiExternalAccountInfo' + USD_ACCOUNT: '#/components/schemas/UsdExternalAccountInfo' + VND_ACCOUNT: '#/components/schemas/VndExternalAccountInfo' ExternalAccount: allOf: - type: object diff --git a/openapi.yaml b/openapi.yaml index 9540ce96..a19d4968 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -5237,42 +5237,857 @@ components: - UNDER_REVIEW - INACTIVE description: Status of an external account - UsAccountExternalAccountInfo: + BaseExternalAccountInfo: + type: object + required: + - accountType + properties: + accountType: + $ref: '#/components/schemas/ExternalAccountType' + discriminator: + propertyName: accountType + mapping: + BRL_ACCOUNT: '#/components/schemas/BrlExternalAccountInfo' + CLABE_ACCOUNT: '#/components/schemas/ClabeExternalAccountInfo' + DKK_ACCOUNT: '#/components/schemas/DkkExternalAccountInfo' + HKD_ACCOUNT: '#/components/schemas/HkdExternalAccountInfo' + IBAN_ACCOUNT: '#/components/schemas/IbanExternalAccountInfo' + IDR_ACCOUNT: '#/components/schemas/IdrExternalAccountInfo' + INR_ACCOUNT: '#/components/schemas/InrExternalAccountInfo' + MXN_ACCOUNT: '#/components/schemas/MxnExternalAccountInfo' + MYR_ACCOUNT: '#/components/schemas/MyrExternalAccountInfo' + PIX_ACCOUNT: '#/components/schemas/PixExternalAccountInfo' + THB_ACCOUNT: '#/components/schemas/ThbExternalAccountInfo' + UPI_ACCOUNT: '#/components/schemas/UpiExternalAccountInfo' + USD_ACCOUNT: '#/components/schemas/UsdExternalAccountInfo' + VND_ACCOUNT: '#/components/schemas/VndExternalAccountInfo' + SPARK_WALLET: '#/components/schemas/SparkWalletExternalAccountInfo' + LIGHTNING: '#/components/schemas/LightningExternalAccountInfo' + LIGHTNING_ACCOUNT: '#/components/schemas/LightningExternalAccountInfo' + SOLANA_WALLET: '#/components/schemas/SolanaWalletExternalAccountInfo' + TRON_WALLET: '#/components/schemas/TronWalletExternalAccountInfo' + POLYGON_WALLET: '#/components/schemas/PolygonWalletExternalAccountInfo' + BASE_WALLET: '#/components/schemas/BaseWalletExternalAccountInfo' + BrlAccountInfo: + type: object + required: + - pixKey + - pixKeyType + - taxId + properties: + pixKey: + type: string + description: The PIX key of the bank + pixKeyType: + type: string + description: The type of PIX key of the bank + taxId: + type: string + description: The tax ID of the bank account + BrlBeneficiary: + 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: object + required: + - country + - line1 + - postalCode + properties: + line1: + type: string + description: Address line 1 + postalCode: + type: string + description: Postal code + country: + type: string + description: Country code + line2: + type: string + description: Address line 2 + city: + type: string + description: City + state: + type: string + description: State or province + BrlExternalAccountInfo: + allOf: + - $ref: '#/components/schemas/BaseExternalAccountInfo' + - $ref: '#/components/schemas/BrlAccountInfo' + - type: object + required: + - beneficiary + properties: + beneficiary: + $ref: '#/components/schemas/BrlBeneficiary' + ClabeExternalAccountInfo: + allOf: + - $ref: '#/components/schemas/BaseExternalAccountInfo' + - $ref: '#/components/schemas/ClabeAccountInfo' + DkkAccountInfo: + type: object + required: + - iban + properties: + iban: + type: string + description: The IBAN of the bank + swiftBic: + type: string + description: The SWIFT BIC of the bank + DkkBeneficiary: + 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: object + required: + - country + - line1 + - postalCode + properties: + line1: + type: string + description: Address line 1 + postalCode: + type: string + description: Postal code + country: + type: string + description: Country code + line2: + type: string + description: Address line 2 + city: + type: string + description: City + state: + type: string + description: State or province + DkkExternalAccountInfo: + allOf: + - $ref: '#/components/schemas/BaseExternalAccountInfo' + - $ref: '#/components/schemas/DkkAccountInfo' + - type: object + required: + - beneficiary + properties: + beneficiary: + $ref: '#/components/schemas/DkkBeneficiary' + HkdAccountInfo: + type: object + required: + - bankName + - accountNumber + properties: + bankName: + type: string + description: The bank name of the bank + accountNumber: + type: string + description: The account number of the bank + HkdBeneficiary: + 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: object + required: + - country + - line1 + - postalCode + properties: + line1: + type: string + description: Address line 1 + postalCode: + type: string + description: Postal code + country: + type: string + description: Country code + line2: + type: string + description: Address line 2 + city: + type: string + description: City + state: + type: string + description: State or province + HkdExternalAccountInfo: + allOf: + - $ref: '#/components/schemas/BaseExternalAccountInfo' + - $ref: '#/components/schemas/HkdAccountInfo' + - type: object + required: + - beneficiary + properties: + beneficiary: + $ref: '#/components/schemas/HkdBeneficiary' + IbanExternalAccountInfo: + allOf: + - $ref: '#/components/schemas/BaseExternalAccountInfo' + - $ref: '#/components/schemas/IbanAccountInfo' + IdrAccountInfo: + type: object + required: + - sortCode + - accountNumber + properties: + sortCode: + type: string + description: The sort code of the bank + accountNumber: + type: string + description: The account number of the bank + IdrBeneficiary: + 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: object + required: + - country + - line1 + - postalCode + properties: + line1: + type: string + description: Address line 1 + postalCode: + type: string + description: Postal code + country: + type: string + description: Country code + line2: + type: string + description: Address line 2 + city: + type: string + description: City + state: + type: string + description: State or province + IdrExternalAccountInfo: + allOf: + - $ref: '#/components/schemas/BaseExternalAccountInfo' + - $ref: '#/components/schemas/IdrAccountInfo' + - type: object + required: + - beneficiary + properties: + beneficiary: + $ref: '#/components/schemas/IdrBeneficiary' + InrAccountInfo: + type: object + required: + - vpa + properties: + vpa: + type: string + description: The VPA of the bank + InrBeneficiary: + 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: object + required: + - country + - line1 + - postalCode + properties: + line1: + type: string + description: Address line 1 + postalCode: + type: string + description: Postal code + country: + type: string + description: Country code + line2: + type: string + description: Address line 2 + city: + type: string + description: City + state: + type: string + description: State or province + InrExternalAccountInfo: + allOf: + - $ref: '#/components/schemas/BaseExternalAccountInfo' + - $ref: '#/components/schemas/InrAccountInfo' + - type: object + required: + - beneficiary + properties: + beneficiary: + $ref: '#/components/schemas/InrBeneficiary' + MxnAccountInfo: + type: object + required: + - clabeNumber + properties: + clabeNumber: + type: string + description: The CLABE number of the bank + example: '123456789012345678' + minLength: 18 + maxLength: 18 + pattern: ^[0-9]{18}$ + MxnBeneficiary: + 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: object + required: + - country + - line1 + - postalCode + properties: + line1: + type: string + description: Address line 1 + postalCode: + type: string + description: Postal code + country: + type: string + description: Country code + line2: + type: string + description: Address line 2 + city: + type: string + description: City + state: + type: string + description: State or province + MxnExternalAccountInfo: + allOf: + - $ref: '#/components/schemas/BaseExternalAccountInfo' + - $ref: '#/components/schemas/MxnAccountInfo' + - type: object + required: + - beneficiary + properties: + beneficiary: + $ref: '#/components/schemas/MxnBeneficiary' + MyrAccountInfo: + type: object + required: + - bankName + - accountNumber + properties: + bankName: + type: string + description: The bank name of the bank + accountNumber: + type: string + description: The account number of the bank + MyrBeneficiary: + 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: object + required: + - country + - line1 + - postalCode + properties: + line1: + type: string + description: Address line 1 + postalCode: + type: string + description: Postal code + country: + type: string + description: Country code + line2: + type: string + description: Address line 2 + city: + type: string + description: City + state: + type: string + description: State or province + MyrExternalAccountInfo: + allOf: + - $ref: '#/components/schemas/BaseExternalAccountInfo' + - $ref: '#/components/schemas/MyrAccountInfo' + - type: object + required: + - beneficiary + properties: + beneficiary: + $ref: '#/components/schemas/MyrBeneficiary' + PixExternalAccountInfo: + allOf: + - $ref: '#/components/schemas/BaseExternalAccountInfo' + - $ref: '#/components/schemas/PixAccountInfo' + ThbAccountInfo: + type: object + required: + - bankName + - accountNumber + properties: + bankName: + type: string + description: The bank name of the bank + accountNumber: + type: string + description: The account number of the bank + ThbBeneficiary: + 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: object + required: + - country + - line1 + - postalCode + properties: + line1: + type: string + description: Address line 1 + postalCode: + type: string + description: Postal code + country: + type: string + description: Country code + line2: + type: string + description: Address line 2 + city: + type: string + description: City + state: + type: string + description: State or province + ThbExternalAccountInfo: + allOf: + - $ref: '#/components/schemas/BaseExternalAccountInfo' + - $ref: '#/components/schemas/ThbAccountInfo' + - type: object + required: + - beneficiary + properties: + beneficiary: + $ref: '#/components/schemas/ThbBeneficiary' + UpiExternalAccountInfo: + allOf: + - $ref: '#/components/schemas/BaseExternalAccountInfo' + - $ref: '#/components/schemas/UpiAccountInfo' + UsdAccountInfo: + type: object + required: + - accountNumber + - routingNumber + properties: + accountNumber: + type: string + description: The account number of the bank + routingNumber: + type: string + description: The routing number of the bank + UsdBeneficiary: + 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: object + required: + - country + - line1 + - postalCode + properties: + line1: + type: string + description: Address line 1 + postalCode: + type: string + description: Postal code + country: + type: string + description: Country code + line2: + type: string + description: Address line 2 + city: + type: string + description: City + state: + type: string + description: State or province + UsdExternalAccountInfo: + allOf: + - $ref: '#/components/schemas/BaseExternalAccountInfo' + - $ref: '#/components/schemas/UsdAccountInfo' + - type: object + required: + - beneficiary + properties: + beneficiary: + $ref: '#/components/schemas/UsdBeneficiary' + VndAccountInfo: + type: object + required: + - bankName + - accountNumber + properties: + bankName: + type: string + description: The bank name of the bank + accountNumber: + type: string + description: The account number of the bank + VndBeneficiary: + 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: object + required: + - country + - line1 + - postalCode + properties: + line1: + type: string + description: Address line 1 + postalCode: + type: string + description: Postal code + country: + type: string + description: Country code + line2: + type: string + description: Address line 2 + city: + type: string + description: City + state: + type: string + description: State or province + VndExternalAccountInfo: allOf: - $ref: '#/components/schemas/BaseExternalAccountInfo' - - $ref: '#/components/schemas/UsAccountInfo' + - $ref: '#/components/schemas/VndAccountInfo' - type: object required: - beneficiary properties: beneficiary: - $ref: '#/components/schemas/BeneficiaryOneOf' - BaseExternalAccountInfo: + $ref: '#/components/schemas/VndBeneficiary' + SparkWalletExternalAccountInfo: + allOf: + - $ref: '#/components/schemas/BaseExternalAccountInfo' + - $ref: '#/components/schemas/SparkWalletInfo' + LightningInfo: type: object + description: | + Lightning payment destination. Exactly one of `invoice`, `bolt12`, or `lightningAddress` must be provided. required: - accountType properties: accountType: - $ref: '#/components/schemas/ExternalAccountType' - discriminator: - propertyName: accountType - mapping: - US_ACCOUNT: '#/components/schemas/UsAccountExternalAccountInfo' - CLABE: '#/components/schemas/ClabeAccountExternalAccountInfo' - PIX: '#/components/schemas/PixAccountExternalAccountInfo' - IBAN: '#/components/schemas/IbanAccountExternalAccountInfo' - UPI: '#/components/schemas/UpiAccountExternalAccountInfo' - NGN_ACCOUNT: '#/components/schemas/NgnAccountExternalAccountInfo' - CAD_ACCOUNT: '#/components/schemas/CadAccountExternalAccountInfo' - GBP_ACCOUNT: '#/components/schemas/GbpAccountExternalAccountInfo' - PHP_ACCOUNT: '#/components/schemas/PhpAccountExternalAccountInfo' - SGD_ACCOUNT: '#/components/schemas/SgdAccountExternalAccountInfo' - SPARK_WALLET: '#/components/schemas/SparkWalletExternalAccountInfo' - LIGHTNING: '#/components/schemas/LightningExternalAccountInfo' - SOLANA_WALLET: '#/components/schemas/SolanaWalletExternalAccountInfo' - TRON_WALLET: '#/components/schemas/TronWalletExternalAccountInfo' - POLYGON_WALLET: '#/components/schemas/PolygonWalletExternalAccountInfo' - BASE_WALLET: '#/components/schemas/BaseWalletExternalAccountInfo' + type: string + enum: + - LIGHTNING + invoice: + type: string + description: 1-time use lightning bolt11 invoice payout destination + example: lnbc15u1p3xnhl2pp5jptserfk3zk4qy42tlucycrfwxhydvlemu9pqr93tuzlv9cc7g3sdqsvfhkcap3xyhx7un8cqzpgxqzjcsp5f8c52y2stc300gl6s4xswtjpc37hrnnr3c9wvtgjfuvqmpm35evq9qyyssqy4lgd8tj637qcjp05rdpxxykjenthxftej7a2zzmwrmrl70fyj9hvj0rewhzj7jfyuwkwcg9g2jpwtk3wkjtwnkdks84hsnu8xps5vsq4gj5hs + bolt12: + type: string + description: A bolt12 offer which can be reused as a payment destination + example: lnbc15u1p3xnhl2pp5jptserfk3zk4qy42tlucycrfwxhydvlemu9pqr93tuzlv9cc7g3sdqsvfhkcap3xyhx7un8cqzpgxqzjcsp5f8c52y2stc300gl6s4xswtjpc37hrnnr3c9wvtgjfuvqmpm35evq9qyyssqy4lgd8tj637qcjp05rdpxxykjenthxftej7a2zzmwrmrl70fyj9hvj0rewhzj7jfyuwkwcg9g2jpwtk3wkjtwnkdks84hsnu8xps5vsq4gj5hs + lightningAddress: + type: string + description: A lightning address which can be used as a payment destination. Note that for UMA addresses, no external account is needed. You can use the UMA address directly as a destination. + example: john.doe@lightningwallet.com + LightningExternalAccountInfo: + allOf: + - $ref: '#/components/schemas/BaseExternalAccountInfo' + - $ref: '#/components/schemas/LightningInfo' + SolanaWalletExternalAccountInfo: + allOf: + - $ref: '#/components/schemas/BaseExternalAccountInfo' + - $ref: '#/components/schemas/SolanaWalletInfo' + TronWalletExternalAccountInfo: + allOf: + - $ref: '#/components/schemas/BaseExternalAccountInfo' + - $ref: '#/components/schemas/TronWalletInfo' + PolygonWalletExternalAccountInfo: + allOf: + - $ref: '#/components/schemas/BaseExternalAccountInfo' + - $ref: '#/components/schemas/PolygonWalletInfo' + BaseWalletExternalAccountInfo: + allOf: + - $ref: '#/components/schemas/BaseExternalAccountInfo' + - $ref: '#/components/schemas/BaseWalletInfo' + ExternalAccountType: + type: string + enum: + - BRL_ACCOUNT + - CLABE_ACCOUNT + - DKK_ACCOUNT + - HKD_ACCOUNT + - IBAN_ACCOUNT + - IDR_ACCOUNT + - INR_ACCOUNT + - MXN_ACCOUNT + - MYR_ACCOUNT + - PIX_ACCOUNT + - THB_ACCOUNT + - UPI_ACCOUNT + - USD_ACCOUNT + - VND_ACCOUNT + - SPARK_WALLET + - LIGHTNING + - LIGHTNING_ACCOUNT + - SOLANA_WALLET + - TRON_WALLET + - POLYGON_WALLET + - BASE_WALLET + description: Type of external account or wallet + example: BRL_ACCOUNT IndividualBeneficiary: allOf: - $ref: '#/components/schemas/BaseBeneficiary' @@ -5356,6 +6171,16 @@ components: mapping: INDIVIDUAL: '#/components/schemas/IndividualBeneficiary' BUSINESS: '#/components/schemas/BusinessBeneficiary' + UsAccountExternalAccountInfo: + allOf: + - $ref: '#/components/schemas/BaseExternalAccountInfo' + - $ref: '#/components/schemas/UsAccountInfo' + - type: object + required: + - beneficiary + properties: + beneficiary: + $ref: '#/components/schemas/BeneficiaryOneOf' ClabeAccountExternalAccountInfo: allOf: - $ref: '#/components/schemas/BaseExternalAccountInfo' @@ -5472,24 +6297,13 @@ components: required: - sortCode - accountNumber - - accountType properties: - accountType: - type: string - enum: - - GBP_ACCOUNT sortCode: type: string - description: UK bank sort code (6 digits, may include hyphens) - example: 20-00-00 - pattern: ^[0-9]{2}-?[0-9]{2}-?[0-9]{2}$ + description: The sort code of the bank accountNumber: type: string - description: UK bank account number (8 digits) - example: '12345678' - minLength: 8 - maxLength: 8 - pattern: ^[0-9]{8}$ + description: The account number of the bank GbpAccountExternalAccountInfo: allOf: - $ref: '#/components/schemas/BaseExternalAccountInfo' @@ -5505,20 +6319,13 @@ components: required: - bankName - accountNumber - - accountType properties: - accountType: - type: string - enum: - - PHP_ACCOUNT bankName: type: string - description: Name of the beneficiary's bank - example: BDO Unibank + description: The bank name of the bank accountNumber: type: string - description: Bank account number - example: '001234567890' + description: The account number of the bank PhpAccountExternalAccountInfo: allOf: - $ref: '#/components/schemas/BaseExternalAccountInfo' @@ -5533,29 +6340,14 @@ components: type: object required: - bankName - - swiftCode - accountNumber - - accountType properties: - accountType: - type: string - enum: - - SGD_ACCOUNT bankName: type: string - description: Name of the beneficiary's bank - example: DBS Bank Ltd - swiftCode: - type: string - description: SWIFT/BIC code (8 or 11 characters) - example: DBSSSGSG - minLength: 8 - maxLength: 11 - pattern: ^[A-Z]{4}[A-Z]{2}[A-Z0-9]{2}([A-Z0-9]{3})?$ + description: The bank name of the bank accountNumber: type: string - description: Bank account number - example: '0123456789' + description: The account number of the bank SgdAccountExternalAccountInfo: allOf: - $ref: '#/components/schemas/BaseExternalAccountInfo' @@ -5566,74 +6358,201 @@ components: properties: beneficiary: $ref: '#/components/schemas/BeneficiaryOneOf' - SparkWalletExternalAccountInfo: + CadExternalAccountInfo: allOf: - $ref: '#/components/schemas/BaseExternalAccountInfo' - - $ref: '#/components/schemas/SparkWalletInfo' - LightningInfo: + - $ref: '#/components/schemas/CadAccountInfo' + GbpBeneficiary: type: object - description: | - Lightning payment destination. Exactly one of `invoice`, `bolt12`, or `lightningAddress` must be provided. required: - - accountType + - fullName properties: - accountType: + fullName: type: string - enum: - - LIGHTNING - invoice: + description: The full name of the beneficiary + birthDate: type: string - description: 1-time use lightning bolt11 invoice payout destination - example: lnbc15u1p3xnhl2pp5jptserfk3zk4qy42tlucycrfwxhydvlemu9pqr93tuzlv9cc7g3sdqsvfhkcap3xyhx7un8cqzpgxqzjcsp5f8c52y2stc300gl6s4xswtjpc37hrnnr3c9wvtgjfuvqmpm35evq9qyyssqy4lgd8tj637qcjp05rdpxxykjenthxftej7a2zzmwrmrl70fyj9hvj0rewhzj7jfyuwkwcg9g2jpwtk3wkjtwnkdks84hsnu8xps5vsq4gj5hs - bolt12: + description: The birth date of the beneficiary + nationality: type: string - description: A bolt12 offer which can be reused as a payment destination - example: lnbc15u1p3xnhl2pp5jptserfk3zk4qy42tlucycrfwxhydvlemu9pqr93tuzlv9cc7g3sdqsvfhkcap3xyhx7un8cqzpgxqzjcsp5f8c52y2stc300gl6s4xswtjpc37hrnnr3c9wvtgjfuvqmpm35evq9qyyssqy4lgd8tj637qcjp05rdpxxykjenthxftej7a2zzmwrmrl70fyj9hvj0rewhzj7jfyuwkwcg9g2jpwtk3wkjtwnkdks84hsnu8xps5vsq4gj5hs - lightningAddress: + description: The nationality of the beneficiary + email: type: string - description: A lightning address which can be used as a payment destination. Note that for UMA addresses, no external account is needed. You can use the UMA address directly as a destination. - example: john.doe@lightningwallet.com - LightningExternalAccountInfo: + 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: object + required: + - country + - line1 + - postalCode + properties: + line1: + type: string + description: Address line 1 + postalCode: + type: string + description: Postal code + country: + type: string + description: Country code + line2: + type: string + description: Address line 2 + city: + type: string + description: City + state: + type: string + description: State or province + GbpExternalAccountInfo: allOf: - $ref: '#/components/schemas/BaseExternalAccountInfo' - - $ref: '#/components/schemas/LightningInfo' - SolanaWalletExternalAccountInfo: + - $ref: '#/components/schemas/GbpAccountInfo' + - type: object + required: + - beneficiary + properties: + beneficiary: + $ref: '#/components/schemas/GbpBeneficiary' + NgnExternalAccountInfo: allOf: - $ref: '#/components/schemas/BaseExternalAccountInfo' - - $ref: '#/components/schemas/SolanaWalletInfo' - TronWalletExternalAccountInfo: + - $ref: '#/components/schemas/NgnAccountInfo' + PhpBeneficiary: + 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: object + required: + - country + - line1 + - postalCode + properties: + line1: + type: string + description: Address line 1 + postalCode: + type: string + description: Postal code + country: + type: string + description: Country code + line2: + type: string + description: Address line 2 + city: + type: string + description: City + state: + type: string + description: State or province + PhpExternalAccountInfo: allOf: - $ref: '#/components/schemas/BaseExternalAccountInfo' - - $ref: '#/components/schemas/TronWalletInfo' - PolygonWalletExternalAccountInfo: + - $ref: '#/components/schemas/PhpAccountInfo' + - type: object + required: + - beneficiary + properties: + beneficiary: + $ref: '#/components/schemas/PhpBeneficiary' + SgdBeneficiary: + 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: object + required: + - country + - line1 + - postalCode + properties: + line1: + type: string + description: Address line 1 + postalCode: + type: string + description: Postal code + country: + type: string + description: Country code + line2: + type: string + description: Address line 2 + city: + type: string + description: City + state: + type: string + description: State or province + SgdExternalAccountInfo: allOf: - $ref: '#/components/schemas/BaseExternalAccountInfo' - - $ref: '#/components/schemas/PolygonWalletInfo' - BaseWalletExternalAccountInfo: + - $ref: '#/components/schemas/SgdAccountInfo' + - type: object + required: + - beneficiary + properties: + beneficiary: + $ref: '#/components/schemas/SgdBeneficiary' + UsExternalAccountInfo: allOf: - $ref: '#/components/schemas/BaseExternalAccountInfo' - - $ref: '#/components/schemas/BaseWalletInfo' - ExternalAccountType: - type: string - enum: - - US_ACCOUNT - - CLABE - - PIX - - IBAN - - UPI - - NGN_ACCOUNT - - CAD_ACCOUNT - - GBP_ACCOUNT - - PHP_ACCOUNT - - SGD_ACCOUNT - - SPARK_WALLET - - LIGHTNING - - SOLANA_WALLET - - TRON_WALLET - - POLYGON_WALLET - - BASE_WALLET - description: Type of external account or wallet - example: US_ACCOUNT + - $ref: '#/components/schemas/UsAccountInfo' ExternalAccountInfoOneOf: oneOf: - title: US Account @@ -5668,6 +6587,46 @@ components: $ref: '#/components/schemas/PolygonWalletExternalAccountInfo' - title: Base Wallet $ref: '#/components/schemas/BaseWalletExternalAccountInfo' + - title: Brl Account + $ref: '#/components/schemas/BrlExternalAccountInfo' + - title: Cad Account + $ref: '#/components/schemas/CadExternalAccountInfo' + - title: Clabe Account + $ref: '#/components/schemas/ClabeExternalAccountInfo' + - title: Dkk Account + $ref: '#/components/schemas/DkkExternalAccountInfo' + - title: Gbp Account + $ref: '#/components/schemas/GbpExternalAccountInfo' + - title: Hkd Account + $ref: '#/components/schemas/HkdExternalAccountInfo' + - title: Iban Account + $ref: '#/components/schemas/IbanExternalAccountInfo' + - title: Idr Account + $ref: '#/components/schemas/IdrExternalAccountInfo' + - title: Inr Account + $ref: '#/components/schemas/InrExternalAccountInfo' + - title: Mxn Account + $ref: '#/components/schemas/MxnExternalAccountInfo' + - title: Myr Account + $ref: '#/components/schemas/MyrExternalAccountInfo' + - title: Ngn Account + $ref: '#/components/schemas/NgnExternalAccountInfo' + - title: Php Account + $ref: '#/components/schemas/PhpExternalAccountInfo' + - title: Pix Account + $ref: '#/components/schemas/PixExternalAccountInfo' + - title: Sgd Account + $ref: '#/components/schemas/SgdExternalAccountInfo' + - title: Thb Account + $ref: '#/components/schemas/ThbExternalAccountInfo' + - title: Upi Account + $ref: '#/components/schemas/UpiExternalAccountInfo' + - title: Us Account + $ref: '#/components/schemas/UsExternalAccountInfo' + - title: Usd Account + $ref: '#/components/schemas/UsdExternalAccountInfo' + - title: Vnd Account + $ref: '#/components/schemas/VndExternalAccountInfo' discriminator: propertyName: accountType mapping: @@ -5687,6 +6646,21 @@ components: TRON_WALLET: '#/components/schemas/TronWalletExternalAccountInfo' POLYGON_WALLET: '#/components/schemas/PolygonWalletExternalAccountInfo' BASE_WALLET: '#/components/schemas/BaseWalletExternalAccountInfo' + BRL_ACCOUNT: '#/components/schemas/BrlExternalAccountInfo' + CLABE_ACCOUNT: '#/components/schemas/ClabeExternalAccountInfo' + DKK_ACCOUNT: '#/components/schemas/DkkExternalAccountInfo' + HKD_ACCOUNT: '#/components/schemas/HkdExternalAccountInfo' + IBAN_ACCOUNT: '#/components/schemas/IbanExternalAccountInfo' + IDR_ACCOUNT: '#/components/schemas/IdrExternalAccountInfo' + INR_ACCOUNT: '#/components/schemas/InrExternalAccountInfo' + LIGHTNING_ACCOUNT: '#/components/schemas/LightningExternalAccountInfo' + MXN_ACCOUNT: '#/components/schemas/MxnExternalAccountInfo' + MYR_ACCOUNT: '#/components/schemas/MyrExternalAccountInfo' + PIX_ACCOUNT: '#/components/schemas/PixExternalAccountInfo' + THB_ACCOUNT: '#/components/schemas/ThbExternalAccountInfo' + UPI_ACCOUNT: '#/components/schemas/UpiExternalAccountInfo' + USD_ACCOUNT: '#/components/schemas/UsdExternalAccountInfo' + VND_ACCOUNT: '#/components/schemas/VndExternalAccountInfo' ExternalAccount: allOf: - type: object diff --git a/openapi/components/schemas/common/BrlAccountInfo.yaml b/openapi/components/schemas/common/BrlAccountInfo.yaml new file mode 100644 index 00000000..9d779dc1 --- /dev/null +++ b/openapi/components/schemas/common/BrlAccountInfo.yaml @@ -0,0 +1,15 @@ +type: object +required: +- pixKey +- pixKeyType +- taxId +properties: + pixKey: + type: string + description: The PIX key of the bank + pixKeyType: + type: string + description: The type of PIX key of the bank + taxId: + type: string + description: The tax ID of the bank account diff --git a/openapi/components/schemas/common/BrlBeneficiary.yaml b/openapi/components/schemas/common/BrlBeneficiary.yaml new file mode 100644 index 00000000..2f26fe5b --- /dev/null +++ b/openapi/components/schemas/common/BrlBeneficiary.yaml @@ -0,0 +1,50 @@ +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: object + required: + - country + - line1 + - postalCode + properties: + line1: + type: string + description: Address line 1 + postalCode: + type: string + description: Postal code + country: + type: string + description: Country code + line2: + type: string + description: Address line 2 + city: + type: string + description: City + state: + type: string + description: State or province diff --git a/openapi/components/schemas/common/DkkAccountInfo.yaml b/openapi/components/schemas/common/DkkAccountInfo.yaml new file mode 100644 index 00000000..3b9d399b --- /dev/null +++ b/openapi/components/schemas/common/DkkAccountInfo.yaml @@ -0,0 +1,10 @@ +type: object +required: +- iban +properties: + iban: + type: string + description: The IBAN of the bank + swiftBic: + type: string + description: The SWIFT BIC of the bank diff --git a/openapi/components/schemas/common/DkkBeneficiary.yaml b/openapi/components/schemas/common/DkkBeneficiary.yaml new file mode 100644 index 00000000..2f26fe5b --- /dev/null +++ b/openapi/components/schemas/common/DkkBeneficiary.yaml @@ -0,0 +1,50 @@ +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: object + required: + - country + - line1 + - postalCode + properties: + line1: + type: string + description: Address line 1 + postalCode: + type: string + description: Postal code + country: + type: string + description: Country code + line2: + type: string + description: Address line 2 + city: + type: string + description: City + state: + type: string + description: State or province diff --git a/openapi/components/schemas/common/GbpAccountInfo.yaml b/openapi/components/schemas/common/GbpAccountInfo.yaml index 68a9a163..f2ff6c4d 100644 --- a/openapi/components/schemas/common/GbpAccountInfo.yaml +++ b/openapi/components/schemas/common/GbpAccountInfo.yaml @@ -1,22 +1,11 @@ type: object required: - - sortCode - - accountNumber - - accountType +- sortCode +- accountNumber properties: - accountType: - type: string - enum: - - GBP_ACCOUNT sortCode: type: string - description: UK bank sort code (6 digits, may include hyphens) - example: '20-00-00' - pattern: '^[0-9]{2}-?[0-9]{2}-?[0-9]{2}$' + description: The sort code of the bank accountNumber: type: string - description: UK bank account number (8 digits) - example: '12345678' - minLength: 8 - maxLength: 8 - pattern: ^[0-9]{8}$ + description: The account number of the bank diff --git a/openapi/components/schemas/common/GbpBeneficiary.yaml b/openapi/components/schemas/common/GbpBeneficiary.yaml new file mode 100644 index 00000000..2f26fe5b --- /dev/null +++ b/openapi/components/schemas/common/GbpBeneficiary.yaml @@ -0,0 +1,50 @@ +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: object + required: + - country + - line1 + - postalCode + properties: + line1: + type: string + description: Address line 1 + postalCode: + type: string + description: Postal code + country: + type: string + description: Country code + line2: + type: string + description: Address line 2 + city: + type: string + description: City + state: + type: string + description: State or province diff --git a/openapi/components/schemas/common/HkdAccountInfo.yaml b/openapi/components/schemas/common/HkdAccountInfo.yaml new file mode 100644 index 00000000..78d21919 --- /dev/null +++ b/openapi/components/schemas/common/HkdAccountInfo.yaml @@ -0,0 +1,11 @@ +type: object +required: +- bankName +- accountNumber +properties: + bankName: + type: string + description: The bank name of the bank + accountNumber: + type: string + description: The account number of the bank diff --git a/openapi/components/schemas/common/HkdBeneficiary.yaml b/openapi/components/schemas/common/HkdBeneficiary.yaml new file mode 100644 index 00000000..2f26fe5b --- /dev/null +++ b/openapi/components/schemas/common/HkdBeneficiary.yaml @@ -0,0 +1,50 @@ +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: object + required: + - country + - line1 + - postalCode + properties: + line1: + type: string + description: Address line 1 + postalCode: + type: string + description: Postal code + country: + type: string + description: Country code + line2: + type: string + description: Address line 2 + city: + type: string + description: City + state: + type: string + description: State or province diff --git a/openapi/components/schemas/common/IdrAccountInfo.yaml b/openapi/components/schemas/common/IdrAccountInfo.yaml new file mode 100644 index 00000000..f2ff6c4d --- /dev/null +++ b/openapi/components/schemas/common/IdrAccountInfo.yaml @@ -0,0 +1,11 @@ +type: object +required: +- sortCode +- accountNumber +properties: + sortCode: + type: string + description: The sort code of the bank + accountNumber: + type: string + description: The account number of the bank diff --git a/openapi/components/schemas/common/IdrBeneficiary.yaml b/openapi/components/schemas/common/IdrBeneficiary.yaml new file mode 100644 index 00000000..2f26fe5b --- /dev/null +++ b/openapi/components/schemas/common/IdrBeneficiary.yaml @@ -0,0 +1,50 @@ +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: object + required: + - country + - line1 + - postalCode + properties: + line1: + type: string + description: Address line 1 + postalCode: + type: string + description: Postal code + country: + type: string + description: Country code + line2: + type: string + description: Address line 2 + city: + type: string + description: City + state: + type: string + description: State or province diff --git a/openapi/components/schemas/common/InrAccountInfo.yaml b/openapi/components/schemas/common/InrAccountInfo.yaml new file mode 100644 index 00000000..4c122a24 --- /dev/null +++ b/openapi/components/schemas/common/InrAccountInfo.yaml @@ -0,0 +1,7 @@ +type: object +required: +- vpa +properties: + vpa: + type: string + description: The VPA of the bank diff --git a/openapi/components/schemas/common/InrBeneficiary.yaml b/openapi/components/schemas/common/InrBeneficiary.yaml new file mode 100644 index 00000000..2f26fe5b --- /dev/null +++ b/openapi/components/schemas/common/InrBeneficiary.yaml @@ -0,0 +1,50 @@ +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: object + required: + - country + - line1 + - postalCode + properties: + line1: + type: string + description: Address line 1 + postalCode: + type: string + description: Postal code + country: + type: string + description: Country code + line2: + type: string + description: Address line 2 + city: + type: string + description: City + state: + type: string + description: State or province diff --git a/openapi/components/schemas/common/MxnAccountInfo.yaml b/openapi/components/schemas/common/MxnAccountInfo.yaml new file mode 100644 index 00000000..f912ade7 --- /dev/null +++ b/openapi/components/schemas/common/MxnAccountInfo.yaml @@ -0,0 +1,11 @@ +type: object +required: +- clabeNumber +properties: + clabeNumber: + type: string + description: The CLABE number of the bank + example: '123456789012345678' + minLength: 18 + maxLength: 18 + pattern: ^[0-9]{18}$ diff --git a/openapi/components/schemas/common/MxnBeneficiary.yaml b/openapi/components/schemas/common/MxnBeneficiary.yaml new file mode 100644 index 00000000..2f26fe5b --- /dev/null +++ b/openapi/components/schemas/common/MxnBeneficiary.yaml @@ -0,0 +1,50 @@ +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: object + required: + - country + - line1 + - postalCode + properties: + line1: + type: string + description: Address line 1 + postalCode: + type: string + description: Postal code + country: + type: string + description: Country code + line2: + type: string + description: Address line 2 + city: + type: string + description: City + state: + type: string + description: State or province diff --git a/openapi/components/schemas/common/MyrAccountInfo.yaml b/openapi/components/schemas/common/MyrAccountInfo.yaml new file mode 100644 index 00000000..78d21919 --- /dev/null +++ b/openapi/components/schemas/common/MyrAccountInfo.yaml @@ -0,0 +1,11 @@ +type: object +required: +- bankName +- accountNumber +properties: + bankName: + type: string + description: The bank name of the bank + accountNumber: + type: string + description: The account number of the bank diff --git a/openapi/components/schemas/common/MyrBeneficiary.yaml b/openapi/components/schemas/common/MyrBeneficiary.yaml new file mode 100644 index 00000000..2f26fe5b --- /dev/null +++ b/openapi/components/schemas/common/MyrBeneficiary.yaml @@ -0,0 +1,50 @@ +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: object + required: + - country + - line1 + - postalCode + properties: + line1: + type: string + description: Address line 1 + postalCode: + type: string + description: Postal code + country: + type: string + description: Country code + line2: + type: string + description: Address line 2 + city: + type: string + description: City + state: + type: string + description: State or province diff --git a/openapi/components/schemas/common/PhpAccountInfo.yaml b/openapi/components/schemas/common/PhpAccountInfo.yaml index 9b01eda6..78d21919 100644 --- a/openapi/components/schemas/common/PhpAccountInfo.yaml +++ b/openapi/components/schemas/common/PhpAccountInfo.yaml @@ -1,18 +1,11 @@ type: object required: - - bankName - - accountNumber - - accountType +- bankName +- accountNumber properties: - accountType: - type: string - enum: - - PHP_ACCOUNT bankName: type: string - description: Name of the beneficiary's bank - example: BDO Unibank + description: The bank name of the bank accountNumber: type: string - description: Bank account number - example: '001234567890' + description: The account number of the bank diff --git a/openapi/components/schemas/common/PhpBeneficiary.yaml b/openapi/components/schemas/common/PhpBeneficiary.yaml new file mode 100644 index 00000000..2f26fe5b --- /dev/null +++ b/openapi/components/schemas/common/PhpBeneficiary.yaml @@ -0,0 +1,50 @@ +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: object + required: + - country + - line1 + - postalCode + properties: + line1: + type: string + description: Address line 1 + postalCode: + type: string + description: Postal code + country: + type: string + description: Country code + line2: + type: string + description: Address line 2 + city: + type: string + description: City + state: + type: string + description: State or province diff --git a/openapi/components/schemas/common/SgdAccountInfo.yaml b/openapi/components/schemas/common/SgdAccountInfo.yaml index 1821b632..78d21919 100644 --- a/openapi/components/schemas/common/SgdAccountInfo.yaml +++ b/openapi/components/schemas/common/SgdAccountInfo.yaml @@ -1,26 +1,11 @@ type: object required: - - bankName - - swiftCode - - accountNumber - - accountType +- bankName +- accountNumber properties: - accountType: - type: string - enum: - - SGD_ACCOUNT bankName: type: string - description: Name of the beneficiary's bank - example: DBS Bank Ltd - swiftCode: - type: string - description: SWIFT/BIC code (8 or 11 characters) - example: DBSSSGSG - minLength: 8 - maxLength: 11 - pattern: ^[A-Z]{4}[A-Z]{2}[A-Z0-9]{2}([A-Z0-9]{3})?$ + description: The bank name of the bank accountNumber: type: string - description: Bank account number - example: '0123456789' + description: The account number of the bank diff --git a/openapi/components/schemas/common/SgdBeneficiary.yaml b/openapi/components/schemas/common/SgdBeneficiary.yaml new file mode 100644 index 00000000..2f26fe5b --- /dev/null +++ b/openapi/components/schemas/common/SgdBeneficiary.yaml @@ -0,0 +1,50 @@ +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: object + required: + - country + - line1 + - postalCode + properties: + line1: + type: string + description: Address line 1 + postalCode: + type: string + description: Postal code + country: + type: string + description: Country code + line2: + type: string + description: Address line 2 + city: + type: string + description: City + state: + type: string + description: State or province diff --git a/openapi/components/schemas/common/ThbAccountInfo.yaml b/openapi/components/schemas/common/ThbAccountInfo.yaml new file mode 100644 index 00000000..78d21919 --- /dev/null +++ b/openapi/components/schemas/common/ThbAccountInfo.yaml @@ -0,0 +1,11 @@ +type: object +required: +- bankName +- accountNumber +properties: + bankName: + type: string + description: The bank name of the bank + accountNumber: + type: string + description: The account number of the bank diff --git a/openapi/components/schemas/common/ThbBeneficiary.yaml b/openapi/components/schemas/common/ThbBeneficiary.yaml new file mode 100644 index 00000000..2f26fe5b --- /dev/null +++ b/openapi/components/schemas/common/ThbBeneficiary.yaml @@ -0,0 +1,50 @@ +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: object + required: + - country + - line1 + - postalCode + properties: + line1: + type: string + description: Address line 1 + postalCode: + type: string + description: Postal code + country: + type: string + description: Country code + line2: + type: string + description: Address line 2 + city: + type: string + description: City + state: + type: string + description: State or province diff --git a/openapi/components/schemas/common/UsdAccountInfo.yaml b/openapi/components/schemas/common/UsdAccountInfo.yaml new file mode 100644 index 00000000..440ff233 --- /dev/null +++ b/openapi/components/schemas/common/UsdAccountInfo.yaml @@ -0,0 +1,11 @@ +type: object +required: +- accountNumber +- routingNumber +properties: + accountNumber: + type: string + description: The account number of the bank + routingNumber: + type: string + description: The routing number of the bank diff --git a/openapi/components/schemas/common/UsdBeneficiary.yaml b/openapi/components/schemas/common/UsdBeneficiary.yaml new file mode 100644 index 00000000..c3c7657c --- /dev/null +++ b/openapi/components/schemas/common/UsdBeneficiary.yaml @@ -0,0 +1,52 @@ +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: object + required: + - country + - line1 + - postalCode + properties: + line1: + type: string + description: Address line 1 + postalCode: + type: string + description: Postal code + country: + type: string + description: Country code + line2: + type: string + description: Address line 2 + city: + type: string + description: City + state: + type: string + description: State or province diff --git a/openapi/components/schemas/common/VndAccountInfo.yaml b/openapi/components/schemas/common/VndAccountInfo.yaml new file mode 100644 index 00000000..78d21919 --- /dev/null +++ b/openapi/components/schemas/common/VndAccountInfo.yaml @@ -0,0 +1,11 @@ +type: object +required: +- bankName +- accountNumber +properties: + bankName: + type: string + description: The bank name of the bank + accountNumber: + type: string + description: The account number of the bank diff --git a/openapi/components/schemas/common/VndBeneficiary.yaml b/openapi/components/schemas/common/VndBeneficiary.yaml new file mode 100644 index 00000000..2f26fe5b --- /dev/null +++ b/openapi/components/schemas/common/VndBeneficiary.yaml @@ -0,0 +1,50 @@ +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: object + required: + - country + - line1 + - postalCode + properties: + line1: + type: string + description: Address line 1 + postalCode: + type: string + description: Postal code + country: + type: string + description: Country code + line2: + type: string + description: Address line 2 + city: + type: string + description: City + state: + type: string + description: State or province diff --git a/openapi/components/schemas/external_accounts/BaseExternalAccountInfo.yaml b/openapi/components/schemas/external_accounts/BaseExternalAccountInfo.yaml index ea40286e..a4fba45c 100644 --- a/openapi/components/schemas/external_accounts/BaseExternalAccountInfo.yaml +++ b/openapi/components/schemas/external_accounts/BaseExternalAccountInfo.yaml @@ -7,18 +7,23 @@ properties: discriminator: propertyName: accountType mapping: - US_ACCOUNT: ./UsAccountExternalAccountInfo.yaml - CLABE: ./ClabeAccountExternalAccountInfo.yaml - PIX: ./PixAccountExternalAccountInfo.yaml - IBAN: ./IbanAccountExternalAccountInfo.yaml - UPI: ./UpiAccountExternalAccountInfo.yaml - NGN_ACCOUNT: ./NgnAccountExternalAccountInfo.yaml - CAD_ACCOUNT: ./CadAccountExternalAccountInfo.yaml - GBP_ACCOUNT: ./GbpAccountExternalAccountInfo.yaml - PHP_ACCOUNT: ./PhpAccountExternalAccountInfo.yaml - SGD_ACCOUNT: ./SgdAccountExternalAccountInfo.yaml + BRL_ACCOUNT: ./BrlExternalAccountInfo.yaml + CLABE_ACCOUNT: ./ClabeExternalAccountInfo.yaml + DKK_ACCOUNT: ./DkkExternalAccountInfo.yaml + HKD_ACCOUNT: ./HkdExternalAccountInfo.yaml + IBAN_ACCOUNT: ./IbanExternalAccountInfo.yaml + IDR_ACCOUNT: ./IdrExternalAccountInfo.yaml + INR_ACCOUNT: ./InrExternalAccountInfo.yaml + MXN_ACCOUNT: ./MxnExternalAccountInfo.yaml + MYR_ACCOUNT: ./MyrExternalAccountInfo.yaml + PIX_ACCOUNT: ./PixExternalAccountInfo.yaml + THB_ACCOUNT: ./ThbExternalAccountInfo.yaml + UPI_ACCOUNT: ./UpiExternalAccountInfo.yaml + USD_ACCOUNT: ./UsdExternalAccountInfo.yaml + VND_ACCOUNT: ./VndExternalAccountInfo.yaml SPARK_WALLET: ./SparkWalletExternalAccountInfo.yaml LIGHTNING: ./LightningExternalAccountInfo.yaml + LIGHTNING_ACCOUNT: ./LightningExternalAccountInfo.yaml SOLANA_WALLET: ./SolanaWalletExternalAccountInfo.yaml TRON_WALLET: ./TronWalletExternalAccountInfo.yaml POLYGON_WALLET: ./PolygonWalletExternalAccountInfo.yaml diff --git a/openapi/components/schemas/external_accounts/BrlExternalAccountInfo.yaml b/openapi/components/schemas/external_accounts/BrlExternalAccountInfo.yaml new file mode 100644 index 00000000..03a8b049 --- /dev/null +++ b/openapi/components/schemas/external_accounts/BrlExternalAccountInfo.yaml @@ -0,0 +1,9 @@ +allOf: +- $ref: ./BaseExternalAccountInfo.yaml +- $ref: ../common/BrlAccountInfo.yaml +- type: object + required: + - beneficiary + properties: + beneficiary: + $ref: ../common/BrlBeneficiary.yaml diff --git a/openapi/components/schemas/external_accounts/CadExternalAccountInfo.yaml b/openapi/components/schemas/external_accounts/CadExternalAccountInfo.yaml new file mode 100644 index 00000000..c16a47c9 --- /dev/null +++ b/openapi/components/schemas/external_accounts/CadExternalAccountInfo.yaml @@ -0,0 +1,3 @@ +allOf: +- $ref: ./BaseExternalAccountInfo.yaml +- $ref: ../common/CadAccountInfo.yaml diff --git a/openapi/components/schemas/external_accounts/ClabeExternalAccountInfo.yaml b/openapi/components/schemas/external_accounts/ClabeExternalAccountInfo.yaml new file mode 100644 index 00000000..4970e8cc --- /dev/null +++ b/openapi/components/schemas/external_accounts/ClabeExternalAccountInfo.yaml @@ -0,0 +1,3 @@ +allOf: +- $ref: ./BaseExternalAccountInfo.yaml +- $ref: ../common/ClabeAccountInfo.yaml diff --git a/openapi/components/schemas/external_accounts/DkkExternalAccountInfo.yaml b/openapi/components/schemas/external_accounts/DkkExternalAccountInfo.yaml new file mode 100644 index 00000000..d72016c7 --- /dev/null +++ b/openapi/components/schemas/external_accounts/DkkExternalAccountInfo.yaml @@ -0,0 +1,9 @@ +allOf: +- $ref: ./BaseExternalAccountInfo.yaml +- $ref: ../common/DkkAccountInfo.yaml +- type: object + required: + - beneficiary + properties: + beneficiary: + $ref: ../common/DkkBeneficiary.yaml diff --git a/openapi/components/schemas/external_accounts/ExternalAccountInfoOneOf.yaml b/openapi/components/schemas/external_accounts/ExternalAccountInfoOneOf.yaml index 3833c6b3..ecf520cb 100644 --- a/openapi/components/schemas/external_accounts/ExternalAccountInfoOneOf.yaml +++ b/openapi/components/schemas/external_accounts/ExternalAccountInfoOneOf.yaml @@ -1,36 +1,76 @@ 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: Brl Account + $ref: ./BrlExternalAccountInfo.yaml +- title: Cad Account + $ref: ./CadExternalAccountInfo.yaml +- title: Clabe Account + $ref: ./ClabeExternalAccountInfo.yaml +- title: Dkk Account + $ref: ./DkkExternalAccountInfo.yaml +- title: Gbp Account + $ref: ./GbpExternalAccountInfo.yaml +- title: Hkd Account + $ref: ./HkdExternalAccountInfo.yaml +- title: Iban Account + $ref: ./IbanExternalAccountInfo.yaml +- title: Idr Account + $ref: ./IdrExternalAccountInfo.yaml +- title: Inr Account + $ref: ./InrExternalAccountInfo.yaml +- title: Mxn Account + $ref: ./MxnExternalAccountInfo.yaml +- title: Myr Account + $ref: ./MyrExternalAccountInfo.yaml +- title: Ngn Account + $ref: ./NgnExternalAccountInfo.yaml +- title: Php Account + $ref: ./PhpExternalAccountInfo.yaml +- title: Pix Account + $ref: ./PixExternalAccountInfo.yaml +- title: Sgd Account + $ref: ./SgdExternalAccountInfo.yaml +- title: Thb Account + $ref: ./ThbExternalAccountInfo.yaml +- title: Upi Account + $ref: ./UpiExternalAccountInfo.yaml +- title: Us Account + $ref: ./UsExternalAccountInfo.yaml +- title: Usd Account + $ref: ./UsdExternalAccountInfo.yaml +- title: Vnd Account + $ref: ./VndExternalAccountInfo.yaml discriminator: propertyName: accountType mapping: @@ -50,3 +90,18 @@ discriminator: TRON_WALLET: ./TronWalletExternalAccountInfo.yaml POLYGON_WALLET: ./PolygonWalletExternalAccountInfo.yaml BASE_WALLET: ./BaseWalletExternalAccountInfo.yaml + BRL_ACCOUNT: ./BrlExternalAccountInfo.yaml + CLABE_ACCOUNT: ./ClabeExternalAccountInfo.yaml + DKK_ACCOUNT: ./DkkExternalAccountInfo.yaml + HKD_ACCOUNT: ./HkdExternalAccountInfo.yaml + IBAN_ACCOUNT: ./IbanExternalAccountInfo.yaml + IDR_ACCOUNT: ./IdrExternalAccountInfo.yaml + INR_ACCOUNT: ./InrExternalAccountInfo.yaml + LIGHTNING_ACCOUNT: ./LightningExternalAccountInfo.yaml + MXN_ACCOUNT: ./MxnExternalAccountInfo.yaml + MYR_ACCOUNT: ./MyrExternalAccountInfo.yaml + PIX_ACCOUNT: ./PixExternalAccountInfo.yaml + THB_ACCOUNT: ./ThbExternalAccountInfo.yaml + UPI_ACCOUNT: ./UpiExternalAccountInfo.yaml + USD_ACCOUNT: ./UsdExternalAccountInfo.yaml + VND_ACCOUNT: ./VndExternalAccountInfo.yaml diff --git a/openapi/components/schemas/external_accounts/ExternalAccountType.yaml b/openapi/components/schemas/external_accounts/ExternalAccountType.yaml index 66c8d8b3..3eccd426 100644 --- a/openapi/components/schemas/external_accounts/ExternalAccountType.yaml +++ b/openapi/components/schemas/external_accounts/ExternalAccountType.yaml @@ -1,20 +1,25 @@ type: string enum: - - US_ACCOUNT - - CLABE - - PIX - - IBAN - - UPI - - NGN_ACCOUNT - - CAD_ACCOUNT - - GBP_ACCOUNT - - PHP_ACCOUNT - - SGD_ACCOUNT + - BRL_ACCOUNT + - CLABE_ACCOUNT + - DKK_ACCOUNT + - HKD_ACCOUNT + - IBAN_ACCOUNT + - IDR_ACCOUNT + - INR_ACCOUNT + - MXN_ACCOUNT + - MYR_ACCOUNT + - PIX_ACCOUNT + - THB_ACCOUNT + - UPI_ACCOUNT + - USD_ACCOUNT + - VND_ACCOUNT - SPARK_WALLET - LIGHTNING + - LIGHTNING_ACCOUNT - SOLANA_WALLET - TRON_WALLET - POLYGON_WALLET - BASE_WALLET description: Type of external account or wallet -example: US_ACCOUNT +example: BRL_ACCOUNT diff --git a/openapi/components/schemas/external_accounts/GbpExternalAccountInfo.yaml b/openapi/components/schemas/external_accounts/GbpExternalAccountInfo.yaml new file mode 100644 index 00000000..1d1efd1a --- /dev/null +++ b/openapi/components/schemas/external_accounts/GbpExternalAccountInfo.yaml @@ -0,0 +1,9 @@ +allOf: +- $ref: ./BaseExternalAccountInfo.yaml +- $ref: ../common/GbpAccountInfo.yaml +- type: object + required: + - beneficiary + properties: + beneficiary: + $ref: ../common/GbpBeneficiary.yaml diff --git a/openapi/components/schemas/external_accounts/HkdExternalAccountInfo.yaml b/openapi/components/schemas/external_accounts/HkdExternalAccountInfo.yaml new file mode 100644 index 00000000..699579e4 --- /dev/null +++ b/openapi/components/schemas/external_accounts/HkdExternalAccountInfo.yaml @@ -0,0 +1,9 @@ +allOf: +- $ref: ./BaseExternalAccountInfo.yaml +- $ref: ../common/HkdAccountInfo.yaml +- type: object + required: + - beneficiary + properties: + beneficiary: + $ref: ../common/HkdBeneficiary.yaml diff --git a/openapi/components/schemas/external_accounts/IbanExternalAccountInfo.yaml b/openapi/components/schemas/external_accounts/IbanExternalAccountInfo.yaml new file mode 100644 index 00000000..09355216 --- /dev/null +++ b/openapi/components/schemas/external_accounts/IbanExternalAccountInfo.yaml @@ -0,0 +1,3 @@ +allOf: +- $ref: ./BaseExternalAccountInfo.yaml +- $ref: ../common/IbanAccountInfo.yaml diff --git a/openapi/components/schemas/external_accounts/IdrExternalAccountInfo.yaml b/openapi/components/schemas/external_accounts/IdrExternalAccountInfo.yaml new file mode 100644 index 00000000..7715b431 --- /dev/null +++ b/openapi/components/schemas/external_accounts/IdrExternalAccountInfo.yaml @@ -0,0 +1,9 @@ +allOf: +- $ref: ./BaseExternalAccountInfo.yaml +- $ref: ../common/IdrAccountInfo.yaml +- type: object + required: + - beneficiary + properties: + beneficiary: + $ref: ../common/IdrBeneficiary.yaml diff --git a/openapi/components/schemas/external_accounts/InrExternalAccountInfo.yaml b/openapi/components/schemas/external_accounts/InrExternalAccountInfo.yaml new file mode 100644 index 00000000..eebabdf9 --- /dev/null +++ b/openapi/components/schemas/external_accounts/InrExternalAccountInfo.yaml @@ -0,0 +1,9 @@ +allOf: +- $ref: ./BaseExternalAccountInfo.yaml +- $ref: ../common/InrAccountInfo.yaml +- type: object + required: + - beneficiary + properties: + beneficiary: + $ref: ../common/InrBeneficiary.yaml diff --git a/openapi/components/schemas/external_accounts/MxnExternalAccountInfo.yaml b/openapi/components/schemas/external_accounts/MxnExternalAccountInfo.yaml new file mode 100644 index 00000000..3088bec5 --- /dev/null +++ b/openapi/components/schemas/external_accounts/MxnExternalAccountInfo.yaml @@ -0,0 +1,9 @@ +allOf: +- $ref: ./BaseExternalAccountInfo.yaml +- $ref: ../common/MxnAccountInfo.yaml +- type: object + required: + - beneficiary + properties: + beneficiary: + $ref: ../common/MxnBeneficiary.yaml diff --git a/openapi/components/schemas/external_accounts/MyrExternalAccountInfo.yaml b/openapi/components/schemas/external_accounts/MyrExternalAccountInfo.yaml new file mode 100644 index 00000000..5b33a087 --- /dev/null +++ b/openapi/components/schemas/external_accounts/MyrExternalAccountInfo.yaml @@ -0,0 +1,9 @@ +allOf: +- $ref: ./BaseExternalAccountInfo.yaml +- $ref: ../common/MyrAccountInfo.yaml +- type: object + required: + - beneficiary + properties: + beneficiary: + $ref: ../common/MyrBeneficiary.yaml diff --git a/openapi/components/schemas/external_accounts/NgnExternalAccountInfo.yaml b/openapi/components/schemas/external_accounts/NgnExternalAccountInfo.yaml new file mode 100644 index 00000000..7c2f6424 --- /dev/null +++ b/openapi/components/schemas/external_accounts/NgnExternalAccountInfo.yaml @@ -0,0 +1,3 @@ +allOf: +- $ref: ./BaseExternalAccountInfo.yaml +- $ref: ../common/NgnAccountInfo.yaml diff --git a/openapi/components/schemas/external_accounts/PhpExternalAccountInfo.yaml b/openapi/components/schemas/external_accounts/PhpExternalAccountInfo.yaml new file mode 100644 index 00000000..217233f7 --- /dev/null +++ b/openapi/components/schemas/external_accounts/PhpExternalAccountInfo.yaml @@ -0,0 +1,9 @@ +allOf: +- $ref: ./BaseExternalAccountInfo.yaml +- $ref: ../common/PhpAccountInfo.yaml +- type: object + required: + - beneficiary + properties: + beneficiary: + $ref: ../common/PhpBeneficiary.yaml diff --git a/openapi/components/schemas/external_accounts/PixExternalAccountInfo.yaml b/openapi/components/schemas/external_accounts/PixExternalAccountInfo.yaml new file mode 100644 index 00000000..fd2ca806 --- /dev/null +++ b/openapi/components/schemas/external_accounts/PixExternalAccountInfo.yaml @@ -0,0 +1,3 @@ +allOf: +- $ref: ./BaseExternalAccountInfo.yaml +- $ref: ../common/PixAccountInfo.yaml diff --git a/openapi/components/schemas/external_accounts/SgdExternalAccountInfo.yaml b/openapi/components/schemas/external_accounts/SgdExternalAccountInfo.yaml new file mode 100644 index 00000000..39535220 --- /dev/null +++ b/openapi/components/schemas/external_accounts/SgdExternalAccountInfo.yaml @@ -0,0 +1,9 @@ +allOf: +- $ref: ./BaseExternalAccountInfo.yaml +- $ref: ../common/SgdAccountInfo.yaml +- type: object + required: + - beneficiary + properties: + beneficiary: + $ref: ../common/SgdBeneficiary.yaml diff --git a/openapi/components/schemas/external_accounts/ThbExternalAccountInfo.yaml b/openapi/components/schemas/external_accounts/ThbExternalAccountInfo.yaml new file mode 100644 index 00000000..e7637700 --- /dev/null +++ b/openapi/components/schemas/external_accounts/ThbExternalAccountInfo.yaml @@ -0,0 +1,9 @@ +allOf: +- $ref: ./BaseExternalAccountInfo.yaml +- $ref: ../common/ThbAccountInfo.yaml +- type: object + required: + - beneficiary + properties: + beneficiary: + $ref: ../common/ThbBeneficiary.yaml diff --git a/openapi/components/schemas/external_accounts/UpiExternalAccountInfo.yaml b/openapi/components/schemas/external_accounts/UpiExternalAccountInfo.yaml new file mode 100644 index 00000000..7024016c --- /dev/null +++ b/openapi/components/schemas/external_accounts/UpiExternalAccountInfo.yaml @@ -0,0 +1,3 @@ +allOf: +- $ref: ./BaseExternalAccountInfo.yaml +- $ref: ../common/UpiAccountInfo.yaml diff --git a/openapi/components/schemas/external_accounts/UsExternalAccountInfo.yaml b/openapi/components/schemas/external_accounts/UsExternalAccountInfo.yaml new file mode 100644 index 00000000..a664087c --- /dev/null +++ b/openapi/components/schemas/external_accounts/UsExternalAccountInfo.yaml @@ -0,0 +1,3 @@ +allOf: +- $ref: ./BaseExternalAccountInfo.yaml +- $ref: ../common/UsAccountInfo.yaml diff --git a/openapi/components/schemas/external_accounts/UsdExternalAccountInfo.yaml b/openapi/components/schemas/external_accounts/UsdExternalAccountInfo.yaml new file mode 100644 index 00000000..dcf811d3 --- /dev/null +++ b/openapi/components/schemas/external_accounts/UsdExternalAccountInfo.yaml @@ -0,0 +1,9 @@ +allOf: +- $ref: ./BaseExternalAccountInfo.yaml +- $ref: ../common/UsdAccountInfo.yaml +- type: object + required: + - beneficiary + properties: + beneficiary: + $ref: ../common/UsdBeneficiary.yaml diff --git a/openapi/components/schemas/external_accounts/VndExternalAccountInfo.yaml b/openapi/components/schemas/external_accounts/VndExternalAccountInfo.yaml new file mode 100644 index 00000000..8e0e4195 --- /dev/null +++ b/openapi/components/schemas/external_accounts/VndExternalAccountInfo.yaml @@ -0,0 +1,9 @@ +allOf: +- $ref: ./BaseExternalAccountInfo.yaml +- $ref: ../common/VndAccountInfo.yaml +- type: object + required: + - beneficiary + properties: + beneficiary: + $ref: ../common/VndBeneficiary.yaml