Skip to content

Commit 90a68f4

Browse files
Merge pull request #60 from PaystackOSS/patch-settlements
chore: update settlements examples and descriptions
2 parents 70e837d + 4af9293 commit 90a68f4

File tree

4 files changed

+21
-9
lines changed

4 files changed

+21
-9
lines changed

dist/paystack.yaml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4218,15 +4218,18 @@ paths:
42184218
get:
42194219
tags:
42204220
- Settlement
4221-
summary: Fetch Settlements
4221+
summary: List Settlements
4222+
description: List settlements made to your settlement accounts
42224223
operationId: settlements_fetch
42234224
parameters:
42244225
- name: perPage
4226+
description: The number of records to fetch per request
42254227
in: query
42264228
schema:
42274229
type: integer
42284230
example: 50
42294231
- name: page
4232+
description: The offset to retrieve data from
42304233
in: query
42314234
schema:
42324235
type: integer
@@ -4240,18 +4243,21 @@ paths:
42404243
$ref: '#/components/responses/NotFound'
42414244
default:
42424245
description: Server error
4243-
/settlement/{id}/transaction:
4246+
/settlement/{id}/transactions:
42444247
get:
42454248
tags:
42464249
- Settlement
4247-
summary: Settlement Transactions
4250+
summary: Fetch Settlement Transactions
4251+
description: Get the transactions that make up a particular settlement
42484252
operationId: settlements_transaction
42494253
parameters:
42504254
- name: id
4255+
description: The settlement ID in which you want to fetch its transactions
42514256
in: path
42524257
required: true
42534258
schema:
4254-
type: string
4259+
type: integer
4260+
example: 8610870
42554261
responses:
42564262
'200':
42574263
$ref: '#/components/responses/Ok'

src/assets/openapi/openapi.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,8 +352,8 @@ paths:
352352
$ref: paths/page_{id}_product.yaml
353353
/settlement:
354354
$ref: paths/settlement.yaml
355-
/settlement/{id}/transaction:
356-
$ref: paths/settlement_{id}_transaction.yaml
355+
/settlement/{id}/transactions:
356+
$ref: paths/settlement_{id}_transactions.yaml
357357
/integration/payment_session_timeout:
358358
$ref: paths/integration_payment_session_timeout.yaml
359359
/refund:

src/assets/openapi/paths/settlement.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
get:
22
tags:
33
- Settlement
4-
summary: Fetch Settlements
4+
summary: List Settlements
5+
description: List settlements made to your settlement accounts
56
operationId: settlements_fetch
67
parameters:
78
- name: perPage
9+
description: The number of records to fetch per request
810
in: query
911
schema:
1012
type: integer
1113
example: 50
1214
- name: page
15+
description: The offset to retrieve data from
1316
in: query
1417
schema:
1518
type: integer

src/assets/openapi/paths/settlement_{id}_transaction.yaml renamed to src/assets/openapi/paths/settlement_{id}_transactions.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
get:
22
tags:
33
- Settlement
4-
summary: Settlement Transactions
4+
summary: Fetch Settlement Transactions
5+
description: Get the transactions that make up a particular settlement
56
operationId: settlements_transaction
67
parameters:
78
- name: id
9+
description: The settlement ID in which you want to fetch its transactions
810
in: path
911
required: true
1012
schema:
11-
type: string
13+
type: integer
14+
example: 8610870
1215
responses:
1316
'200':
1417
$ref: ../components/responses/Ok.yaml

0 commit comments

Comments
 (0)