Skip to content

Commit 3fabc2e

Browse files
fix linting issues
1 parent 8e658a1 commit 3fabc2e

File tree

19 files changed

+280
-275
lines changed

19 files changed

+280
-275
lines changed

dist/betting.yaml

Lines changed: 30 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -66,21 +66,16 @@ paths:
6666
type: integer
6767
metadata:
6868
description: Stringified JSON object of custom data
69-
type: string
70-
example: |
71-
{"cart_id":398, "custom_fields": [{
72-
"display_name":"Invoice ID",
73-
"variable_name":"Invoice ID",
74-
"value":209
75-
},
76-
{
77-
"display_name":"Cart Items",
78-
"variable_name":"cart_items",
79-
"value":"3 bananas, 12 mangoes"
80-
}
81-
]
82-
}
83-
}
69+
type: object
70+
example:
71+
cart_id: 398
72+
custom_fields:
73+
- display_name: Invoice ID
74+
variable_name: Invoice ID
75+
value: 209
76+
- display_name: Cart Items
77+
variable_name: cart_items
78+
value: '3 bananas, 12 mangoes'
8479
channels:
8580
description: An array of payment channels to control what channels you want to make available to the user to make a payment with
8681
type: array
@@ -114,7 +109,7 @@ paths:
114109
description: |-
115110
A flat fee to charge the subaccount for a transaction.
116111
This overrides the split percentage set when the subaccount was created
117-
type: string
112+
type: integer
118113
example: 12300
119114
bearer:
120115
description: The bearer of the transaction charge
@@ -188,8 +183,15 @@ paths:
188183
metadata:
189184
description: Stringified JSON object of custom data
190185
type: object
191-
example: |
192-
{cart_id:398, custom_fields:[{}] }
186+
example:
187+
cart_id: 398
188+
custom_fields:
189+
- display_name: Invoice ID
190+
variable_name: Invoice ID
191+
value: 209
192+
- display_name: Cart Items
193+
variable_name: cart_items
194+
value: '3 bananas, 12 mangoes'
193195
split_code:
194196
description: The split code of the transaction split
195197
type: string
@@ -202,7 +204,7 @@ paths:
202204
description: |-
203205
A flat fee to charge the subaccount for a transaction.
204206
This overrides the split percentage set when the subaccount was created
205-
type: string
207+
type: integer
206208
example: 12300
207209
bearer:
208210
description: The bearer of the transaction charge
@@ -266,7 +268,7 @@ paths:
266268
status: true
267269
message: Account number resolved
268270
data:
269-
account_number: 1234567
271+
account_number: 342391
270272
account_name: Doe Jane Loren
271273
bank_id: 9
272274
'401':
@@ -388,7 +390,7 @@ paths:
388390
authorization_code: null
389391
account_number: 0
390392
account_name: Doe Jane Loren
391-
bank_code: 11
393+
bank_code: 9
392394
bank_name: First Bank of Nigeria
393395
'401':
394396
$ref: '#/paths/~1bank~1resolve/get/responses/401'
@@ -430,8 +432,8 @@ paths:
430432
example: balance
431433
amount:
432434
description: Amount to transfer in kobo if currency is NGN. pesewas if currency is GHS and cents for ZAR.
433-
type: string
434-
amount: 10234
435+
type: integer
436+
example: 10234
435437
recipient:
436438
description: The transfer recipient's code
437439
type: string
@@ -522,7 +524,7 @@ components:
522524
phone:
523525
description: Customer's phone number
524526
type: string
525-
example: 2348123456789
527+
example: '+2348123456789'
526528
metadata:
527529
description: Stringified JSON object of custom data
528530
type: string
@@ -569,16 +571,16 @@ components:
569571
example: NG
570572
bvn:
571573
description: Customer's Bank Verification Number
572-
type: string
573-
example: 123456789
574+
type: integer
575+
example: 0123456789
574576
bank_code:
575577
description: 'You can get the list of bank codes by calling the List Banks endpoint (https://api.paystack.co/bank).'
576578
type: string
577-
example: 7
579+
example: '007'
578580
account_number:
579581
description: Customer's bank account number.
580582
type: string
581-
example: 111111111
583+
example: '0111111111'
582584
first_name:
583585
description: Customer's first name
584586
type: string

dist/lending.yaml

Lines changed: 31 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -66,21 +66,16 @@ paths:
6666
type: integer
6767
metadata:
6868
description: Stringified JSON object of custom data
69-
type: string
70-
example: |
71-
{"cart_id":398, "custom_fields": [{
72-
"display_name":"Invoice ID",
73-
"variable_name":"Invoice ID",
74-
"value":209
75-
},
76-
{
77-
"display_name":"Cart Items",
78-
"variable_name":"cart_items",
79-
"value":"3 bananas, 12 mangoes"
80-
}
81-
]
82-
}
83-
}
69+
type: object
70+
example:
71+
cart_id: 398
72+
custom_fields:
73+
- display_name: Invoice ID
74+
variable_name: Invoice ID
75+
value: 209
76+
- display_name: Cart Items
77+
variable_name: cart_items
78+
value: '3 bananas, 12 mangoes'
8479
channels:
8580
description: An array of payment channels to control what channels you want to make available to the user to make a payment with
8681
type: array
@@ -114,7 +109,7 @@ paths:
114109
description: |-
115110
A flat fee to charge the subaccount for a transaction.
116111
This overrides the split percentage set when the subaccount was created
117-
type: string
112+
type: integer
118113
example: 12300
119114
bearer:
120115
description: The bearer of the transaction charge
@@ -188,8 +183,15 @@ paths:
188183
metadata:
189184
description: Stringified JSON object of custom data
190185
type: object
191-
example: |
192-
{cart_id:398, custom_fields:[{}] }
186+
example:
187+
cart_id: 398
188+
custom_fields:
189+
- display_name: Invoice ID
190+
variable_name: Invoice ID
191+
value: 209
192+
- display_name: Cart Items
193+
variable_name: cart_items
194+
value: '3 bananas, 12 mangoes'
193195
split_code:
194196
description: The split code of the transaction split
195197
type: string
@@ -202,7 +204,7 @@ paths:
202204
description: |-
203205
A flat fee to charge the subaccount for a transaction.
204206
This overrides the split percentage set when the subaccount was created
205-
type: string
207+
type: integer
206208
example: 12300
207209
bearer:
208210
description: The bearer of the transaction charge
@@ -282,7 +284,7 @@ paths:
282284
example: 123.uniq=ref-3
283285
at_least:
284286
description: Minimum amount to charge
285-
type: string
287+
type: integer
286288
example: 5500
287289
responses:
288290
'200':
@@ -371,7 +373,7 @@ paths:
371373
status: true
372374
message: Account number resolved
373375
data:
374-
account_number: 1234567
376+
account_number: 342391
375377
account_name: Doe Jane Loren
376378
bank_id: 9
377379
'401':
@@ -471,7 +473,7 @@ paths:
471473
authorization_code: null
472474
account_number: 0
473475
account_name: Doe Jane Loren
474-
bank_code: 11
476+
bank_code: 9
475477
bank_name: First Bank of Nigeria
476478
'401':
477479
$ref: '#/paths/~1transfer/post/responses/401'
@@ -502,8 +504,8 @@ paths:
502504
example: balance
503505
amount:
504506
description: Amount to transfer in kobo if currency is NGN. pesewas if currency is GHS and cents for ZAR.
505-
type: string
506-
amount: 10234
507+
type: integer
508+
example: 10234
507509
recipient:
508510
description: The transfer recipient's code
509511
type: string
@@ -616,7 +618,7 @@ components:
616618
phone:
617619
description: Customer's phone number
618620
type: string
619-
example: 2348123456789
621+
example: '+2348123456789'
620622
metadata:
621623
description: Stringified JSON object of custom data
622624
type: string
@@ -663,16 +665,16 @@ components:
663665
example: NG
664666
bvn:
665667
description: Customer's Bank Verification Number
666-
type: string
667-
example: 123456789
668+
type: integer
669+
example: 0123456789
668670
bank_code:
669671
description: 'You can get the list of bank codes by calling the List Banks endpoint (https://api.paystack.co/bank).'
670672
type: string
671-
example: 7
673+
example: '007'
672674
account_number:
673675
description: Customer's bank account number.
674676
type: string
675-
example: 111111111
677+
example: '0111111111'
676678
first_name:
677679
description: Customer's first name
678680
type: string

dist/marketplace.yaml

Lines changed: 24 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ paths:
4141
settlement_bank:
4242
description: Bank code for the bank. You can get the list of Bank Codes by calling the List Banks endpoint.
4343
type: string
44-
example: 11
44+
example: '011'
4545
account_number:
4646
description: Bank account number
4747
type: string
48-
example: 0
48+
example: '0000000000'
4949
percentage_charge:
5050
description: Transaction percentage that the subaccount gets
5151
type: number
@@ -68,9 +68,9 @@ paths:
6868
type: string
6969
metadata:
7070
description: Stringified JSON object of custom data
71-
type: string
72-
example: |
73-
{"category": "General supplies" }
71+
type: object
72+
example:
73+
category: General supplies
7474
responses:
7575
'201':
7676
description: Subaccount Creation
@@ -85,7 +85,7 @@ paths:
8585
message: Subaccount created
8686
data:
8787
business_name: Cheese Sticks
88-
account_number: 123456789
88+
account_number: 0123456789
8989
percentage_charge: 0.2
9090
settlement_bank: Guaranty Trust Bank
9191
integration: 428626
@@ -146,7 +146,7 @@ paths:
146146
share:
147147
description: The percentage or flat quota of the customer or partner
148148
type: string
149-
example: 102
149+
example: '102'
150150
currency:
151151
description: The transaction currency
152152
type: string
@@ -217,7 +217,7 @@ paths:
217217
metadata: null
218218
percentage_charge: 20
219219
settlement_bank: Business Bank
220-
account_number: 123456789
220+
account_number: 0123456789
221221
share: 30
222222
total_subaccounts: 2
223223
'401':
@@ -299,21 +299,16 @@ paths:
299299
type: integer
300300
metadata:
301301
description: Stringified JSON object of custom data
302-
type: string
303-
example: |
304-
{"cart_id":398, "custom_fields": [{
305-
"display_name":"Invoice ID",
306-
"variable_name":"Invoice ID",
307-
"value":209
308-
},
309-
{
310-
"display_name":"Cart Items",
311-
"variable_name":"cart_items",
312-
"value":"3 bananas, 12 mangoes"
313-
}
314-
]
315-
}
316-
}
302+
type: object
303+
example:
304+
cart_id: 398
305+
custom_fields:
306+
- display_name: Invoice ID
307+
variable_name: Invoice ID
308+
value: 209
309+
- display_name: Cart Items
310+
variable_name: cart_items
311+
value: '3 bananas, 12 mangoes'
317312
channels:
318313
description: An array of payment channels to control what channels you want to make available to the user to make a payment with
319314
type: array
@@ -347,7 +342,7 @@ paths:
347342
description: |-
348343
A flat fee to charge the subaccount for a transaction.
349344
This overrides the split percentage set when the subaccount was created
350-
type: string
345+
type: integer
351346
example: 12300
352347
bearer:
353348
description: The bearer of the transaction charge
@@ -501,7 +496,7 @@ components:
501496
phone:
502497
description: Customer's phone number
503498
type: string
504-
example: 2348123456789
499+
example: '+2348123456789'
505500
metadata:
506501
description: Stringified JSON object of custom data
507502
type: string
@@ -548,16 +543,16 @@ components:
548543
example: NG
549544
bvn:
550545
description: Customer's Bank Verification Number
551-
type: string
552-
example: 123456789
546+
type: integer
547+
example: 0123456789
553548
bank_code:
554549
description: 'You can get the list of bank codes by calling the List Banks endpoint (https://api.paystack.co/bank).'
555550
type: string
556-
example: 7
551+
example: '007'
557552
account_number:
558553
description: Customer's bank account number.
559554
type: string
560-
example: 111111111
555+
example: '0111111111'
561556
first_name:
562557
description: Customer's first name
563558
type: string

0 commit comments

Comments
 (0)