Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,36 +1,40 @@
oneOf:
- title: US Account
$ref: ./UsAccountExternalAccountInfo.yaml
- title: CLABE Account
$ref: ./ClabeAccountExternalAccountInfo.yaml
- title: PIX Account
$ref: ./PixAccountExternalAccountInfo.yaml
- title: IBAN Account
$ref: ./IbanAccountExternalAccountInfo.yaml
- title: UPI Account
$ref: ./UpiAccountExternalAccountInfo.yaml
- title: NGN Account
$ref: ./NgnAccountExternalAccountInfo.yaml
- title: CAD Account
$ref: ./CadAccountExternalAccountInfo.yaml
- title: GBP Account
$ref: ./GbpAccountExternalAccountInfo.yaml
- title: PHP Account
$ref: ./PhpAccountExternalAccountInfo.yaml
- title: SGD Account
$ref: ./SgdAccountExternalAccountInfo.yaml
- title: Spark Wallet
$ref: ./SparkWalletExternalAccountInfo.yaml
- title: Lightning
$ref: ./LightningExternalAccountInfo.yaml
- title: Solana Wallet
$ref: ./SolanaWalletExternalAccountInfo.yaml
- title: Tron Wallet
$ref: ./TronWalletExternalAccountInfo.yaml
- title: Polygon Wallet
$ref: ./PolygonWalletExternalAccountInfo.yaml
- title: Base Wallet
$ref: ./BaseWalletExternalAccountInfo.yaml
- title: US Account
$ref: ./UsAccountExternalAccountInfo.yaml
- title: CLABE Account
$ref: ./ClabeAccountExternalAccountInfo.yaml
- title: PIX Account
$ref: ./PixAccountExternalAccountInfo.yaml
- title: IBAN Account
$ref: ./IbanAccountExternalAccountInfo.yaml
- title: UPI Account
$ref: ./UpiAccountExternalAccountInfo.yaml
- title: NGN Account
$ref: ./NgnAccountExternalAccountInfo.yaml
- title: CAD Account
$ref: ./CadAccountExternalAccountInfo.yaml
- title: GBP Account
$ref: ./GbpAccountExternalAccountInfo.yaml
- title: PHP Account
$ref: ./PhpAccountExternalAccountInfo.yaml
- title: SGD Account
$ref: ./SgdAccountExternalAccountInfo.yaml
- title: Spark Wallet
$ref: ./SparkWalletExternalAccountInfo.yaml
- title: Lightning
$ref: ./LightningExternalAccountInfo.yaml
- title: Solana Wallet
$ref: ./SolanaWalletExternalAccountInfo.yaml
- title: Tron Wallet
$ref: ./TronWalletExternalAccountInfo.yaml
- title: Polygon Wallet
$ref: ./PolygonWalletExternalAccountInfo.yaml
- title: Base Wallet
$ref: ./BaseWalletExternalAccountInfo.yaml
- title: MxnSpeiAccountInfo
$ref: ./MxnSpeiAccountInfo.yaml
- title: InrUpiAccountInfo
$ref: ./InrUpiAccountInfo.yaml
Comment on lines +34 to +37
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Title naming inconsistent with existing patterns. Other entries use descriptive titles like "US Account", "CLABE Account", "UPI Account" but these use schema names "MxnSpeiAccountInfo" and "InrUpiAccountInfo"

Suggested change
- title: MxnSpeiAccountInfo
$ref: ./MxnSpeiAccountInfo.yaml
- title: InrUpiAccountInfo
$ref: ./InrUpiAccountInfo.yaml
- title: MXN SPEI Account
$ref: ./MxnSpeiAccountInfo.yaml
- title: INR UPI Account
$ref: ./InrUpiAccountInfo.yaml

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
This is a comment left during a code review.
Path: openapi/components/schemas/external_accounts/ExternalAccountInfoOneOf.yaml
Line: 34:37

Comment:
Title naming inconsistent with existing patterns. Other entries use descriptive titles like "US Account", "CLABE Account", "UPI Account" but these use schema names "MxnSpeiAccountInfo" and "InrUpiAccountInfo"

```suggestion
- title: MXN SPEI Account
  $ref: ./MxnSpeiAccountInfo.yaml
- title: INR UPI Account
  $ref: ./InrUpiAccountInfo.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.

discriminator:
propertyName: accountType
mapping:
Expand All @@ -50,3 +54,5 @@ discriminator:
TRON_WALLET: ./TronWalletExternalAccountInfo.yaml
POLYGON_WALLET: ./PolygonWalletExternalAccountInfo.yaml
BASE_WALLET: ./BaseWalletExternalAccountInfo.yaml
MXN_SPEI_ACCOUNT: ./MxnSpeiAccountInfo.yaml
INR_UPI_ACCOUNT: ./InrUpiAccountInfo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
type: object
title: InrUpiAccountInfo
description: Required fields for USD -> INR corridor via Upi
required:
- accountType
- beneficiary
- vpa
Comment on lines +1 to +7
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Schema structure inconsistent with existing patterns. Other external account schemas (e.g., UpiAccountExternalAccountInfo.yaml:1-9, ClabeAccountExternalAccountInfo.yaml:1-9) use allOf composition to extend BaseExternalAccountInfo.yaml and reference common account info schemas. This standalone schema doesn't inherit base properties or use the established composition pattern

Prompt To Fix With AI
This is a comment left during a code review.
Path: openapi/components/schemas/external_accounts/InrUpiAccountInfo.yaml
Line: 1:7

Comment:
Schema structure inconsistent with existing patterns. Other external account schemas (e.g., `UpiAccountExternalAccountInfo.yaml:1-9`, `ClabeAccountExternalAccountInfo.yaml:1-9`) use `allOf` composition to extend `BaseExternalAccountInfo.yaml` and reference common account info schemas. This standalone schema doesn't inherit base properties or use the established composition pattern

How can I resolve this? If you propose a fix, please make it concise.

properties:
accountType:
type: string
enum:
- INR_UPI_ACCOUNT
example: INR_UPI_ACCOUNT
vpa:
type: string
description: Virtual Payment Address for UPI payments
example: somecustomers@okbank
beneficiary:
type: object
required:
- fullName
properties:
fullName:
type: string
description: Individual's full name
example: John Michael Doe
Comment on lines +18 to +26
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Beneficiary structure doesn't match existing external account patterns. Other account types (e.g., UpiAccountExternalAccountInfo.yaml:9, ClabeAccountExternalAccountInfo.yaml:9, NgnAccountExternalAccountInfo.yaml:27) use $ref: ./BeneficiaryOneOf.yaml which supports both individual and business beneficiaries with proper validation. This inline definition only accepts fullName without beneficiaryType, birthDate, or nationality fields required by IndividualBeneficiary.yaml:4-8

Prompt To Fix With AI
This is a comment left during a code review.
Path: openapi/components/schemas/external_accounts/InrUpiAccountInfo.yaml
Line: 18:26

Comment:
Beneficiary structure doesn't match existing external account patterns. Other account types (e.g., `UpiAccountExternalAccountInfo.yaml:9`, `ClabeAccountExternalAccountInfo.yaml:9`, `NgnAccountExternalAccountInfo.yaml:27`) use `$ref: ./BeneficiaryOneOf.yaml` which supports both individual and business beneficiaries with proper validation. This inline definition only accepts `fullName` without `beneficiaryType`, `birthDate`, or `nationality` fields required by `IndividualBeneficiary.yaml:4-8`

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,29 @@
type: object
title: MxnSpeiAccountInfo
description: Required fields for USD -> MXN corridor via Spei
required:
- accountType
- beneficiary
- clabeNumber
Comment on lines +1 to +7
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Schema structure inconsistent with existing patterns. Other external account schemas (e.g., UpiAccountExternalAccountInfo.yaml:1-9, ClabeAccountExternalAccountInfo.yaml:1-9) use allOf composition to extend BaseExternalAccountInfo.yaml and reference common account info schemas. This standalone schema doesn't inherit base properties or use the established composition pattern

Prompt To Fix With AI
This is a comment left during a code review.
Path: openapi/components/schemas/external_accounts/MxnSpeiAccountInfo.yaml
Line: 1:7

Comment:
Schema structure inconsistent with existing patterns. Other external account schemas (e.g., `UpiAccountExternalAccountInfo.yaml:1-9`, `ClabeAccountExternalAccountInfo.yaml:1-9`) use `allOf` composition to extend `BaseExternalAccountInfo.yaml` and reference common account info schemas. This standalone schema doesn't inherit base properties or use the established composition pattern

How can I resolve this? If you propose a fix, please make it concise.

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}$
beneficiary:
type: object
required:
- fullName
properties:
fullName:
type: string
description: Individual's full name
example: John Michael Doe
Comment on lines +21 to +29
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Beneficiary structure doesn't match existing external account patterns. Other account types (e.g., UpiAccountExternalAccountInfo.yaml:9, ClabeAccountExternalAccountInfo.yaml:9, NgnAccountExternalAccountInfo.yaml:27) use $ref: ./BeneficiaryOneOf.yaml which supports both individual and business beneficiaries with proper validation. This inline definition only accepts fullName without beneficiaryType, birthDate, or nationality fields required by IndividualBeneficiary.yaml:4-8

Prompt To Fix With AI
This is a comment left during a code review.
Path: openapi/components/schemas/external_accounts/MxnSpeiAccountInfo.yaml
Line: 21:29

Comment:
Beneficiary structure doesn't match existing external account patterns. Other account types (e.g., `UpiAccountExternalAccountInfo.yaml:9`, `ClabeAccountExternalAccountInfo.yaml:9`, `NgnAccountExternalAccountInfo.yaml:27`) use `$ref: ./BeneficiaryOneOf.yaml` which supports both individual and business beneficiaries with proper validation. This inline definition only accepts `fullName` without `beneficiaryType`, `birthDate`, or `nationality` fields required by `IndividualBeneficiary.yaml:4-8`

How can I resolve this? If you propose a fix, please make it concise.