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
73 changes: 59 additions & 14 deletions dist/betting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
/transaction/initialize:
post:
tags:
- Transaction

Check warning on line 29 in dist/betting.yaml

View workflow job for this annotation

GitHub Actions / Lint (pull_request)

operation-tag-defined

Operation tags must be defined in global tags.
summary: Initialize Transaction
operationId: transaction_initialize
description: Create a new transaction
Expand Down Expand Up @@ -54,9 +54,10 @@
/transaction/charge_authorization:
post:
tags:
- Transaction

Check warning on line 57 in dist/betting.yaml

View workflow job for this annotation

GitHub Actions / Lint (pull_request)

operation-tag-defined

Operation tags must be defined in global tags.
summary: Charge Authorization
operationId: transaction_chargeAuthorization
description: Charge all authorizations marked as reusable with this endpoint whenever you need to receive payments
requestBody:
content:
application/json:
Expand All @@ -79,7 +80,7 @@
/transaction/verify/{reference}:
get:
tags:
- Transaction

Check warning on line 83 in dist/betting.yaml

View workflow job for this annotation

GitHub Actions / Lint (pull_request)

operation-tag-defined

Operation tags must be defined in global tags.
summary: Verify Transaction
operationId: transaction_verify
description: Verify a previously initiated transaction using it's reference
Expand All @@ -90,6 +91,7 @@
required: true
schema:
type: string
example: re4lyvq3s3
responses:
'200':
description: ''
Expand All @@ -106,16 +108,19 @@
/bank/resolve:
get:
tags:
- Bank

Check warning on line 111 in dist/betting.yaml

View workflow job for this annotation

GitHub Actions / Lint (pull_request)

operation-tag-defined

Operation tags must be defined in global tags.
summary: Resolve Account Number
description: Resolve an account number to confirm the name associated with it
operationId: bank_resolveAccountNumber
parameters:
- name: account_number
description: The account number of interest
in: query
schema:
type: integer
example: 22728151
- name: bank_code
description: The bank code associated with the account number
in: query
schema:
type: integer
Expand All @@ -132,8 +137,9 @@
/transferrecipient:
post:
tags:
- Transfer Recipient

Check warning on line 140 in dist/betting.yaml

View workflow job for this annotation

GitHub Actions / Lint (pull_request)

operation-tag-defined

Operation tags must be defined in global tags.
summary: Create Transfer Recipient
description: Creates a new recipient. A duplicate account number will lead to the retrieval of the existing record.
operationId: transferrecipient_create
requestBody:
content:
Expand All @@ -156,8 +162,9 @@
description: Server error
get:
tags:
- Transfer Recipient

Check warning on line 165 in dist/betting.yaml

View workflow job for this annotation

GitHub Actions / Lint (pull_request)

operation-tag-defined

Operation tags must be defined in global tags.
summary: List Transfer Recipients
description: List transfer recipients available on your integration
operationId: transferrecipient_list
parameters:
- in: query
Expand Down Expand Up @@ -203,8 +210,12 @@
/transfer/bulk:
post:
tags:
- Transfer

Check warning on line 213 in dist/betting.yaml

View workflow job for this annotation

GitHub Actions / Lint (pull_request)

operation-tag-defined

Operation tags must be defined in global tags.
summary: Initiate Bulk Transfer
description: |
Batch multiple transfers in a single request.

You need to disable the Transfers OTP requirement to use this endpoint.
operationId: transfer_bulk
requestBody:
content:
Expand Down Expand Up @@ -250,11 +261,19 @@
type: string
share:
description: The percentage or flat quota of the customer or partner
type: string
type: integer
example:
subaccount: ACCT_6uujpqtzmnufzkw
share: 50
SplitCreate:
type: object
description: |
Split configuration for transactions
required:
- name
- type
- subaccounts
- currency
properties:
name:
description: Name of the transaction split
Expand Down Expand Up @@ -289,11 +308,13 @@
bearer_subaccount:
description: This is the subaccount code of the customer or partner that would bear the transaction charge if you specified subaccount as the bearer type
type: string
required:
- name
- type
- subaccounts
- currency
example:
name: Halfsies
type: percentage
currency: NGN
subaccounts:
- subaccount: ACCT_6uujpqtzmnufzkw
share: 50
TransactionInitialize:
description: Initialize a transaction
type: object
Expand All @@ -306,7 +327,7 @@
type: string
amount:
description: |
Amount should be in smallest denomination of the currency. For example if currency is NGN, pesewas, if currency is GHS, and cents, if currency is ZAR
Amount should be in smallest denomination of the currency.
type: integer
currency:
$ref: '#/components/schemas/Currency'
Expand All @@ -319,13 +340,16 @@
items:
type: string
enum:
- card
- apple_pay
- bank
- ussd
- qr
- bank_transfer
- capitec_pay
- card
- eft
- mobile_money
- bank_transfer
- payattitude
- qr
- ussd
callback_url:
description: |
Fully qualified url, e.g. https://example.com/ to redirect your customers to after a successful payment. Use this to override the callback url provided on the dashboard for this transaction
Expand Down Expand Up @@ -1098,10 +1122,15 @@
properties:
type:
description: Recipient Type
default: nuban
type: string
enum:
- nuban
- ghipss
- mobile_money
- basa
- authorization
name:
description: Recipient's name
description: The recipient's name according to their account registration.
type: string
account_number:
description: Recipient's bank account number
Expand All @@ -1121,6 +1150,11 @@
metadata:
description: JSON object of custom data
type: object
example:
type: nuban
name: Smith Taplo
account_number: '01000000010'
bank_code: '058'
TransferRecipientCreateResponse:
type: object
properties:
Expand Down Expand Up @@ -1225,15 +1259,20 @@
reason:
description: The reason or narration for the transfer.
type: string
example:
amount: 120000
recipient: RCP_gd9vgag7n5lr5ix
reference: acv_9ee55786-2323-4760-98e2-6380c9cb3f68
TransferBulk:
type: object
required:
- source
- transfers
properties:
source:
description: Where should we transfer from? Only balance is allowed for now
description: The source of funds for the transfer.
type: string
default: balance
currency:
description: Specify the currency of the transfer.
type: string
Expand All @@ -1248,6 +1287,12 @@
type: array
items:
$ref: '#/components/schemas/TransferBase'
example:
source: balance
transfers:
- amount: 120000
recipient: RCP_gd9vgag7n5lr5ix
reference: acv_9ee55786-2323-4760-98e2-6380c9cb3f68
TransferBulkResponseArray:
type: object
properties:
Expand Down
Loading
Loading