From 45cc747ef581eac6026f37af4d049166948d008e Mon Sep 17 00:00:00 2001 From: Lightspark Eng Date: Wed, 13 May 2026 22:30:53 +0000 Subject: [PATCH] chore: Sync account schemas --- mintlify/openapi.yaml | 19 +++++++------------ openapi.yaml | 19 +++++++------------ .../schemas/common/CopAccountInfoBase.yaml | 16 +++++----------- .../schemas/common/CopBeneficiary.yaml | 6 ++---- 4 files changed, 21 insertions(+), 39 deletions(-) diff --git a/mintlify/openapi.yaml b/mintlify/openapi.yaml index c6489dcb..f3b69e45 100644 --- a/mintlify/openapi.yaml +++ b/mintlify/openapi.yaml @@ -12498,41 +12498,36 @@ components: - accountType description: |- Required fields depend on the selected paymentRails: - - BANK_TRANSFER: bankName, accountNumber, bankAccountType + - BANK_TRANSFER: accountNumber, bankAccountType - MOBILE_MONEY: phoneNumber properties: accountType: type: string enum: - COP_ACCOUNT - bankName: - type: string - description: The name of the bank (BANK_TRANSFER only) - minLength: 1 - maxLength: 255 accountNumber: type: string - description: The account number of the bank (BANK_TRANSFER only) + description: The account number of the bank minLength: 1 maxLength: 34 bankAccountType: type: string - description: The bank account type (BANK_TRANSFER only) + description: The bank account type enum: - CHECKING - SAVINGS phoneNumber: type: string - description: The phone number in international format (MOBILE_MONEY only — Nequi, Daviplata) + description: The phone number in international format example: '+1234567890' minLength: 7 maxLength: 15 pattern: ^\+[0-9]{6,14}$ example: accountType: COP_ACCOUNT - bankName: Bancolombia accountNumber: '1234567890' bankAccountType: CHECKING + phoneNumber: '+1234567890' CopAccountInfo: allOf: - $ref: '#/components/schemas/CopAccountInfoBase' @@ -12580,7 +12575,7 @@ components: $ref: '#/components/schemas/Address' documentType: type: string - description: 'Identity document type — required by most Colombian banks. CC: Cédula de Ciudadanía, CE: Cédula de Extranjería, TI: Tarjeta de Identidad, NIT: Número de Identificación Tributaria, PP: Passport' + description: Identity document type (Colombia) enum: - CC - CE @@ -12589,7 +12584,7 @@ components: - PP documentNumber: type: string - description: Identity document number — required by most Colombian banks + description: The identity document number minLength: 1 maxLength: 50 CopExternalAccountInfo: diff --git a/openapi.yaml b/openapi.yaml index c6489dcb..f3b69e45 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -12498,41 +12498,36 @@ components: - accountType description: |- Required fields depend on the selected paymentRails: - - BANK_TRANSFER: bankName, accountNumber, bankAccountType + - BANK_TRANSFER: accountNumber, bankAccountType - MOBILE_MONEY: phoneNumber properties: accountType: type: string enum: - COP_ACCOUNT - bankName: - type: string - description: The name of the bank (BANK_TRANSFER only) - minLength: 1 - maxLength: 255 accountNumber: type: string - description: The account number of the bank (BANK_TRANSFER only) + description: The account number of the bank minLength: 1 maxLength: 34 bankAccountType: type: string - description: The bank account type (BANK_TRANSFER only) + description: The bank account type enum: - CHECKING - SAVINGS phoneNumber: type: string - description: The phone number in international format (MOBILE_MONEY only — Nequi, Daviplata) + description: The phone number in international format example: '+1234567890' minLength: 7 maxLength: 15 pattern: ^\+[0-9]{6,14}$ example: accountType: COP_ACCOUNT - bankName: Bancolombia accountNumber: '1234567890' bankAccountType: CHECKING + phoneNumber: '+1234567890' CopAccountInfo: allOf: - $ref: '#/components/schemas/CopAccountInfoBase' @@ -12580,7 +12575,7 @@ components: $ref: '#/components/schemas/Address' documentType: type: string - description: 'Identity document type — required by most Colombian banks. CC: Cédula de Ciudadanía, CE: Cédula de Extranjería, TI: Tarjeta de Identidad, NIT: Número de Identificación Tributaria, PP: Passport' + description: Identity document type (Colombia) enum: - CC - CE @@ -12589,7 +12584,7 @@ components: - PP documentNumber: type: string - description: Identity document number — required by most Colombian banks + description: The identity document number minLength: 1 maxLength: 50 CopExternalAccountInfo: diff --git a/openapi/components/schemas/common/CopAccountInfoBase.yaml b/openapi/components/schemas/common/CopAccountInfoBase.yaml index 177929ef..a6f7f4e1 100644 --- a/openapi/components/schemas/common/CopAccountInfoBase.yaml +++ b/openapi/components/schemas/common/CopAccountInfoBase.yaml @@ -3,7 +3,7 @@ required: - accountType description: 'Required fields depend on the selected paymentRails: - - BANK_TRANSFER: bankName, accountNumber, bankAccountType + - BANK_TRANSFER: accountNumber, bankAccountType - MOBILE_MONEY: phoneNumber' properties: @@ -11,32 +11,26 @@ properties: type: string enum: - COP_ACCOUNT - bankName: - type: string - description: The name of the bank (BANK_TRANSFER only) - minLength: 1 - maxLength: 255 accountNumber: type: string - description: The account number of the bank (BANK_TRANSFER only) + description: The account number of the bank minLength: 1 maxLength: 34 bankAccountType: type: string - description: The bank account type (BANK_TRANSFER only) + description: The bank account type enum: - CHECKING - SAVINGS phoneNumber: type: string - description: The phone number in international format (MOBILE_MONEY only — - Nequi, Daviplata) + description: The phone number in international format example: '+1234567890' minLength: 7 maxLength: 15 pattern: ^\+[0-9]{6,14}$ example: accountType: COP_ACCOUNT - bankName: Bancolombia accountNumber: '1234567890' bankAccountType: CHECKING + phoneNumber: '+1234567890' diff --git a/openapi/components/schemas/common/CopBeneficiary.yaml b/openapi/components/schemas/common/CopBeneficiary.yaml index 25fd33b3..11080a98 100644 --- a/openapi/components/schemas/common/CopBeneficiary.yaml +++ b/openapi/components/schemas/common/CopBeneficiary.yaml @@ -30,9 +30,7 @@ properties: $ref: ./Address.yaml documentType: type: string - description: 'Identity document type — required by most Colombian banks. - CC: Cédula de Ciudadanía, CE: Cédula de Extranjería, TI: Tarjeta de - Identidad, NIT: Número de Identificación Tributaria, PP: Passport' + description: Identity document type (Colombia) enum: - CC - CE @@ -41,6 +39,6 @@ properties: - PP documentNumber: type: string - description: Identity document number — required by most Colombian banks + description: The identity document number minLength: 1 maxLength: 50