Skip to content
Merged
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
80 changes: 80 additions & 0 deletions mintlify/openapi.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

80 changes: 80 additions & 0 deletions openapi.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ enum:
- IBAN
- FBO
- UPI
- NGN_ACCOUNT
- SPARK_WALLET
- LIGHTNING
- SOLANA_WALLET
Expand Down
21 changes: 21 additions & 0 deletions openapi/components/schemas/common/NgnAccountInfo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
type: object
required:
- accountType
- accountNumber
- bankName
properties:
accountType:
type: string
enum: [NGN_ACCOUNT]
example: NGN_ACCOUNT
accountNumber:
type: string
description: Nigerian bank account number
example: '0123456789'
minLength: 10
maxLength: 10
pattern: ^[0-9]{10}$
bankName:
type: string
description: Name of the bank
example: First Bank of Nigeria
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ discriminator:
IBAN: ./PaymentIbanAccountInfo.yaml
FBO: ./PaymentFboAccountInfo.yaml
UPI: ./PaymentUpiAccountInfo.yaml
NGN_ACCOUNT: ./PaymentNgnAccountInfo.yaml
SPARK_WALLET: ./PaymentSparkWalletInfo.yaml
LIGHTNING: ./PaymentLightningInvoiceInfo.yaml
SOLANA_WALLET: ./PaymentSolanaWalletInfo.yaml
Expand Down
12 changes: 12 additions & 0 deletions openapi/components/schemas/common/PaymentNgnAccountInfo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
allOf:
- $ref: ./PaymentAccountOrWalletInfo.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
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ oneOf:
$ref: ./IbanAccountExternalAccountInfo.yaml
- title: UPI Account
$ref: ./UpiAccountExternalAccountInfo.yaml
- title: NGN Account
$ref: ./NgnAccountExternalAccountInfo.yaml
- title: Spark Wallet
$ref: ./SparkWalletExternalAccountInfo.yaml
- title: Lightning
Expand All @@ -29,6 +31,7 @@ discriminator:
PIX: ./PixAccountExternalAccountInfo.yaml
IBAN: ./IbanAccountExternalAccountInfo.yaml
UPI: ./UpiAccountExternalAccountInfo.yaml
NGN_ACCOUNT: ./NgnAccountExternalAccountInfo.yaml
SPARK_WALLET: ./SparkWalletExternalAccountInfo.yaml
LIGHTNING: ./LightningExternalAccountInfo.yaml
SOLANA_WALLET: ./SolanaWalletExternalAccountInfo.yaml
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
allOf:
- $ref: ../common/NgnAccountInfo.yaml
- type: object
required:
- accountType
- purposeOfPayment
- beneficiary
properties:
accountType:
type: string
enum: [NGN_ACCOUNT]
example: NGN_ACCOUNT
beneficiary:
oneOf:
- $ref: ./IndividualBeneficiary.yaml
- $ref: ./BusinessBeneficiary.yaml
discriminator:
propertyName: beneficiaryType
mapping:
INDIVIDUAL: ./IndividualBeneficiary.yaml
BUSINESS: ./BusinessBeneficiary.yaml
purposeOfPayment:
type: string
enum:
- GIFT
- SELF
- GOODS_OR_SERVICES
- EDUCATION
- HEALTH_OR_MEDICAL
- REAL_ESTATE_PURCHASE
- LOAN_PAYMENT
- TAX_PAYMENT
- UTILITY_BILL
- DONATION
- TRAVEL
- OTHER
description: Purpose of payment
example: GOODS_OR_SERVICES
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ allOf:
- type: object
required:
- accountType
- beneficiary
properties:
accountType:
type: string
Expand Down