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
456 changes: 456 additions & 0 deletions mintlify/openapi.yaml

Large diffs are not rendered by default.

456 changes: 456 additions & 0 deletions openapi.yaml

Large diffs are not rendered by default.

34 changes: 34 additions & 0 deletions openapi/components/schemas/common/KesAccountInfo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
type: object
required:
- accountType
- countries
- paymentRails
- phoneNumber
- provider
properties:
accountType:
type: string
enum:
- KES_ACCOUNT
countries:
type: array
items:
type: string
enum:
- KE
paymentRails:
type: array
items:
type: string
enum:
- MOBILE_MONEY
phoneNumber:
type: string
description: Kenyan mobile money phone number
example: '+254712345678'
pattern: ^\+254[0-9]{9}$
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verify pattern ^\+254[0-9]{9}$ correctly validates all M-PESA numbers (check if 7xx, 1xx prefixes are the only valid ones for Kenya mobile money).

Prompt To Fix With AI
This is a comment left during a code review.
Path: openapi/components/schemas/common/KesAccountInfo.yaml
Line: 29

Comment:
Verify pattern `^\+254[0-9]{9}$` correctly validates all M-PESA numbers (check if 7xx, 1xx prefixes are the only valid ones for Kenya mobile money).

How can I resolve this? If you propose a fix, please make it concise.

provider:
type: string
description: Mobile money provider
enum:
- M-PESA
33 changes: 33 additions & 0 deletions openapi/components/schemas/common/KesBeneficiary.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
title: Individual Beneficiary
type: object
required:
- beneficiaryType
- fullName
properties:
beneficiaryType:
type: string
enum:
- INDIVIDUAL
fullName:
type: string
description: The full name of the beneficiary
birthDate:
type: string
description: The birth date of the beneficiary
nationality:
type: string
description: The nationality of the beneficiary
email:
type: string
description: The email of the beneficiary
phoneNumber:
type: string
description: The phone number of the beneficiary
registrationNumber:
type: string
description: The registration number of the beneficiary
countryOfResidence:
type: string
description: The country of residence of the beneficiary
address:
$ref: ./Address.yaml
35 changes: 35 additions & 0 deletions openapi/components/schemas/common/RwfAccountInfo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
type: object
required:
- accountType
- countries
- paymentRails
- phoneNumber
- provider
properties:
accountType:
type: string
enum:
- RWF_ACCOUNT
countries:
type: array
items:
type: string
enum:
- RW
paymentRails:
type: array
items:
type: string
enum:
- MOBILE_MONEY
phoneNumber:
type: string
description: Rwandan mobile money phone number
example: '+250781234567'
pattern: ^\+250[0-9]{9}$
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verify pattern ^\+250[0-9]{9}$ covers all valid MTN and AIRTEL mobile money numbers in Rwanda.

Prompt To Fix With AI
This is a comment left during a code review.
Path: openapi/components/schemas/common/RwfAccountInfo.yaml
Line: 29

Comment:
Verify pattern `^\+250[0-9]{9}$` covers all valid MTN and AIRTEL mobile money numbers in Rwanda.

How can I resolve this? If you propose a fix, please make it concise.

provider:
type: string
description: Mobile money provider
enum:
- MTN
- AIRTEL
33 changes: 33 additions & 0 deletions openapi/components/schemas/common/RwfBeneficiary.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
title: Individual Beneficiary
type: object
required:
- beneficiaryType
- fullName
properties:
beneficiaryType:
type: string
enum:
- INDIVIDUAL
fullName:
type: string
description: The full name of the beneficiary
birthDate:
type: string
description: The birth date of the beneficiary
nationality:
type: string
description: The nationality of the beneficiary
email:
type: string
description: The email of the beneficiary
phoneNumber:
type: string
description: The phone number of the beneficiary
registrationNumber:
type: string
description: The registration number of the beneficiary
countryOfResidence:
type: string
description: The country of residence of the beneficiary
address:
$ref: ./Address.yaml
35 changes: 35 additions & 0 deletions openapi/components/schemas/common/TzsAccountInfo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
type: object
required:
- accountType
- countries
- paymentRails
- phoneNumber
- provider
properties:
accountType:
type: string
enum:
- TZS_ACCOUNT
countries:
type: array
items:
type: string
enum:
- TZ
paymentRails:
type: array
items:
type: string
enum:
- MOBILE_MONEY
phoneNumber:
type: string
description: Tanzanian mobile money phone number
example: '+255712345678'
pattern: ^\+255[0-9]{9}$
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verify pattern ^\+255[0-9]{9}$ covers all valid AIRTEL and VODACOM mobile money numbers in Tanzania.

Prompt To Fix With AI
This is a comment left during a code review.
Path: openapi/components/schemas/common/TzsAccountInfo.yaml
Line: 29

Comment:
Verify pattern `^\+255[0-9]{9}$` covers all valid AIRTEL and VODACOM mobile money numbers in Tanzania.

How can I resolve this? If you propose a fix, please make it concise.

provider:
type: string
description: Mobile money provider
enum:
- AIRTEL
- VODACOM
33 changes: 33 additions & 0 deletions openapi/components/schemas/common/TzsBeneficiary.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
title: Individual Beneficiary
type: object
required:
- beneficiaryType
- fullName
properties:
beneficiaryType:
type: string
enum:
- INDIVIDUAL
fullName:
type: string
description: The full name of the beneficiary
birthDate:
type: string
description: The birth date of the beneficiary
nationality:
type: string
description: The nationality of the beneficiary
email:
type: string
description: The email of the beneficiary
phoneNumber:
type: string
description: The phone number of the beneficiary
registrationNumber:
type: string
description: The registration number of the beneficiary
countryOfResidence:
type: string
description: The country of residence of the beneficiary
address:
$ref: ./Address.yaml
35 changes: 35 additions & 0 deletions openapi/components/schemas/common/ZarAccountInfo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
type: object
required:
- accountType
- countries
- paymentRails
- accountNumber
- bankName
properties:
accountType:
type: string
enum:
- ZAR_ACCOUNT
countries:
type: array
items:
type: string
enum:
- ZA
paymentRails:
type: array
items:
type: string
enum:
- BANK_TRANSFER
accountNumber:
type: string
description: South African bank account number
example: '1234567890'
minLength: 9
maxLength: 13
pattern: ^[0-9]{9,13}$
bankName:
type: string
description: Name of the bank
example: Standard Bank
33 changes: 33 additions & 0 deletions openapi/components/schemas/common/ZarBeneficiary.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
title: Individual Beneficiary
type: object
required:
- beneficiaryType
- fullName
properties:
beneficiaryType:
type: string
enum:
- INDIVIDUAL
fullName:
type: string
description: The full name of the beneficiary
birthDate:
type: string
description: The birth date of the beneficiary
nationality:
type: string
description: The nationality of the beneficiary
email:
type: string
description: The email of the beneficiary
phoneNumber:
type: string
description: The phone number of the beneficiary
registrationNumber:
type: string
description: The registration number of the beneficiary
countryOfResidence:
type: string
description: The country of residence of the beneficiary
address:
$ref: ./Address.yaml
37 changes: 37 additions & 0 deletions openapi/components/schemas/common/ZmwAccountInfo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
type: object
required:
- accountType
- countries
- paymentRails
- phoneNumber
- provider
properties:
accountType:
type: string
enum:
- ZMW_ACCOUNT
countries:
type: array
items:
type: string
enum:
- ZM
paymentRails:
type: array
items:
type: string
enum:
- MOBILE_MONEY
phoneNumber:
type: string
description: Zambian mobile money phone number
example: '+260971234567'
pattern: ^\+260[0-9]{9}$
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verify pattern ^\+260[0-9]{9}$ covers all valid mobile money numbers for TNM, AIRTEL, ZAMTEL, and MTN in Zambia.

Prompt To Fix With AI
This is a comment left during a code review.
Path: openapi/components/schemas/common/ZmwAccountInfo.yaml
Line: 29

Comment:
Verify pattern `^\+260[0-9]{9}$` covers all valid mobile money numbers for TNM, AIRTEL, ZAMTEL, and MTN in Zambia.

How can I resolve this? If you propose a fix, please make it concise.

provider:
type: string
description: Mobile money provider
enum:
- TNM
- AIRTEL
- ZAMTEL
- MTN
33 changes: 33 additions & 0 deletions openapi/components/schemas/common/ZmwBeneficiary.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
title: Individual Beneficiary
type: object
required:
- beneficiaryType
- fullName
properties:
beneficiaryType:
type: string
enum:
- INDIVIDUAL
fullName:
type: string
description: The full name of the beneficiary
birthDate:
type: string
description: The birth date of the beneficiary
nationality:
type: string
description: The nationality of the beneficiary
email:
type: string
description: The email of the beneficiary
phoneNumber:
type: string
description: The phone number of the beneficiary
registrationNumber:
type: string
description: The registration number of the beneficiary
countryOfResidence:
type: string
description: The country of residence of the beneficiary
address:
$ref: ./Address.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,19 @@ oneOf:
- $ref: ./HkdExternalAccountInfo.yaml
- $ref: ./IdrExternalAccountInfo.yaml
- $ref: ./InrExternalAccountInfo.yaml
- $ref: ./KesExternalAccountInfo.yaml
- $ref: ./MxnExternalAccountInfo.yaml
- $ref: ./MyrExternalAccountInfo.yaml
- $ref: ./NgnExternalAccountInfo.yaml
- $ref: ./PhpExternalAccountInfo.yaml
- $ref: ./RwfExternalAccountInfo.yaml
- $ref: ./SgdExternalAccountInfo.yaml
- $ref: ./ThbExternalAccountInfo.yaml
- $ref: ./TzsExternalAccountInfo.yaml
- $ref: ./UsdExternalAccountInfo.yaml
- $ref: ./VndExternalAccountInfo.yaml
- $ref: ./ZarExternalAccountInfo.yaml
- $ref: ./ZmwExternalAccountInfo.yaml
- $ref: ./SparkWalletExternalAccountInfo.yaml
- $ref: ./LightningExternalAccountInfo.yaml
- $ref: ./SolanaWalletExternalAccountInfo.yaml
Expand All @@ -32,14 +37,19 @@ discriminator:
HKD_ACCOUNT: ./HkdExternalAccountInfo.yaml
IDR_ACCOUNT: ./IdrExternalAccountInfo.yaml
INR_ACCOUNT: ./InrExternalAccountInfo.yaml
KES_ACCOUNT: ./KesExternalAccountInfo.yaml
MXN_ACCOUNT: ./MxnExternalAccountInfo.yaml
MYR_ACCOUNT: ./MyrExternalAccountInfo.yaml
NGN_ACCOUNT: ./NgnExternalAccountInfo.yaml
PHP_ACCOUNT: ./PhpExternalAccountInfo.yaml
RWF_ACCOUNT: ./RwfExternalAccountInfo.yaml
SGD_ACCOUNT: ./SgdExternalAccountInfo.yaml
THB_ACCOUNT: ./ThbExternalAccountInfo.yaml
TZS_ACCOUNT: ./TzsExternalAccountInfo.yaml
USD_ACCOUNT: ./UsdExternalAccountInfo.yaml
VND_ACCOUNT: ./VndExternalAccountInfo.yaml
ZAR_ACCOUNT: ./ZarExternalAccountInfo.yaml
ZMW_ACCOUNT: ./ZmwExternalAccountInfo.yaml
SPARK_WALLET: ./SparkWalletExternalAccountInfo.yaml
LIGHTNING: ./LightningExternalAccountInfo.yaml
SOLANA_WALLET: ./SolanaWalletExternalAccountInfo.yaml
Expand Down
Loading