Skip to content

Commit 309c629

Browse files
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

File tree

mintlify/openapi.yaml

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

openapi.yaml

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

openapi/components/schemas/quotes/AccountDestination.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,11 @@ allOf:
1414
type: string
1515
description: Destination account identifier
1616
example: ExternalAccount:a12dcbd6-dced-4ec4-b756-3c3a9ea3d123
17+
paymentRail:
18+
type: string
19+
description: >-
20+
The payment rail to use for the transfer. Must be one of the rails
21+
supported by the destination account. If not specified, the system
22+
will select a default rail.
23+
example: ACH
1724
description: Destination account details

0 commit comments

Comments
 (0)