Commit f05d11f
authored
feat: add isPlatformAccount to PaymentInstructions and remove PaymentAccountOrWalletInfo refs (#128)
### TL;DR
Refactored payment account schemas to simplify the inheritance structure and added platform account identification.
### What changed?
- Removed the `PaymentAccountOrWalletInfo` base schema and its discriminator pattern
- Simplified inheritance by having payment account types directly reference their base account info
- Replaced `enum` with `const` for account types and asset types to improve type safety
- Relocated the `ClabeAccountInfo` schema to a more logical position in the schema hierarchy
- Added `isPlatformAccount` boolean field to `PaymentInstructions` to distinguish between platform and customer accounts
- Moved `NgnAccountInfo` schema to maintain better organization1 parent fe683e6 commit f05d11f
17 files changed
Lines changed: 105 additions & 329 deletions
File tree
- mintlify
- openapi/components/schemas/common
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments