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