diff --git a/mintlify/openapi.yaml b/mintlify/openapi.yaml index a73b3fd7..4ccf55c2 100644 --- a/mintlify/openapi.yaml +++ b/mintlify/openapi.yaml @@ -11875,29 +11875,37 @@ components: type: object required: - accountType - - phoneNumber - bankName + description: |- + Required fields depend on the selected paymentRails: + - BANK_TRANSFER: accountNumber, bankName + - MOBILE_MONEY: phoneNumber, bankName properties: accountType: type: string enum: - CNY_ACCOUNT + accountNumber: + type: string + description: The destination bank account number (BANK_TRANSFER rail) + minLength: 1 + maxLength: 34 phoneNumber: type: string - description: The phone number in international format + description: The phone number in international format (MOBILE_MONEY rail) example: '+1234567890' minLength: 7 maxLength: 15 pattern: ^\+[0-9]{6,14}$ bankName: type: string - description: The name of the bank + description: The name of the bank or mobile-wallet provider minLength: 1 maxLength: 255 example: accountType: CNY_ACCOUNT - phoneNumber: '+1234567890' - bankName: Example Bank + accountNumber: '1234567890' + bankName: China Construction Bank CnyAccountInfo: allOf: - $ref: '#/components/schemas/CnyAccountInfoBase' @@ -11911,6 +11919,7 @@ components: type: string enum: - MOBILE_MONEY + - BANK_TRANSFER PaymentCnyAccountInfo: title: CNY Account allOf: diff --git a/openapi.yaml b/openapi.yaml index a73b3fd7..4ccf55c2 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -11875,29 +11875,37 @@ components: type: object required: - accountType - - phoneNumber - bankName + description: |- + Required fields depend on the selected paymentRails: + - BANK_TRANSFER: accountNumber, bankName + - MOBILE_MONEY: phoneNumber, bankName properties: accountType: type: string enum: - CNY_ACCOUNT + accountNumber: + type: string + description: The destination bank account number (BANK_TRANSFER rail) + minLength: 1 + maxLength: 34 phoneNumber: type: string - description: The phone number in international format + description: The phone number in international format (MOBILE_MONEY rail) example: '+1234567890' minLength: 7 maxLength: 15 pattern: ^\+[0-9]{6,14}$ bankName: type: string - description: The name of the bank + description: The name of the bank or mobile-wallet provider minLength: 1 maxLength: 255 example: accountType: CNY_ACCOUNT - phoneNumber: '+1234567890' - bankName: Example Bank + accountNumber: '1234567890' + bankName: China Construction Bank CnyAccountInfo: allOf: - $ref: '#/components/schemas/CnyAccountInfoBase' @@ -11911,6 +11919,7 @@ components: type: string enum: - MOBILE_MONEY + - BANK_TRANSFER PaymentCnyAccountInfo: title: CNY Account allOf: diff --git a/openapi/components/schemas/common/CnyAccountInfo.yaml b/openapi/components/schemas/common/CnyAccountInfo.yaml index 37c10f69..dfea97d1 100644 --- a/openapi/components/schemas/common/CnyAccountInfo.yaml +++ b/openapi/components/schemas/common/CnyAccountInfo.yaml @@ -10,3 +10,4 @@ allOf: type: string enum: - MOBILE_MONEY + - BANK_TRANSFER diff --git a/openapi/components/schemas/common/CnyAccountInfoBase.yaml b/openapi/components/schemas/common/CnyAccountInfoBase.yaml index 52733867..75d7be5e 100644 --- a/openapi/components/schemas/common/CnyAccountInfoBase.yaml +++ b/openapi/components/schemas/common/CnyAccountInfoBase.yaml @@ -1,26 +1,35 @@ type: object required: - accountType -- phoneNumber - bankName +description: 'Required fields depend on the selected paymentRails: + + - BANK_TRANSFER: accountNumber, bankName + + - MOBILE_MONEY: phoneNumber, bankName' properties: accountType: type: string enum: - CNY_ACCOUNT + accountNumber: + type: string + description: The destination bank account number (BANK_TRANSFER rail) + minLength: 1 + maxLength: 34 phoneNumber: type: string - description: The phone number in international format + description: The phone number in international format (MOBILE_MONEY rail) example: '+1234567890' minLength: 7 maxLength: 15 pattern: ^\+[0-9]{6,14}$ bankName: type: string - description: The name of the bank + description: The name of the bank or mobile-wallet provider minLength: 1 maxLength: 255 example: accountType: CNY_ACCOUNT - phoneNumber: '+1234567890' - bankName: Example Bank + accountNumber: '1234567890' + bankName: China Construction Bank