Skip to content

Commit 4741b4d

Browse files
chore: update Bulk Charge examples and descriptions
1 parent 970cb9c commit 4741b4d

File tree

7 files changed

+58
-22
lines changed

7 files changed

+58
-22
lines changed

dist/paystack.yaml

Lines changed: 29 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -743,6 +743,7 @@ paths:
743743
- Bulk Charge
744744
summary: Initiate Bulk Charge
745745
operationId: bulkCharge_initiate
746+
description: Charge multiple customers in batches
746747
requestBody:
747748
content:
748749
application/json:
@@ -771,26 +772,27 @@ paths:
771772
- Bulk Charge
772773
summary: List Bulk Charge Batches
773774
operationId: bulkCharge_list
775+
description: List all bulk charge batches.
774776
parameters:
775777
- in: query
776778
name: perPage
779+
description: Number of records to fetch per page
777780
schema:
778781
type: integer
779-
description: Number of records to fetch per page
780782
- in: query
781783
name: page
784+
description: The offset to retrieve data from
782785
schema:
783786
type: integer
784-
description: The offset to retrieve data from
785787
- in: query
786788
name: status
789+
description: Filter by the status of the charges
787790
schema:
788791
type: string
789792
enum:
790793
- active
791794
- paused
792795
- complete
793-
description: Filter by the status of the charges
794796
responses:
795797
'200':
796798
description: ''
@@ -807,16 +809,20 @@ paths:
807809
/bulkcharge/{code}:
808810
parameters:
809811
- name: code
810-
description: Batch code
812+
description: The code for the charge whose batches you want to retrieve
811813
in: path
812814
required: true
813815
schema:
814816
type: string
817+
example: BCH_180tl7oq7cayggh
815818
get:
816819
tags:
817820
- Bulk Charge
818821
summary: Fetch Bulk Charge Batch
819822
operationId: bulkCharge_fetch
823+
description: |
824+
This endpoint retrieves a specific batch code. It also returns useful information on its progress by
825+
way of the `total_charges` and `pending_charges` attributes.
820826
responses:
821827
'200':
822828
description: ''
@@ -836,25 +842,28 @@ paths:
836842
- Bulk Charge
837843
summary: List Charges in a Batch
838844
operationId: bulkCharge_charges
845+
description: This endpoint retrieves the charges associated with a specified batch code
839846
parameters:
840847
- name: code
841-
description: Batch code
848+
description: An code for the batch whose charges you want to retrieve
842849
in: path
843850
required: true
844851
schema:
845852
type: string
853+
example: BCH_180tl7oq7cayggh
846854
- in: query
847855
name: perPage
856+
description: Number of records to fetch per page
848857
schema:
849858
type: integer
850-
description: Number of records to fetch per page
851859
- in: query
852860
name: page
861+
description: The offset to retrieve data from
853862
schema:
854863
type: integer
855-
description: The offset to retrieve data from
856864
- in: query
857865
name: status
866+
description: Filter by the status of the charges
858867
schema:
859868
type: string
860869
enum:
@@ -863,7 +872,6 @@ paths:
863872
- pending
864873
- error
865874
- inactive_authorization
866-
description: Filter by the status of the charges
867875
responses:
868876
'200':
869877
description: ''
@@ -883,13 +891,15 @@ paths:
883891
- Bulk Charge
884892
summary: Pause Bulk Charge Batch
885893
operationId: bulkCharge_pause
894+
description: Pause the processing of a charge batch
886895
parameters:
887896
- name: code
888-
description: Batch code
897+
description: The batch code for the bulk charge you want to pause
889898
in: path
890899
required: true
891900
schema:
892901
type: string
902+
example: BCH_180tl7oq7cayggh
893903
responses:
894904
'200':
895905
description: ''
@@ -909,13 +919,15 @@ paths:
909919
- Bulk Charge
910920
summary: Resume Bulk Charge Batch
911921
operationId: bulkCharge_resume
922+
description: Resume the processing of a previously paused charge batch
912923
parameters:
913924
- name: code
914-
description: Batch code
925+
description: The batch code for the bulk charge you want to pause
915926
in: path
916927
required: true
917928
schema:
918929
type: string
930+
example: BCH_180tl7oq7cayggh
919931
responses:
920932
'200':
921933
description: ''
@@ -7238,6 +7250,7 @@ components:
72387250
- meta
72397251
BulkChargeInitiate:
72407252
type: object
7253+
description: A list of charge object
72417254
required:
72427255
- authorization
72437256
- amount
@@ -7249,7 +7262,8 @@ components:
72497262
description: Amount to charge on the authorization
72507263
type: integer
72517264
reference:
7252-
description: Unique reference containing only -, .`, = and alphanumeric characters.
7265+
description: |
7266+
A unique identifier containing lowercase letters `(a-z)`, digits `(0-9)` and these symbols: dash (`-`), underscore(`_`)
72537267
type: string
72547268
attempt_partial_debit:
72557269
description: A flag to indicate if you want us to try recouping lower amounts when the customer has insufficient fund
@@ -7260,6 +7274,10 @@ components:
72607274
metadata:
72617275
description: JSON object of custom data
72627276
type: object
7277+
example:
7278+
authorization: AUTH_ncx8hews93
7279+
amount: 250000
7280+
reference: dam1266638dhhd
72637281
BulkChargeInitiateResponse:
72647282
type: object
72657283
properties:

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
type: object
2+
description: A list of charge object
23
required:
34
- authorization
45
- amount
@@ -10,7 +11,8 @@ properties:
1011
description: Amount to charge on the authorization
1112
type: integer
1213
reference:
13-
description: Unique reference containing only -, .`, = and alphanumeric characters.
14+
description: |
15+
A unique identifier containing lowercase letters `(a-z)`, digits `(0-9)` and these symbols: dash (`-`), underscore(`_`)
1416
type: string
1517
attempt_partial_debit:
1618
description: >-
@@ -23,3 +25,7 @@ properties:
2325
metadata:
2426
description: JSON object of custom data
2527
type: object
28+
example:
29+
authorization: "AUTH_ncx8hews93"
30+
amount: 250000
31+
reference: "dam1266638dhhd"

src/assets/openapi/paths/bulkcharge.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ post:
33
- Bulk Charge
44
summary: Initiate Bulk Charge
55
operationId: bulkCharge_initiate
6+
description: Charge multiple customers in batches
67
requestBody:
78
content:
89
application/json:
@@ -31,26 +32,27 @@ get:
3132
- Bulk Charge
3233
summary: List Bulk Charge Batches
3334
operationId: bulkCharge_list
35+
description: List all bulk charge batches.
3436
parameters:
3537
- in: query
3638
name: perPage
39+
description: Number of records to fetch per page
3740
schema:
3841
type: integer
39-
description: Number of records to fetch per page
4042
- in: query
4143
name: page
44+
description: The offset to retrieve data from
4245
schema:
4346
type: integer
44-
description: The offset to retrieve data from
4547
- in: query
4648
name: status
49+
description: Filter by the status of the charges
4750
schema:
4851
type: string
4952
enum:
5053
- active
5154
- paused
5255
- complete
53-
description: Filter by the status of the charges
5456
responses:
5557
'200':
5658
description: ''

src/assets/openapi/paths/bulkcharge_pause_{code}.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@ get:
33
- Bulk Charge
44
summary: Pause Bulk Charge Batch
55
operationId: bulkCharge_pause
6+
description: Pause the processing of a charge batch
67
parameters:
78
- name: code
8-
description: Batch code
9+
description: The batch code for the bulk charge you want to pause
910
in: path
1011
required: true
1112
schema:
1213
type: string
14+
example: "BCH_180tl7oq7cayggh"
1315
responses:
1416
'200':
1517
description: ''

src/assets/openapi/paths/bulkcharge_resume_{code}.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@ get:
33
- Bulk Charge
44
summary: Resume Bulk Charge Batch
55
operationId: bulkCharge_resume
6+
description: Resume the processing of a previously paused charge batch
67
parameters:
78
- name: code
8-
description: Batch code
9+
description: The batch code for the bulk charge you want to pause
910
in: path
1011
required: true
1112
schema:
1213
type: string
14+
example: "BCH_180tl7oq7cayggh"
1315
responses:
1416
'200':
1517
description: ''

src/assets/openapi/paths/bulkcharge_{code}.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
11
parameters:
22
- name: code
3-
description: Batch code
3+
description: The code for the charge whose batches you want to retrieve
44
in: path
55
required: true
66
schema:
77
type: string
8+
example: "BCH_180tl7oq7cayggh"
89
get:
910
tags:
1011
- Bulk Charge
1112
summary: Fetch Bulk Charge Batch
1213
operationId: bulkCharge_fetch
14+
description: |
15+
This endpoint retrieves a specific batch code. It also returns useful information on its progress by
16+
way of the `total_charges` and `pending_charges` attributes.
1317
responses:
1418
'200':
1519
description: ''

src/assets/openapi/paths/bulkcharge_{code}_charges.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,28 @@ get:
33
- Bulk Charge
44
summary: List Charges in a Batch
55
operationId: bulkCharge_charges
6+
description: This endpoint retrieves the charges associated with a specified batch code
67
parameters:
78
- name: code
8-
description: Batch code
9+
description: An code for the batch whose charges you want to retrieve
910
in: path
1011
required: true
1112
schema:
1213
type: string
14+
example: "BCH_180tl7oq7cayggh"
1315
- in: query
1416
name: perPage
17+
description: Number of records to fetch per page
1518
schema:
1619
type: integer
17-
description: Number of records to fetch per page
1820
- in: query
1921
name: page
22+
description: The offset to retrieve data from
2023
schema:
2124
type: integer
22-
description: The offset to retrieve data from
2325
- in: query
2426
name: status
27+
description: Filter by the status of the charges
2528
schema:
2629
type: string
2730
enum:
@@ -30,7 +33,6 @@ get:
3033
- pending
3134
- error
3235
- inactive_authorization
33-
description: Filter by the status of the charges
3436
responses:
3537
'200':
3638
description: ''

0 commit comments

Comments
 (0)