Skip to content

Commit b11ec2a

Browse files
add bulk-response schema for bulk charges
1 parent 3fabc2e commit b11ec2a

File tree

8 files changed

+16
-78
lines changed

8 files changed

+16
-78
lines changed

dist/betting.yaml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -477,21 +477,6 @@ paths:
477477
id: 23070321
478478
createdAt: 2020-05-13T14:22:49.687Z
479479
updatedAt: 2020-05-13T14:22:49.687Z
480-
Initiate Bulk Transfer:
481-
value:
482-
status: true
483-
message: 2 transfers queued.
484-
data:
485-
- recipient: RCP_1a25w1h3n0xctjg
486-
amount: 50000
487-
transfer_code: TRF_mi8oa4liagyvq2md
488-
currency: NGN
489-
status: success
490-
- recipient: RCP_sa1k1btncp993q1
491-
amount: 50000
492-
transfer_code: TRF_1c5upr4hp85l93n7
493-
currency: NGN
494-
status: success
495480
'401':
496481
$ref: '#/paths/~1bank~1resolve/get/responses/401'
497482
default:

dist/lending.yaml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -549,21 +549,6 @@ paths:
549549
id: 23070321
550550
createdAt: 2020-05-13T14:22:49.687Z
551551
updatedAt: 2020-05-13T14:22:49.687Z
552-
Initiate Bulk Transfer:
553-
value:
554-
status: true
555-
message: 2 transfers queued.
556-
data:
557-
- recipient: RCP_1a25w1h3n0xctjg
558-
amount: 50000
559-
transfer_code: TRF_mi8oa4liagyvq2md
560-
currency: NGN
561-
status: success
562-
- recipient: RCP_sa1k1btncp993q1
563-
amount: 50000
564-
transfer_code: TRF_1c5upr4hp85l93n7
565-
currency: NGN
566-
status: success
567552
'401':
568553
description: Unauthorized operation
569554
content:

dist/paystack.yaml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3140,21 +3140,6 @@ paths:
31403140
id: 23070321
31413141
createdAt: 2020-05-13T14:22:49.687Z
31423142
updatedAt: 2020-05-13T14:22:49.687Z
3143-
Initiate Bulk Transfer:
3144-
value:
3145-
status: true
3146-
message: 2 transfers queued.
3147-
data:
3148-
- recipient: RCP_1a25w1h3n0xctjg
3149-
amount: 50000
3150-
transfer_code: TRF_mi8oa4liagyvq2md
3151-
currency: NGN
3152-
status: success
3153-
- recipient: RCP_sa1k1btncp993q1
3154-
amount: 50000
3155-
transfer_code: TRF_1c5upr4hp85l93n7
3156-
currency: NGN
3157-
status: success
31583143
'401':
31593144
$ref: '#/paths/~1page/get/responses/401'
31603145
default:

dist/savings.yaml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -444,21 +444,6 @@ paths:
444444
id: 23070321
445445
createdAt: 2020-05-13T14:22:49.687Z
446446
updatedAt: 2020-05-13T14:22:49.687Z
447-
Initiate Bulk Transfer:
448-
value:
449-
status: true
450-
message: 2 transfers queued.
451-
data:
452-
- recipient: RCP_1a25w1h3n0xctjg
453-
amount: 50000
454-
transfer_code: TRF_mi8oa4liagyvq2md
455-
currency: NGN
456-
status: success
457-
- recipient: RCP_sa1k1btncp993q1
458-
amount: 50000
459-
transfer_code: TRF_1c5upr4hp85l93n7
460-
currency: NGN
461-
status: success
462447
'401':
463448
description: Unauthorized operation
464449
content:

dist/wallet.yaml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -373,21 +373,6 @@ paths:
373373
id: 23070321
374374
createdAt: 2020-05-13T14:22:49.687Z
375375
updatedAt: 2020-05-13T14:22:49.687Z
376-
Initiate Bulk Transfer:
377-
value:
378-
status: true
379-
message: 2 transfers queued.
380-
data:
381-
- recipient: RCP_1a25w1h3n0xctjg
382-
amount: 50000
383-
transfer_code: TRF_mi8oa4liagyvq2md
384-
currency: NGN
385-
status: success
386-
- recipient: RCP_sa1k1btncp993q1
387-
amount: 50000
388-
transfer_code: TRF_1c5upr4hp85l93n7
389-
currency: NGN
390-
status: success
391376
'401':
392377
$ref: '#/paths/~1customer/post/responses/401'
393378
default:

main/responses/bulk-response.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
type: object
2+
properties:
3+
status:
4+
type: boolean
5+
message:
6+
type: string
7+
data:
8+
type: array

main/responses/transfer/bulk.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
description: Request successful
2+
content:
3+
application/json:
4+
schema:
5+
$ref: '../bulk-response.yaml'
6+
example:
7+
$ref: '../../examples/transfer/bulk.yaml'

main/responses/transfer/transfer.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,4 @@ content:
55
$ref: '../response.yaml'
66
examples:
77
Initiate Transfer:
8-
$ref: '../../examples/transfer/initiate.yaml'
9-
Initiate Bulk Transfer:
10-
$ref: '../../examples/transfer/bulk.yaml'
8+
$ref: '../../examples/transfer/initiate.yaml'

0 commit comments

Comments
 (0)