Skip to content

Commit 48e8fff

Browse files
chore: update Terminal examples and descriptions
1 parent 817f0fe commit 48e8fff

9 files changed

Lines changed: 37 additions & 5 deletions

dist/paystack.yaml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -746,6 +746,7 @@ paths:
746746
- name: id
747747
in: path
748748
required: true
749+
description: The ID of the Terminal the event should be sent to.
749750
schema:
750751
type: string
751752
example: Z0R4orOU
@@ -775,12 +776,14 @@ paths:
775776
- name: terminal_id
776777
in: path
777778
required: true
779+
description: The ID of the Terminal the event should be sent to.
778780
schema:
779781
type: string
780782
example: Z0R4orOU
781783
- name: event_id
782784
in: path
783785
required: true
786+
description: The ID of the event that was sent to the Terminal
784787
schema:
785788
type: string
786789
example: 616d721e8c5cd40a0cdd54a6
@@ -804,6 +807,7 @@ paths:
804807
- name: terminal_id
805808
in: path
806809
required: true
810+
description: The ID of the Terminal the event should be sent to.
807811
schema:
808812
type: string
809813
example: Z0R4orOU
@@ -826,16 +830,20 @@ paths:
826830
parameters:
827831
- name: next
828832
in: query
833+
description: A cursor that indicates your place in the list. It can be used to fetch the next page of the list
829834
schema:
830835
type: string
831836
- name: previous
832837
in: query
838+
description: A cursor that indicates your place in the list. It should be used to fetch the previous page of the list after an intial next request
833839
schema:
834840
type: string
835841
- name: per_page
836842
in: query
843+
description: Specify how many records you want to retrieve per page
837844
schema:
838-
type: string
845+
type: integer
846+
default: 50
839847
responses:
840848
'200':
841849
$ref: '#/components/responses/TerminalListsSuccess'
@@ -849,9 +857,11 @@ paths:
849857
parameters:
850858
- name: terminal_id
851859
in: path
860+
description: The ID of the Terminal the event should be sent to.
852861
required: true
853862
schema:
854863
type: string
864+
example: Z0R4orOU
855865
get:
856866
tags:
857867
- Terminal
@@ -872,6 +882,7 @@ paths:
872882
- Terminal
873883
summary: Update Terminal
874884
operationId: terminal_update
885+
description: Update the details of a Terminal
875886
requestBody:
876887
content:
877888
application/json:
@@ -6593,6 +6604,12 @@ components:
65936604
- print
65946605
data:
65956606
$ref: '#/components/schemas/TerminalSendEventData'
6607+
example:
6608+
type: invoice
6609+
action: process
6610+
data:
6611+
id: 7895939
6612+
reference: '4634337895939'
65966613
Response:
65976614
type: object
65986615
properties:
@@ -6741,7 +6758,6 @@ components:
67416758
- data
67426759
TerminalUpate:
67436760
type: object
6744-
description: Model for updating a Terminal details
67456761
properties:
67466762
name:
67476763
description: The new name for the Terminal

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,9 @@ properties:
1919
- print
2020
data:
2121
$ref: ./TerminalSendEventData.yaml
22+
example:
23+
type: invoice
24+
action: process
25+
data:
26+
id: 7895939
27+
reference: "4634337895939"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ properties:
1010
type: string
1111
example:
1212
id: 7895939
13-
reference: '4634337895939'
13+
reference: "4634337895939"

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
type: object
2-
description: Model for updating a Terminal details
32
properties:
43
name:
54
description: The new name for the Terminal

src/assets/openapi/paths/terminal.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,20 @@ get:
77
parameters:
88
- name: next
99
in: query
10+
description: A cursor that indicates your place in the list. It can be used to fetch the next page of the list
1011
schema:
1112
type: string
1213
- name: previous
1314
in: query
15+
description: A cursor that indicates your place in the list. It should be used to fetch the previous page of the list after an intial next request
1416
schema:
1517
type: string
1618
- name: per_page
1719
in: query
20+
description: Specify how many records you want to retrieve per page
1821
schema:
19-
type: string
22+
type: integer
23+
default: 50
2024
responses:
2125
'200':
2226
$ref: ../components/responses/TerminalListsSuccess.yaml

src/assets/openapi/paths/terminal_{id}_event.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ post:
88
- name: id
99
in: path
1010
required: true
11+
description: The ID of the Terminal the event should be sent to.
1112
schema:
1213
type: string
1314
example: Z0R4orOU

src/assets/openapi/paths/terminal_{terminal_id}.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
parameters:
22
- name: terminal_id
33
in: path
4+
description: The ID of the Terminal the event should be sent to.
45
required: true
56
schema:
67
type: string
8+
example: Z0R4orOU
79
get:
810
tags:
911
- Terminal
@@ -24,6 +26,7 @@ put:
2426
- Terminal
2527
summary: Update Terminal
2628
operationId: terminal_update
29+
description: Update the details of a Terminal
2730
requestBody:
2831
content:
2932
application/json:

src/assets/openapi/paths/terminal_{terminal_id}_event_{event_id}.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@ get:
88
- name: terminal_id
99
in: path
1010
required: true
11+
description: The ID of the Terminal the event should be sent to.
1112
schema:
1213
type: string
1314
example: Z0R4orOU
1415
- name: event_id
1516
in: path
1617
required: true
18+
description: The ID of the event that was sent to the Terminal
1719
schema:
1820
type: string
1921
example: 616d721e8c5cd40a0cdd54a6

src/assets/openapi/paths/terminal_{terminal_id}_presence.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ get:
88
- name: terminal_id
99
in: path
1010
required: true
11+
description: The ID of the Terminal the event should be sent to.
1112
schema:
1213
type: string
1314
example: Z0R4orOU

0 commit comments

Comments
 (0)