Skip to content

chore: Sync account schemas#692

Open
lightspark-copybara[bot] wants to merge 1 commit into
mainfrom
auto/sync-grid-schemas-20260715-214355
Open

chore: Sync account schemas#692
lightspark-copybara[bot] wants to merge 1 commit into
mainfrom
auto/sync-grid-schemas-20260715-214355

Conversation

@lightspark-copybara

Copy link
Copy Markdown
Contributor

Auto-synced account schemas.

These schemas are generated from VASP adapter field definitions in sparkcore.

Synced schemas:

  • common/ — per-currency account info, beneficiary, and payment account schemas
  • common/PaymentInstructions.yaml — payment instructions oneOf (new currencies added)
  • external_accounts/ — per-currency external account schemas (reference common/)

Please review the changes before merging.

@vercel

vercel Bot commented Jul 15, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

2 Skipped Deployments
Project Deployment Actions Updated (UTC)
grid-flow-builder Ignored Ignored Preview Jul 15, 2026 9:44pm
grid-wallet-demo Ignored Ignored Preview Jul 15, 2026 9:44pm

Request Review

@github-actions

github-actions Bot commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

✱ Stainless preview builds for grid

This PR will update the grid SDKs with the following commit messages.

cli

chore(internal): regenerate SDK with no functional changes

go

feat(api): add rail parameter to PHP external account creation

kotlin

feat(api): add rail field to PhpExternalAccountCreateInfo/PhpAccountInfo

openapi

feat(api): add rail field to PhpAccountInfoBase

php

feat(api): add rail field to PhpExternalAccountCreateInfo and PhpAccountInfo

python

feat(api): add rail field to PHP external account create info

ruby

feat(api): add rail field to PHP account models

typescript

feat(api): add rail parameter to PHP account type

Edit this comment to update them. They will appear in their respective SDK's changelogs.

grid-typescript studio · code · diff

Your SDK build had at least one "note" diagnostic, but this did not represent a regression.
generate ✅build ✅lint ❗test ✅

npm install https://pkg.stainless.com/s/grid-typescript/528da7d40d1761c990e928a05081542fca28f883/dist.tar.gz
grid-openapi studio · code · diff

Your SDK build had at least one "warning" diagnostic, but this did not represent a regression.
generate ⚠️

grid-ruby studio · code · diff

Your SDK build had at least one "note" diagnostic, but this did not represent a regression.
generate ✅build ✅lint ✅test ✅

grid-go studio · code · diff

Your SDK build had at least one "note" diagnostic, but this did not represent a regression.
generate ✅build ✅lint ❗test ❗

go get github.com/stainless-sdks/grid-go@0f5fb098a0a6a6f466b548f493f56908256899ce
grid-kotlin studio · code · diff

Your SDK build had at least one "warning" diagnostic, but this did not represent a regression.
generate ⚠️build ✅lint ✅test ❗

grid-python studio · code · diff

Your SDK build had at least one "note" diagnostic, but this did not represent a regression.
generate ✅build ✅lint ❗test ❗

pip install https://pkg.stainless.com/s/grid-python/a0f072d5230ddad38373d95d62474d27452af747/grid-0.0.1-py3-none-any.whl
grid-php studio · code · diff

Your SDK build had at least one "note" diagnostic, but this did not represent a regression.
generate ✅lint ✅test ✅

grid-cli studio · code · diff

Your SDK build had at least one "warning" diagnostic, but this did not represent a regression.
generate ⚠️build ❗lint ❗test ❗


This comment is auto-generated by GitHub Actions and is automatically kept up to date as you push.
If you push custom code to the preview branch, re-run this workflow to update the comment.
Last updated: 2026-07-15 21:49:11 UTC

@greptile-apps

greptile-apps Bot commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This auto-synced PR adds an optional rail field to the PhpAccountInfoBase schema for routing Philippine Peso payouts across multiple payment networks, and simplifies the bankName description in GtqAccountInfoBase from "beneficiary's bank" to "bank."

  • PHP rail field — new optional string property (minLength: 1, maxLength: 32) added to PhpAccountInfoBase; the field is not marked required, allowing backward-compatible use. However, the description and example value are copied from InrAccountInfoBase and reference Indian payment rails (NEFT/RTGS), which are incorrect for PHP.
  • GTQ bankName description — minor wording tweak, no functional change; reflected in both the source YAML and the generated bundles (openapi.yaml, mintlify/openapi.yaml).

Confidence Score: 4/5

Safe to merge after correcting the PHP rail field description and example, which currently reference Indian payment systems instead of Philippine ones.

The PHP rail field description and example value are copied verbatim from the INR schema — they reference NEFT/RTGS (Indian interbank rails) in a Philippine Peso account context. This will mislead developers integrating PHP payouts into submitting wrong rail values. The GTQ change is a harmless wording tweak.

openapi/components/schemas/common/PhpAccountInfoBase.yaml — the rail field description and example need to reference Philippine payment rails, not Indian ones

Important Files Changed

Filename Overview
openapi/components/schemas/common/PhpAccountInfoBase.yaml Adds optional rail field for routing PHP payouts, but description and example reference Indian payment rails (NEFT/RTGS for INR) instead of Philippine ones (PESONet/InstaPay)
openapi/components/schemas/common/GtqAccountInfoBase.yaml Minor wording update: bankName description changed from "The name of the beneficiary's bank" to "The name of the bank"
openapi.yaml Generated bundle updated to reflect both the PHP rail field addition (with INR example issue) and GTQ bankName wording change
mintlify/openapi.yaml Mintlify-specific generated bundle updated identically to openapi.yaml — carries the same INR example issue in the PHP rail field

Sequence Diagram

%%{init: {'theme': 'neutral'}}%%
sequenceDiagram
    participant Client
    participant GridAPI
    participant PHPRail as PHP Payment Rail (PESONet / InstaPay)
    participant INRRail as INR Payment Rail (NEFT / RTGS)

    Client->>GridAPI: "POST /payouts { accountType: PHP_ACCOUNT, rail: PESONet }"
    GridAPI->>PHPRail: Route payout over PESONet
    PHPRail-->>GridAPI: Confirmation
    GridAPI-->>Client: Success

    Note over Client,INRRail: Current description/example says NEFT/RTGS (INR rails) - misleading PHP integrators
Loading
%%{init: {'theme': 'base', 'themeVariables': {"darkMode": true, "background": "#0d1117", "primaryColor": "#21262d", "primaryTextColor": "#e6edf3", "primaryBorderColor": "#8b949e", "lineColor": "#8b949e", "textColor": "#e6edf3", "edgeLabelBackground": "#161b22", "actorBkg": "#21262d", "actorBorder": "#8b949e", "actorTextColor": "#e6edf3", "actorLineColor": "#8b949e", "signalColor": "#8b949e", "signalTextColor": "#e6edf3", "noteBkgColor": "#373320", "noteBorderColor": "#d4a72c", "noteTextColor": "#f0e6c0", "labelBoxBkgColor": "#21262d", "labelBoxBorderColor": "#8b949e", "labelTextColor": "#e6edf3", "loopTextColor": "#e6edf3", "activationBkgColor": "#30363d", "activationBorderColor": "#8b949e"}}}%%
sequenceDiagram
    participant Client
    participant GridAPI
    participant PHPRail as PHP Payment Rail (PESONet / InstaPay)
    participant INRRail as INR Payment Rail (NEFT / RTGS)

    Client->>GridAPI: "POST /payouts { accountType: PHP_ACCOUNT, rail: PESONet }"
    GridAPI->>PHPRail: Route payout over PESONet
    PHPRail-->>GridAPI: Confirmation
    GridAPI-->>Client: Success

    Note over Client,INRRail: Current description/example says NEFT/RTGS (INR rails) - misleading PHP integrators
Loading
Prompt To Fix All With AI
Fix the following 1 code review issue. Work through them one at a time, proposing concise fixes.

---

### Issue 1 of 1
openapi/components/schemas/common/PhpAccountInfoBase.yaml:24-35
The `rail` field description and example are copied verbatim from `InrAccountInfoBase.yaml` and reference Indian payment rails (NEFT, RTGS) rather than Philippine ones. A developer integrating PHP payouts will see "e.g. NEFT or RTGS for INR" and the example value `NEFT`, both of which are specific to India's NEFT/RTGS interbank clearing systems. The description and example should reflect the actual Philippine payment rails (e.g., PESONet or InstaPay).

```suggestion
  rail:
    type: string
    description: The payment rail to route the payout over, for currencies that support
      more than one (e.g. PESONet or InstaPay for PHP).
    example: PESONet
    minLength: 1
    maxLength: 32
example:
  accountType: PHP_ACCOUNT
  bankName: BDO Unibank
  accountNumber: '001234567890'
  rail: PESONet
```

Reviews (1): Last reviewed commit: "chore: Sync account schemas" | Re-trigger Greptile

Comment on lines +24 to +35
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
example:
accountType: PHP_ACCOUNT
bankName: BDO Unibank
accountNumber: '001234567890'
rail: NEFT

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P1 The rail field description and example are copied verbatim from InrAccountInfoBase.yaml and reference Indian payment rails (NEFT, RTGS) rather than Philippine ones. A developer integrating PHP payouts will see "e.g. NEFT or RTGS for INR" and the example value NEFT, both of which are specific to India's NEFT/RTGS interbank clearing systems. The description and example should reflect the actual Philippine payment rails (e.g., PESONet or InstaPay).

Suggested change
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
example:
accountType: PHP_ACCOUNT
bankName: BDO Unibank
accountNumber: '001234567890'
rail: NEFT
rail:
type: string
description: The payment rail to route the payout over, for currencies that support
more than one (e.g. PESONet or InstaPay for PHP).
example: PESONet
minLength: 1
maxLength: 32
example:
accountType: PHP_ACCOUNT
bankName: BDO Unibank
accountNumber: '001234567890'
rail: PESONet
Prompt To Fix With AI
This is a comment left during a code review.
Path: openapi/components/schemas/common/PhpAccountInfoBase.yaml
Line: 24-35

Comment:
The `rail` field description and example are copied verbatim from `InrAccountInfoBase.yaml` and reference Indian payment rails (NEFT, RTGS) rather than Philippine ones. A developer integrating PHP payouts will see "e.g. NEFT or RTGS for INR" and the example value `NEFT`, both of which are specific to India's NEFT/RTGS interbank clearing systems. The description and example should reflect the actual Philippine payment rails (e.g., PESONet or InstaPay).

```suggestion
  rail:
    type: string
    description: The payment rail to route the payout over, for currencies that support
      more than one (e.g. PESONet or InstaPay for PHP).
    example: PESONet
    minLength: 1
    maxLength: 32
example:
  accountType: PHP_ACCOUNT
  bankName: BDO Unibank
  accountNumber: '001234567890'
  rail: PESONet
```

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants