diff --git a/openapi/components/schemas/common/BdtAccountInfo.yaml b/openapi/components/schemas/common/BdtAccountInfo.yaml new file mode 100644 index 00000000..d552be0f --- /dev/null +++ b/openapi/components/schemas/common/BdtAccountInfo.yaml @@ -0,0 +1,44 @@ +type: object +required: +- accountType +- paymentRails +- accountNumber +- branchCode +- phoneNumber +properties: + accountType: + type: string + enum: + - BDT_ACCOUNT + paymentRails: + type: array + items: + type: string + enum: + - BANK_TRANSFER + - MOBILE_MONEY + accountNumber: + type: string + description: The account number of the bank + minLength: 1 + maxLength: 34 + branchCode: + type: string + description: The branch code + minLength: 5 + maxLength: 5 + pattern: ^[0-9]{5}$ + swiftCode: + type: string + description: The SWIFT/BIC code of the bank + example: DEUTDEFF + minLength: 8 + maxLength: 11 + pattern: ^[A-Z]{4}[A-Z]{2}[A-Z0-9]{2}([A-Z0-9]{3})?$ + phoneNumber: + type: string + description: The phone number in international format + example: '+1234567890' + minLength: 7 + maxLength: 15 + pattern: ^\+[0-9]{6,14}$ diff --git a/openapi/components/schemas/common/BdtBeneficiary.yaml b/openapi/components/schemas/common/BdtBeneficiary.yaml new file mode 100644 index 00000000..c3941bc0 --- /dev/null +++ b/openapi/components/schemas/common/BdtBeneficiary.yaml @@ -0,0 +1,33 @@ +title: Individual Beneficiary +type: object +required: +- beneficiaryType +- fullName +properties: + beneficiaryType: + type: string + enum: + - INDIVIDUAL + 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: + $ref: ./Address.yaml diff --git a/openapi/components/schemas/common/CopAccountInfo.yaml b/openapi/components/schemas/common/CopAccountInfo.yaml new file mode 100644 index 00000000..0eb3d1c1 --- /dev/null +++ b/openapi/components/schemas/common/CopAccountInfo.yaml @@ -0,0 +1,37 @@ +type: object +required: +- accountType +- paymentRails +- accountNumber +- bankAccountType +- phoneNumber +properties: + accountType: + type: string + enum: + - COP_ACCOUNT + paymentRails: + type: array + items: + type: string + enum: + - BANK_TRANSFER + - MOBILE_MONEY + accountNumber: + type: string + description: The account number of the bank + minLength: 1 + maxLength: 34 + bankAccountType: + type: string + description: The bank account type + enum: + - CHECKING + - SAVINGS + phoneNumber: + type: string + description: The phone number in international format + example: '+1234567890' + minLength: 7 + maxLength: 15 + pattern: ^\+[0-9]{6,14}$ diff --git a/openapi/components/schemas/common/CopBeneficiary.yaml b/openapi/components/schemas/common/CopBeneficiary.yaml new file mode 100644 index 00000000..f4e67b24 --- /dev/null +++ b/openapi/components/schemas/common/CopBeneficiary.yaml @@ -0,0 +1,34 @@ +title: Individual Beneficiary +type: object +required: +- beneficiaryType +- countryOfResidence +- fullName +properties: + beneficiaryType: + type: string + enum: + - INDIVIDUAL + 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: + $ref: ./Address.yaml diff --git a/openapi/components/schemas/common/EgpAccountInfo.yaml b/openapi/components/schemas/common/EgpAccountInfo.yaml new file mode 100644 index 00000000..e3bc6765 --- /dev/null +++ b/openapi/components/schemas/common/EgpAccountInfo.yaml @@ -0,0 +1,35 @@ +type: object +required: +- accountType +- paymentRails +- accountNumber +properties: + accountType: + type: string + enum: + - EGP_ACCOUNT + paymentRails: + type: array + items: + type: string + enum: + - BANK_TRANSFER + accountNumber: + type: string + description: The account number of the bank + minLength: 1 + maxLength: 34 + iban: + type: string + description: The IBAN of the bank account + example: DE89370400440532013000 + minLength: 15 + maxLength: 34 + pattern: ^[A-Z]{2}[0-9]{2}[A-Za-z0-9]{11,30}$ + swiftCode: + type: string + description: The SWIFT/BIC code of the bank + example: DEUTDEFF + minLength: 8 + maxLength: 11 + pattern: ^[A-Z]{4}[A-Z]{2}[A-Z0-9]{2}([A-Z0-9]{3})?$ diff --git a/openapi/components/schemas/common/EgpBeneficiary.yaml b/openapi/components/schemas/common/EgpBeneficiary.yaml new file mode 100644 index 00000000..3afb6580 --- /dev/null +++ b/openapi/components/schemas/common/EgpBeneficiary.yaml @@ -0,0 +1,35 @@ +title: Individual Beneficiary +type: object +required: +- beneficiaryType +- countryOfResidence +- fullName +- phoneNumber +properties: + beneficiaryType: + type: string + enum: + - INDIVIDUAL + 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: + $ref: ./Address.yaml diff --git a/openapi/components/schemas/common/GhsAccountInfo.yaml b/openapi/components/schemas/common/GhsAccountInfo.yaml new file mode 100644 index 00000000..a345e7f7 --- /dev/null +++ b/openapi/components/schemas/common/GhsAccountInfo.yaml @@ -0,0 +1,30 @@ +type: object +required: +- accountType +- paymentRails +- accountNumber +- phoneNumber +properties: + accountType: + type: string + enum: + - GHS_ACCOUNT + paymentRails: + type: array + items: + type: string + enum: + - BANK_TRANSFER + - MOBILE_MONEY + accountNumber: + type: string + description: The account number of the bank + minLength: 1 + maxLength: 34 + phoneNumber: + type: string + description: The phone number in international format + example: '+1234567890' + minLength: 7 + maxLength: 15 + pattern: ^\+[0-9]{6,14}$ diff --git a/openapi/components/schemas/common/GhsBeneficiary.yaml b/openapi/components/schemas/common/GhsBeneficiary.yaml new file mode 100644 index 00000000..c3941bc0 --- /dev/null +++ b/openapi/components/schemas/common/GhsBeneficiary.yaml @@ -0,0 +1,33 @@ +title: Individual Beneficiary +type: object +required: +- beneficiaryType +- fullName +properties: + beneficiaryType: + type: string + enum: + - INDIVIDUAL + 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: + $ref: ./Address.yaml diff --git a/openapi/components/schemas/common/GtqAccountInfo.yaml b/openapi/components/schemas/common/GtqAccountInfo.yaml new file mode 100644 index 00000000..4fc089af --- /dev/null +++ b/openapi/components/schemas/common/GtqAccountInfo.yaml @@ -0,0 +1,30 @@ +type: object +required: +- accountType +- paymentRails +- accountNumber +- phoneNumber +properties: + accountType: + type: string + enum: + - GTQ_ACCOUNT + paymentRails: + type: array + items: + type: string + enum: + - BANK_TRANSFER + - MOBILE_MONEY + accountNumber: + type: string + description: The account number of the bank + minLength: 1 + maxLength: 34 + phoneNumber: + type: string + description: The phone number in international format + example: '+1234567890' + minLength: 7 + maxLength: 15 + pattern: ^\+[0-9]{6,14}$ diff --git a/openapi/components/schemas/common/GtqBeneficiary.yaml b/openapi/components/schemas/common/GtqBeneficiary.yaml new file mode 100644 index 00000000..f4e67b24 --- /dev/null +++ b/openapi/components/schemas/common/GtqBeneficiary.yaml @@ -0,0 +1,34 @@ +title: Individual Beneficiary +type: object +required: +- beneficiaryType +- countryOfResidence +- fullName +properties: + beneficiaryType: + type: string + enum: + - INDIVIDUAL + 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: + $ref: ./Address.yaml diff --git a/openapi/components/schemas/common/HtgAccountInfo.yaml b/openapi/components/schemas/common/HtgAccountInfo.yaml new file mode 100644 index 00000000..03bc16b9 --- /dev/null +++ b/openapi/components/schemas/common/HtgAccountInfo.yaml @@ -0,0 +1,23 @@ +type: object +required: +- accountType +- paymentRails +- phoneNumber +properties: + accountType: + type: string + enum: + - HTG_ACCOUNT + paymentRails: + type: array + items: + type: string + enum: + - MOBILE_MONEY + phoneNumber: + type: string + description: The phone number in international format + example: '+1234567890' + minLength: 7 + maxLength: 15 + pattern: ^\+[0-9]{6,14}$ diff --git a/openapi/components/schemas/common/HtgBeneficiary.yaml b/openapi/components/schemas/common/HtgBeneficiary.yaml new file mode 100644 index 00000000..c3941bc0 --- /dev/null +++ b/openapi/components/schemas/common/HtgBeneficiary.yaml @@ -0,0 +1,33 @@ +title: Individual Beneficiary +type: object +required: +- beneficiaryType +- fullName +properties: + beneficiaryType: + type: string + enum: + - INDIVIDUAL + 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: + $ref: ./Address.yaml diff --git a/openapi/components/schemas/common/JmdAccountInfo.yaml b/openapi/components/schemas/common/JmdAccountInfo.yaml new file mode 100644 index 00000000..4118d807 --- /dev/null +++ b/openapi/components/schemas/common/JmdAccountInfo.yaml @@ -0,0 +1,35 @@ +type: object +required: +- accountType +- paymentRails +- accountNumber +- branchCode +- bankAccountType +properties: + accountType: + type: string + enum: + - JMD_ACCOUNT + paymentRails: + type: array + items: + type: string + enum: + - BANK_TRANSFER + accountNumber: + type: string + description: The account number of the bank + minLength: 1 + maxLength: 34 + branchCode: + type: string + description: The branch code + minLength: 5 + maxLength: 5 + pattern: ^[0-9]{5}$ + bankAccountType: + type: string + description: The bank account type + enum: + - CHECKING + - SAVINGS diff --git a/openapi/components/schemas/common/JmdBeneficiary.yaml b/openapi/components/schemas/common/JmdBeneficiary.yaml new file mode 100644 index 00000000..c1251175 --- /dev/null +++ b/openapi/components/schemas/common/JmdBeneficiary.yaml @@ -0,0 +1,34 @@ +title: Individual Beneficiary +type: object +required: +- beneficiaryType +- fullName +- phoneNumber +properties: + beneficiaryType: + type: string + enum: + - INDIVIDUAL + 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: + $ref: ./Address.yaml diff --git a/openapi/components/schemas/common/PaymentBdtAccountInfo.yaml b/openapi/components/schemas/common/PaymentBdtAccountInfo.yaml new file mode 100644 index 00000000..975eb587 --- /dev/null +++ b/openapi/components/schemas/common/PaymentBdtAccountInfo.yaml @@ -0,0 +1,13 @@ +title: BDT Account +allOf: +- $ref: ./BasePaymentAccountInfo.yaml +- $ref: ./BdtAccountInfo.yaml +- type: object + required: + - reference + properties: + reference: + type: string + description: Unique reference code that must be included with the payment to + properly credit it + example: UMA-Q12345-REF diff --git a/openapi/components/schemas/common/PaymentCopAccountInfo.yaml b/openapi/components/schemas/common/PaymentCopAccountInfo.yaml new file mode 100644 index 00000000..f3b401b2 --- /dev/null +++ b/openapi/components/schemas/common/PaymentCopAccountInfo.yaml @@ -0,0 +1,13 @@ +title: COP Account +allOf: +- $ref: ./BasePaymentAccountInfo.yaml +- $ref: ./CopAccountInfo.yaml +- type: object + required: + - reference + properties: + reference: + type: string + description: Unique reference code that must be included with the payment to + properly credit it + example: UMA-Q12345-REF diff --git a/openapi/components/schemas/common/PaymentEgpAccountInfo.yaml b/openapi/components/schemas/common/PaymentEgpAccountInfo.yaml new file mode 100644 index 00000000..bd4d3114 --- /dev/null +++ b/openapi/components/schemas/common/PaymentEgpAccountInfo.yaml @@ -0,0 +1,13 @@ +title: EGP Account +allOf: +- $ref: ./BasePaymentAccountInfo.yaml +- $ref: ./EgpAccountInfo.yaml +- type: object + required: + - reference + properties: + reference: + type: string + description: Unique reference code that must be included with the payment to + properly credit it + example: UMA-Q12345-REF diff --git a/openapi/components/schemas/common/PaymentGhsAccountInfo.yaml b/openapi/components/schemas/common/PaymentGhsAccountInfo.yaml new file mode 100644 index 00000000..ad9a6e43 --- /dev/null +++ b/openapi/components/schemas/common/PaymentGhsAccountInfo.yaml @@ -0,0 +1,13 @@ +title: GHS Account +allOf: +- $ref: ./BasePaymentAccountInfo.yaml +- $ref: ./GhsAccountInfo.yaml +- type: object + required: + - reference + properties: + reference: + type: string + description: Unique reference code that must be included with the payment to + properly credit it + example: UMA-Q12345-REF diff --git a/openapi/components/schemas/common/PaymentGtqAccountInfo.yaml b/openapi/components/schemas/common/PaymentGtqAccountInfo.yaml new file mode 100644 index 00000000..79f63347 --- /dev/null +++ b/openapi/components/schemas/common/PaymentGtqAccountInfo.yaml @@ -0,0 +1,13 @@ +title: GTQ Account +allOf: +- $ref: ./BasePaymentAccountInfo.yaml +- $ref: ./GtqAccountInfo.yaml +- type: object + required: + - reference + properties: + reference: + type: string + description: Unique reference code that must be included with the payment to + properly credit it + example: UMA-Q12345-REF diff --git a/openapi/components/schemas/common/PaymentHtgAccountInfo.yaml b/openapi/components/schemas/common/PaymentHtgAccountInfo.yaml new file mode 100644 index 00000000..d2cd4700 --- /dev/null +++ b/openapi/components/schemas/common/PaymentHtgAccountInfo.yaml @@ -0,0 +1,13 @@ +title: HTG Account +allOf: +- $ref: ./BasePaymentAccountInfo.yaml +- $ref: ./HtgAccountInfo.yaml +- type: object + required: + - reference + properties: + reference: + type: string + description: Unique reference code that must be included with the payment to + properly credit it + example: UMA-Q12345-REF diff --git a/openapi/components/schemas/common/PaymentInstructions.yaml b/openapi/components/schemas/common/PaymentInstructions.yaml index 313e482d..a7b8b3b5 100644 --- a/openapi/components/schemas/common/PaymentInstructions.yaml +++ b/openapi/components/schemas/common/PaymentInstructions.yaml @@ -41,6 +41,14 @@ properties: - $ref: ../common/PaymentZmwAccountInfo.yaml - $ref: ../common/PaymentBwpAccountInfo.yaml - $ref: ../common/PaymentXafAccountInfo.yaml + - $ref: ../common/PaymentBdtAccountInfo.yaml + - $ref: ../common/PaymentCopAccountInfo.yaml + - $ref: ../common/PaymentEgpAccountInfo.yaml + - $ref: ../common/PaymentGhsAccountInfo.yaml + - $ref: ../common/PaymentGtqAccountInfo.yaml + - $ref: ../common/PaymentHtgAccountInfo.yaml + - $ref: ../common/PaymentJmdAccountInfo.yaml + - $ref: ../common/PaymentPkrAccountInfo.yaml - $ref: ../common/PaymentSparkWalletInfo.yaml - $ref: ../common/PaymentLightningInvoiceInfo.yaml - $ref: ../common/PaymentSolanaWalletInfo.yaml @@ -85,3 +93,11 @@ properties: ZMW_ACCOUNT: ../common/PaymentZmwAccountInfo.yaml BWP_ACCOUNT: ../common/PaymentBwpAccountInfo.yaml XAF_ACCOUNT: ../common/PaymentXafAccountInfo.yaml + BDT_ACCOUNT: ../common/PaymentBdtAccountInfo.yaml + COP_ACCOUNT: ../common/PaymentCopAccountInfo.yaml + EGP_ACCOUNT: ../common/PaymentEgpAccountInfo.yaml + GHS_ACCOUNT: ../common/PaymentGhsAccountInfo.yaml + GTQ_ACCOUNT: ../common/PaymentGtqAccountInfo.yaml + HTG_ACCOUNT: ../common/PaymentHtgAccountInfo.yaml + JMD_ACCOUNT: ../common/PaymentJmdAccountInfo.yaml + PKR_ACCOUNT: ../common/PaymentPkrAccountInfo.yaml diff --git a/openapi/components/schemas/common/PaymentJmdAccountInfo.yaml b/openapi/components/schemas/common/PaymentJmdAccountInfo.yaml new file mode 100644 index 00000000..00d7fca2 --- /dev/null +++ b/openapi/components/schemas/common/PaymentJmdAccountInfo.yaml @@ -0,0 +1,13 @@ +title: JMD Account +allOf: +- $ref: ./BasePaymentAccountInfo.yaml +- $ref: ./JmdAccountInfo.yaml +- type: object + required: + - reference + properties: + reference: + type: string + description: Unique reference code that must be included with the payment to + properly credit it + example: UMA-Q12345-REF diff --git a/openapi/components/schemas/common/PaymentPkrAccountInfo.yaml b/openapi/components/schemas/common/PaymentPkrAccountInfo.yaml new file mode 100644 index 00000000..8c44d7e3 --- /dev/null +++ b/openapi/components/schemas/common/PaymentPkrAccountInfo.yaml @@ -0,0 +1,13 @@ +title: PKR Account +allOf: +- $ref: ./BasePaymentAccountInfo.yaml +- $ref: ./PkrAccountInfo.yaml +- type: object + required: + - reference + properties: + reference: + type: string + description: Unique reference code that must be included with the payment to + properly credit it + example: UMA-Q12345-REF diff --git a/openapi/components/schemas/common/PkrAccountInfo.yaml b/openapi/components/schemas/common/PkrAccountInfo.yaml new file mode 100644 index 00000000..d5a3f6a2 --- /dev/null +++ b/openapi/components/schemas/common/PkrAccountInfo.yaml @@ -0,0 +1,37 @@ +type: object +required: +- accountType +- paymentRails +- accountNumber +- phoneNumber +properties: + accountType: + type: string + enum: + - PKR_ACCOUNT + paymentRails: + type: array + items: + type: string + enum: + - BANK_TRANSFER + - MOBILE_MONEY + accountNumber: + type: string + description: The account number of the bank + minLength: 1 + maxLength: 34 + iban: + type: string + description: The IBAN of the bank account + example: DE89370400440532013000 + minLength: 15 + maxLength: 34 + pattern: ^[A-Z]{2}[0-9]{2}[A-Za-z0-9]{11,30}$ + phoneNumber: + type: string + description: The phone number in international format + example: '+1234567890' + minLength: 7 + maxLength: 15 + pattern: ^\+[0-9]{6,14}$ diff --git a/openapi/components/schemas/common/PkrBeneficiary.yaml b/openapi/components/schemas/common/PkrBeneficiary.yaml new file mode 100644 index 00000000..c3941bc0 --- /dev/null +++ b/openapi/components/schemas/common/PkrBeneficiary.yaml @@ -0,0 +1,33 @@ +title: Individual Beneficiary +type: object +required: +- beneficiaryType +- fullName +properties: + beneficiaryType: + type: string + enum: + - INDIVIDUAL + 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: + $ref: ./Address.yaml diff --git a/openapi/components/schemas/common/UsdAccountInfo.yaml b/openapi/components/schemas/common/UsdAccountInfo.yaml index a32428c0..d592f529 100644 --- a/openapi/components/schemas/common/UsdAccountInfo.yaml +++ b/openapi/components/schemas/common/UsdAccountInfo.yaml @@ -18,6 +18,7 @@ properties: - WIRE - RTP - FEDNOW + - BANK_TRANSFER accountNumber: type: string description: The account number of the bank diff --git a/openapi/components/schemas/common/UsdBeneficiary.yaml b/openapi/components/schemas/common/UsdBeneficiary.yaml index 47504c86..c3941bc0 100644 --- a/openapi/components/schemas/common/UsdBeneficiary.yaml +++ b/openapi/components/schemas/common/UsdBeneficiary.yaml @@ -2,9 +2,7 @@ title: Individual Beneficiary type: object required: - beneficiaryType -- birthDate - fullName -- nationality properties: beneficiaryType: type: string diff --git a/openapi/components/schemas/external_accounts/BdtExternalAccountInfo.yaml b/openapi/components/schemas/external_accounts/BdtExternalAccountInfo.yaml new file mode 100644 index 00000000..f3f92455 --- /dev/null +++ b/openapi/components/schemas/external_accounts/BdtExternalAccountInfo.yaml @@ -0,0 +1,19 @@ +title: BDT Account +allOf: +- $ref: ./BaseExternalAccountInfo.yaml +- $ref: ../common/BdtAccountInfo.yaml +- type: object + required: + - beneficiary + properties: + beneficiary: + oneOf: + - title: Individual Beneficiary + $ref: ../common/BdtBeneficiary.yaml + - title: Business Beneficiary + $ref: ../common/BusinessBeneficiary.yaml + discriminator: + propertyName: beneficiaryType + mapping: + INDIVIDUAL: ../common/BdtBeneficiary.yaml + BUSINESS: ../common/BusinessBeneficiary.yaml diff --git a/openapi/components/schemas/external_accounts/CopExternalAccountInfo.yaml b/openapi/components/schemas/external_accounts/CopExternalAccountInfo.yaml new file mode 100644 index 00000000..18e54d80 --- /dev/null +++ b/openapi/components/schemas/external_accounts/CopExternalAccountInfo.yaml @@ -0,0 +1,19 @@ +title: COP Account +allOf: +- $ref: ./BaseExternalAccountInfo.yaml +- $ref: ../common/CopAccountInfo.yaml +- type: object + required: + - beneficiary + properties: + beneficiary: + oneOf: + - title: Individual Beneficiary + $ref: ../common/CopBeneficiary.yaml + - title: Business Beneficiary + $ref: ../common/BusinessBeneficiary.yaml + discriminator: + propertyName: beneficiaryType + mapping: + INDIVIDUAL: ../common/CopBeneficiary.yaml + BUSINESS: ../common/BusinessBeneficiary.yaml diff --git a/openapi/components/schemas/external_accounts/EgpExternalAccountInfo.yaml b/openapi/components/schemas/external_accounts/EgpExternalAccountInfo.yaml new file mode 100644 index 00000000..15883e1b --- /dev/null +++ b/openapi/components/schemas/external_accounts/EgpExternalAccountInfo.yaml @@ -0,0 +1,19 @@ +title: EGP Account +allOf: +- $ref: ./BaseExternalAccountInfo.yaml +- $ref: ../common/EgpAccountInfo.yaml +- type: object + required: + - beneficiary + properties: + beneficiary: + oneOf: + - title: Individual Beneficiary + $ref: ../common/EgpBeneficiary.yaml + - title: Business Beneficiary + $ref: ../common/BusinessBeneficiary.yaml + discriminator: + propertyName: beneficiaryType + mapping: + INDIVIDUAL: ../common/EgpBeneficiary.yaml + BUSINESS: ../common/BusinessBeneficiary.yaml diff --git a/openapi/components/schemas/external_accounts/ExternalAccountInfoOneOf.yaml b/openapi/components/schemas/external_accounts/ExternalAccountInfoOneOf.yaml index b673623f..7e854603 100644 --- a/openapi/components/schemas/external_accounts/ExternalAccountInfoOneOf.yaml +++ b/openapi/components/schemas/external_accounts/ExternalAccountInfoOneOf.yaml @@ -33,6 +33,14 @@ oneOf: - $ref: ./AedExternalAccountInfo.yaml - $ref: ./BwpExternalAccountInfo.yaml - $ref: ./XafExternalAccountInfo.yaml +- $ref: ./BdtExternalAccountInfo.yaml +- $ref: ./CopExternalAccountInfo.yaml +- $ref: ./EgpExternalAccountInfo.yaml +- $ref: ./GhsExternalAccountInfo.yaml +- $ref: ./GtqExternalAccountInfo.yaml +- $ref: ./HtgExternalAccountInfo.yaml +- $ref: ./JmdExternalAccountInfo.yaml +- $ref: ./PkrExternalAccountInfo.yaml discriminator: propertyName: accountType mapping: @@ -70,3 +78,12 @@ discriminator: AED_ACCOUNT: ./AedExternalAccountInfo.yaml BWP_ACCOUNT: ./BwpExternalAccountInfo.yaml XAF_ACCOUNT: ./XafExternalAccountInfo.yaml + BDT_ACCOUNT: ./BdtExternalAccountInfo.yaml + COP_ACCOUNT: ./CopExternalAccountInfo.yaml + EGP_ACCOUNT: ./EgpExternalAccountInfo.yaml + GHS_ACCOUNT: ./GhsExternalAccountInfo.yaml + GTQ_ACCOUNT: ./GtqExternalAccountInfo.yaml + HTG_ACCOUNT: ./HtgExternalAccountInfo.yaml + JMD_ACCOUNT: ./JmdExternalAccountInfo.yaml + LIGHTNING_ACCOUNT: ./LightningExternalAccountInfo.yaml + PKR_ACCOUNT: ./PkrExternalAccountInfo.yaml diff --git a/openapi/components/schemas/external_accounts/GhsExternalAccountInfo.yaml b/openapi/components/schemas/external_accounts/GhsExternalAccountInfo.yaml new file mode 100644 index 00000000..10400588 --- /dev/null +++ b/openapi/components/schemas/external_accounts/GhsExternalAccountInfo.yaml @@ -0,0 +1,19 @@ +title: GHS Account +allOf: +- $ref: ./BaseExternalAccountInfo.yaml +- $ref: ../common/GhsAccountInfo.yaml +- type: object + required: + - beneficiary + properties: + beneficiary: + oneOf: + - title: Individual Beneficiary + $ref: ../common/GhsBeneficiary.yaml + - title: Business Beneficiary + $ref: ../common/BusinessBeneficiary.yaml + discriminator: + propertyName: beneficiaryType + mapping: + INDIVIDUAL: ../common/GhsBeneficiary.yaml + BUSINESS: ../common/BusinessBeneficiary.yaml diff --git a/openapi/components/schemas/external_accounts/GtqExternalAccountInfo.yaml b/openapi/components/schemas/external_accounts/GtqExternalAccountInfo.yaml new file mode 100644 index 00000000..634f927c --- /dev/null +++ b/openapi/components/schemas/external_accounts/GtqExternalAccountInfo.yaml @@ -0,0 +1,19 @@ +title: GTQ Account +allOf: +- $ref: ./BaseExternalAccountInfo.yaml +- $ref: ../common/GtqAccountInfo.yaml +- type: object + required: + - beneficiary + properties: + beneficiary: + oneOf: + - title: Individual Beneficiary + $ref: ../common/GtqBeneficiary.yaml + - title: Business Beneficiary + $ref: ../common/BusinessBeneficiary.yaml + discriminator: + propertyName: beneficiaryType + mapping: + INDIVIDUAL: ../common/GtqBeneficiary.yaml + BUSINESS: ../common/BusinessBeneficiary.yaml diff --git a/openapi/components/schemas/external_accounts/HtgExternalAccountInfo.yaml b/openapi/components/schemas/external_accounts/HtgExternalAccountInfo.yaml new file mode 100644 index 00000000..73b39982 --- /dev/null +++ b/openapi/components/schemas/external_accounts/HtgExternalAccountInfo.yaml @@ -0,0 +1,19 @@ +title: HTG Account +allOf: +- $ref: ./BaseExternalAccountInfo.yaml +- $ref: ../common/HtgAccountInfo.yaml +- type: object + required: + - beneficiary + properties: + beneficiary: + oneOf: + - title: Individual Beneficiary + $ref: ../common/HtgBeneficiary.yaml + - title: Business Beneficiary + $ref: ../common/BusinessBeneficiary.yaml + discriminator: + propertyName: beneficiaryType + mapping: + INDIVIDUAL: ../common/HtgBeneficiary.yaml + BUSINESS: ../common/BusinessBeneficiary.yaml diff --git a/openapi/components/schemas/external_accounts/JmdExternalAccountInfo.yaml b/openapi/components/schemas/external_accounts/JmdExternalAccountInfo.yaml new file mode 100644 index 00000000..315dea2c --- /dev/null +++ b/openapi/components/schemas/external_accounts/JmdExternalAccountInfo.yaml @@ -0,0 +1,19 @@ +title: JMD Account +allOf: +- $ref: ./BaseExternalAccountInfo.yaml +- $ref: ../common/JmdAccountInfo.yaml +- type: object + required: + - beneficiary + properties: + beneficiary: + oneOf: + - title: Individual Beneficiary + $ref: ../common/JmdBeneficiary.yaml + - title: Business Beneficiary + $ref: ../common/BusinessBeneficiary.yaml + discriminator: + propertyName: beneficiaryType + mapping: + INDIVIDUAL: ../common/JmdBeneficiary.yaml + BUSINESS: ../common/BusinessBeneficiary.yaml diff --git a/openapi/components/schemas/external_accounts/PkrExternalAccountInfo.yaml b/openapi/components/schemas/external_accounts/PkrExternalAccountInfo.yaml new file mode 100644 index 00000000..817a9dc7 --- /dev/null +++ b/openapi/components/schemas/external_accounts/PkrExternalAccountInfo.yaml @@ -0,0 +1,19 @@ +title: PKR Account +allOf: +- $ref: ./BaseExternalAccountInfo.yaml +- $ref: ../common/PkrAccountInfo.yaml +- type: object + required: + - beneficiary + properties: + beneficiary: + oneOf: + - title: Individual Beneficiary + $ref: ../common/PkrBeneficiary.yaml + - title: Business Beneficiary + $ref: ../common/BusinessBeneficiary.yaml + discriminator: + propertyName: beneficiaryType + mapping: + INDIVIDUAL: ../common/PkrBeneficiary.yaml + BUSINESS: ../common/BusinessBeneficiary.yaml