Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,298 changes: 760 additions & 538 deletions mintlify/openapi.yaml

Large diffs are not rendered by default.

1,298 changes: 760 additions & 538 deletions openapi.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ enum:
- US_ACCOUNT
- PIX
- IBAN
- FBO
- UPI
- NGN_ACCOUNT
- SPARK_WALLET
Expand Down
21 changes: 21 additions & 0 deletions openapi/components/schemas/common/BasePaymentAccountInfo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
type: object
required:
- accountType
properties:
accountType:
$ref: ./PaymentAccountType.yaml
discriminator:
propertyName: accountType
mapping:
CLABE: ./PaymentClabeAccountInfo.yaml
US_ACCOUNT: ./PaymentUsAccountInfo.yaml
PIX: ./PaymentPixAccountInfo.yaml
IBAN: ./PaymentIbanAccountInfo.yaml
UPI: ./PaymentUpiAccountInfo.yaml
NGN_ACCOUNT: ./PaymentNgnAccountInfo.yaml
SPARK_WALLET: ./PaymentSparkWalletInfo.yaml
LIGHTNING: ./PaymentLightningInvoiceInfo.yaml
SOLANA_WALLET: ./PaymentSolanaWalletInfo.yaml
TRON_WALLET: ./PaymentTronWalletInfo.yaml
POLYGON_WALLET: ./PaymentPolygonWalletInfo.yaml
BASE_WALLET: ./PaymentBaseWalletInfo.yaml
2 changes: 1 addition & 1 deletion openapi/components/schemas/common/BaseWalletInfo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ required:
properties:
accountType:
type: string
const: BASE_WALLET
enum: [BASE_WALLET]
example: BASE_WALLET
address:
type: string
Expand Down
2 changes: 1 addition & 1 deletion openapi/components/schemas/common/ClabeAccountInfo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ required:
properties:
accountType:
type: string
const: CLABE
enum: [CLABE]
example: CLABE
clabeNumber:
type: string
Expand Down
2 changes: 1 addition & 1 deletion openapi/components/schemas/common/FboAccountInfo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ required:
properties:
accountType:
type: string
const: FBO
enum: [FBO]
example: FBO
currencyCode:
type: string
Expand Down
2 changes: 1 addition & 1 deletion openapi/components/schemas/common/IbanAccountInfo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ required:
properties:
accountType:
type: string
const: IBAN
enum: [IBAN]
example: IBAN
iban:
type: string
Expand Down
2 changes: 1 addition & 1 deletion openapi/components/schemas/common/NgnAccountInfo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ required:
properties:
accountType:
type: string
const: NGN_ACCOUNT
enum: [NGN_ACCOUNT]
example: NGN_ACCOUNT
accountNumber:
type: string
Expand Down
16 changes: 16 additions & 0 deletions openapi/components/schemas/common/PaymentAccountType.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
type: string
enum:
- CLABE
- US_ACCOUNT
- PIX
- IBAN
- UPI
- NGN_ACCOUNT
- SPARK_WALLET
- LIGHTNING
- SOLANA_WALLET
- TRON_WALLET
- POLYGON_WALLET
- BASE_WALLET
description: Type of payment account or wallet
example: US_ACCOUNT
13 changes: 8 additions & 5 deletions openapi/components/schemas/common/PaymentBaseWalletInfo.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
allOf:
- $ref: ./BasePaymentAccountInfo.yaml
- $ref: ./BaseWalletInfo.yaml
properties:
assetType:
type: string
description: Type of asset
const: USDC
- type: object
properties:
assetType:
type: string
description: Type of asset
enum:
- USDC
20 changes: 11 additions & 9 deletions openapi/components/schemas/common/PaymentClabeAccountInfo.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
allOf:
- $ref: ./BasePaymentAccountInfo.yaml
- $ref: ./ClabeAccountInfo.yaml
required:
- reference
properties:
reference:
type: string
description: >-
Unique reference code that must be included with the payment to properly
credit it
example: UMA-Q12345-REF
- type: object
required:
- reference
properties:
reference:
type: string
description: >-
Unique reference code that must be included with the payment to properly
credit it
example: UMA-Q12345-REF
20 changes: 11 additions & 9 deletions openapi/components/schemas/common/PaymentIbanAccountInfo.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
allOf:
- $ref: ./BasePaymentAccountInfo.yaml
- $ref: ./IbanAccountInfo.yaml
required:
- reference
properties:
reference:
type: string
description: >-
Unique reference code that must be included with the payment to properly
credit it
example: UMA-Q12345-REF
- type: object
required:
- reference
properties:
reference:
type: string
description: >-
Unique reference code that must be included with the payment to properly
credit it
example: UMA-Q12345-REF
2 changes: 1 addition & 1 deletion openapi/components/schemas/common/PaymentInstructions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ properties:
SOLANA_WALLET: ../common/PaymentSolanaWalletInfo.yaml
TRON_WALLET: ../common/PaymentTronWalletInfo.yaml
POLYGON_WALLET: ../common/PaymentPolygonWalletInfo.yaml
BASE_WALLET: ../common/PaymentBaseWalletInfo.yaml
BASE_WALLET: ../common/PaymentBaseWalletInfo.yaml
23 changes: 10 additions & 13 deletions openapi/components/schemas/common/PaymentLightningInvoiceInfo.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
type: object
required:
- accountType
- invoice
properties:
accountType:
type: string
const: LIGHTNING
example: LIGHTNING
invoice:
type: string
description: Invoice for the payment
example: lnbc15u1p3xnhl2pp5jptserfk3zk4qy42tlucycrfwxhydvlemu9pqr93tuzlv9cc7g3sdqsvfhkcap3xyhx7un8cqzpgxqzjcsp5f8c52y2stc300gl6s4xswtjpc37hrnnr3c9wvtgjfuvqmpm35evq9qyyssqy4lgd8tj637qcjp05rdpxxykjenthxftej7a2zzmwrmrl70fyj9hvj0rewhzj7jfyuwkwcg9g2jpwtk3wkjtwnkdks84hsnu8xps5vsq4gj5hs
allOf:
- $ref: ./BasePaymentAccountInfo.yaml
- type: object
required:
- invoice
properties:
invoice:
type: string
description: Invoice for the payment
example: lnbc15u1p3xnhl2pp5jptserfk3zk4qy42tlucycrfwxhydvlemu9pqr93tuzlv9cc7g3sdqsvfhkcap3xyhx7un8cqzpgxqzjcsp5f8c52y2stc300gl6s4xswtjpc37hrnnr3c9wvtgjfuvqmpm35evq9qyyssqy4lgd8tj637qcjp05rdpxxykjenthxftej7a2zzmwrmrl70fyj9hvj0rewhzj7jfyuwkwcg9g2jpwtk3wkjtwnkdks84hsnu8xps5vsq4gj5hs
20 changes: 11 additions & 9 deletions openapi/components/schemas/common/PaymentNgnAccountInfo.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
allOf:
- $ref: ./BasePaymentAccountInfo.yaml
- $ref: ./NgnAccountInfo.yaml
required:
- reference
properties:
reference:
type: string
description: >-
Unique reference code that must be included with the payment to properly
credit it
example: UMA-Q12345-REF
- type: object
required:
- reference
properties:
reference:
type: string
description: >-
Unique reference code that must be included with the payment to properly
credit it
example: UMA-Q12345-REF
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
allOf:
- $ref: ./BasePaymentAccountInfo.yaml
- $ref: ./PixAccountInfo.yaml
14 changes: 9 additions & 5 deletions openapi/components/schemas/common/PaymentPolygonWalletInfo.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
allOf:
- $ref: ./BasePaymentAccountInfo.yaml
- $ref: ./PolygonWalletInfo.yaml
properties:
assetType:
type: string
description: Type of asset
const: USDC
- type: object
properties:
assetType:
type: string
description: Type of asset
enum:
- USDC

16 changes: 9 additions & 7 deletions openapi/components/schemas/common/PaymentSolanaWalletInfo.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
allOf:
- $ref: ./BasePaymentAccountInfo.yaml
- $ref: ./SolanaWalletInfo.yaml
properties:
assetType:
type: string
description: Type of asset
enum:
- USDC
- USDT
- type: object
properties:
assetType:
type: string
description: Type of asset
enum:
- USDC
- USDT
28 changes: 15 additions & 13 deletions openapi/components/schemas/common/PaymentSparkWalletInfo.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
allOf:
- $ref: ./BasePaymentAccountInfo.yaml
- $ref: ./SparkWalletInfo.yaml
required:
- assetType
properties:
assetType:
type: string
description: Type of asset
enum:
- BTC
- USDB
invoice:
type: string
description: Invoice for the payment
example: sparkrt1pgss8ter0fhc4c220f3zftmpz49h8wqte8eg3m5zkrraplgc048jucgszg3ssqgjzqqekv73mmh842yj7drsjwh7t7tz5zt8wf5kghm5v4ehggszppjp5s80cg3qjdzc55g2567tn3lj705hdsr577tg8ah795mlnt6807y657qhkmgfkf9w75p4wz3l8vhua85zdn6ryj32zuj0p00pv2l5z4u47mw6h4s
- type: object
required:
- assetType
properties:
assetType:
type: string
description: Type of asset
enum:
- BTC
- USDB
invoice:
type: string
description: Invoice for the payment
example: sparkrt1pgss8ter0fhc4c220f3zftmpz49h8wqte8eg3m5zkrraplgc048jucgszg3ssqgjzqqekv73mmh842yj7drsjwh7t7tz5zt8wf5kghm5v4ehggszppjp5s80cg3qjdzc55g2567tn3lj705hdsr577tg8ah795mlnt6807y657qhkmgfkf9w75p4wz3l8vhua85zdn6ryj32zuj0p00pv2l5z4u47mw6h4s
12 changes: 7 additions & 5 deletions openapi/components/schemas/common/PaymentTronWalletInfo.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
allOf:
- $ref: ./BasePaymentAccountInfo.yaml
- $ref: ./TronWalletInfo.yaml
properties:
assetType:
type: string
description: Type of asset
const: USDT
- type: object
properties:
assetType:
type: string
description: Type of asset
enum: [USDT]
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
allOf:
- $ref: ./BasePaymentAccountInfo.yaml
- $ref: ./UpiAccountInfo.yaml
20 changes: 11 additions & 9 deletions openapi/components/schemas/common/PaymentUsAccountInfo.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
allOf:
- $ref: ./BasePaymentAccountInfo.yaml
- $ref: ./UsAccountInfo.yaml
required:
- reference
properties:
reference:
type: string
description: >-
Unique reference code that must be included with the payment to properly
credit it
example: UMA-Q12345-REF
- type: object
required:
- reference
properties:
reference:
type: string
description: >-
Unique reference code that must be included with the payment to properly
credit it
example: UMA-Q12345-REF
2 changes: 1 addition & 1 deletion openapi/components/schemas/common/PixAccountInfo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ required:
properties:
accountType:
type: string
const: PIX
enum: [PIX]
example: PIX
pixKey:
type: string
Expand Down
2 changes: 1 addition & 1 deletion openapi/components/schemas/common/PolygonWalletInfo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ required:
properties:
accountType:
type: string
const: POLYGON_WALLET
enum: [POLYGON_WALLET]
example: POLYGON_WALLET
address:
type: string
Expand Down
2 changes: 1 addition & 1 deletion openapi/components/schemas/common/SolanaWalletInfo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ required:
properties:
accountType:
type: string
const: SOLANA_WALLET
enum: [SOLANA_WALLET]
example: SOLANA_WALLET
address:
type: string
Expand Down
2 changes: 1 addition & 1 deletion openapi/components/schemas/common/SparkWalletInfo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ required:
properties:
accountType:
type: string
const: SPARK_WALLET
enum: [SPARK_WALLET]
example: SPARK_WALLET
address:
type: string
Expand Down
2 changes: 1 addition & 1 deletion openapi/components/schemas/common/TronWalletInfo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ required:
properties:
accountType:
type: string
const: TRON_WALLET
enum: [TRON_WALLET]
example: TRON_WALLET
address:
type: string
Expand Down
2 changes: 1 addition & 1 deletion openapi/components/schemas/common/UpiAccountInfo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ required:
properties:
accountType:
type: string
const: UPI
enum: [UPI]
example: UPI
vpa:
type: string
Expand Down
2 changes: 1 addition & 1 deletion openapi/components/schemas/common/UsAccountInfo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ required:
properties:
accountType:
type: string
const: US_ACCOUNT
enum: [US_ACCOUNT]
example: US_ACCOUNT
accountNumber:
type: string
Expand Down
Loading