Skip to content

Commit 817f0fe

Browse files
chore: update split examples and descriptions
1 parent d1f184d commit 817f0fe

7 files changed

Lines changed: 75 additions & 32 deletions

File tree

dist/paystack.yaml

Lines changed: 38 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,7 @@ paths:
402402
- name: id
403403
in: path
404404
required: true
405+
description: The ID of the transaction to fetch
405406
schema:
406407
type: integer
407408
format: int64
@@ -527,6 +528,7 @@ paths:
527528
- Split
528529
summary: Create Split
529530
operationId: split_create
531+
description: Create a split configuration for transactions
530532
requestBody:
531533
content:
532534
application/json:
@@ -551,7 +553,14 @@ paths:
551553
- Split
552554
summary: List Splits
553555
operationId: split_list
556+
description: List the transaction splits available on your integration
554557
parameters:
558+
- in: query
559+
name: subaccount_code
560+
description: Filter by subaccount code
561+
schema:
562+
type: string
563+
example: ACCT_dskvlw3y3dMukmt
555564
- name: name
556565
description: The name of the split
557566
in: query
@@ -584,12 +593,6 @@ paths:
584593
schema:
585594
type: string
586595
format: date-time
587-
- in: query
588-
name: subaccount_code
589-
description: Filter by subaccount code
590-
schema:
591-
type: string
592-
example: ACCT_dskvlw3y3dMukmt
593596
responses:
594597
'200':
595598
description: ''
@@ -609,12 +612,15 @@ paths:
609612
- Split
610613
summary: Fetch Split
611614
operationId: split_fetch
615+
description: Get details of a split configuration for a transaction
612616
parameters:
613617
- name: id
614618
in: path
619+
description: The ID of the split configuration to fetch
615620
required: true
616621
schema:
617-
type: string
622+
type: integer
623+
example: 4896895
618624
responses:
619625
'200':
620626
description: ''
@@ -633,6 +639,7 @@ paths:
633639
- Split
634640
summary: Update Split
635641
operationId: split_update
642+
description: Update a split configuration for transactions
636643
requestBody:
637644
content:
638645
application/json:
@@ -666,6 +673,7 @@ paths:
666673
- Split
667674
summary: Add Subaccount to Split
668675
operationId: split_addSubaccount
676+
description: Add a subaccount to a split configuration, or update the share of an existing subaccount
669677
requestBody:
670678
content:
671679
application/json:
@@ -678,9 +686,10 @@ paths:
678686
- name: id
679687
in: path
680688
required: true
689+
description: The ID of the split configuration to fetch
681690
schema:
682-
type: string
683-
example: application/json
691+
type: integer
692+
example: 4896895
684693
responses:
685694
'200':
686695
description: ''
@@ -698,6 +707,7 @@ paths:
698707
- Split
699708
summary: Remove Subaccount from split
700709
operationId: split_removeSubaccount
710+
description: Remove a subaccount from a split configuration
701711
requestBody:
702712
content:
703713
application/json:
@@ -709,9 +719,11 @@ paths:
709719
parameters:
710720
- name: id
711721
in: path
722+
description: The ID of the split configuration to fetch
712723
required: true
713724
schema:
714-
type: string
725+
type: integer
726+
example: 4896895
715727
responses:
716728
'200':
717729
description: ''
@@ -4587,11 +4599,19 @@ components:
45874599
type: string
45884600
share:
45894601
description: The percentage or flat quota of the customer or partner
4590-
type: string
4602+
type: integer
4603+
example:
4604+
subaccount: ACCT_6uujpqtzmnufzkw
4605+
share: 50
45914606
SplitCreate:
45924607
type: object
45934608
description: |
45944609
Split configuration for transactions
4610+
required:
4611+
- name
4612+
- type
4613+
- subaccounts
4614+
- currency
45954615
properties:
45964616
name:
45974617
description: Name of the transaction split
@@ -4626,11 +4646,13 @@ components:
46264646
bearer_subaccount:
46274647
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
46284648
type: string
4629-
required:
4630-
- name
4631-
- type
4632-
- subaccounts
4633-
- currency
4649+
example:
4650+
name: Halfsies
4651+
type: percentage
4652+
currency: NGN
4653+
subaccounts:
4654+
- subaccount: ACCT_6uujpqtzmnufzkw
4655+
share: 50
46344656
TransactionInitialize:
46354657
description: Initialize a transaction
46364658
type: object

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

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
type: object
22
description: |
33
Split configuration for transactions
4+
required:
5+
- name
6+
- type
7+
- subaccounts
8+
- currency
49
properties:
510
name:
611
description: Name of the transaction split
@@ -37,8 +42,10 @@ properties:
3742
This is the subaccount code of the customer or partner that would bear the
3843
transaction charge if you specified subaccount as the bearer type
3944
type: string
40-
required:
41-
- name
42-
- type
43-
- subaccounts
44-
- currency
45+
example:
46+
name: Halfsies
47+
type: percentage
48+
currency: NGN
49+
subaccounts:
50+
- subaccount: ACCT_6uujpqtzmnufzkw
51+
share: 50

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,7 @@ properties:
55
type: string
66
share:
77
description: The percentage or flat quota of the customer or partner
8-
type: string
8+
type: integer
9+
example:
10+
subaccount: ACCT_6uujpqtzmnufzkw
11+
share: 50

src/assets/openapi/paths/split.yaml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ post:
33
- Split
44
summary: Create Split
55
operationId: split_create
6+
description: Create a split configuration for transactions
67
requestBody:
78
content:
89
application/json:
@@ -27,7 +28,14 @@ get:
2728
- Split
2829
summary: List Splits
2930
operationId: split_list
31+
description: List the transaction splits available on your integration
3032
parameters:
33+
- in: query
34+
name: subaccount_code
35+
description: Filter by subaccount code
36+
schema:
37+
type: string
38+
example: ACCT_dskvlw3y3dMukmt
3139
- name: name
3240
description: The name of the split
3341
in: query
@@ -60,12 +68,6 @@ get:
6068
schema:
6169
type: string
6270
format: date-time
63-
- in: query
64-
name: subaccount_code
65-
description: Filter by subaccount code
66-
schema:
67-
type: string
68-
example: ACCT_dskvlw3y3dMukmt
6971
responses:
7072
'200':
7173
description: ''

src/assets/openapi/paths/split_{id}.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,15 @@ get:
33
- Split
44
summary: Fetch Split
55
operationId: split_fetch
6+
description: Get details of a split configuration for a transaction
67
parameters:
78
- name: id
89
in: path
10+
description: The ID of the split configuration to fetch
911
required: true
1012
schema:
11-
type: string
13+
type: integer
14+
example: 4896895
1215
responses:
1316
'200':
1417
description: ''
@@ -27,6 +30,7 @@ put:
2730
- Split
2831
summary: Update Split
2932
operationId: split_update
33+
description: Update a split configuration for transactions
3034
requestBody:
3135
content:
3236
application/json:

src/assets/openapi/paths/split_{id}_subaccount_add.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ post:
33
- Split
44
summary: Add Subaccount to Split
55
operationId: split_addSubaccount
6+
description: Add a subaccount to a split configuration, or update the share of an existing subaccount
67
requestBody:
78
content:
89
application/json:
@@ -15,9 +16,10 @@ post:
1516
- name: id
1617
in: path
1718
required: true
19+
description: The ID of the split configuration to fetch
1820
schema:
19-
type: string
20-
example: application/json
21+
type: integer
22+
example: 4896895
2123
responses:
2224
'200':
2325
description: ''

src/assets/openapi/paths/split_{id}_subaccount_remove.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ post:
33
- Split
44
summary: Remove Subaccount from split
55
operationId: split_removeSubaccount
6+
description: Remove a subaccount from a split configuration
67
requestBody:
78
content:
89
application/json:
@@ -14,9 +15,11 @@ post:
1415
parameters:
1516
- name: id
1617
in: path
18+
description: The ID of the split configuration to fetch
1719
required: true
1820
schema:
19-
type: string
21+
type: integer
22+
example: 4896895
2023
responses:
2124
'200':
2225
description: ''

0 commit comments

Comments
 (0)