From fe8543a51f8b6e4cd12e8620bab4ff87332f89a1 Mon Sep 17 00:00:00 2001 From: Lightspark Eng Date: Fri, 1 May 2026 23:41:38 +0000 Subject: [PATCH] chore: Sync account schemas --- mintlify/openapi.yaml | 35 +++++++------------ openapi.yaml | 35 +++++++------------ .../schemas/common/CopAccountInfo.yaml | 1 + .../schemas/common/CopAccountInfoBase.yaml | 27 +++++++------- .../schemas/common/CopBeneficiary.yaml | 8 ----- 5 files changed, 37 insertions(+), 69 deletions(-) diff --git a/mintlify/openapi.yaml b/mintlify/openapi.yaml index 72748b01..b151e93c 100644 --- a/mintlify/openapi.yaml +++ b/mintlify/openapi.yaml @@ -12032,35 +12032,31 @@ components: type: object required: - accountType - - bankName - - accountNumber - - bankAccountType + description: |- + Required fields depend on the selected paymentRails: + - BANK_TRANSFER: accountNumber + - MOBILE_MONEY: phoneNumber properties: accountType: type: string enum: - COP_ACCOUNT - bankName: - type: string - description: The name of the bank - minLength: 1 - maxLength: 255 accountNumber: type: string description: The account number of the bank minLength: 1 maxLength: 34 - bankAccountType: + phoneNumber: type: string - description: The bank account type - enum: - - CHECKING - - SAVINGS + description: The phone number in international format + example: '+1234567890' + minLength: 7 + maxLength: 15 + pattern: ^\+[0-9]{6,14}$ example: accountType: COP_ACCOUNT - bankName: Example Bank accountNumber: '1234567890' - bankAccountType: CHECKING + phoneNumber: '+1234567890' CopAccountInfo: allOf: - $ref: '#/components/schemas/CopAccountInfoBase' @@ -12074,13 +12070,12 @@ components: type: string enum: - BANK_TRANSFER + - MOBILE_MONEY CopBeneficiary: title: Individual Beneficiary type: object required: - beneficiaryType - - documentNumber - - documentType - fullName properties: beneficiaryType: @@ -12107,12 +12102,6 @@ components: description: The country of residence of the beneficiary address: $ref: '#/components/schemas/Address' - documentType: - type: string - description: The type of identity document (e.g., national ID, passport) - documentNumber: - type: string - description: The identity document number CopExternalAccountInfo: title: COP Account allOf: diff --git a/openapi.yaml b/openapi.yaml index 72748b01..b151e93c 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -12032,35 +12032,31 @@ components: type: object required: - accountType - - bankName - - accountNumber - - bankAccountType + description: |- + Required fields depend on the selected paymentRails: + - BANK_TRANSFER: accountNumber + - MOBILE_MONEY: phoneNumber properties: accountType: type: string enum: - COP_ACCOUNT - bankName: - type: string - description: The name of the bank - minLength: 1 - maxLength: 255 accountNumber: type: string description: The account number of the bank minLength: 1 maxLength: 34 - bankAccountType: + phoneNumber: type: string - description: The bank account type - enum: - - CHECKING - - SAVINGS + description: The phone number in international format + example: '+1234567890' + minLength: 7 + maxLength: 15 + pattern: ^\+[0-9]{6,14}$ example: accountType: COP_ACCOUNT - bankName: Example Bank accountNumber: '1234567890' - bankAccountType: CHECKING + phoneNumber: '+1234567890' CopAccountInfo: allOf: - $ref: '#/components/schemas/CopAccountInfoBase' @@ -12074,13 +12070,12 @@ components: type: string enum: - BANK_TRANSFER + - MOBILE_MONEY CopBeneficiary: title: Individual Beneficiary type: object required: - beneficiaryType - - documentNumber - - documentType - fullName properties: beneficiaryType: @@ -12107,12 +12102,6 @@ components: description: The country of residence of the beneficiary address: $ref: '#/components/schemas/Address' - documentType: - type: string - description: The type of identity document (e.g., national ID, passport) - documentNumber: - type: string - description: The identity document number CopExternalAccountInfo: title: COP Account allOf: diff --git a/openapi/components/schemas/common/CopAccountInfo.yaml b/openapi/components/schemas/common/CopAccountInfo.yaml index d8d4a779..e16c7af9 100644 --- a/openapi/components/schemas/common/CopAccountInfo.yaml +++ b/openapi/components/schemas/common/CopAccountInfo.yaml @@ -10,3 +10,4 @@ allOf: type: string enum: - BANK_TRANSFER + - MOBILE_MONEY diff --git a/openapi/components/schemas/common/CopAccountInfoBase.yaml b/openapi/components/schemas/common/CopAccountInfoBase.yaml index a990534d..7a84d977 100644 --- a/openapi/components/schemas/common/CopAccountInfoBase.yaml +++ b/openapi/components/schemas/common/CopAccountInfoBase.yaml @@ -1,32 +1,29 @@ type: object required: - accountType -- bankName -- accountNumber -- bankAccountType +description: 'Required fields depend on the selected paymentRails: + + - BANK_TRANSFER: accountNumber + + - MOBILE_MONEY: phoneNumber' properties: accountType: type: string enum: - COP_ACCOUNT - bankName: - type: string - description: The name of the bank - minLength: 1 - maxLength: 255 accountNumber: type: string description: The account number of the bank minLength: 1 maxLength: 34 - bankAccountType: + phoneNumber: type: string - description: The bank account type - enum: - - CHECKING - - SAVINGS + description: The phone number in international format + example: '+1234567890' + minLength: 7 + maxLength: 15 + pattern: ^\+[0-9]{6,14}$ example: accountType: COP_ACCOUNT - bankName: Example Bank accountNumber: '1234567890' - bankAccountType: CHECKING + phoneNumber: '+1234567890' diff --git a/openapi/components/schemas/common/CopBeneficiary.yaml b/openapi/components/schemas/common/CopBeneficiary.yaml index 45e8fdcb..d9332d63 100644 --- a/openapi/components/schemas/common/CopBeneficiary.yaml +++ b/openapi/components/schemas/common/CopBeneficiary.yaml @@ -2,8 +2,6 @@ title: Individual Beneficiary type: object required: - beneficiaryType -- documentNumber -- documentType - fullName properties: beneficiaryType: @@ -30,9 +28,3 @@ properties: description: The country of residence of the beneficiary address: $ref: ./Address.yaml - documentType: - type: string - description: The type of identity document (e.g., national ID, passport) - documentNumber: - type: string - description: The identity document number