Commit 4d89702
authored
Add PaymentRail enum for external accounts (#347)
## Summary
- Introduces a new `PaymentRail` enum in `openapi/components/schemas/common/PaymentRail.yaml` containing all 14 payment rails used across external accounts: ACH, BANK_TRANSFER, FAST, FASTER_PAYMENTS, FEDNOW, MOBILE_MONEY, PAYNOW, PIX, RTP, SEPA, SEPA_INSTANT, SPEI, UPI, WIRE
- Wires the enum into `AccountDestination.paymentRail` (quotes) and `ExchangeRate.destinationPaymentRail` (exchange rates) which previously used untyped strings
- Individual per-currency `AccountInfo` schemas retain their currency-specific subset enums for stricter validation
## Test plan
- [x] `make build` succeeds — OpenAPI spec bundles correctly
- [x] `npx @redocly/cli lint openapi.yaml` passes validation (16 pre-existing warnings, 0 errors)
- [ ] Verify generated SDK clients pick up the new enum type
- [ ] Verify Mintlify docs render the enum values on API reference pages
🤖 Generated with [Claude Code](https://claude.com/claude-code)1 parent a79ac8b commit 4d89702
5 files changed
Lines changed: 82 additions & 21 deletions
File tree
- mintlify
- openapi/components/schemas
- common
- exchange_rates
- quotes
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 | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
40 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
24 | 24 | | |
0 commit comments