Skip to content

Commit d9d444d

Browse files
chore: update transaction initialise channels
1 parent 593b2f8 commit d9d444d

8 files changed

Lines changed: 386 additions & 128 deletions

File tree

dist/betting.yaml

Lines changed: 59 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ paths:
5757
- Transaction
5858
summary: Charge Authorization
5959
operationId: transaction_chargeAuthorization
60+
description: Charge all authorizations marked as reusable with this endpoint whenever you need to receive payments
6061
requestBody:
6162
content:
6263
application/json:
@@ -90,6 +91,7 @@ paths:
9091
required: true
9192
schema:
9293
type: string
94+
example: re4lyvq3s3
9395
responses:
9496
'200':
9597
description: ''
@@ -108,14 +110,17 @@ paths:
108110
tags:
109111
- Bank
110112
summary: Resolve Account Number
113+
description: Resolve an account number to confirm the name associated with it
111114
operationId: bank_resolveAccountNumber
112115
parameters:
113116
- name: account_number
117+
description: The account number of interest
114118
in: query
115119
schema:
116120
type: integer
117121
example: 22728151
118122
- name: bank_code
123+
description: The bank code associated with the account number
119124
in: query
120125
schema:
121126
type: integer
@@ -134,6 +139,7 @@ paths:
134139
tags:
135140
- Transfer Recipient
136141
summary: Create Transfer Recipient
142+
description: Creates a new recipient. A duplicate account number will lead to the retrieval of the existing record.
137143
operationId: transferrecipient_create
138144
requestBody:
139145
content:
@@ -158,6 +164,7 @@ paths:
158164
tags:
159165
- Transfer Recipient
160166
summary: List Transfer Recipients
167+
description: List transfer recipients available on your integration
161168
operationId: transferrecipient_list
162169
parameters:
163170
- in: query
@@ -205,6 +212,10 @@ paths:
205212
tags:
206213
- Transfer
207214
summary: Initiate Bulk Transfer
215+
description: |
216+
Batch multiple transfers in a single request.
217+
218+
You need to disable the Transfers OTP requirement to use this endpoint.
208219
operationId: transfer_bulk
209220
requestBody:
210221
content:
@@ -250,11 +261,19 @@ components:
250261
type: string
251262
share:
252263
description: The percentage or flat quota of the customer or partner
253-
type: string
264+
type: integer
265+
example:
266+
subaccount: ACCT_6uujpqtzmnufzkw
267+
share: 50
254268
SplitCreate:
255269
type: object
256270
description: |
257271
Split configuration for transactions
272+
required:
273+
- name
274+
- type
275+
- subaccounts
276+
- currency
258277
properties:
259278
name:
260279
description: Name of the transaction split
@@ -289,11 +308,13 @@ components:
289308
bearer_subaccount:
290309
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
291310
type: string
292-
required:
293-
- name
294-
- type
295-
- subaccounts
296-
- currency
311+
example:
312+
name: Halfsies
313+
type: percentage
314+
currency: NGN
315+
subaccounts:
316+
- subaccount: ACCT_6uujpqtzmnufzkw
317+
share: 50
297318
TransactionInitialize:
298319
description: Initialize a transaction
299320
type: object
@@ -306,7 +327,7 @@ components:
306327
type: string
307328
amount:
308329
description: |
309-
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
330+
Amount should be in smallest denomination of the currency.
310331
type: integer
311332
currency:
312333
$ref: '#/components/schemas/Currency'
@@ -319,13 +340,16 @@ components:
319340
items:
320341
type: string
321342
enum:
322-
- card
343+
- apple_pay
323344
- bank
324-
- ussd
325-
- qr
345+
- bank_transfer
346+
- capitec_pay
347+
- card
326348
- eft
327349
- mobile_money
328-
- bank_transfer
350+
- payattitude
351+
- qr
352+
- ussd
329353
callback_url:
330354
description: |
331355
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
@@ -1098,10 +1122,15 @@ components:
10981122
properties:
10991123
type:
11001124
description: Recipient Type
1101-
default: nuban
11021125
type: string
1126+
enum:
1127+
- nuban
1128+
- ghipss
1129+
- mobile_money
1130+
- basa
1131+
- authorization
11031132
name:
1104-
description: Recipient's name
1133+
description: The recipient's name according to their account registration.
11051134
type: string
11061135
account_number:
11071136
description: Recipient's bank account number
@@ -1121,6 +1150,11 @@ components:
11211150
metadata:
11221151
description: JSON object of custom data
11231152
type: object
1153+
example:
1154+
type: nuban
1155+
name: Smith Taplo
1156+
account_number: '01000000010'
1157+
bank_code: '058'
11241158
TransferRecipientCreateResponse:
11251159
type: object
11261160
properties:
@@ -1225,15 +1259,20 @@ components:
12251259
reason:
12261260
description: The reason or narration for the transfer.
12271261
type: string
1262+
example:
1263+
amount: 120000
1264+
recipient: RCP_gd9vgag7n5lr5ix
1265+
reference: acv_9ee55786-2323-4760-98e2-6380c9cb3f68
12281266
TransferBulk:
12291267
type: object
12301268
required:
12311269
- source
12321270
- transfers
12331271
properties:
12341272
source:
1235-
description: Where should we transfer from? Only balance is allowed for now
1273+
description: The source of funds for the transfer.
12361274
type: string
1275+
default: balance
12371276
currency:
12381277
description: Specify the currency of the transfer.
12391278
type: string
@@ -1248,6 +1287,12 @@ components:
12481287
type: array
12491288
items:
12501289
$ref: '#/components/schemas/TransferBase'
1290+
example:
1291+
source: balance
1292+
transfers:
1293+
- amount: 120000
1294+
recipient: RCP_gd9vgag7n5lr5ix
1295+
reference: acv_9ee55786-2323-4760-98e2-6380c9cb3f68
12511296
TransferBulkResponseArray:
12521297
type: object
12531298
properties:

0 commit comments

Comments
 (0)