From 4d82b67c09f249d8a52867a23c49bda8aae026a2 Mon Sep 17 00:00:00 2001 From: Lightspark Eng Date: Wed, 4 Feb 2026 18:55:36 +0000 Subject: [PATCH] chore: Update external account schemas from webdev --- .../external_accounts/InrUpiAccountInfo.yaml | 31 +++++++++++++++++++ .../external_accounts/MxnSpeiAccountInfo.yaml | 31 +++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 openapi/components/schemas/external_accounts/InrUpiAccountInfo.yaml create mode 100644 openapi/components/schemas/external_accounts/MxnSpeiAccountInfo.yaml diff --git a/openapi/components/schemas/external_accounts/InrUpiAccountInfo.yaml b/openapi/components/schemas/external_accounts/InrUpiAccountInfo.yaml new file mode 100644 index 00000000..c765c3cb --- /dev/null +++ b/openapi/components/schemas/external_accounts/InrUpiAccountInfo.yaml @@ -0,0 +1,31 @@ +type: object +title: InrUpiAccountInfo +description: Required fields for USD -> INR corridor via Upi +required: +- accountType +- beneficiary +- fullName +- vpa +properties: + accountType: + type: string + enum: + - INR_UPI_ACCOUNT + example: INR_UPI_ACCOUNT + fullName: + type: string + description: Full name of the beneficiary + example: John Michael Doe + vpa: + type: string + description: Virtual Payment Address (UPI) + example: john@upi + beneficiary: + oneOf: + - $ref: ./IndividualBeneficiary.yaml + - $ref: ./BusinessBeneficiary.yaml + discriminator: + propertyName: beneficiaryType + mapping: + INDIVIDUAL: ./IndividualBeneficiary.yaml + BUSINESS: ./BusinessBeneficiary.yaml diff --git a/openapi/components/schemas/external_accounts/MxnSpeiAccountInfo.yaml b/openapi/components/schemas/external_accounts/MxnSpeiAccountInfo.yaml new file mode 100644 index 00000000..05bf5353 --- /dev/null +++ b/openapi/components/schemas/external_accounts/MxnSpeiAccountInfo.yaml @@ -0,0 +1,31 @@ +type: object +title: MxnSpeiAccountInfo +description: Required fields for USD -> MXN corridor via Spei +required: +- accountType +- beneficiary +- clabe +- name +properties: + accountType: + type: string + enum: + - MXN_SPEI_ACCOUNT + example: MXN_SPEI_ACCOUNT + clabe: + type: string + description: Mexican CLABE interbank account number (18 digits) + example: 012180001234567890 + name: + type: string + description: Full name of the payee + example: Jane Smith + beneficiary: + oneOf: + - $ref: ./IndividualBeneficiary.yaml + - $ref: ./BusinessBeneficiary.yaml + discriminator: + propertyName: beneficiaryType + mapping: + INDIVIDUAL: ./IndividualBeneficiary.yaml + BUSINESS: ./BusinessBeneficiary.yaml