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..0340bfdc --- /dev/null +++ b/openapi/components/schemas/common/BrlBeneficiary.yaml @@ -0,0 +1,58 @@ +type: object +required: +- fullName +- userType +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 + userType: + type: string + description: The user type of the beneficiary (e.g. business vs individual); maps + to payeeUserType + registrationNumber: + type: string + description: The registration number of the beneficiary + taxId: + type: string + description: The tax ID of the beneficiary; maps to payeeTaxId + 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..0340bfdc --- /dev/null +++ b/openapi/components/schemas/common/DkkBeneficiary.yaml @@ -0,0 +1,58 @@ +type: object +required: +- fullName +- userType +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 + userType: + type: string + description: The user type of the beneficiary (e.g. business vs individual); maps + to payeeUserType + registrationNumber: + type: string + description: The registration number of the beneficiary + taxId: + type: string + description: The tax ID of the beneficiary; maps to payeeTaxId + 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..0340bfdc --- /dev/null +++ b/openapi/components/schemas/common/GbpBeneficiary.yaml @@ -0,0 +1,58 @@ +type: object +required: +- fullName +- userType +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 + userType: + type: string + description: The user type of the beneficiary (e.g. business vs individual); maps + to payeeUserType + registrationNumber: + type: string + description: The registration number of the beneficiary + taxId: + type: string + description: The tax ID of the beneficiary; maps to payeeTaxId + 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..0340bfdc --- /dev/null +++ b/openapi/components/schemas/common/HkdBeneficiary.yaml @@ -0,0 +1,58 @@ +type: object +required: +- fullName +- userType +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 + userType: + type: string + description: The user type of the beneficiary (e.g. business vs individual); maps + to payeeUserType + registrationNumber: + type: string + description: The registration number of the beneficiary + taxId: + type: string + description: The tax ID of the beneficiary; maps to payeeTaxId + 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..0340bfdc --- /dev/null +++ b/openapi/components/schemas/common/IdrBeneficiary.yaml @@ -0,0 +1,58 @@ +type: object +required: +- fullName +- userType +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 + userType: + type: string + description: The user type of the beneficiary (e.g. business vs individual); maps + to payeeUserType + registrationNumber: + type: string + description: The registration number of the beneficiary + taxId: + type: string + description: The tax ID of the beneficiary; maps to payeeTaxId + 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..0340bfdc --- /dev/null +++ b/openapi/components/schemas/common/InrBeneficiary.yaml @@ -0,0 +1,58 @@ +type: object +required: +- fullName +- userType +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 + userType: + type: string + description: The user type of the beneficiary (e.g. business vs individual); maps + to payeeUserType + registrationNumber: + type: string + description: The registration number of the beneficiary + taxId: + type: string + description: The tax ID of the beneficiary; maps to payeeTaxId + 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..c6febc5b --- /dev/null +++ b/openapi/components/schemas/common/MxnBeneficiary.yaml @@ -0,0 +1,57 @@ +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 + userType: + type: string + description: The user type of the beneficiary (e.g. business vs individual); maps + to payeeUserType + registrationNumber: + type: string + description: The registration number of the beneficiary + taxId: + type: string + description: The tax ID of the beneficiary; maps to payeeTaxId + 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..0340bfdc --- /dev/null +++ b/openapi/components/schemas/common/MyrBeneficiary.yaml @@ -0,0 +1,58 @@ +type: object +required: +- fullName +- userType +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 + userType: + type: string + description: The user type of the beneficiary (e.g. business vs individual); maps + to payeeUserType + registrationNumber: + type: string + description: The registration number of the beneficiary + taxId: + type: string + description: The tax ID of the beneficiary; maps to payeeTaxId + 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..0340bfdc --- /dev/null +++ b/openapi/components/schemas/common/PhpBeneficiary.yaml @@ -0,0 +1,58 @@ +type: object +required: +- fullName +- userType +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 + userType: + type: string + description: The user type of the beneficiary (e.g. business vs individual); maps + to payeeUserType + registrationNumber: + type: string + description: The registration number of the beneficiary + taxId: + type: string + description: The tax ID of the beneficiary; maps to payeeTaxId + 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..0340bfdc --- /dev/null +++ b/openapi/components/schemas/common/SgdBeneficiary.yaml @@ -0,0 +1,58 @@ +type: object +required: +- fullName +- userType +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 + userType: + type: string + description: The user type of the beneficiary (e.g. business vs individual); maps + to payeeUserType + registrationNumber: + type: string + description: The registration number of the beneficiary + taxId: + type: string + description: The tax ID of the beneficiary; maps to payeeTaxId + 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..0340bfdc --- /dev/null +++ b/openapi/components/schemas/common/ThbBeneficiary.yaml @@ -0,0 +1,58 @@ +type: object +required: +- fullName +- userType +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 + userType: + type: string + description: The user type of the beneficiary (e.g. business vs individual); maps + to payeeUserType + registrationNumber: + type: string + description: The registration number of the beneficiary + taxId: + type: string + description: The tax ID of the beneficiary; maps to payeeTaxId + 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..7e848a71 --- /dev/null +++ b/openapi/components/schemas/common/UsdBeneficiary.yaml @@ -0,0 +1,59 @@ +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 + userType: + type: string + description: The user type of the beneficiary (e.g. business vs individual); maps + to payeeUserType + registrationNumber: + type: string + description: The registration number of the beneficiary + taxId: + type: string + description: The tax ID of the beneficiary; maps to payeeTaxId + 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..0340bfdc --- /dev/null +++ b/openapi/components/schemas/common/VndBeneficiary.yaml @@ -0,0 +1,58 @@ +type: object +required: +- fullName +- userType +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 + userType: + type: string + description: The user type of the beneficiary (e.g. business vs individual); maps + to payeeUserType + registrationNumber: + type: string + description: The registration number of the beneficiary + taxId: + type: string + description: The tax ID of the beneficiary; maps to payeeTaxId + 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/BrlExternalAccountInfo.yaml b/openapi/components/schemas/external_accounts/BrlExternalAccountInfo.yaml new file mode 100644 index 00000000..ddfd3557 --- /dev/null +++ b/openapi/components/schemas/external_accounts/BrlExternalAccountInfo.yaml @@ -0,0 +1,18 @@ +allOf: +- $ref: ./BaseExternalAccountInfo.yaml +- $ref: ../common/BrlAccountInfo.yaml +- type: object + required: + - beneficiary + properties: + beneficiary: + oneOf: + - title: Individual Beneficiary + $ref: ../common/BrlBeneficiary.yaml + - title: Business Beneficiary + $ref: ./BusinessBeneficiary.yaml + discriminator: + propertyName: beneficiaryType + mapping: + INDIVIDUAL: ../common/BrlBeneficiary.yaml + BUSINESS: ./BusinessBeneficiary.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..2a06b867 --- /dev/null +++ b/openapi/components/schemas/external_accounts/DkkExternalAccountInfo.yaml @@ -0,0 +1,18 @@ +allOf: +- $ref: ./BaseExternalAccountInfo.yaml +- $ref: ../common/DkkAccountInfo.yaml +- type: object + required: + - beneficiary + properties: + beneficiary: + oneOf: + - title: Individual Beneficiary + $ref: ../common/DkkBeneficiary.yaml + - title: Business Beneficiary + $ref: ./BusinessBeneficiary.yaml + discriminator: + propertyName: beneficiaryType + mapping: + INDIVIDUAL: ../common/DkkBeneficiary.yaml + BUSINESS: ./BusinessBeneficiary.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/GbpExternalAccountInfo.yaml b/openapi/components/schemas/external_accounts/GbpExternalAccountInfo.yaml new file mode 100644 index 00000000..53a6851a --- /dev/null +++ b/openapi/components/schemas/external_accounts/GbpExternalAccountInfo.yaml @@ -0,0 +1,18 @@ +allOf: +- $ref: ./BaseExternalAccountInfo.yaml +- $ref: ../common/GbpAccountInfo.yaml +- type: object + required: + - beneficiary + properties: + beneficiary: + oneOf: + - title: Individual Beneficiary + $ref: ../common/GbpBeneficiary.yaml + - title: Business Beneficiary + $ref: ./BusinessBeneficiary.yaml + discriminator: + propertyName: beneficiaryType + mapping: + INDIVIDUAL: ../common/GbpBeneficiary.yaml + BUSINESS: ./BusinessBeneficiary.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..95a14095 --- /dev/null +++ b/openapi/components/schemas/external_accounts/HkdExternalAccountInfo.yaml @@ -0,0 +1,18 @@ +allOf: +- $ref: ./BaseExternalAccountInfo.yaml +- $ref: ../common/HkdAccountInfo.yaml +- type: object + required: + - beneficiary + properties: + beneficiary: + oneOf: + - title: Individual Beneficiary + $ref: ../common/HkdBeneficiary.yaml + - title: Business Beneficiary + $ref: ./BusinessBeneficiary.yaml + discriminator: + propertyName: beneficiaryType + mapping: + INDIVIDUAL: ../common/HkdBeneficiary.yaml + BUSINESS: ./BusinessBeneficiary.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..97057199 --- /dev/null +++ b/openapi/components/schemas/external_accounts/IdrExternalAccountInfo.yaml @@ -0,0 +1,18 @@ +allOf: +- $ref: ./BaseExternalAccountInfo.yaml +- $ref: ../common/IdrAccountInfo.yaml +- type: object + required: + - beneficiary + properties: + beneficiary: + oneOf: + - title: Individual Beneficiary + $ref: ../common/IdrBeneficiary.yaml + - title: Business Beneficiary + $ref: ./BusinessBeneficiary.yaml + discriminator: + propertyName: beneficiaryType + mapping: + INDIVIDUAL: ../common/IdrBeneficiary.yaml + BUSINESS: ./BusinessBeneficiary.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..a2d8c817 --- /dev/null +++ b/openapi/components/schemas/external_accounts/InrExternalAccountInfo.yaml @@ -0,0 +1,18 @@ +allOf: +- $ref: ./BaseExternalAccountInfo.yaml +- $ref: ../common/InrAccountInfo.yaml +- type: object + required: + - beneficiary + properties: + beneficiary: + oneOf: + - title: Individual Beneficiary + $ref: ../common/InrBeneficiary.yaml + - title: Business Beneficiary + $ref: ./BusinessBeneficiary.yaml + discriminator: + propertyName: beneficiaryType + mapping: + INDIVIDUAL: ../common/InrBeneficiary.yaml + BUSINESS: ./BusinessBeneficiary.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..9effce05 --- /dev/null +++ b/openapi/components/schemas/external_accounts/MxnExternalAccountInfo.yaml @@ -0,0 +1,18 @@ +allOf: +- $ref: ./BaseExternalAccountInfo.yaml +- $ref: ../common/MxnAccountInfo.yaml +- type: object + required: + - beneficiary + properties: + beneficiary: + oneOf: + - title: Individual Beneficiary + $ref: ../common/MxnBeneficiary.yaml + - title: Business Beneficiary + $ref: ./BusinessBeneficiary.yaml + discriminator: + propertyName: beneficiaryType + mapping: + INDIVIDUAL: ../common/MxnBeneficiary.yaml + BUSINESS: ./BusinessBeneficiary.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..a0d4af0c --- /dev/null +++ b/openapi/components/schemas/external_accounts/MyrExternalAccountInfo.yaml @@ -0,0 +1,18 @@ +allOf: +- $ref: ./BaseExternalAccountInfo.yaml +- $ref: ../common/MyrAccountInfo.yaml +- type: object + required: + - beneficiary + properties: + beneficiary: + oneOf: + - title: Individual Beneficiary + $ref: ../common/MyrBeneficiary.yaml + - title: Business Beneficiary + $ref: ./BusinessBeneficiary.yaml + discriminator: + propertyName: beneficiaryType + mapping: + INDIVIDUAL: ../common/MyrBeneficiary.yaml + BUSINESS: ./BusinessBeneficiary.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..605d3f18 --- /dev/null +++ b/openapi/components/schemas/external_accounts/PhpExternalAccountInfo.yaml @@ -0,0 +1,18 @@ +allOf: +- $ref: ./BaseExternalAccountInfo.yaml +- $ref: ../common/PhpAccountInfo.yaml +- type: object + required: + - beneficiary + properties: + beneficiary: + oneOf: + - title: Individual Beneficiary + $ref: ../common/PhpBeneficiary.yaml + - title: Business Beneficiary + $ref: ./BusinessBeneficiary.yaml + discriminator: + propertyName: beneficiaryType + mapping: + INDIVIDUAL: ../common/PhpBeneficiary.yaml + BUSINESS: ./BusinessBeneficiary.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..3965a0a9 --- /dev/null +++ b/openapi/components/schemas/external_accounts/SgdExternalAccountInfo.yaml @@ -0,0 +1,18 @@ +allOf: +- $ref: ./BaseExternalAccountInfo.yaml +- $ref: ../common/SgdAccountInfo.yaml +- type: object + required: + - beneficiary + properties: + beneficiary: + oneOf: + - title: Individual Beneficiary + $ref: ../common/SgdBeneficiary.yaml + - title: Business Beneficiary + $ref: ./BusinessBeneficiary.yaml + discriminator: + propertyName: beneficiaryType + mapping: + INDIVIDUAL: ../common/SgdBeneficiary.yaml + BUSINESS: ./BusinessBeneficiary.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..ed7328ec --- /dev/null +++ b/openapi/components/schemas/external_accounts/ThbExternalAccountInfo.yaml @@ -0,0 +1,18 @@ +allOf: +- $ref: ./BaseExternalAccountInfo.yaml +- $ref: ../common/ThbAccountInfo.yaml +- type: object + required: + - beneficiary + properties: + beneficiary: + oneOf: + - title: Individual Beneficiary + $ref: ../common/ThbBeneficiary.yaml + - title: Business Beneficiary + $ref: ./BusinessBeneficiary.yaml + discriminator: + propertyName: beneficiaryType + mapping: + INDIVIDUAL: ../common/ThbBeneficiary.yaml + BUSINESS: ./BusinessBeneficiary.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..68ce09ff --- /dev/null +++ b/openapi/components/schemas/external_accounts/UsdExternalAccountInfo.yaml @@ -0,0 +1,18 @@ +allOf: +- $ref: ./BaseExternalAccountInfo.yaml +- $ref: ../common/UsdAccountInfo.yaml +- type: object + required: + - beneficiary + properties: + beneficiary: + oneOf: + - title: Individual Beneficiary + $ref: ../common/UsdBeneficiary.yaml + - title: Business Beneficiary + $ref: ./BusinessBeneficiary.yaml + discriminator: + propertyName: beneficiaryType + mapping: + INDIVIDUAL: ../common/UsdBeneficiary.yaml + BUSINESS: ./BusinessBeneficiary.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..5ccce3e3 --- /dev/null +++ b/openapi/components/schemas/external_accounts/VndExternalAccountInfo.yaml @@ -0,0 +1,18 @@ +allOf: +- $ref: ./BaseExternalAccountInfo.yaml +- $ref: ../common/VndAccountInfo.yaml +- type: object + required: + - beneficiary + properties: + beneficiary: + oneOf: + - title: Individual Beneficiary + $ref: ../common/VndBeneficiary.yaml + - title: Business Beneficiary + $ref: ./BusinessBeneficiary.yaml + discriminator: + propertyName: beneficiaryType + mapping: + INDIVIDUAL: ../common/VndBeneficiary.yaml + BUSINESS: ./BusinessBeneficiary.yaml