Commit 309c629
authored
feat: adding paymentRail to quote account destination (#279)
### TL;DR
Added optional `paymentRail` field to the `AccountDestination` schema to allow specifying the payment rail for transfers.
### What changed?
Added a new optional `paymentRail` field to the `AccountDestination` schema with:
- Type: string
- Description explaining it must be one of the rails supported by the destination account
- Default behavior where the system selects a rail if not specified
- Example value of "ACH"
### How to test?
Test API requests that include the `AccountDestination` object by:
1. Sending requests with the `paymentRail` field specified (e.g., "ACH")
2. Sending requests without the `paymentRail` field to verify default behavior
3. Validating that only supported payment rails are accepted for each destination account
### Why make this change?
This change provides users with explicit control over which payment rail to use for transfers, while maintaining backward compatibility by making the field optional and preserving existing default rail selection behavior.1 parent 573d704 commit 309c629
3 files changed
Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
17 | 24 | | |
0 commit comments