Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix finalize transfer examples
  • Loading branch information
Andrew-Paystack committed Jul 3, 2024
commit 3832552328b8edcb778cb1026d816a6992166b0d
139 changes: 38 additions & 101 deletions dist/paystack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2238,106 +2238,6 @@ paths:
application/json:
schema:
$ref: '#/components/responses/Ok/content/application~1json/schema'
examples:
List Transfers:
value:
status: true
message: Transfers retrieved
data:
- amount: 1187500
createdAt: '2024-03-07T16:13:42.000Z'
currency: NGN
domain: live
failures: null
id: 480480480480
integration: 463433
reason: transfer demo
reference: demo-transfer
source: balance
source_details: null
status: success
titan_code: null
transfer_code: TRF_57qtrcpodassad
request: 544648484
transferred_at: '2024-03-07T16:13:43.000Z'
updatedAt: '2024-03-07T16:13:43.000Z'
recipient:
active: true
createdAt: '2024-03-07T16:08:13.000Z'
currency: NGN
description: Demo transfers
domain: live
email: example@example.com
id: 12309312
integration: 463433
metadata: null
name: DANTE ALIGHIERI
recipient_code: RCP_67gq8xn0ls58535
type: nuban
updatedAt: '2024-03-07T16:37:12.000Z'
is_deleted: false
isDeleted: false
details:
authorization_code: null
account_number: '12334567890'
account_name: DANTE ALIGHIERI
bank_code: '999991'
bank_name: PalmPay
session:
provider: nip
id: '110001231091230120391238372113'
fee_charged: 0
fees_breakdown: null
- amount: 712500
createdAt: '2024-03-07T16:11:10.000Z'
currency: NGN
domain: live
failures: null
id: 480480480
integration: 463433
reason: food
reference: cf20odaindonec892384cas
source: balance
source_details: null
status: success
titan_code: null
transfer_code: TRF_scgho47oei0s578v
request: 5454545545
transferred_at: '2024-03-07T16:11:12.000Z'
updatedAt: '2024-03-07T16:11:12.000Z'
recipient:
active: true
createdAt: '2024-03-07T16:08:13.000Z'
currency: NGN
description: '4.0'
domain: live
email: ojoojo971@gmail.com
id: 73001094
integration: 463433
metadata: null
name: Mwana Kupona
recipient_code: RCP_67gq8xn0ls58535
type: nuban
updatedAt: '2024-03-07T16:37:12.000Z'
is_deleted: false
isDeleted: false
details:
authorization_code: null
account_number: '0000000000'
account_name: MWANA TAU
bank_code: '011'
bank_name: First Bank of Nigeria
session:
provider: nip
id: '120312192381218312812312312'
fee_charged: 0
fees_breakdown: null
meta:
total: 30
skipped: 0
perPage: 50
page: 1
pageCount: 1
'401':
description: Unauthorized operation
content:
Expand Down Expand Up @@ -3183,7 +3083,7 @@ paths:
example: 123456
responses:
'200':
$ref: '#/paths/~1page/get/responses/200'
$ref: '#/paths/~1transfer~1bulk/post/responses/200'
'401':
$ref: '#/paths/~1page/get/responses/401'
default:
Expand Down Expand Up @@ -3244,6 +3144,43 @@ paths:
transfersessionid: []
createdAt: 2020-05-13T14:22:49.687Z
updatedAt: 2020-05-13T14:22:49.687Z
Bulk Transfers:
value:
status: true
message: 2 transfers queued.
data:
- reference: abc-12345679abc
recipient: RCP_1a25w1h3n0xctjg
amount: 50000
transfer_code: TRF_mi8oa4liagyvq2md
currency: NGN
status: pending
- reference: abc-123457
recipient: RCP_sa1k1btncp993q1
amount: 50000
transfer_code: TRF_1c5upr4hp85l93n7
currency: NGN
status: pending
Finalize Transfer:
value:
status: true
message: Transfer has been queued
data:
domain: test
amount: 1000000
currency: NGN
reference: n7ll9pzl6b
source: balance
source_details: null
reason: E go better for you
status: pending
transfer_code: TRF_zuirlnr9qblgfko
titan_code: null
id: 529410
integration: 123460
recipient: 225204
createdAt: '2018-08-02T10:02:55.000Z'
updatedAt: '2018-08-02T10:12:05.000Z'
'401':
$ref: '#/paths/~1page/get/responses/401'
default:
Expand Down
6 changes: 4 additions & 2 deletions main/examples/transfer/bulk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@ value:
status: true
message: 2 transfers queued.
data:
- recipient: RCP_1a25w1h3n0xctjg
- reference: abc-12345679abc
recipient: RCP_1a25w1h3n0xctjg
amount: 50000
transfer_code: TRF_mi8oa4liagyvq2md
currency: NGN
status: pending
- recipient: RCP_sa1k1btncp993q1
- reference: abc-123457
recipient: RCP_sa1k1btncp993q1
amount: 50000
transfer_code: TRF_1c5upr4hp85l93n7
currency: NGN
Expand Down
19 changes: 19 additions & 0 deletions main/examples/transfer/finalize.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
value:
status: true
message: Transfer has been queued
data:
domain: test
amount: 1000000
currency: NGN
reference: n7ll9pzl6b
source: balance
source_details:
reason: E go better for you
status: pending
transfer_code: TRF_zuirlnr9qblgfko
titan_code:
id: 529410
integration: 123460
recipient: 225204
createdAt: '2018-08-02T10:02:55.000Z'
updatedAt: '2018-08-02T10:12:05.000Z'
2 changes: 1 addition & 1 deletion main/resources/transfer/finalize.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ post:
$ref: '../../schemas/transfer/Finalize.yaml'
responses:
200:
$ref: '../../responses/ok.yaml'
$ref: '../../responses/transfer/transfer.yaml'
401:
$ref: '../../responses/unauthorized.yaml'
default:
Expand Down
5 changes: 1 addition & 4 deletions main/responses/ok.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,4 @@ description: Request successful
content:
application/json:
schema:
$ref: './response.yaml'
examples:
List Transfers:
$ref: '../examples/transfer/list.yaml'
$ref: './response.yaml'
3 changes: 2 additions & 1 deletion main/responses/transfer/bulk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ content:
schema:
$ref: '../bulk-response.yaml'
example:
$ref: '../../examples/transfer/bulk.yaml'
Bulk Transfers:
$ref: '../../examples/transfer/bulk.yaml'
8 changes: 8 additions & 0 deletions main/responses/transfer/finalize.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
description: Request successful
content:
application/json:
schema:
$ref: '../response.yaml'
examples:
Finalize Transfer:
$ref: '../../examples/transfer/finalize.yaml'
6 changes: 5 additions & 1 deletion main/responses/transfer/transfer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,8 @@ content:
$ref: '../response.yaml'
examples:
Initiate Transfer:
$ref: '../../examples/transfer/initiate.yaml'
$ref: '../../examples/transfer/initiate.yaml'
Bulk Transfers:
$ref: '../../examples/transfer/bulk.yaml'
Finalize Transfer:
$ref: '../../examples/transfer/finalize.yaml'