diff --git a/.stainless/stainless.yml b/.stainless/stainless.yml index 6caeba56..06457154 100644 --- a/.stainless/stainless.yml +++ b/.stainless/stainless.yml @@ -111,6 +111,7 @@ resources: models: usd_account_info: '#/components/schemas/UsdExternalAccountInfo' brl_account_info: '#/components/schemas/BrlExternalAccountInfo' + cad_account_info: '#/components/schemas/CadExternalAccountInfo' mxn_account_info: '#/components/schemas/MxnExternalAccountInfo' dkk_account_info: '#/components/schemas/DkkExternalAccountInfo' inr_account_info: '#/components/schemas/InrExternalAccountInfo' @@ -118,6 +119,7 @@ resources: hkd_account_info: '#/components/schemas/HkdExternalAccountInfo' idr_account_info: '#/components/schemas/IdrExternalAccountInfo' myr_account_info: '#/components/schemas/MyrExternalAccountInfo' + ngn_account_info: '#/components/schemas/NgnExternalAccountInfo' php_account_info: '#/components/schemas/PhpExternalAccountInfo' sgd_account_info: '#/components/schemas/SgdExternalAccountInfo' thb_account_info: '#/components/schemas/ThbExternalAccountInfo' diff --git a/mintlify/openapi.yaml b/mintlify/openapi.yaml index 15d17025..13522163 100644 --- a/mintlify/openapi.yaml +++ b/mintlify/openapi.yaml @@ -5628,6 +5628,7 @@ components: - POLYGON_WALLET - BASE_WALLET - BRL_ACCOUNT + - CAD_ACCOUNT - DKK_ACCOUNT - EUR_ACCOUNT - HKD_ACCOUNT @@ -5635,6 +5636,7 @@ components: - INR_ACCOUNT - MXN_ACCOUNT - MYR_ACCOUNT + - NGN_ACCOUNT - THB_ACCOUNT - USD_ACCOUNT - VND_ACCOUNT @@ -5730,6 +5732,59 @@ components: mapping: INDIVIDUAL: '#/components/schemas/BrlBeneficiary' BUSINESS: '#/components/schemas/BusinessBeneficiary' + CadBeneficiary: + 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: '#/components/schemas/Address' + CadExternalAccountInfo: + title: CAD Account + allOf: + - $ref: '#/components/schemas/BaseExternalAccountInfo' + - $ref: '#/components/schemas/CadAccountInfo' + - type: object + required: + - beneficiary + properties: + beneficiary: + oneOf: + - title: Individual Beneficiary + $ref: '#/components/schemas/CadBeneficiary' + - title: Business Beneficiary + $ref: '#/components/schemas/BusinessBeneficiary' + discriminator: + propertyName: beneficiaryType + mapping: + INDIVIDUAL: '#/components/schemas/CadBeneficiary' + BUSINESS: '#/components/schemas/BusinessBeneficiary' DkkBeneficiary: title: Individual Beneficiary type: object @@ -6146,6 +6201,59 @@ components: mapping: INDIVIDUAL: '#/components/schemas/MyrBeneficiary' BUSINESS: '#/components/schemas/BusinessBeneficiary' + NgnBeneficiary: + 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: '#/components/schemas/Address' + NgnExternalAccountInfo: + title: NGN Account + allOf: + - $ref: '#/components/schemas/BaseExternalAccountInfo' + - $ref: '#/components/schemas/NgnAccountInfo' + - type: object + required: + - beneficiary + properties: + beneficiary: + oneOf: + - title: Individual Beneficiary + $ref: '#/components/schemas/NgnBeneficiary' + - title: Business Beneficiary + $ref: '#/components/schemas/BusinessBeneficiary' + discriminator: + propertyName: beneficiaryType + mapping: + INDIVIDUAL: '#/components/schemas/NgnBeneficiary' + BUSINESS: '#/components/schemas/BusinessBeneficiary' PhpBeneficiary: title: Individual Beneficiary type: object @@ -6463,30 +6571,55 @@ components: - $ref: '#/components/schemas/BaseWalletInfo' ExternalAccountInfoOneOf: oneOf: - - $ref: '#/components/schemas/BrlExternalAccountInfo' - - $ref: '#/components/schemas/DkkExternalAccountInfo' - - $ref: '#/components/schemas/EurExternalAccountInfo' - - $ref: '#/components/schemas/GbpExternalAccountInfo' - - $ref: '#/components/schemas/HkdExternalAccountInfo' - - $ref: '#/components/schemas/IdrExternalAccountInfo' - - $ref: '#/components/schemas/InrExternalAccountInfo' - - $ref: '#/components/schemas/MxnExternalAccountInfo' - - $ref: '#/components/schemas/MyrExternalAccountInfo' - - $ref: '#/components/schemas/PhpExternalAccountInfo' - - $ref: '#/components/schemas/SgdExternalAccountInfo' - - $ref: '#/components/schemas/ThbExternalAccountInfo' - - $ref: '#/components/schemas/UsdExternalAccountInfo' - - $ref: '#/components/schemas/VndExternalAccountInfo' - - $ref: '#/components/schemas/SparkWalletExternalAccountInfo' - - $ref: '#/components/schemas/LightningExternalAccountInfo' - - $ref: '#/components/schemas/SolanaWalletExternalAccountInfo' - - $ref: '#/components/schemas/TronWalletExternalAccountInfo' - - $ref: '#/components/schemas/PolygonWalletExternalAccountInfo' - - $ref: '#/components/schemas/BaseWalletExternalAccountInfo' + - title: BRL Account + $ref: '#/components/schemas/BrlExternalAccountInfo' + - title: CAD Account + $ref: '#/components/schemas/CadExternalAccountInfo' + - title: DKK Account + $ref: '#/components/schemas/DkkExternalAccountInfo' + - title: EUR Account + $ref: '#/components/schemas/EurExternalAccountInfo' + - title: GBP Account + $ref: '#/components/schemas/GbpExternalAccountInfo' + - title: HKD Account + $ref: '#/components/schemas/HkdExternalAccountInfo' + - title: IDR Account + $ref: '#/components/schemas/IdrExternalAccountInfo' + - title: INR Account + $ref: '#/components/schemas/InrExternalAccountInfo' + - title: MXN Account + $ref: '#/components/schemas/MxnExternalAccountInfo' + - title: MYR Account + $ref: '#/components/schemas/MyrExternalAccountInfo' + - title: NGN Account + $ref: '#/components/schemas/NgnExternalAccountInfo' + - title: PHP Account + $ref: '#/components/schemas/PhpExternalAccountInfo' + - title: SGD Account + $ref: '#/components/schemas/SgdExternalAccountInfo' + - title: THB Account + $ref: '#/components/schemas/ThbExternalAccountInfo' + - title: USD Account + $ref: '#/components/schemas/UsdExternalAccountInfo' + - title: VND Account + $ref: '#/components/schemas/VndExternalAccountInfo' + - title: Spark Wallet + $ref: '#/components/schemas/SparkWalletExternalAccountInfo' + - title: Lightning + $ref: '#/components/schemas/LightningExternalAccountInfo' + - title: Solana Wallet + $ref: '#/components/schemas/SolanaWalletExternalAccountInfo' + - title: Tron Wallet + $ref: '#/components/schemas/TronWalletExternalAccountInfo' + - title: Polygon Wallet + $ref: '#/components/schemas/PolygonWalletExternalAccountInfo' + - title: Base Wallet + $ref: '#/components/schemas/BaseWalletExternalAccountInfo' discriminator: propertyName: accountType mapping: BRL_ACCOUNT: '#/components/schemas/BrlExternalAccountInfo' + CAD_ACCOUNT: '#/components/schemas/CadExternalAccountInfo' DKK_ACCOUNT: '#/components/schemas/DkkExternalAccountInfo' EUR_ACCOUNT: '#/components/schemas/EurExternalAccountInfo' GBP_ACCOUNT: '#/components/schemas/GbpExternalAccountInfo' @@ -6495,6 +6628,7 @@ components: INR_ACCOUNT: '#/components/schemas/InrExternalAccountInfo' MXN_ACCOUNT: '#/components/schemas/MxnExternalAccountInfo' MYR_ACCOUNT: '#/components/schemas/MyrExternalAccountInfo' + NGN_ACCOUNT: '#/components/schemas/NgnExternalAccountInfo' PHP_ACCOUNT: '#/components/schemas/PhpExternalAccountInfo' SGD_ACCOUNT: '#/components/schemas/SgdExternalAccountInfo' THB_ACCOUNT: '#/components/schemas/ThbExternalAccountInfo' diff --git a/openapi.yaml b/openapi.yaml index 15d17025..13522163 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -5628,6 +5628,7 @@ components: - POLYGON_WALLET - BASE_WALLET - BRL_ACCOUNT + - CAD_ACCOUNT - DKK_ACCOUNT - EUR_ACCOUNT - HKD_ACCOUNT @@ -5635,6 +5636,7 @@ components: - INR_ACCOUNT - MXN_ACCOUNT - MYR_ACCOUNT + - NGN_ACCOUNT - THB_ACCOUNT - USD_ACCOUNT - VND_ACCOUNT @@ -5730,6 +5732,59 @@ components: mapping: INDIVIDUAL: '#/components/schemas/BrlBeneficiary' BUSINESS: '#/components/schemas/BusinessBeneficiary' + CadBeneficiary: + 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: '#/components/schemas/Address' + CadExternalAccountInfo: + title: CAD Account + allOf: + - $ref: '#/components/schemas/BaseExternalAccountInfo' + - $ref: '#/components/schemas/CadAccountInfo' + - type: object + required: + - beneficiary + properties: + beneficiary: + oneOf: + - title: Individual Beneficiary + $ref: '#/components/schemas/CadBeneficiary' + - title: Business Beneficiary + $ref: '#/components/schemas/BusinessBeneficiary' + discriminator: + propertyName: beneficiaryType + mapping: + INDIVIDUAL: '#/components/schemas/CadBeneficiary' + BUSINESS: '#/components/schemas/BusinessBeneficiary' DkkBeneficiary: title: Individual Beneficiary type: object @@ -6146,6 +6201,59 @@ components: mapping: INDIVIDUAL: '#/components/schemas/MyrBeneficiary' BUSINESS: '#/components/schemas/BusinessBeneficiary' + NgnBeneficiary: + 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: '#/components/schemas/Address' + NgnExternalAccountInfo: + title: NGN Account + allOf: + - $ref: '#/components/schemas/BaseExternalAccountInfo' + - $ref: '#/components/schemas/NgnAccountInfo' + - type: object + required: + - beneficiary + properties: + beneficiary: + oneOf: + - title: Individual Beneficiary + $ref: '#/components/schemas/NgnBeneficiary' + - title: Business Beneficiary + $ref: '#/components/schemas/BusinessBeneficiary' + discriminator: + propertyName: beneficiaryType + mapping: + INDIVIDUAL: '#/components/schemas/NgnBeneficiary' + BUSINESS: '#/components/schemas/BusinessBeneficiary' PhpBeneficiary: title: Individual Beneficiary type: object @@ -6463,30 +6571,55 @@ components: - $ref: '#/components/schemas/BaseWalletInfo' ExternalAccountInfoOneOf: oneOf: - - $ref: '#/components/schemas/BrlExternalAccountInfo' - - $ref: '#/components/schemas/DkkExternalAccountInfo' - - $ref: '#/components/schemas/EurExternalAccountInfo' - - $ref: '#/components/schemas/GbpExternalAccountInfo' - - $ref: '#/components/schemas/HkdExternalAccountInfo' - - $ref: '#/components/schemas/IdrExternalAccountInfo' - - $ref: '#/components/schemas/InrExternalAccountInfo' - - $ref: '#/components/schemas/MxnExternalAccountInfo' - - $ref: '#/components/schemas/MyrExternalAccountInfo' - - $ref: '#/components/schemas/PhpExternalAccountInfo' - - $ref: '#/components/schemas/SgdExternalAccountInfo' - - $ref: '#/components/schemas/ThbExternalAccountInfo' - - $ref: '#/components/schemas/UsdExternalAccountInfo' - - $ref: '#/components/schemas/VndExternalAccountInfo' - - $ref: '#/components/schemas/SparkWalletExternalAccountInfo' - - $ref: '#/components/schemas/LightningExternalAccountInfo' - - $ref: '#/components/schemas/SolanaWalletExternalAccountInfo' - - $ref: '#/components/schemas/TronWalletExternalAccountInfo' - - $ref: '#/components/schemas/PolygonWalletExternalAccountInfo' - - $ref: '#/components/schemas/BaseWalletExternalAccountInfo' + - title: BRL Account + $ref: '#/components/schemas/BrlExternalAccountInfo' + - title: CAD Account + $ref: '#/components/schemas/CadExternalAccountInfo' + - title: DKK Account + $ref: '#/components/schemas/DkkExternalAccountInfo' + - title: EUR Account + $ref: '#/components/schemas/EurExternalAccountInfo' + - title: GBP Account + $ref: '#/components/schemas/GbpExternalAccountInfo' + - title: HKD Account + $ref: '#/components/schemas/HkdExternalAccountInfo' + - title: IDR Account + $ref: '#/components/schemas/IdrExternalAccountInfo' + - title: INR Account + $ref: '#/components/schemas/InrExternalAccountInfo' + - title: MXN Account + $ref: '#/components/schemas/MxnExternalAccountInfo' + - title: MYR Account + $ref: '#/components/schemas/MyrExternalAccountInfo' + - title: NGN Account + $ref: '#/components/schemas/NgnExternalAccountInfo' + - title: PHP Account + $ref: '#/components/schemas/PhpExternalAccountInfo' + - title: SGD Account + $ref: '#/components/schemas/SgdExternalAccountInfo' + - title: THB Account + $ref: '#/components/schemas/ThbExternalAccountInfo' + - title: USD Account + $ref: '#/components/schemas/UsdExternalAccountInfo' + - title: VND Account + $ref: '#/components/schemas/VndExternalAccountInfo' + - title: Spark Wallet + $ref: '#/components/schemas/SparkWalletExternalAccountInfo' + - title: Lightning + $ref: '#/components/schemas/LightningExternalAccountInfo' + - title: Solana Wallet + $ref: '#/components/schemas/SolanaWalletExternalAccountInfo' + - title: Tron Wallet + $ref: '#/components/schemas/TronWalletExternalAccountInfo' + - title: Polygon Wallet + $ref: '#/components/schemas/PolygonWalletExternalAccountInfo' + - title: Base Wallet + $ref: '#/components/schemas/BaseWalletExternalAccountInfo' discriminator: propertyName: accountType mapping: BRL_ACCOUNT: '#/components/schemas/BrlExternalAccountInfo' + CAD_ACCOUNT: '#/components/schemas/CadExternalAccountInfo' DKK_ACCOUNT: '#/components/schemas/DkkExternalAccountInfo' EUR_ACCOUNT: '#/components/schemas/EurExternalAccountInfo' GBP_ACCOUNT: '#/components/schemas/GbpExternalAccountInfo' @@ -6495,6 +6628,7 @@ components: INR_ACCOUNT: '#/components/schemas/InrExternalAccountInfo' MXN_ACCOUNT: '#/components/schemas/MxnExternalAccountInfo' MYR_ACCOUNT: '#/components/schemas/MyrExternalAccountInfo' + NGN_ACCOUNT: '#/components/schemas/NgnExternalAccountInfo' PHP_ACCOUNT: '#/components/schemas/PhpExternalAccountInfo' SGD_ACCOUNT: '#/components/schemas/SgdExternalAccountInfo' THB_ACCOUNT: '#/components/schemas/ThbExternalAccountInfo' diff --git a/openapi/components/schemas/common/CadBeneficiary.yaml b/openapi/components/schemas/common/CadBeneficiary.yaml new file mode 100644 index 00000000..c3b5722d --- /dev/null +++ b/openapi/components/schemas/common/CadBeneficiary.yaml @@ -0,0 +1,32 @@ +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/NgnBeneficiary.yaml b/openapi/components/schemas/common/NgnBeneficiary.yaml new file mode 100644 index 00000000..c3b5722d --- /dev/null +++ b/openapi/components/schemas/common/NgnBeneficiary.yaml @@ -0,0 +1,32 @@ +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/external_accounts/CadExternalAccountInfo.yaml b/openapi/components/schemas/external_accounts/CadExternalAccountInfo.yaml new file mode 100644 index 00000000..916c0015 --- /dev/null +++ b/openapi/components/schemas/external_accounts/CadExternalAccountInfo.yaml @@ -0,0 +1,19 @@ +title: CAD Account +allOf: +- $ref: ./BaseExternalAccountInfo.yaml +- $ref: ../common/CadAccountInfo.yaml +- type: object + required: + - beneficiary + properties: + beneficiary: + oneOf: + - title: Individual Beneficiary + $ref: ../common/CadBeneficiary.yaml + - title: Business Beneficiary + $ref: ../common/BusinessBeneficiary.yaml + discriminator: + propertyName: beneficiaryType + mapping: + INDIVIDUAL: ../common/CadBeneficiary.yaml + BUSINESS: ../common/BusinessBeneficiary.yaml diff --git a/openapi/components/schemas/external_accounts/ExternalAccountInfoOneOf.yaml b/openapi/components/schemas/external_accounts/ExternalAccountInfoOneOf.yaml index c3de52e6..5569873b 100644 --- a/openapi/components/schemas/external_accounts/ExternalAccountInfoOneOf.yaml +++ b/openapi/components/schemas/external_accounts/ExternalAccountInfoOneOf.yaml @@ -1,28 +1,53 @@ oneOf: -- $ref: ./BrlExternalAccountInfo.yaml -- $ref: ./DkkExternalAccountInfo.yaml -- $ref: ./EurExternalAccountInfo.yaml -- $ref: ./GbpExternalAccountInfo.yaml -- $ref: ./HkdExternalAccountInfo.yaml -- $ref: ./IdrExternalAccountInfo.yaml -- $ref: ./InrExternalAccountInfo.yaml -- $ref: ./MxnExternalAccountInfo.yaml -- $ref: ./MyrExternalAccountInfo.yaml -- $ref: ./PhpExternalAccountInfo.yaml -- $ref: ./SgdExternalAccountInfo.yaml -- $ref: ./ThbExternalAccountInfo.yaml -- $ref: ./UsdExternalAccountInfo.yaml -- $ref: ./VndExternalAccountInfo.yaml -- $ref: ./SparkWalletExternalAccountInfo.yaml -- $ref: ./LightningExternalAccountInfo.yaml -- $ref: ./SolanaWalletExternalAccountInfo.yaml -- $ref: ./TronWalletExternalAccountInfo.yaml -- $ref: ./PolygonWalletExternalAccountInfo.yaml -- $ref: ./BaseWalletExternalAccountInfo.yaml +- title: BRL Account + $ref: ./BrlExternalAccountInfo.yaml +- title: CAD Account + $ref: ./CadExternalAccountInfo.yaml +- title: DKK Account + $ref: ./DkkExternalAccountInfo.yaml +- title: EUR Account + $ref: ./EurExternalAccountInfo.yaml +- title: GBP Account + $ref: ./GbpExternalAccountInfo.yaml +- title: HKD Account + $ref: ./HkdExternalAccountInfo.yaml +- title: IDR Account + $ref: ./IdrExternalAccountInfo.yaml +- title: INR Account + $ref: ./InrExternalAccountInfo.yaml +- title: MXN Account + $ref: ./MxnExternalAccountInfo.yaml +- title: MYR Account + $ref: ./MyrExternalAccountInfo.yaml +- title: NGN Account + $ref: ./NgnExternalAccountInfo.yaml +- title: PHP Account + $ref: ./PhpExternalAccountInfo.yaml +- title: SGD Account + $ref: ./SgdExternalAccountInfo.yaml +- title: THB Account + $ref: ./ThbExternalAccountInfo.yaml +- title: USD Account + $ref: ./UsdExternalAccountInfo.yaml +- title: VND Account + $ref: ./VndExternalAccountInfo.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 discriminator: propertyName: accountType mapping: BRL_ACCOUNT: ./BrlExternalAccountInfo.yaml + CAD_ACCOUNT: ./CadExternalAccountInfo.yaml DKK_ACCOUNT: ./DkkExternalAccountInfo.yaml EUR_ACCOUNT: ./EurExternalAccountInfo.yaml GBP_ACCOUNT: ./GbpExternalAccountInfo.yaml @@ -31,6 +56,7 @@ discriminator: INR_ACCOUNT: ./InrExternalAccountInfo.yaml MXN_ACCOUNT: ./MxnExternalAccountInfo.yaml MYR_ACCOUNT: ./MyrExternalAccountInfo.yaml + NGN_ACCOUNT: ./NgnExternalAccountInfo.yaml PHP_ACCOUNT: ./PhpExternalAccountInfo.yaml SGD_ACCOUNT: ./SgdExternalAccountInfo.yaml THB_ACCOUNT: ./ThbExternalAccountInfo.yaml diff --git a/openapi/components/schemas/external_accounts/ExternalAccountType.yaml b/openapi/components/schemas/external_accounts/ExternalAccountType.yaml index ced71ff8..e455af55 100644 --- a/openapi/components/schemas/external_accounts/ExternalAccountType.yaml +++ b/openapi/components/schemas/external_accounts/ExternalAccountType.yaml @@ -10,6 +10,7 @@ enum: - POLYGON_WALLET - BASE_WALLET - BRL_ACCOUNT + - CAD_ACCOUNT - DKK_ACCOUNT - EUR_ACCOUNT - HKD_ACCOUNT @@ -17,6 +18,7 @@ enum: - INR_ACCOUNT - MXN_ACCOUNT - MYR_ACCOUNT + - NGN_ACCOUNT - THB_ACCOUNT - USD_ACCOUNT - VND_ACCOUNT diff --git a/openapi/components/schemas/external_accounts/NgnExternalAccountInfo.yaml b/openapi/components/schemas/external_accounts/NgnExternalAccountInfo.yaml new file mode 100644 index 00000000..0109b2b9 --- /dev/null +++ b/openapi/components/schemas/external_accounts/NgnExternalAccountInfo.yaml @@ -0,0 +1,19 @@ +title: NGN Account +allOf: +- $ref: ./BaseExternalAccountInfo.yaml +- $ref: ../common/NgnAccountInfo.yaml +- type: object + required: + - beneficiary + properties: + beneficiary: + oneOf: + - title: Individual Beneficiary + $ref: ../common/NgnBeneficiary.yaml + - title: Business Beneficiary + $ref: ../common/BusinessBeneficiary.yaml + discriminator: + propertyName: beneficiaryType + mapping: + INDIVIDUAL: ../common/NgnBeneficiary.yaml + BUSINESS: ../common/BusinessBeneficiary.yaml