-
Notifications
You must be signed in to change notification settings - Fork 3
chore: Update external account schemas from webdev #150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -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 for UPI payments | ||||||||||||||||||||||||
| example: somecustomers@okbank | ||||||||||||||||||||||||
| beneficiary: | ||||||||||||||||||||||||
| oneOf: | ||||||||||||||||||||||||
| - $ref: ./IndividualBeneficiary.yaml | ||||||||||||||||||||||||
| - $ref: ./BusinessBeneficiary.yaml | ||||||||||||||||||||||||
| discriminator: | ||||||||||||||||||||||||
| propertyName: beneficiaryType | ||||||||||||||||||||||||
| mapping: | ||||||||||||||||||||||||
| INDIVIDUAL: ./IndividualBeneficiary.yaml | ||||||||||||||||||||||||
| BUSINESS: ./BusinessBeneficiary.yaml | ||||||||||||||||||||||||
|
Comment on lines
+23
to
+31
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use shared
Suggested change
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time! Prompt To Fix With AIThis is a comment left during a code review.
Path: openapi/components/schemas/external_accounts/InrUpiAccountInfo.yaml
Line: 23:31
Comment:
Use shared `BeneficiaryOneOf.yaml` reference for consistency with other external account types. All other account schemas (PHP, NGN, CAD, etc.) reference `./BeneficiaryOneOf.yaml` instead of inlining the discriminator logic.
```suggestion
beneficiary:
$ref: ./BeneficiaryOneOf.yaml
```
<sub>Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!</sub>
How can I resolve this? If you propose a fix, please make it concise. |
||||||||||||||||||||||||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,34 @@ | ||||||||||||||||||||||||
| type: object | ||||||||||||||||||||||||
| title: MxnSpeiAccountInfo | ||||||||||||||||||||||||
| description: Required fields for USD -> MXN corridor via Spei | ||||||||||||||||||||||||
| required: | ||||||||||||||||||||||||
| - accountType | ||||||||||||||||||||||||
| - beneficiary | ||||||||||||||||||||||||
| - clabeNumber | ||||||||||||||||||||||||
| - name | ||||||||||||||||||||||||
| properties: | ||||||||||||||||||||||||
| accountType: | ||||||||||||||||||||||||
| type: string | ||||||||||||||||||||||||
| enum: | ||||||||||||||||||||||||
| - MXN_SPEI_ACCOUNT | ||||||||||||||||||||||||
| example: MXN_SPEI_ACCOUNT | ||||||||||||||||||||||||
| clabeNumber: | ||||||||||||||||||||||||
| type: string | ||||||||||||||||||||||||
| description: 18-digit CLABE number (Mexican banking standard) | ||||||||||||||||||||||||
| example: '123456789012345678' | ||||||||||||||||||||||||
| minLength: 18 | ||||||||||||||||||||||||
| maxLength: 18 | ||||||||||||||||||||||||
| pattern: ^[0-9]{18}$ | ||||||||||||||||||||||||
| 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 | ||||||||||||||||||||||||
|
Comment on lines
+26
to
+34
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use shared
Suggested change
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time! Prompt To Fix With AIThis is a comment left during a code review.
Path: openapi/components/schemas/external_accounts/MxnSpeiAccountInfo.yaml
Line: 26:34
Comment:
Use shared `BeneficiaryOneOf.yaml` reference for consistency with other external account types. All other account schemas reference `./BeneficiaryOneOf.yaml` instead of inlining the discriminator logic.
```suggestion
beneficiary:
$ref: ./BeneficiaryOneOf.yaml
```
<sub>Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!</sub>
How can I resolve this? If you propose a fix, please make it concise. |
||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use human-readable titles like other entries (e.g., "MXN SPEI Account" and "INR UPI Account" instead of schema names). This inconsistency breaks the naming pattern used by all other account types in this file.
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
Prompt To Fix With AI