From 1c2327587c905e898e0cf0e2ca874219aa135807 Mon Sep 17 00:00:00 2001 From: Lightspark Eng Date: Mon, 6 Jul 2026 18:34:33 +0000 Subject: [PATCH] chore: Sync account schemas --- mintlify/openapi.yaml | 43 ++++++++++++++++--- openapi.yaml | 43 ++++++++++++++++--- .../schemas/common/GtqAccountInfoBase.yaml | 3 +- .../schemas/common/InrAccountInfo.yaml | 2 + .../schemas/common/InrAccountInfoBase.yaml | 39 ++++++++++++++++- .../schemas/common/JmdAccountInfoBase.yaml | 3 +- 6 files changed, 118 insertions(+), 15 deletions(-) diff --git a/mintlify/openapi.yaml b/mintlify/openapi.yaml index 9beb0ec97..c6ad7a6f0 100644 --- a/mintlify/openapi.yaml +++ b/mintlify/openapi.yaml @@ -10633,7 +10633,11 @@ components: type: object required: - accountType - - vpa + description: |- + Required fields depend on the selected paymentRails: + - NEFT: accountNumber, ifsc, rail + - RTGS: accountNumber, ifsc, rail + - UPI: vpa properties: accountType: type: string @@ -10646,9 +10650,38 @@ components: minLength: 3 maxLength: 255 pattern: ^[a-zA-Z0-9.\-_]+@[a-zA-Z0-9]+$ + accountNumber: + type: string + description: Indian bank account number (9–18 digits) + minLength: 9 + maxLength: 18 + example: '000111222333' + pattern: ^[0-9]{9,18}$ + ifsc: + type: string + description: The Indian Financial System Code (IFSC) of the beneficiary's bank branch (NEFT/RTGS) + example: HDFC0001234 + minLength: 11 + maxLength: 11 + pattern: ^[A-Z]{4}0[A-Z0-9]{6}$ + rail: + type: string + description: The payment rail to route the payout over, for currencies that support more than one (e.g. NEFT or RTGS for INR). + example: NEFT + minLength: 1 + maxLength: 32 + bankName: + type: string + description: The name of the bank + minLength: 1 + maxLength: 255 example: accountType: INR_ACCOUNT vpa: user@upi + accountNumber: '000111222333' + ifsc: HDFC0001234 + rail: NEFT + bankName: Example Bank InrAccountInfo: allOf: - $ref: '#/components/schemas/InrAccountInfoBase' @@ -10662,6 +10695,8 @@ components: type: string enum: - UPI + - NEFT + - RTGS PaymentInrAccountInfo: title: INR Account allOf: @@ -12324,12 +12359,11 @@ components: description: The name of the bank minLength: 1 maxLength: 255 - example: Banco GYT Continental example: accountType: GTQ_ACCOUNT accountNumber: '1234567890' bankAccountType: CHECKING - bankName: Banco GYT Continental + bankName: Example Bank GtqAccountInfo: allOf: - $ref: '#/components/schemas/GtqAccountInfoBase' @@ -12437,13 +12471,12 @@ components: description: The name of the bank minLength: 1 maxLength: 255 - example: Bank of Nova Scotia example: accountType: JMD_ACCOUNT accountNumber: '1234567890' branchCode: '11111' bankAccountType: CHECKING - bankName: Bank of Nova Scotia + bankName: Example Bank JmdAccountInfo: allOf: - $ref: '#/components/schemas/JmdAccountInfoBase' diff --git a/openapi.yaml b/openapi.yaml index 9beb0ec97..c6ad7a6f0 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -10633,7 +10633,11 @@ components: type: object required: - accountType - - vpa + description: |- + Required fields depend on the selected paymentRails: + - NEFT: accountNumber, ifsc, rail + - RTGS: accountNumber, ifsc, rail + - UPI: vpa properties: accountType: type: string @@ -10646,9 +10650,38 @@ components: minLength: 3 maxLength: 255 pattern: ^[a-zA-Z0-9.\-_]+@[a-zA-Z0-9]+$ + accountNumber: + type: string + description: Indian bank account number (9–18 digits) + minLength: 9 + maxLength: 18 + example: '000111222333' + pattern: ^[0-9]{9,18}$ + ifsc: + type: string + description: The Indian Financial System Code (IFSC) of the beneficiary's bank branch (NEFT/RTGS) + example: HDFC0001234 + minLength: 11 + maxLength: 11 + pattern: ^[A-Z]{4}0[A-Z0-9]{6}$ + rail: + type: string + description: The payment rail to route the payout over, for currencies that support more than one (e.g. NEFT or RTGS for INR). + example: NEFT + minLength: 1 + maxLength: 32 + bankName: + type: string + description: The name of the bank + minLength: 1 + maxLength: 255 example: accountType: INR_ACCOUNT vpa: user@upi + accountNumber: '000111222333' + ifsc: HDFC0001234 + rail: NEFT + bankName: Example Bank InrAccountInfo: allOf: - $ref: '#/components/schemas/InrAccountInfoBase' @@ -10662,6 +10695,8 @@ components: type: string enum: - UPI + - NEFT + - RTGS PaymentInrAccountInfo: title: INR Account allOf: @@ -12324,12 +12359,11 @@ components: description: The name of the bank minLength: 1 maxLength: 255 - example: Banco GYT Continental example: accountType: GTQ_ACCOUNT accountNumber: '1234567890' bankAccountType: CHECKING - bankName: Banco GYT Continental + bankName: Example Bank GtqAccountInfo: allOf: - $ref: '#/components/schemas/GtqAccountInfoBase' @@ -12437,13 +12471,12 @@ components: description: The name of the bank minLength: 1 maxLength: 255 - example: Bank of Nova Scotia example: accountType: JMD_ACCOUNT accountNumber: '1234567890' branchCode: '11111' bankAccountType: CHECKING - bankName: Bank of Nova Scotia + bankName: Example Bank JmdAccountInfo: allOf: - $ref: '#/components/schemas/JmdAccountInfoBase' diff --git a/openapi/components/schemas/common/GtqAccountInfoBase.yaml b/openapi/components/schemas/common/GtqAccountInfoBase.yaml index 8cf8e1be6..2aa3f12a6 100644 --- a/openapi/components/schemas/common/GtqAccountInfoBase.yaml +++ b/openapi/components/schemas/common/GtqAccountInfoBase.yaml @@ -25,9 +25,8 @@ properties: description: The name of the bank minLength: 1 maxLength: 255 - example: Banco GYT Continental example: accountType: GTQ_ACCOUNT accountNumber: '1234567890' bankAccountType: CHECKING - bankName: Banco GYT Continental + bankName: Example Bank diff --git a/openapi/components/schemas/common/InrAccountInfo.yaml b/openapi/components/schemas/common/InrAccountInfo.yaml index 0ea13547b..f7ea8324c 100644 --- a/openapi/components/schemas/common/InrAccountInfo.yaml +++ b/openapi/components/schemas/common/InrAccountInfo.yaml @@ -10,3 +10,5 @@ allOf: type: string enum: - UPI + - NEFT + - RTGS diff --git a/openapi/components/schemas/common/InrAccountInfoBase.yaml b/openapi/components/schemas/common/InrAccountInfoBase.yaml index 2d88d3317..d289550cd 100644 --- a/openapi/components/schemas/common/InrAccountInfoBase.yaml +++ b/openapi/components/schemas/common/InrAccountInfoBase.yaml @@ -1,7 +1,13 @@ type: object required: - accountType -- vpa +description: 'Required fields depend on the selected paymentRails: + + - NEFT: accountNumber, ifsc, rail + + - RTGS: accountNumber, ifsc, rail + + - UPI: vpa' properties: accountType: type: string @@ -14,6 +20,37 @@ properties: minLength: 3 maxLength: 255 pattern: ^[a-zA-Z0-9.\-_]+@[a-zA-Z0-9]+$ + accountNumber: + type: string + description: Indian bank account number (9–18 digits) + minLength: 9 + maxLength: 18 + example: '000111222333' + pattern: ^[0-9]{9,18}$ + ifsc: + type: string + description: The Indian Financial System Code (IFSC) of the beneficiary's bank + branch (NEFT/RTGS) + example: HDFC0001234 + minLength: 11 + maxLength: 11 + pattern: ^[A-Z]{4}0[A-Z0-9]{6}$ + rail: + type: string + description: The payment rail to route the payout over, for currencies that support + more than one (e.g. NEFT or RTGS for INR). + example: NEFT + minLength: 1 + maxLength: 32 + bankName: + type: string + description: The name of the bank + minLength: 1 + maxLength: 255 example: accountType: INR_ACCOUNT vpa: user@upi + accountNumber: '000111222333' + ifsc: HDFC0001234 + rail: NEFT + bankName: Example Bank diff --git a/openapi/components/schemas/common/JmdAccountInfoBase.yaml b/openapi/components/schemas/common/JmdAccountInfoBase.yaml index 0df2fc8fa..14a4cb3a6 100644 --- a/openapi/components/schemas/common/JmdAccountInfoBase.yaml +++ b/openapi/components/schemas/common/JmdAccountInfoBase.yaml @@ -32,10 +32,9 @@ properties: description: The name of the bank minLength: 1 maxLength: 255 - example: Bank of Nova Scotia example: accountType: JMD_ACCOUNT accountNumber: '1234567890' branchCode: '11111' bankAccountType: CHECKING - bankName: Bank of Nova Scotia + bankName: Example Bank