Skip to content

Commit 61ae53a

Browse files
chore: update transfers and balance examples and descriptions
1 parent 1d23949 commit 61ae53a

21 files changed

+281
-195
lines changed

dist/paystack.yaml

Lines changed: 217 additions & 174 deletions
Large diffs are not rendered by default.

src/assets/openapi/components/schemas/TransferBase.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,7 @@ properties:
2222
reason:
2323
description: The reason or narration for the transfer.
2424
type: string
25+
example:
26+
amount: 120000
27+
recipient: RCP_gd9vgag7n5lr5ix
28+
reference: acv_9ee55786-2323-4760-98e2-6380c9cb3f68

src/assets/openapi/components/schemas/TransferBulk.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ required:
44
- transfers
55
properties:
66
source:
7-
description: Where should we transfer from? Only balance is allowed for now
7+
description: The source of funds for the transfer.
88
type: string
9+
default: balance
910
currency:
1011
description: Specify the currency of the transfer.
1112
type: string
@@ -20,3 +21,9 @@ properties:
2021
type: array
2122
items:
2223
$ref: ./TransferBase.yaml
24+
example:
25+
source: balance
26+
transfers:
27+
- amount: 120000
28+
recipient: RCP_gd9vgag7n5lr5ix
29+
reference: acv_9ee55786-2323-4760-98e2-6380c9cb3f68

src/assets/openapi/components/schemas/TransferFinalize.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,6 @@ properties:
99
otp:
1010
description: OTP sent to business phone to verify transfer
1111
type: string
12+
example:
13+
transfer_code: TRF_vsyqdmlzble3uii
14+
otp: "928783"

src/assets/openapi/components/schemas/TransferFinalizeDisableOTP.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ properties:
55
otp:
66
description: OTP sent to business phone to verify disabling OTP requirement
77
type: string
8+
example:
9+
otp: "928783"

src/assets/openapi/components/schemas/TransferInitiate.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,9 @@ allOf:
44
- type: object
55
required:
66
- source
7-
- amount
8-
- recipient
9-
- reference
107
properties:
118
source:
12-
description: The origin of the funds to send from
9+
description: The source of funds to send from
1310
type: string
1411
default: balance
1512
currency:
@@ -21,3 +18,5 @@ allOf:
2118
- ZAR
2219
- KES
2320
- GHS
21+
example:
22+
source: balance

src/assets/openapi/components/schemas/TransferResendOTP.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,8 @@ properties:
1212
default: transfer
1313
enum:
1414
- disable_otp
15+
- resend_otp
1516
- transfer
17+
example:
18+
transfer_code: TRF_vsyqdmlzble3uii
19+
reason: resend_otp

src/assets/openapi/openapi.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,11 @@ tags:
8484
description: |
8585
A collection of endpoints for automating sending money to beneficiaries
8686
x-product-name: Transfers
87+
- name: Balance
88+
description: >
89+
A collection of endpoints gaining insights into the amount on an
90+
integration
91+
x-product-name: Balance
8792
- name: Product
8893
description: |
8994
A collection of endpoints for creating and managing inventories
@@ -110,11 +115,6 @@ tags:
110115
description: |
111116
A collection of endpoints for gaining insights into payouts
112117
x-product-name: Settlements
113-
- name: Balance
114-
description: >
115-
A collection of endpoints gaining insights into the amount on an
116-
integration
117-
x-product-name: Balance
118118
- name: Integration
119119
description: |
120120
A collection of endpoints for managing some settings on an integration
@@ -298,6 +298,10 @@ paths:
298298
$ref: paths/transfer_disable_otp_finalize.yaml
299299
/transfer/enable_otp:
300300
$ref: paths/transfer_enable_otp.yaml
301+
/balance:
302+
$ref: paths/balance.yaml
303+
/balance/ledger:
304+
$ref: paths/balance_ledger.yaml
301305
/product:
302306
$ref: paths/product.yaml
303307
/product/{id}:
@@ -350,10 +354,6 @@ paths:
350354
$ref: paths/settlement.yaml
351355
/settlement/{id}/transaction:
352356
$ref: paths/settlement_{id}_transaction.yaml
353-
/balance:
354-
$ref: paths/balance.yaml
355-
/balance/ledger:
356-
$ref: paths/balance_ledger.yaml
357357
/integration/payment_session_timeout:
358358
$ref: paths/integration_payment_session_timeout.yaml
359359
/refund:

src/assets/openapi/paths/balance.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ get:
33
- Balance
44
summary: Fetch Balance
55
operationId: balance_fetch
6-
description: You can only transfer from what you have
6+
description: Fetch the available balance on your integration
77
responses:
88
'200':
99
description: ''

src/assets/openapi/paths/balance_ledger.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ get:
22
tags:
33
- Balance
44
summary: Balance Ledger
5+
description: Fetch all pay-ins and pay-outs that occured on your integration
56
operationId: balance_ledger
67
parameters:
78
- in: query

0 commit comments

Comments
 (0)