diff --git a/mintlify/openapi.yaml b/mintlify/openapi.yaml index a57318f2..95fb00da 100644 --- a/mintlify/openapi.yaml +++ b/mintlify/openapi.yaml @@ -10558,6 +10558,74 @@ components: type: string description: Unique reference code that must be included with the payment to properly credit it example: UMA-Q12345-REF + SlvAccountInfoBase: + type: object + required: + - accountType + description: |- + Required fields depend on the selected paymentRails: + - BANK_TRANSFER: bankAccountType, accountNumber + - MOBILE_MONEY: phoneNumber + properties: + accountType: + type: string + enum: + - SLV_ACCOUNT + bankName: + type: string + description: The name of the bank (BANK_TRANSFER only) + minLength: 1 + maxLength: 255 + accountNumber: + type: string + description: The account number of the bank (BANK_TRANSFER only) + minLength: 1 + maxLength: 34 + bankAccountType: + type: string + description: The bank account type (BANK_TRANSFER only) + enum: + - CHECKING + - SAVINGS + phoneNumber: + type: string + description: The phone number in international format (MOBILE_MONEY only — e.g. Tigo Money) + example: '+50312345678' + minLength: 7 + maxLength: 15 + pattern: ^\+[0-9]{6,14}$ + example: + accountType: SLV_ACCOUNT + bankName: Banco Cuscatlan + accountNumber: '0123456789' + bankAccountType: CHECKING + SlvAccountInfo: + allOf: + - $ref: '#/components/schemas/SlvAccountInfoBase' + - type: object + required: + - paymentRails + properties: + paymentRails: + type: array + items: + type: string + enum: + - BANK_TRANSFER + - MOBILE_MONEY + PaymentSlvAccountInfo: + title: SLV Account + allOf: + - $ref: '#/components/schemas/BasePaymentAccountInfo' + - $ref: '#/components/schemas/SlvAccountInfo' + - 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 PaymentEmbeddedWalletInfo: title: Embedded Wallet allOf: @@ -10627,6 +10695,7 @@ components: - $ref: '#/components/schemas/PaymentHtgAccountInfo' - $ref: '#/components/schemas/PaymentJmdAccountInfo' - $ref: '#/components/schemas/PaymentPkrAccountInfo' + - $ref: '#/components/schemas/PaymentSlvAccountInfo' - $ref: '#/components/schemas/PaymentSparkWalletInfo' - $ref: '#/components/schemas/PaymentLightningInvoiceInfo' - $ref: '#/components/schemas/PaymentSolanaWalletInfo' @@ -10681,6 +10750,7 @@ components: HTG_ACCOUNT: '#/components/schemas/PaymentHtgAccountInfo' JMD_ACCOUNT: '#/components/schemas/PaymentJmdAccountInfo' PKR_ACCOUNT: '#/components/schemas/PaymentPkrAccountInfo' + SLV_ACCOUNT: '#/components/schemas/PaymentSlvAccountInfo' EMBEDDED_WALLET: '#/components/schemas/PaymentEmbeddedWalletInfo' InternalAccount: type: object @@ -10833,6 +10903,7 @@ components: - HTG_ACCOUNT - JMD_ACCOUNT - PKR_ACCOUNT + - SLV_ACCOUNT description: Type of external account or wallet example: GBP_ACCOUNT BaseExternalAccountInfo: @@ -12821,6 +12892,57 @@ components: mapping: INDIVIDUAL: '#/components/schemas/PkrBeneficiary' BUSINESS: '#/components/schemas/BusinessBeneficiary' + SlvBeneficiary: + 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 + countryOfResidence: + type: string + description: The country of residence of the beneficiary + address: + $ref: '#/components/schemas/Address' + SlvExternalAccountInfo: + title: SLV Account + allOf: + - $ref: '#/components/schemas/BaseExternalAccountInfo' + - $ref: '#/components/schemas/SlvAccountInfo' + - type: object + required: + - beneficiary + properties: + beneficiary: + oneOf: + - title: Individual Beneficiary + $ref: '#/components/schemas/SlvBeneficiary' + - title: Business Beneficiary + $ref: '#/components/schemas/BusinessBeneficiary' + discriminator: + propertyName: beneficiaryType + mapping: + INDIVIDUAL: '#/components/schemas/SlvBeneficiary' + BUSINESS: '#/components/schemas/BusinessBeneficiary' ExternalAccountInfoOneOf: oneOf: - $ref: '#/components/schemas/BrlExternalAccountInfo' @@ -12865,6 +12987,7 @@ components: - $ref: '#/components/schemas/HtgExternalAccountInfo' - $ref: '#/components/schemas/JmdExternalAccountInfo' - $ref: '#/components/schemas/PkrExternalAccountInfo' + - $ref: '#/components/schemas/SlvExternalAccountInfo' discriminator: propertyName: accountType mapping: @@ -12911,6 +13034,7 @@ components: JMD_ACCOUNT: '#/components/schemas/JmdExternalAccountInfo' LIGHTNING_ACCOUNT: '#/components/schemas/LightningExternalAccountInfo' PKR_ACCOUNT: '#/components/schemas/PkrExternalAccountInfo' + SLV_ACCOUNT: '#/components/schemas/SlvExternalAccountInfo' ExternalAccount: allOf: - type: object @@ -13672,6 +13796,26 @@ components: mapping: INDIVIDUAL: '#/components/schemas/PkrBeneficiary' BUSINESS: '#/components/schemas/BusinessBeneficiary' + SlvExternalAccountCreateInfo: + title: SLV Account + allOf: + - $ref: '#/components/schemas/BaseExternalAccountInfo' + - $ref: '#/components/schemas/SlvAccountInfoBase' + - type: object + required: + - beneficiary + properties: + beneficiary: + oneOf: + - title: Individual Beneficiary + $ref: '#/components/schemas/SlvBeneficiary' + - title: Business Beneficiary + $ref: '#/components/schemas/BusinessBeneficiary' + discriminator: + propertyName: beneficiaryType + mapping: + INDIVIDUAL: '#/components/schemas/SlvBeneficiary' + BUSINESS: '#/components/schemas/BusinessBeneficiary' ExternalAccountCreateInfoOneOf: oneOf: - $ref: '#/components/schemas/AedExternalAccountCreateInfo' @@ -13709,6 +13853,7 @@ components: - $ref: '#/components/schemas/HtgExternalAccountCreateInfo' - $ref: '#/components/schemas/JmdExternalAccountCreateInfo' - $ref: '#/components/schemas/PkrExternalAccountCreateInfo' + - $ref: '#/components/schemas/SlvExternalAccountCreateInfo' - $ref: '#/components/schemas/SparkWalletExternalAccountInfo' - $ref: '#/components/schemas/LightningExternalAccountInfo' - $ref: '#/components/schemas/SolanaWalletExternalAccountInfo' @@ -13754,6 +13899,7 @@ components: HTG_ACCOUNT: '#/components/schemas/HtgExternalAccountCreateInfo' JMD_ACCOUNT: '#/components/schemas/JmdExternalAccountCreateInfo' PKR_ACCOUNT: '#/components/schemas/PkrExternalAccountCreateInfo' + SLV_ACCOUNT: '#/components/schemas/SlvExternalAccountCreateInfo' SPARK_WALLET: '#/components/schemas/SparkWalletExternalAccountInfo' LIGHTNING: '#/components/schemas/LightningExternalAccountInfo' SOLANA_WALLET: '#/components/schemas/SolanaWalletExternalAccountInfo' diff --git a/openapi.yaml b/openapi.yaml index a57318f2..95fb00da 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -10558,6 +10558,74 @@ components: type: string description: Unique reference code that must be included with the payment to properly credit it example: UMA-Q12345-REF + SlvAccountInfoBase: + type: object + required: + - accountType + description: |- + Required fields depend on the selected paymentRails: + - BANK_TRANSFER: bankAccountType, accountNumber + - MOBILE_MONEY: phoneNumber + properties: + accountType: + type: string + enum: + - SLV_ACCOUNT + bankName: + type: string + description: The name of the bank (BANK_TRANSFER only) + minLength: 1 + maxLength: 255 + accountNumber: + type: string + description: The account number of the bank (BANK_TRANSFER only) + minLength: 1 + maxLength: 34 + bankAccountType: + type: string + description: The bank account type (BANK_TRANSFER only) + enum: + - CHECKING + - SAVINGS + phoneNumber: + type: string + description: The phone number in international format (MOBILE_MONEY only — e.g. Tigo Money) + example: '+50312345678' + minLength: 7 + maxLength: 15 + pattern: ^\+[0-9]{6,14}$ + example: + accountType: SLV_ACCOUNT + bankName: Banco Cuscatlan + accountNumber: '0123456789' + bankAccountType: CHECKING + SlvAccountInfo: + allOf: + - $ref: '#/components/schemas/SlvAccountInfoBase' + - type: object + required: + - paymentRails + properties: + paymentRails: + type: array + items: + type: string + enum: + - BANK_TRANSFER + - MOBILE_MONEY + PaymentSlvAccountInfo: + title: SLV Account + allOf: + - $ref: '#/components/schemas/BasePaymentAccountInfo' + - $ref: '#/components/schemas/SlvAccountInfo' + - 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 PaymentEmbeddedWalletInfo: title: Embedded Wallet allOf: @@ -10627,6 +10695,7 @@ components: - $ref: '#/components/schemas/PaymentHtgAccountInfo' - $ref: '#/components/schemas/PaymentJmdAccountInfo' - $ref: '#/components/schemas/PaymentPkrAccountInfo' + - $ref: '#/components/schemas/PaymentSlvAccountInfo' - $ref: '#/components/schemas/PaymentSparkWalletInfo' - $ref: '#/components/schemas/PaymentLightningInvoiceInfo' - $ref: '#/components/schemas/PaymentSolanaWalletInfo' @@ -10681,6 +10750,7 @@ components: HTG_ACCOUNT: '#/components/schemas/PaymentHtgAccountInfo' JMD_ACCOUNT: '#/components/schemas/PaymentJmdAccountInfo' PKR_ACCOUNT: '#/components/schemas/PaymentPkrAccountInfo' + SLV_ACCOUNT: '#/components/schemas/PaymentSlvAccountInfo' EMBEDDED_WALLET: '#/components/schemas/PaymentEmbeddedWalletInfo' InternalAccount: type: object @@ -10833,6 +10903,7 @@ components: - HTG_ACCOUNT - JMD_ACCOUNT - PKR_ACCOUNT + - SLV_ACCOUNT description: Type of external account or wallet example: GBP_ACCOUNT BaseExternalAccountInfo: @@ -12821,6 +12892,57 @@ components: mapping: INDIVIDUAL: '#/components/schemas/PkrBeneficiary' BUSINESS: '#/components/schemas/BusinessBeneficiary' + SlvBeneficiary: + 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 + countryOfResidence: + type: string + description: The country of residence of the beneficiary + address: + $ref: '#/components/schemas/Address' + SlvExternalAccountInfo: + title: SLV Account + allOf: + - $ref: '#/components/schemas/BaseExternalAccountInfo' + - $ref: '#/components/schemas/SlvAccountInfo' + - type: object + required: + - beneficiary + properties: + beneficiary: + oneOf: + - title: Individual Beneficiary + $ref: '#/components/schemas/SlvBeneficiary' + - title: Business Beneficiary + $ref: '#/components/schemas/BusinessBeneficiary' + discriminator: + propertyName: beneficiaryType + mapping: + INDIVIDUAL: '#/components/schemas/SlvBeneficiary' + BUSINESS: '#/components/schemas/BusinessBeneficiary' ExternalAccountInfoOneOf: oneOf: - $ref: '#/components/schemas/BrlExternalAccountInfo' @@ -12865,6 +12987,7 @@ components: - $ref: '#/components/schemas/HtgExternalAccountInfo' - $ref: '#/components/schemas/JmdExternalAccountInfo' - $ref: '#/components/schemas/PkrExternalAccountInfo' + - $ref: '#/components/schemas/SlvExternalAccountInfo' discriminator: propertyName: accountType mapping: @@ -12911,6 +13034,7 @@ components: JMD_ACCOUNT: '#/components/schemas/JmdExternalAccountInfo' LIGHTNING_ACCOUNT: '#/components/schemas/LightningExternalAccountInfo' PKR_ACCOUNT: '#/components/schemas/PkrExternalAccountInfo' + SLV_ACCOUNT: '#/components/schemas/SlvExternalAccountInfo' ExternalAccount: allOf: - type: object @@ -13672,6 +13796,26 @@ components: mapping: INDIVIDUAL: '#/components/schemas/PkrBeneficiary' BUSINESS: '#/components/schemas/BusinessBeneficiary' + SlvExternalAccountCreateInfo: + title: SLV Account + allOf: + - $ref: '#/components/schemas/BaseExternalAccountInfo' + - $ref: '#/components/schemas/SlvAccountInfoBase' + - type: object + required: + - beneficiary + properties: + beneficiary: + oneOf: + - title: Individual Beneficiary + $ref: '#/components/schemas/SlvBeneficiary' + - title: Business Beneficiary + $ref: '#/components/schemas/BusinessBeneficiary' + discriminator: + propertyName: beneficiaryType + mapping: + INDIVIDUAL: '#/components/schemas/SlvBeneficiary' + BUSINESS: '#/components/schemas/BusinessBeneficiary' ExternalAccountCreateInfoOneOf: oneOf: - $ref: '#/components/schemas/AedExternalAccountCreateInfo' @@ -13709,6 +13853,7 @@ components: - $ref: '#/components/schemas/HtgExternalAccountCreateInfo' - $ref: '#/components/schemas/JmdExternalAccountCreateInfo' - $ref: '#/components/schemas/PkrExternalAccountCreateInfo' + - $ref: '#/components/schemas/SlvExternalAccountCreateInfo' - $ref: '#/components/schemas/SparkWalletExternalAccountInfo' - $ref: '#/components/schemas/LightningExternalAccountInfo' - $ref: '#/components/schemas/SolanaWalletExternalAccountInfo' @@ -13754,6 +13899,7 @@ components: HTG_ACCOUNT: '#/components/schemas/HtgExternalAccountCreateInfo' JMD_ACCOUNT: '#/components/schemas/JmdExternalAccountCreateInfo' PKR_ACCOUNT: '#/components/schemas/PkrExternalAccountCreateInfo' + SLV_ACCOUNT: '#/components/schemas/SlvExternalAccountCreateInfo' SPARK_WALLET: '#/components/schemas/SparkWalletExternalAccountInfo' LIGHTNING: '#/components/schemas/LightningExternalAccountInfo' SOLANA_WALLET: '#/components/schemas/SolanaWalletExternalAccountInfo' diff --git a/openapi/components/schemas/common/PaymentInstructions.yaml b/openapi/components/schemas/common/PaymentInstructions.yaml index c8037cff..6145a412 100644 --- a/openapi/components/schemas/common/PaymentInstructions.yaml +++ b/openapi/components/schemas/common/PaymentInstructions.yaml @@ -50,6 +50,7 @@ properties: - $ref: ../common/PaymentHtgAccountInfo.yaml - $ref: ../common/PaymentJmdAccountInfo.yaml - $ref: ../common/PaymentPkrAccountInfo.yaml + - $ref: ../common/PaymentSlvAccountInfo.yaml - $ref: ../common/PaymentSparkWalletInfo.yaml - $ref: ../common/PaymentLightningInvoiceInfo.yaml - $ref: ../common/PaymentSolanaWalletInfo.yaml @@ -104,4 +105,5 @@ properties: HTG_ACCOUNT: ../common/PaymentHtgAccountInfo.yaml JMD_ACCOUNT: ../common/PaymentJmdAccountInfo.yaml PKR_ACCOUNT: ../common/PaymentPkrAccountInfo.yaml + SLV_ACCOUNT: ../common/PaymentSlvAccountInfo.yaml EMBEDDED_WALLET: ../common/PaymentEmbeddedWalletInfo.yaml diff --git a/openapi/components/schemas/common/PaymentSlvAccountInfo.yaml b/openapi/components/schemas/common/PaymentSlvAccountInfo.yaml new file mode 100644 index 00000000..15a2086a --- /dev/null +++ b/openapi/components/schemas/common/PaymentSlvAccountInfo.yaml @@ -0,0 +1,13 @@ +title: SLV Account +allOf: +- $ref: ./BasePaymentAccountInfo.yaml +- $ref: ./SlvAccountInfo.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/SlvAccountInfo.yaml b/openapi/components/schemas/common/SlvAccountInfo.yaml new file mode 100644 index 00000000..5c21bb74 --- /dev/null +++ b/openapi/components/schemas/common/SlvAccountInfo.yaml @@ -0,0 +1,13 @@ +allOf: +- $ref: ./SlvAccountInfoBase.yaml +- type: object + required: + - paymentRails + properties: + paymentRails: + type: array + items: + type: string + enum: + - BANK_TRANSFER + - MOBILE_MONEY diff --git a/openapi/components/schemas/common/SlvAccountInfoBase.yaml b/openapi/components/schemas/common/SlvAccountInfoBase.yaml new file mode 100644 index 00000000..224c2dff --- /dev/null +++ b/openapi/components/schemas/common/SlvAccountInfoBase.yaml @@ -0,0 +1,42 @@ +type: object +required: +- accountType +description: 'Required fields depend on the selected paymentRails: + + - BANK_TRANSFER: bankAccountType, accountNumber + + - MOBILE_MONEY: phoneNumber' +properties: + accountType: + type: string + enum: + - SLV_ACCOUNT + bankName: + type: string + description: The name of the bank (BANK_TRANSFER only) + minLength: 1 + maxLength: 255 + accountNumber: + type: string + description: The account number of the bank (BANK_TRANSFER only) + minLength: 1 + maxLength: 34 + bankAccountType: + type: string + description: The bank account type (BANK_TRANSFER only) + enum: + - CHECKING + - SAVINGS + phoneNumber: + type: string + description: The phone number in international format (MOBILE_MONEY only — e.g. + Tigo Money) + example: '+50312345678' + minLength: 7 + maxLength: 15 + pattern: ^\+[0-9]{6,14}$ +example: + accountType: SLV_ACCOUNT + bankName: Banco Cuscatlan + accountNumber: '0123456789' + bankAccountType: CHECKING diff --git a/openapi/components/schemas/common/SlvBeneficiary.yaml b/openapi/components/schemas/common/SlvBeneficiary.yaml new file mode 100644 index 00000000..d9332d63 --- /dev/null +++ b/openapi/components/schemas/common/SlvBeneficiary.yaml @@ -0,0 +1,30 @@ +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 + countryOfResidence: + type: string + description: The country of residence of the beneficiary + address: + $ref: ./Address.yaml diff --git a/openapi/components/schemas/external_accounts/ExternalAccountCreateInfoOneOf.yaml b/openapi/components/schemas/external_accounts/ExternalAccountCreateInfoOneOf.yaml index 9c56484f..bf8da25f 100644 --- a/openapi/components/schemas/external_accounts/ExternalAccountCreateInfoOneOf.yaml +++ b/openapi/components/schemas/external_accounts/ExternalAccountCreateInfoOneOf.yaml @@ -34,6 +34,7 @@ oneOf: - $ref: ./HtgExternalAccountCreateInfo.yaml - $ref: ./JmdExternalAccountCreateInfo.yaml - $ref: ./PkrExternalAccountCreateInfo.yaml +- $ref: ./SlvExternalAccountCreateInfo.yaml - $ref: ./SparkWalletExternalAccountInfo.yaml - $ref: ./LightningExternalAccountInfo.yaml - $ref: ./SolanaWalletExternalAccountInfo.yaml @@ -79,6 +80,7 @@ discriminator: HTG_ACCOUNT: ./HtgExternalAccountCreateInfo.yaml JMD_ACCOUNT: ./JmdExternalAccountCreateInfo.yaml PKR_ACCOUNT: ./PkrExternalAccountCreateInfo.yaml + SLV_ACCOUNT: ./SlvExternalAccountCreateInfo.yaml SPARK_WALLET: ./SparkWalletExternalAccountInfo.yaml LIGHTNING: ./LightningExternalAccountInfo.yaml SOLANA_WALLET: ./SolanaWalletExternalAccountInfo.yaml diff --git a/openapi/components/schemas/external_accounts/ExternalAccountInfoOneOf.yaml b/openapi/components/schemas/external_accounts/ExternalAccountInfoOneOf.yaml index 7e854603..a3640e0b 100644 --- a/openapi/components/schemas/external_accounts/ExternalAccountInfoOneOf.yaml +++ b/openapi/components/schemas/external_accounts/ExternalAccountInfoOneOf.yaml @@ -41,6 +41,7 @@ oneOf: - $ref: ./HtgExternalAccountInfo.yaml - $ref: ./JmdExternalAccountInfo.yaml - $ref: ./PkrExternalAccountInfo.yaml +- $ref: ./SlvExternalAccountInfo.yaml discriminator: propertyName: accountType mapping: @@ -87,3 +88,4 @@ discriminator: JMD_ACCOUNT: ./JmdExternalAccountInfo.yaml LIGHTNING_ACCOUNT: ./LightningExternalAccountInfo.yaml PKR_ACCOUNT: ./PkrExternalAccountInfo.yaml + SLV_ACCOUNT: ./SlvExternalAccountInfo.yaml diff --git a/openapi/components/schemas/external_accounts/ExternalAccountType.yaml b/openapi/components/schemas/external_accounts/ExternalAccountType.yaml index ab6ad066..f60494d0 100644 --- a/openapi/components/schemas/external_accounts/ExternalAccountType.yaml +++ b/openapi/components/schemas/external_accounts/ExternalAccountType.yaml @@ -42,5 +42,6 @@ enum: - HTG_ACCOUNT - JMD_ACCOUNT - PKR_ACCOUNT +- SLV_ACCOUNT description: Type of external account or wallet example: GBP_ACCOUNT diff --git a/openapi/components/schemas/external_accounts/SlvExternalAccountCreateInfo.yaml b/openapi/components/schemas/external_accounts/SlvExternalAccountCreateInfo.yaml new file mode 100644 index 00000000..46085dfa --- /dev/null +++ b/openapi/components/schemas/external_accounts/SlvExternalAccountCreateInfo.yaml @@ -0,0 +1,19 @@ +title: SLV Account +allOf: +- $ref: ./BaseExternalAccountInfo.yaml +- $ref: ../common/SlvAccountInfoBase.yaml +- type: object + required: + - beneficiary + properties: + beneficiary: + oneOf: + - title: Individual Beneficiary + $ref: ../common/SlvBeneficiary.yaml + - title: Business Beneficiary + $ref: ../common/BusinessBeneficiary.yaml + discriminator: + propertyName: beneficiaryType + mapping: + INDIVIDUAL: ../common/SlvBeneficiary.yaml + BUSINESS: ../common/BusinessBeneficiary.yaml diff --git a/openapi/components/schemas/external_accounts/SlvExternalAccountInfo.yaml b/openapi/components/schemas/external_accounts/SlvExternalAccountInfo.yaml new file mode 100644 index 00000000..9d552ea7 --- /dev/null +++ b/openapi/components/schemas/external_accounts/SlvExternalAccountInfo.yaml @@ -0,0 +1,19 @@ +title: SLV Account +allOf: +- $ref: ./BaseExternalAccountInfo.yaml +- $ref: ../common/SlvAccountInfo.yaml +- type: object + required: + - beneficiary + properties: + beneficiary: + oneOf: + - title: Individual Beneficiary + $ref: ../common/SlvBeneficiary.yaml + - title: Business Beneficiary + $ref: ../common/BusinessBeneficiary.yaml + discriminator: + propertyName: beneficiaryType + mapping: + INDIVIDUAL: ../common/SlvBeneficiary.yaml + BUSINESS: ../common/BusinessBeneficiary.yaml