From 572ff966747d88f3592e9438fb19583bf22e6f25 Mon Sep 17 00:00:00 2001 From: Lightspark Eng Date: Wed, 11 Feb 2026 19:58:06 +0000 Subject: [PATCH] chore: Update grid API schemas from webdev --- .../schemas/common/BrlAccountInfo.yaml | 15 +++ .../schemas/common/BrlBeneficiary.yaml | 50 ++++++++ .../schemas/common/DkkAccountInfo.yaml | 10 ++ .../schemas/common/DkkBeneficiary.yaml | 50 ++++++++ .../schemas/common/GbpAccountInfo.yaml | 19 +-- .../schemas/common/GbpBeneficiary.yaml | 50 ++++++++ .../schemas/common/HkdAccountInfo.yaml | 11 ++ .../schemas/common/HkdBeneficiary.yaml | 50 ++++++++ .../schemas/common/IdrAccountInfo.yaml | 11 ++ .../schemas/common/IdrBeneficiary.yaml | 50 ++++++++ .../schemas/common/InrAccountInfo.yaml | 7 ++ .../schemas/common/InrBeneficiary.yaml | 50 ++++++++ .../schemas/common/MxnAccountInfo.yaml | 11 ++ .../schemas/common/MxnBeneficiary.yaml | 50 ++++++++ .../schemas/common/MyrAccountInfo.yaml | 11 ++ .../schemas/common/MyrBeneficiary.yaml | 50 ++++++++ .../schemas/common/PhpAccountInfo.yaml | 15 +-- .../schemas/common/PhpBeneficiary.yaml | 50 ++++++++ .../schemas/common/SgdAccountInfo.yaml | 23 +--- .../schemas/common/SgdBeneficiary.yaml | 50 ++++++++ .../schemas/common/ThbAccountInfo.yaml | 11 ++ .../schemas/common/ThbBeneficiary.yaml | 50 ++++++++ .../schemas/common/UsdAccountInfo.yaml | 11 ++ .../schemas/common/UsdBeneficiary.yaml | 52 ++++++++ .../schemas/common/VndAccountInfo.yaml | 11 ++ .../schemas/common/VndBeneficiary.yaml | 50 ++++++++ .../external_accounts/BrlAccountInfo.yaml | 9 ++ .../external_accounts/CadAccountInfo.yaml | 3 + .../external_accounts/ClabeAccountInfo.yaml | 3 + .../external_accounts/DkkAccountInfo.yaml | 9 ++ .../ExternalAccountInfoOneOf.yaml | 118 +++++++++++++----- .../external_accounts/GbpAccountInfo.yaml | 9 ++ .../external_accounts/HkdAccountInfo.yaml | 9 ++ .../external_accounts/IbanAccountInfo.yaml | 3 + .../external_accounts/IdrAccountInfo.yaml | 9 ++ .../external_accounts/InrAccountInfo.yaml | 9 ++ .../external_accounts/MxnAccountInfo.yaml | 9 ++ .../external_accounts/MyrAccountInfo.yaml | 9 ++ .../external_accounts/NgnAccountInfo.yaml | 3 + .../external_accounts/PhpAccountInfo.yaml | 9 ++ .../external_accounts/PixAccountInfo.yaml | 3 + .../external_accounts/SgdAccountInfo.yaml | 9 ++ .../external_accounts/ThbAccountInfo.yaml | 9 ++ .../external_accounts/UpiAccountInfo.yaml | 3 + .../external_accounts/UsAccountInfo.yaml | 3 + .../external_accounts/UsdAccountInfo.yaml | 9 ++ .../external_accounts/VndAccountInfo.yaml | 9 ++ 47 files changed, 997 insertions(+), 77 deletions(-) create mode 100644 openapi/components/schemas/common/BrlAccountInfo.yaml create mode 100644 openapi/components/schemas/common/BrlBeneficiary.yaml create mode 100644 openapi/components/schemas/common/DkkAccountInfo.yaml create mode 100644 openapi/components/schemas/common/DkkBeneficiary.yaml create mode 100644 openapi/components/schemas/common/GbpBeneficiary.yaml create mode 100644 openapi/components/schemas/common/HkdAccountInfo.yaml create mode 100644 openapi/components/schemas/common/HkdBeneficiary.yaml create mode 100644 openapi/components/schemas/common/IdrAccountInfo.yaml create mode 100644 openapi/components/schemas/common/IdrBeneficiary.yaml create mode 100644 openapi/components/schemas/common/InrAccountInfo.yaml create mode 100644 openapi/components/schemas/common/InrBeneficiary.yaml create mode 100644 openapi/components/schemas/common/MxnAccountInfo.yaml create mode 100644 openapi/components/schemas/common/MxnBeneficiary.yaml create mode 100644 openapi/components/schemas/common/MyrAccountInfo.yaml create mode 100644 openapi/components/schemas/common/MyrBeneficiary.yaml create mode 100644 openapi/components/schemas/common/PhpBeneficiary.yaml create mode 100644 openapi/components/schemas/common/SgdBeneficiary.yaml create mode 100644 openapi/components/schemas/common/ThbAccountInfo.yaml create mode 100644 openapi/components/schemas/common/ThbBeneficiary.yaml create mode 100644 openapi/components/schemas/common/UsdAccountInfo.yaml create mode 100644 openapi/components/schemas/common/UsdBeneficiary.yaml create mode 100644 openapi/components/schemas/common/VndAccountInfo.yaml create mode 100644 openapi/components/schemas/common/VndBeneficiary.yaml create mode 100644 openapi/components/schemas/external_accounts/BrlAccountInfo.yaml create mode 100644 openapi/components/schemas/external_accounts/CadAccountInfo.yaml create mode 100644 openapi/components/schemas/external_accounts/ClabeAccountInfo.yaml create mode 100644 openapi/components/schemas/external_accounts/DkkAccountInfo.yaml create mode 100644 openapi/components/schemas/external_accounts/GbpAccountInfo.yaml create mode 100644 openapi/components/schemas/external_accounts/HkdAccountInfo.yaml create mode 100644 openapi/components/schemas/external_accounts/IbanAccountInfo.yaml create mode 100644 openapi/components/schemas/external_accounts/IdrAccountInfo.yaml create mode 100644 openapi/components/schemas/external_accounts/InrAccountInfo.yaml create mode 100644 openapi/components/schemas/external_accounts/MxnAccountInfo.yaml create mode 100644 openapi/components/schemas/external_accounts/MyrAccountInfo.yaml create mode 100644 openapi/components/schemas/external_accounts/NgnAccountInfo.yaml create mode 100644 openapi/components/schemas/external_accounts/PhpAccountInfo.yaml create mode 100644 openapi/components/schemas/external_accounts/PixAccountInfo.yaml create mode 100644 openapi/components/schemas/external_accounts/SgdAccountInfo.yaml create mode 100644 openapi/components/schemas/external_accounts/ThbAccountInfo.yaml create mode 100644 openapi/components/schemas/external_accounts/UpiAccountInfo.yaml create mode 100644 openapi/components/schemas/external_accounts/UsAccountInfo.yaml create mode 100644 openapi/components/schemas/external_accounts/UsdAccountInfo.yaml create mode 100644 openapi/components/schemas/external_accounts/VndAccountInfo.yaml 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/BrlAccountInfo.yaml b/openapi/components/schemas/external_accounts/BrlAccountInfo.yaml new file mode 100644 index 00000000..576a2041 --- /dev/null +++ b/openapi/components/schemas/external_accounts/BrlAccountInfo.yaml @@ -0,0 +1,9 @@ +allOf: +- $ref: ./BaseExternalAccountInfo.yaml +- $ref: ../common/BrlAccountInfo.yaml +- type: object + required: + - beneficiary + properties: + beneficiary: + $ref: ./BeneficiaryOneOf.yaml diff --git a/openapi/components/schemas/external_accounts/CadAccountInfo.yaml b/openapi/components/schemas/external_accounts/CadAccountInfo.yaml new file mode 100644 index 00000000..c16a47c9 --- /dev/null +++ b/openapi/components/schemas/external_accounts/CadAccountInfo.yaml @@ -0,0 +1,3 @@ +allOf: +- $ref: ./BaseExternalAccountInfo.yaml +- $ref: ../common/CadAccountInfo.yaml diff --git a/openapi/components/schemas/external_accounts/ClabeAccountInfo.yaml b/openapi/components/schemas/external_accounts/ClabeAccountInfo.yaml new file mode 100644 index 00000000..4970e8cc --- /dev/null +++ b/openapi/components/schemas/external_accounts/ClabeAccountInfo.yaml @@ -0,0 +1,3 @@ +allOf: +- $ref: ./BaseExternalAccountInfo.yaml +- $ref: ../common/ClabeAccountInfo.yaml diff --git a/openapi/components/schemas/external_accounts/DkkAccountInfo.yaml b/openapi/components/schemas/external_accounts/DkkAccountInfo.yaml new file mode 100644 index 00000000..cfccaa10 --- /dev/null +++ b/openapi/components/schemas/external_accounts/DkkAccountInfo.yaml @@ -0,0 +1,9 @@ +allOf: +- $ref: ./BaseExternalAccountInfo.yaml +- $ref: ../common/DkkAccountInfo.yaml +- type: object + required: + - beneficiary + properties: + beneficiary: + $ref: ./BeneficiaryOneOf.yaml diff --git a/openapi/components/schemas/external_accounts/ExternalAccountInfoOneOf.yaml b/openapi/components/schemas/external_accounts/ExternalAccountInfoOneOf.yaml index 3833c6b3..7057ead8 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: BrlAccountInfo + $ref: ./BrlAccountInfo.yaml +- title: CadAccountInfo + $ref: ./CadAccountInfo.yaml +- title: ClabeAccountInfo + $ref: ./ClabeAccountInfo.yaml +- title: DkkAccountInfo + $ref: ./DkkAccountInfo.yaml +- title: GbpAccountInfo + $ref: ./GbpAccountInfo.yaml +- title: HkdAccountInfo + $ref: ./HkdAccountInfo.yaml +- title: IbanAccountInfo + $ref: ./IbanAccountInfo.yaml +- title: IdrAccountInfo + $ref: ./IdrAccountInfo.yaml +- title: InrAccountInfo + $ref: ./InrAccountInfo.yaml +- title: MxnAccountInfo + $ref: ./MxnAccountInfo.yaml +- title: MyrAccountInfo + $ref: ./MyrAccountInfo.yaml +- title: NgnAccountInfo + $ref: ./NgnAccountInfo.yaml +- title: PhpAccountInfo + $ref: ./PhpAccountInfo.yaml +- title: PixAccountInfo + $ref: ./PixAccountInfo.yaml +- title: SgdAccountInfo + $ref: ./SgdAccountInfo.yaml +- title: ThbAccountInfo + $ref: ./ThbAccountInfo.yaml +- title: UpiAccountInfo + $ref: ./UpiAccountInfo.yaml +- title: UsAccountInfo + $ref: ./UsAccountInfo.yaml +- title: UsdAccountInfo + $ref: ./UsdAccountInfo.yaml +- title: VndAccountInfo + $ref: ./VndAccountInfo.yaml discriminator: propertyName: accountType mapping: @@ -50,3 +90,17 @@ discriminator: TRON_WALLET: ./TronWalletExternalAccountInfo.yaml POLYGON_WALLET: ./PolygonWalletExternalAccountInfo.yaml BASE_WALLET: ./BaseWalletExternalAccountInfo.yaml + BRL_ACCOUNT: ./BrlAccountInfo.yaml + CLABE_ACCOUNT: ./ClabeAccountInfo.yaml + DKK_ACCOUNT: ./DkkAccountInfo.yaml + HKD_ACCOUNT: ./HkdAccountInfo.yaml + IBAN_ACCOUNT: ./IbanAccountInfo.yaml + IDR_ACCOUNT: ./IdrAccountInfo.yaml + INR_ACCOUNT: ./InrAccountInfo.yaml + MXN_ACCOUNT: ./MxnAccountInfo.yaml + MYR_ACCOUNT: ./MyrAccountInfo.yaml + PIX_ACCOUNT: ./PixAccountInfo.yaml + THB_ACCOUNT: ./ThbAccountInfo.yaml + UPI_ACCOUNT: ./UpiAccountInfo.yaml + USD_ACCOUNT: ./UsdAccountInfo.yaml + VND_ACCOUNT: ./VndAccountInfo.yaml diff --git a/openapi/components/schemas/external_accounts/GbpAccountInfo.yaml b/openapi/components/schemas/external_accounts/GbpAccountInfo.yaml new file mode 100644 index 00000000..d2727539 --- /dev/null +++ b/openapi/components/schemas/external_accounts/GbpAccountInfo.yaml @@ -0,0 +1,9 @@ +allOf: +- $ref: ./BaseExternalAccountInfo.yaml +- $ref: ../common/GbpAccountInfo.yaml +- type: object + required: + - beneficiary + properties: + beneficiary: + $ref: ./BeneficiaryOneOf.yaml diff --git a/openapi/components/schemas/external_accounts/HkdAccountInfo.yaml b/openapi/components/schemas/external_accounts/HkdAccountInfo.yaml new file mode 100644 index 00000000..f2e3336b --- /dev/null +++ b/openapi/components/schemas/external_accounts/HkdAccountInfo.yaml @@ -0,0 +1,9 @@ +allOf: +- $ref: ./BaseExternalAccountInfo.yaml +- $ref: ../common/HkdAccountInfo.yaml +- type: object + required: + - beneficiary + properties: + beneficiary: + $ref: ./BeneficiaryOneOf.yaml diff --git a/openapi/components/schemas/external_accounts/IbanAccountInfo.yaml b/openapi/components/schemas/external_accounts/IbanAccountInfo.yaml new file mode 100644 index 00000000..09355216 --- /dev/null +++ b/openapi/components/schemas/external_accounts/IbanAccountInfo.yaml @@ -0,0 +1,3 @@ +allOf: +- $ref: ./BaseExternalAccountInfo.yaml +- $ref: ../common/IbanAccountInfo.yaml diff --git a/openapi/components/schemas/external_accounts/IdrAccountInfo.yaml b/openapi/components/schemas/external_accounts/IdrAccountInfo.yaml new file mode 100644 index 00000000..2411cc1d --- /dev/null +++ b/openapi/components/schemas/external_accounts/IdrAccountInfo.yaml @@ -0,0 +1,9 @@ +allOf: +- $ref: ./BaseExternalAccountInfo.yaml +- $ref: ../common/IdrAccountInfo.yaml +- type: object + required: + - beneficiary + properties: + beneficiary: + $ref: ./BeneficiaryOneOf.yaml diff --git a/openapi/components/schemas/external_accounts/InrAccountInfo.yaml b/openapi/components/schemas/external_accounts/InrAccountInfo.yaml new file mode 100644 index 00000000..2c5618aa --- /dev/null +++ b/openapi/components/schemas/external_accounts/InrAccountInfo.yaml @@ -0,0 +1,9 @@ +allOf: +- $ref: ./BaseExternalAccountInfo.yaml +- $ref: ../common/InrAccountInfo.yaml +- type: object + required: + - beneficiary + properties: + beneficiary: + $ref: ./BeneficiaryOneOf.yaml diff --git a/openapi/components/schemas/external_accounts/MxnAccountInfo.yaml b/openapi/components/schemas/external_accounts/MxnAccountInfo.yaml new file mode 100644 index 00000000..e38484d5 --- /dev/null +++ b/openapi/components/schemas/external_accounts/MxnAccountInfo.yaml @@ -0,0 +1,9 @@ +allOf: +- $ref: ./BaseExternalAccountInfo.yaml +- $ref: ../common/MxnAccountInfo.yaml +- type: object + required: + - beneficiary + properties: + beneficiary: + $ref: ./BeneficiaryOneOf.yaml diff --git a/openapi/components/schemas/external_accounts/MyrAccountInfo.yaml b/openapi/components/schemas/external_accounts/MyrAccountInfo.yaml new file mode 100644 index 00000000..05873641 --- /dev/null +++ b/openapi/components/schemas/external_accounts/MyrAccountInfo.yaml @@ -0,0 +1,9 @@ +allOf: +- $ref: ./BaseExternalAccountInfo.yaml +- $ref: ../common/MyrAccountInfo.yaml +- type: object + required: + - beneficiary + properties: + beneficiary: + $ref: ./BeneficiaryOneOf.yaml diff --git a/openapi/components/schemas/external_accounts/NgnAccountInfo.yaml b/openapi/components/schemas/external_accounts/NgnAccountInfo.yaml new file mode 100644 index 00000000..7c2f6424 --- /dev/null +++ b/openapi/components/schemas/external_accounts/NgnAccountInfo.yaml @@ -0,0 +1,3 @@ +allOf: +- $ref: ./BaseExternalAccountInfo.yaml +- $ref: ../common/NgnAccountInfo.yaml diff --git a/openapi/components/schemas/external_accounts/PhpAccountInfo.yaml b/openapi/components/schemas/external_accounts/PhpAccountInfo.yaml new file mode 100644 index 00000000..66430edd --- /dev/null +++ b/openapi/components/schemas/external_accounts/PhpAccountInfo.yaml @@ -0,0 +1,9 @@ +allOf: +- $ref: ./BaseExternalAccountInfo.yaml +- $ref: ../common/PhpAccountInfo.yaml +- type: object + required: + - beneficiary + properties: + beneficiary: + $ref: ./BeneficiaryOneOf.yaml diff --git a/openapi/components/schemas/external_accounts/PixAccountInfo.yaml b/openapi/components/schemas/external_accounts/PixAccountInfo.yaml new file mode 100644 index 00000000..fd2ca806 --- /dev/null +++ b/openapi/components/schemas/external_accounts/PixAccountInfo.yaml @@ -0,0 +1,3 @@ +allOf: +- $ref: ./BaseExternalAccountInfo.yaml +- $ref: ../common/PixAccountInfo.yaml diff --git a/openapi/components/schemas/external_accounts/SgdAccountInfo.yaml b/openapi/components/schemas/external_accounts/SgdAccountInfo.yaml new file mode 100644 index 00000000..b52e80e3 --- /dev/null +++ b/openapi/components/schemas/external_accounts/SgdAccountInfo.yaml @@ -0,0 +1,9 @@ +allOf: +- $ref: ./BaseExternalAccountInfo.yaml +- $ref: ../common/SgdAccountInfo.yaml +- type: object + required: + - beneficiary + properties: + beneficiary: + $ref: ./BeneficiaryOneOf.yaml diff --git a/openapi/components/schemas/external_accounts/ThbAccountInfo.yaml b/openapi/components/schemas/external_accounts/ThbAccountInfo.yaml new file mode 100644 index 00000000..e9c6d01b --- /dev/null +++ b/openapi/components/schemas/external_accounts/ThbAccountInfo.yaml @@ -0,0 +1,9 @@ +allOf: +- $ref: ./BaseExternalAccountInfo.yaml +- $ref: ../common/ThbAccountInfo.yaml +- type: object + required: + - beneficiary + properties: + beneficiary: + $ref: ./BeneficiaryOneOf.yaml diff --git a/openapi/components/schemas/external_accounts/UpiAccountInfo.yaml b/openapi/components/schemas/external_accounts/UpiAccountInfo.yaml new file mode 100644 index 00000000..7024016c --- /dev/null +++ b/openapi/components/schemas/external_accounts/UpiAccountInfo.yaml @@ -0,0 +1,3 @@ +allOf: +- $ref: ./BaseExternalAccountInfo.yaml +- $ref: ../common/UpiAccountInfo.yaml diff --git a/openapi/components/schemas/external_accounts/UsAccountInfo.yaml b/openapi/components/schemas/external_accounts/UsAccountInfo.yaml new file mode 100644 index 00000000..a664087c --- /dev/null +++ b/openapi/components/schemas/external_accounts/UsAccountInfo.yaml @@ -0,0 +1,3 @@ +allOf: +- $ref: ./BaseExternalAccountInfo.yaml +- $ref: ../common/UsAccountInfo.yaml diff --git a/openapi/components/schemas/external_accounts/UsdAccountInfo.yaml b/openapi/components/schemas/external_accounts/UsdAccountInfo.yaml new file mode 100644 index 00000000..6b113069 --- /dev/null +++ b/openapi/components/schemas/external_accounts/UsdAccountInfo.yaml @@ -0,0 +1,9 @@ +allOf: +- $ref: ./BaseExternalAccountInfo.yaml +- $ref: ../common/UsdAccountInfo.yaml +- type: object + required: + - beneficiary + properties: + beneficiary: + $ref: ./BeneficiaryOneOf.yaml diff --git a/openapi/components/schemas/external_accounts/VndAccountInfo.yaml b/openapi/components/schemas/external_accounts/VndAccountInfo.yaml new file mode 100644 index 00000000..dbe16439 --- /dev/null +++ b/openapi/components/schemas/external_accounts/VndAccountInfo.yaml @@ -0,0 +1,9 @@ +allOf: +- $ref: ./BaseExternalAccountInfo.yaml +- $ref: ../common/VndAccountInfo.yaml +- type: object + required: + - beneficiary + properties: + beneficiary: + $ref: ./BeneficiaryOneOf.yaml