diff --git a/mintlify/openapi.yaml b/mintlify/openapi.yaml index 059e09dd..4f65506c 100644 --- a/mintlify/openapi.yaml +++ b/mintlify/openapi.yaml @@ -11887,7 +11887,7 @@ components: description: |- Required fields depend on the selected paymentRails: - BANK_TRANSFER: accountNumber, bankName - - MOBILE_MONEY: phoneNumber, bankName + - MOBILE_MONEY: bankName, phoneNumber properties: accountType: type: string @@ -11895,26 +11895,26 @@ components: - CNY_ACCOUNT accountNumber: type: string - description: The destination bank account number (BANK_TRANSFER rail) + description: The account number of the bank minLength: 1 maxLength: 34 + bankName: + type: string + description: The name of the bank + minLength: 1 + maxLength: 255 phoneNumber: type: string - description: The phone number in international format (MOBILE_MONEY rail) + description: The phone number in international format example: '+1234567890' minLength: 7 maxLength: 15 pattern: ^\+[0-9]{6,14}$ - bankName: - type: string - description: The name of the bank or mobile-wallet provider - minLength: 1 - maxLength: 255 example: accountType: CNY_ACCOUNT accountNumber: '1234567890' + bankName: Example Bank phoneNumber: '+1234567890' - bankName: China Construction Bank CnyAccountInfo: allOf: - $ref: '#/components/schemas/CnyAccountInfoBase' @@ -11927,8 +11927,8 @@ components: items: type: string enum: - - MOBILE_MONEY - BANK_TRANSFER + - MOBILE_MONEY PaymentCnyAccountInfo: title: CNY Account allOf: diff --git a/openapi.yaml b/openapi.yaml index 059e09dd..4f65506c 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -11887,7 +11887,7 @@ components: description: |- Required fields depend on the selected paymentRails: - BANK_TRANSFER: accountNumber, bankName - - MOBILE_MONEY: phoneNumber, bankName + - MOBILE_MONEY: bankName, phoneNumber properties: accountType: type: string @@ -11895,26 +11895,26 @@ components: - CNY_ACCOUNT accountNumber: type: string - description: The destination bank account number (BANK_TRANSFER rail) + description: The account number of the bank minLength: 1 maxLength: 34 + bankName: + type: string + description: The name of the bank + minLength: 1 + maxLength: 255 phoneNumber: type: string - description: The phone number in international format (MOBILE_MONEY rail) + description: The phone number in international format example: '+1234567890' minLength: 7 maxLength: 15 pattern: ^\+[0-9]{6,14}$ - bankName: - type: string - description: The name of the bank or mobile-wallet provider - minLength: 1 - maxLength: 255 example: accountType: CNY_ACCOUNT accountNumber: '1234567890' + bankName: Example Bank phoneNumber: '+1234567890' - bankName: China Construction Bank CnyAccountInfo: allOf: - $ref: '#/components/schemas/CnyAccountInfoBase' @@ -11927,8 +11927,8 @@ components: items: type: string enum: - - MOBILE_MONEY - BANK_TRANSFER + - MOBILE_MONEY PaymentCnyAccountInfo: title: CNY Account allOf: diff --git a/openapi/components/schemas/common/CnyAccountInfo.yaml b/openapi/components/schemas/common/CnyAccountInfo.yaml index dfea97d1..6fc64d52 100644 --- a/openapi/components/schemas/common/CnyAccountInfo.yaml +++ b/openapi/components/schemas/common/CnyAccountInfo.yaml @@ -9,5 +9,5 @@ allOf: items: type: string enum: - - MOBILE_MONEY - BANK_TRANSFER + - MOBILE_MONEY diff --git a/openapi/components/schemas/common/CnyAccountInfoBase.yaml b/openapi/components/schemas/common/CnyAccountInfoBase.yaml index 7dc17814..3d4d3413 100644 --- a/openapi/components/schemas/common/CnyAccountInfoBase.yaml +++ b/openapi/components/schemas/common/CnyAccountInfoBase.yaml @@ -6,7 +6,7 @@ description: 'Required fields depend on the selected paymentRails: - BANK_TRANSFER: accountNumber, bankName - - MOBILE_MONEY: phoneNumber, bankName' + - MOBILE_MONEY: bankName, phoneNumber' properties: accountType: type: string @@ -14,23 +14,23 @@ properties: - CNY_ACCOUNT accountNumber: type: string - description: The destination bank account number (BANK_TRANSFER rail) + description: The account number of the bank minLength: 1 maxLength: 34 + bankName: + type: string + description: The name of the bank + minLength: 1 + maxLength: 255 phoneNumber: type: string - description: The phone number in international format (MOBILE_MONEY rail) + description: The phone number in international format example: '+1234567890' minLength: 7 maxLength: 15 pattern: ^\+[0-9]{6,14}$ - bankName: - type: string - description: The name of the bank or mobile-wallet provider - minLength: 1 - maxLength: 255 example: accountType: CNY_ACCOUNT accountNumber: '1234567890' + bankName: Example Bank phoneNumber: '+1234567890' - bankName: China Construction Bank