From 21864d589427b19555d67562f86b5d562d37f81c Mon Sep 17 00:00:00 2001 From: Peng Ying Date: Tue, 27 Jan 2026 11:52:15 -0800 Subject: [PATCH] fix: adding type:string to const discriminators --- mintlify/openapi.yaml | 23 +++++++++++++++++++ openapi.yaml | 23 +++++++++++++++++++ .../schemas/common/BaseWalletInfo.yaml | 1 + .../schemas/common/ClabeAccountInfo.yaml | 1 + .../schemas/common/FboAccountInfo.yaml | 1 + .../schemas/common/IbanAccountInfo.yaml | 1 + .../schemas/common/NgnAccountInfo.yaml | 1 + .../schemas/common/PixAccountInfo.yaml | 1 + .../schemas/common/PolygonWalletInfo.yaml | 1 + .../schemas/common/SolanaWalletInfo.yaml | 1 + .../schemas/common/SparkWalletInfo.yaml | 1 + .../schemas/common/TronWalletInfo.yaml | 1 + .../schemas/common/UpiAccountInfo.yaml | 1 + .../schemas/common/UsAccountInfo.yaml | 1 + .../BaseWalletExternalAccountInfo.yaml | 1 + .../ClabeAccountExternalAccountInfo.yaml | 1 + .../IbanAccountExternalAccountInfo.yaml | 1 + .../LightningExternalAccountInfo.yaml | 1 + .../NgnAccountExternalAccountInfo.yaml | 1 + .../PixAccountExternalAccountInfo.yaml | 1 + .../PolygonWalletExternalAccountInfo.yaml | 1 + .../SolanaWalletExternalAccountInfo.yaml | 1 + .../SparkWalletExternalAccountInfo.yaml | 1 + .../TronWalletExternalAccountInfo.yaml | 1 + .../UpiAccountExternalAccountInfo.yaml | 1 + .../UsAccountExternalAccountInfo.yaml | 1 + 26 files changed, 70 insertions(+) diff --git a/mintlify/openapi.yaml b/mintlify/openapi.yaml index 0d76a703..b0634a61 100644 --- a/mintlify/openapi.yaml +++ b/mintlify/openapi.yaml @@ -4612,6 +4612,7 @@ components: - accountCategory properties: accountType: + type: string const: US_ACCOUNT example: US_ACCOUNT accountNumber: @@ -4656,6 +4657,7 @@ components: - taxId properties: accountType: + type: string const: PIX example: PIX pixKey: @@ -4688,6 +4690,7 @@ components: - swiftBic properties: accountType: + type: string const: IBAN example: IBAN iban: @@ -4740,6 +4743,7 @@ components: - vpa properties: accountType: + type: string const: UPI example: UPI vpa: @@ -4758,6 +4762,7 @@ components: - bankName properties: accountType: + type: string const: NGN_ACCOUNT example: NGN_ACCOUNT accountNumber: @@ -4789,6 +4794,7 @@ components: - address properties: accountType: + type: string const: SPARK_WALLET example: SPARK_WALLET address: @@ -4835,6 +4841,7 @@ components: - address properties: accountType: + type: string const: SOLANA_WALLET example: SOLANA_WALLET address: @@ -4859,6 +4866,7 @@ components: - address properties: accountType: + type: string const: TRON_WALLET example: TRON_WALLET address: @@ -4882,6 +4890,7 @@ components: - address properties: accountType: + type: string const: POLYGON_WALLET example: POLYGON_WALLET address: @@ -4922,6 +4931,7 @@ components: - clabeNumber properties: accountType: + type: string const: CLABE example: CLABE clabeNumber: @@ -4938,6 +4948,7 @@ components: - address properties: accountType: + type: string const: BASE_WALLET example: BASE_WALLET address: @@ -5106,6 +5117,7 @@ components: - beneficiary properties: accountType: + type: string const: US_ACCOUNT example: US_ACCOUNT beneficiary: @@ -5125,6 +5137,7 @@ components: - accountType properties: accountType: + type: string const: CLABE example: CLABE beneficiary: @@ -5144,6 +5157,7 @@ components: - accountType properties: accountType: + type: string const: PIX example: PIX beneficiary: @@ -5163,6 +5177,7 @@ components: - accountType properties: accountType: + type: string const: IBAN example: IBAN beneficiary: @@ -5182,6 +5197,7 @@ components: - accountType properties: accountType: + type: string const: UPI example: UPI beneficiary: @@ -5203,6 +5219,7 @@ components: - beneficiary properties: accountType: + type: string const: NGN_ACCOUNT example: NGN_ACCOUNT beneficiary: @@ -5239,6 +5256,7 @@ components: - accountType properties: accountType: + type: string const: SPARK_WALLET example: SPARK_WALLET LightningExternalAccountInfo: @@ -5249,6 +5267,7 @@ components: Lightning payment destination. Exactly one of `invoice`, `bolt12`, or `lightningAddress` must be provided. properties: accountType: + type: string const: LIGHTNING example: LIGHTNING invoice: @@ -5271,6 +5290,7 @@ components: - accountType properties: accountType: + type: string const: SOLANA_WALLET example: SOLANA_WALLET TronWalletExternalAccountInfo: @@ -5281,6 +5301,7 @@ components: - accountType properties: accountType: + type: string const: TRON_WALLET example: TRON_WALLET PolygonWalletExternalAccountInfo: @@ -5291,6 +5312,7 @@ components: - accountType properties: accountType: + type: string const: POLYGON_WALLET example: POLYGON_WALLET BaseWalletExternalAccountInfo: @@ -5301,6 +5323,7 @@ components: - accountType properties: accountType: + type: string const: BASE_WALLET example: BASE_WALLET ExternalAccountInfo: diff --git a/openapi.yaml b/openapi.yaml index 0d76a703..b0634a61 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -4612,6 +4612,7 @@ components: - accountCategory properties: accountType: + type: string const: US_ACCOUNT example: US_ACCOUNT accountNumber: @@ -4656,6 +4657,7 @@ components: - taxId properties: accountType: + type: string const: PIX example: PIX pixKey: @@ -4688,6 +4690,7 @@ components: - swiftBic properties: accountType: + type: string const: IBAN example: IBAN iban: @@ -4740,6 +4743,7 @@ components: - vpa properties: accountType: + type: string const: UPI example: UPI vpa: @@ -4758,6 +4762,7 @@ components: - bankName properties: accountType: + type: string const: NGN_ACCOUNT example: NGN_ACCOUNT accountNumber: @@ -4789,6 +4794,7 @@ components: - address properties: accountType: + type: string const: SPARK_WALLET example: SPARK_WALLET address: @@ -4835,6 +4841,7 @@ components: - address properties: accountType: + type: string const: SOLANA_WALLET example: SOLANA_WALLET address: @@ -4859,6 +4866,7 @@ components: - address properties: accountType: + type: string const: TRON_WALLET example: TRON_WALLET address: @@ -4882,6 +4890,7 @@ components: - address properties: accountType: + type: string const: POLYGON_WALLET example: POLYGON_WALLET address: @@ -4922,6 +4931,7 @@ components: - clabeNumber properties: accountType: + type: string const: CLABE example: CLABE clabeNumber: @@ -4938,6 +4948,7 @@ components: - address properties: accountType: + type: string const: BASE_WALLET example: BASE_WALLET address: @@ -5106,6 +5117,7 @@ components: - beneficiary properties: accountType: + type: string const: US_ACCOUNT example: US_ACCOUNT beneficiary: @@ -5125,6 +5137,7 @@ components: - accountType properties: accountType: + type: string const: CLABE example: CLABE beneficiary: @@ -5144,6 +5157,7 @@ components: - accountType properties: accountType: + type: string const: PIX example: PIX beneficiary: @@ -5163,6 +5177,7 @@ components: - accountType properties: accountType: + type: string const: IBAN example: IBAN beneficiary: @@ -5182,6 +5197,7 @@ components: - accountType properties: accountType: + type: string const: UPI example: UPI beneficiary: @@ -5203,6 +5219,7 @@ components: - beneficiary properties: accountType: + type: string const: NGN_ACCOUNT example: NGN_ACCOUNT beneficiary: @@ -5239,6 +5256,7 @@ components: - accountType properties: accountType: + type: string const: SPARK_WALLET example: SPARK_WALLET LightningExternalAccountInfo: @@ -5249,6 +5267,7 @@ components: Lightning payment destination. Exactly one of `invoice`, `bolt12`, or `lightningAddress` must be provided. properties: accountType: + type: string const: LIGHTNING example: LIGHTNING invoice: @@ -5271,6 +5290,7 @@ components: - accountType properties: accountType: + type: string const: SOLANA_WALLET example: SOLANA_WALLET TronWalletExternalAccountInfo: @@ -5281,6 +5301,7 @@ components: - accountType properties: accountType: + type: string const: TRON_WALLET example: TRON_WALLET PolygonWalletExternalAccountInfo: @@ -5291,6 +5312,7 @@ components: - accountType properties: accountType: + type: string const: POLYGON_WALLET example: POLYGON_WALLET BaseWalletExternalAccountInfo: @@ -5301,6 +5323,7 @@ components: - accountType properties: accountType: + type: string const: BASE_WALLET example: BASE_WALLET ExternalAccountInfo: diff --git a/openapi/components/schemas/common/BaseWalletInfo.yaml b/openapi/components/schemas/common/BaseWalletInfo.yaml index e1935eae..fca685c4 100644 --- a/openapi/components/schemas/common/BaseWalletInfo.yaml +++ b/openapi/components/schemas/common/BaseWalletInfo.yaml @@ -4,6 +4,7 @@ required: - address properties: accountType: + type: string const: BASE_WALLET example: BASE_WALLET address: diff --git a/openapi/components/schemas/common/ClabeAccountInfo.yaml b/openapi/components/schemas/common/ClabeAccountInfo.yaml index 42d31a29..4fbde04c 100644 --- a/openapi/components/schemas/common/ClabeAccountInfo.yaml +++ b/openapi/components/schemas/common/ClabeAccountInfo.yaml @@ -4,6 +4,7 @@ required: - clabeNumber properties: accountType: + type: string const: CLABE example: CLABE clabeNumber: diff --git a/openapi/components/schemas/common/FboAccountInfo.yaml b/openapi/components/schemas/common/FboAccountInfo.yaml index 6f5925f1..3218acd4 100644 --- a/openapi/components/schemas/common/FboAccountInfo.yaml +++ b/openapi/components/schemas/common/FboAccountInfo.yaml @@ -4,6 +4,7 @@ required: - currencyCode properties: accountType: + type: string const: FBO example: FBO currencyCode: diff --git a/openapi/components/schemas/common/IbanAccountInfo.yaml b/openapi/components/schemas/common/IbanAccountInfo.yaml index a4eaab01..b4140f1f 100644 --- a/openapi/components/schemas/common/IbanAccountInfo.yaml +++ b/openapi/components/schemas/common/IbanAccountInfo.yaml @@ -5,6 +5,7 @@ required: - swiftBic properties: accountType: + type: string const: IBAN example: IBAN iban: diff --git a/openapi/components/schemas/common/NgnAccountInfo.yaml b/openapi/components/schemas/common/NgnAccountInfo.yaml index de6f39d3..9775a380 100644 --- a/openapi/components/schemas/common/NgnAccountInfo.yaml +++ b/openapi/components/schemas/common/NgnAccountInfo.yaml @@ -5,6 +5,7 @@ required: - bankName properties: accountType: + type: string const: NGN_ACCOUNT example: NGN_ACCOUNT accountNumber: diff --git a/openapi/components/schemas/common/PixAccountInfo.yaml b/openapi/components/schemas/common/PixAccountInfo.yaml index 7225c75c..48be7f91 100644 --- a/openapi/components/schemas/common/PixAccountInfo.yaml +++ b/openapi/components/schemas/common/PixAccountInfo.yaml @@ -6,6 +6,7 @@ required: - taxId properties: accountType: + type: string const: PIX example: PIX pixKey: diff --git a/openapi/components/schemas/common/PolygonWalletInfo.yaml b/openapi/components/schemas/common/PolygonWalletInfo.yaml index 050c876c..28391302 100644 --- a/openapi/components/schemas/common/PolygonWalletInfo.yaml +++ b/openapi/components/schemas/common/PolygonWalletInfo.yaml @@ -4,6 +4,7 @@ required: - address properties: accountType: + type: string const: POLYGON_WALLET example: POLYGON_WALLET address: diff --git a/openapi/components/schemas/common/SolanaWalletInfo.yaml b/openapi/components/schemas/common/SolanaWalletInfo.yaml index 727c36bb..598e38b3 100644 --- a/openapi/components/schemas/common/SolanaWalletInfo.yaml +++ b/openapi/components/schemas/common/SolanaWalletInfo.yaml @@ -4,6 +4,7 @@ required: - address properties: accountType: + type: string const: SOLANA_WALLET example: SOLANA_WALLET address: diff --git a/openapi/components/schemas/common/SparkWalletInfo.yaml b/openapi/components/schemas/common/SparkWalletInfo.yaml index 713c4532..fa51ca53 100644 --- a/openapi/components/schemas/common/SparkWalletInfo.yaml +++ b/openapi/components/schemas/common/SparkWalletInfo.yaml @@ -4,6 +4,7 @@ required: - address properties: accountType: + type: string const: SPARK_WALLET example: SPARK_WALLET address: diff --git a/openapi/components/schemas/common/TronWalletInfo.yaml b/openapi/components/schemas/common/TronWalletInfo.yaml index 05fe9ce0..55320870 100644 --- a/openapi/components/schemas/common/TronWalletInfo.yaml +++ b/openapi/components/schemas/common/TronWalletInfo.yaml @@ -4,6 +4,7 @@ required: - address properties: accountType: + type: string const: TRON_WALLET example: TRON_WALLET address: diff --git a/openapi/components/schemas/common/UpiAccountInfo.yaml b/openapi/components/schemas/common/UpiAccountInfo.yaml index 7a074cbe..b64f54c4 100644 --- a/openapi/components/schemas/common/UpiAccountInfo.yaml +++ b/openapi/components/schemas/common/UpiAccountInfo.yaml @@ -4,6 +4,7 @@ required: - vpa properties: accountType: + type: string const: UPI example: UPI vpa: diff --git a/openapi/components/schemas/common/UsAccountInfo.yaml b/openapi/components/schemas/common/UsAccountInfo.yaml index 3fb97046..d61a5be3 100644 --- a/openapi/components/schemas/common/UsAccountInfo.yaml +++ b/openapi/components/schemas/common/UsAccountInfo.yaml @@ -6,6 +6,7 @@ required: - accountCategory properties: accountType: + type: string const: US_ACCOUNT example: US_ACCOUNT accountNumber: diff --git a/openapi/components/schemas/external_accounts/BaseWalletExternalAccountInfo.yaml b/openapi/components/schemas/external_accounts/BaseWalletExternalAccountInfo.yaml index ceb26ba4..f33d6711 100644 --- a/openapi/components/schemas/external_accounts/BaseWalletExternalAccountInfo.yaml +++ b/openapi/components/schemas/external_accounts/BaseWalletExternalAccountInfo.yaml @@ -5,5 +5,6 @@ allOf: - accountType properties: accountType: + type: string const: BASE_WALLET example: BASE_WALLET diff --git a/openapi/components/schemas/external_accounts/ClabeAccountExternalAccountInfo.yaml b/openapi/components/schemas/external_accounts/ClabeAccountExternalAccountInfo.yaml index 85f7c2e2..38c7e8d2 100644 --- a/openapi/components/schemas/external_accounts/ClabeAccountExternalAccountInfo.yaml +++ b/openapi/components/schemas/external_accounts/ClabeAccountExternalAccountInfo.yaml @@ -5,6 +5,7 @@ allOf: - accountType properties: accountType: + type: string const: CLABE example: CLABE beneficiary: diff --git a/openapi/components/schemas/external_accounts/IbanAccountExternalAccountInfo.yaml b/openapi/components/schemas/external_accounts/IbanAccountExternalAccountInfo.yaml index 2626895b..18366cc1 100644 --- a/openapi/components/schemas/external_accounts/IbanAccountExternalAccountInfo.yaml +++ b/openapi/components/schemas/external_accounts/IbanAccountExternalAccountInfo.yaml @@ -5,6 +5,7 @@ allOf: - accountType properties: accountType: + type: string const: IBAN example: IBAN beneficiary: diff --git a/openapi/components/schemas/external_accounts/LightningExternalAccountInfo.yaml b/openapi/components/schemas/external_accounts/LightningExternalAccountInfo.yaml index 63fbe7a4..fd8b9219 100644 --- a/openapi/components/schemas/external_accounts/LightningExternalAccountInfo.yaml +++ b/openapi/components/schemas/external_accounts/LightningExternalAccountInfo.yaml @@ -5,6 +5,7 @@ description: > Lightning payment destination. Exactly one of `invoice`, `bolt12`, or `lightningAddress` must be provided. properties: accountType: + type: string const: LIGHTNING example: LIGHTNING invoice: diff --git a/openapi/components/schemas/external_accounts/NgnAccountExternalAccountInfo.yaml b/openapi/components/schemas/external_accounts/NgnAccountExternalAccountInfo.yaml index 1fc88486..a4935651 100644 --- a/openapi/components/schemas/external_accounts/NgnAccountExternalAccountInfo.yaml +++ b/openapi/components/schemas/external_accounts/NgnAccountExternalAccountInfo.yaml @@ -7,6 +7,7 @@ allOf: - beneficiary properties: accountType: + type: string const: NGN_ACCOUNT example: NGN_ACCOUNT beneficiary: diff --git a/openapi/components/schemas/external_accounts/PixAccountExternalAccountInfo.yaml b/openapi/components/schemas/external_accounts/PixAccountExternalAccountInfo.yaml index 6c014b22..a6b6d043 100644 --- a/openapi/components/schemas/external_accounts/PixAccountExternalAccountInfo.yaml +++ b/openapi/components/schemas/external_accounts/PixAccountExternalAccountInfo.yaml @@ -5,6 +5,7 @@ allOf: - accountType properties: accountType: + type: string const: PIX example: PIX beneficiary: diff --git a/openapi/components/schemas/external_accounts/PolygonWalletExternalAccountInfo.yaml b/openapi/components/schemas/external_accounts/PolygonWalletExternalAccountInfo.yaml index c864ab9d..f0ff0e4c 100644 --- a/openapi/components/schemas/external_accounts/PolygonWalletExternalAccountInfo.yaml +++ b/openapi/components/schemas/external_accounts/PolygonWalletExternalAccountInfo.yaml @@ -5,5 +5,6 @@ allOf: - accountType properties: accountType: + type: string const: POLYGON_WALLET example: POLYGON_WALLET diff --git a/openapi/components/schemas/external_accounts/SolanaWalletExternalAccountInfo.yaml b/openapi/components/schemas/external_accounts/SolanaWalletExternalAccountInfo.yaml index 5de4d3e8..c1c80d7b 100644 --- a/openapi/components/schemas/external_accounts/SolanaWalletExternalAccountInfo.yaml +++ b/openapi/components/schemas/external_accounts/SolanaWalletExternalAccountInfo.yaml @@ -5,5 +5,6 @@ allOf: - accountType properties: accountType: + type: string const: SOLANA_WALLET example: SOLANA_WALLET diff --git a/openapi/components/schemas/external_accounts/SparkWalletExternalAccountInfo.yaml b/openapi/components/schemas/external_accounts/SparkWalletExternalAccountInfo.yaml index aa9c65f7..9eb34cfd 100644 --- a/openapi/components/schemas/external_accounts/SparkWalletExternalAccountInfo.yaml +++ b/openapi/components/schemas/external_accounts/SparkWalletExternalAccountInfo.yaml @@ -5,5 +5,6 @@ allOf: - accountType properties: accountType: + type: string const: SPARK_WALLET example: SPARK_WALLET diff --git a/openapi/components/schemas/external_accounts/TronWalletExternalAccountInfo.yaml b/openapi/components/schemas/external_accounts/TronWalletExternalAccountInfo.yaml index a58b842c..404243dd 100644 --- a/openapi/components/schemas/external_accounts/TronWalletExternalAccountInfo.yaml +++ b/openapi/components/schemas/external_accounts/TronWalletExternalAccountInfo.yaml @@ -5,5 +5,6 @@ allOf: - accountType properties: accountType: + type: string const: TRON_WALLET example: TRON_WALLET diff --git a/openapi/components/schemas/external_accounts/UpiAccountExternalAccountInfo.yaml b/openapi/components/schemas/external_accounts/UpiAccountExternalAccountInfo.yaml index 674bc42a..f30fe79c 100644 --- a/openapi/components/schemas/external_accounts/UpiAccountExternalAccountInfo.yaml +++ b/openapi/components/schemas/external_accounts/UpiAccountExternalAccountInfo.yaml @@ -5,6 +5,7 @@ allOf: - accountType properties: accountType: + type: string const: UPI example: UPI beneficiary: diff --git a/openapi/components/schemas/external_accounts/UsAccountExternalAccountInfo.yaml b/openapi/components/schemas/external_accounts/UsAccountExternalAccountInfo.yaml index a5ffadd6..c9b2b543 100644 --- a/openapi/components/schemas/external_accounts/UsAccountExternalAccountInfo.yaml +++ b/openapi/components/schemas/external_accounts/UsAccountExternalAccountInfo.yaml @@ -6,6 +6,7 @@ allOf: - beneficiary properties: accountType: + type: string const: US_ACCOUNT example: US_ACCOUNT beneficiary: