From 1e25b1fede8b9edaa4ea683dbe4a852168dd8cdd Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 17 May 2023 04:17:47 +0000 Subject: [PATCH 1/8] Build(deps): Bump vm2 from 3.9.15 to 3.9.19 Bumps [vm2](https://github.com/patriksimek/vm2) from 3.9.15 to 3.9.19. - [Release notes](https://github.com/patriksimek/vm2/releases) - [Changelog](https://github.com/patriksimek/vm2/blob/master/CHANGELOG.md) - [Commits](https://github.com/patriksimek/vm2/compare/3.9.15...3.9.19) --- updated-dependencies: - dependency-name: vm2 dependency-type: indirect ... Signed-off-by: dependabot[bot] --- package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 9e3de9e..2999f94 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2341,9 +2341,9 @@ } }, "vm2": { - "version": "3.9.15", - "resolved": "https://registry.npmjs.org/vm2/-/vm2-3.9.15.tgz", - "integrity": "sha512-XqNqknHGw2avJo13gbIwLNZUumvrSHc9mLqoadFZTpo3KaNEJoe1I0lqTFhRXmXD7WkLyG01aaraXdXT0pa4ag==", + "version": "3.9.19", + "resolved": "https://registry.npmjs.org/vm2/-/vm2-3.9.19.tgz", + "integrity": "sha512-J637XF0DHDMV57R6JyVsTak7nIL8gy5KH4r1HiwWLf/4GBbb5MKL5y7LpmF4A8E2nR6XmzpmMFQ7V7ppPTmUQg==", "dev": true, "requires": { "acorn": "^8.7.0", From cec56009436fbeb7a8387a9f36e6ce45ae822e93 Mon Sep 17 00:00:00 2001 From: Andrew Nduati Date: Fri, 7 Jun 2024 15:11:47 +0300 Subject: [PATCH 2/8] update transfer responses --- main/examples/transfer/bulk.yaml | 4 ++-- main/examples/transfer/initiate.yaml | 5 +++++ main/schemas/transfer-recipient/Create.yaml | 1 + 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/main/examples/transfer/bulk.yaml b/main/examples/transfer/bulk.yaml index 43dfeb0..1d5ed7d 100644 --- a/main/examples/transfer/bulk.yaml +++ b/main/examples/transfer/bulk.yaml @@ -6,9 +6,9 @@ value: amount: 50000 transfer_code: TRF_mi8oa4liagyvq2md currency: NGN - status: success + status: pending - recipient: RCP_sa1k1btncp993q1 amount: 50000 transfer_code: TRF_1c5upr4hp85l93n7 currency: NGN - status: success \ No newline at end of file + status: pending \ No newline at end of file diff --git a/main/examples/transfer/initiate.yaml b/main/examples/transfer/initiate.yaml index a4d5b27..c2423cc 100644 --- a/main/examples/transfer/initiate.yaml +++ b/main/examples/transfer/initiate.yaml @@ -13,5 +13,10 @@ value: status: success transfer_code: TRF_fiyxvgkh71e717b id: 23070321 + failures: null + source_details: null + request: 654770431 + transferred_at: 2020-05-13T14:22:49.687Z + transfersessionid: [] createdAt: 2020-05-13T14:22:49.687Z updatedAt: 2020-05-13T14:22:49.687Z \ No newline at end of file diff --git a/main/schemas/transfer-recipient/Create.yaml b/main/schemas/transfer-recipient/Create.yaml index 1fe6758..5bafaf0 100644 --- a/main/schemas/transfer-recipient/Create.yaml +++ b/main/schemas/transfer-recipient/Create.yaml @@ -37,6 +37,7 @@ properties: - NGN - GHS - ZAR + - KES authorization_code: description: |- An authorization code from a previous transaction From 4dc64c0416042348803b7d1058d43d820abc1241 Mon Sep 17 00:00:00 2001 From: Andrew Nduati Date: Mon, 10 Jun 2024 16:21:07 +0300 Subject: [PATCH 3/8] updated transfers --- dist/paystack.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dist/paystack.yaml b/dist/paystack.yaml index 62e5ccc..4cdc3aa 100644 --- a/dist/paystack.yaml +++ b/dist/paystack.yaml @@ -2806,6 +2806,7 @@ paths: - NGN - GHS - ZAR + - KES authorization_code: description: An authorization code from a previous transaction type: string @@ -3136,6 +3137,11 @@ paths: status: success transfer_code: TRF_fiyxvgkh71e717b id: 23070321 + failures: null + source_details: null + request: 654770431 + transferred_at: 2020-05-13T14:22:49.687Z + transfersessionid: [] createdAt: 2020-05-13T14:22:49.687Z updatedAt: 2020-05-13T14:22:49.687Z '401': From 9009b0afbc4ca397a1045bc7d42180a0674452d6 Mon Sep 17 00:00:00 2001 From: Andrew Nduati Date: Wed, 12 Jun 2024 13:21:54 +0300 Subject: [PATCH 4/8] Add list transfers example --- dist/paystack.yaml | 100 ++++++++++++++++++++++++++++++ main/examples/transfer/list.yaml | 98 +++++++++++++++++++++++++++++ main/responses/ok.yaml | 5 +- main/responses/transfer/list.yaml | 8 +++ 4 files changed, 210 insertions(+), 1 deletion(-) create mode 100644 main/examples/transfer/list.yaml create mode 100644 main/responses/transfer/list.yaml diff --git a/dist/paystack.yaml b/dist/paystack.yaml index 4cdc3aa..23db360 100644 --- a/dist/paystack.yaml +++ b/dist/paystack.yaml @@ -2238,6 +2238,106 @@ 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: diff --git a/main/examples/transfer/list.yaml b/main/examples/transfer/list.yaml new file mode 100644 index 0000000..15e7635 --- /dev/null +++ b/main/examples/transfer/list.yaml @@ -0,0 +1,98 @@ +value: + status: true + message: Transfers retrieved + data: + - amount: 1187500 + createdAt: '2024-03-07T16:13:42.000Z' + currency: NGN + domain: live + failures: + id: 480480480480 + integration: 463433 + reason: transfer demo + reference: demo-transfer + source: balance + source_details: + status: success + titan_code: + 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: + name: DANTE ALIGHIERI + recipient_code: RCP_67gq8xn0ls58535 + type: nuban + updatedAt: '2024-03-07T16:37:12.000Z' + is_deleted: false + isDeleted: false + details: + authorization_code: + account_number: '12334567890' + account_name: DANTE ALIGHIERI + bank_code: '999991' + bank_name: PalmPay + session: + provider: nip + id: '110001231091230120391238372113' + fee_charged: 0 + fees_breakdown: + - amount: 712500 + createdAt: '2024-03-07T16:11:10.000Z' + currency: NGN + domain: live + failures: + id: 480480480 + integration: 463433 + reason: food + reference: cf20odaindonec892384cas + source: balance + source_details: + status: success + titan_code: + 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: + name: Mwana Kupona + recipient_code: RCP_67gq8xn0ls58535 + type: nuban + updatedAt: '2024-03-07T16:37:12.000Z' + is_deleted: false + isDeleted: false + details: + authorization_code: + 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 diff --git a/main/responses/ok.yaml b/main/responses/ok.yaml index 9badda7..f08a95c 100644 --- a/main/responses/ok.yaml +++ b/main/responses/ok.yaml @@ -2,4 +2,7 @@ description: Request successful content: application/json: schema: - $ref: './response.yaml' \ No newline at end of file + $ref: './response.yaml' + examples: + List Transfers: + $ref: '../examples/transfer/list.yaml' \ No newline at end of file diff --git a/main/responses/transfer/list.yaml b/main/responses/transfer/list.yaml new file mode 100644 index 0000000..ecbbdc0 --- /dev/null +++ b/main/responses/transfer/list.yaml @@ -0,0 +1,8 @@ +description: Request successful +content: + application/json: + schema: + $ref: '../response.yaml' + examples: + List Transfers: + $ref: '../../examples/transfer/list.yaml' From 877d5603784a070e7f66edcef2d3526ae9acecae Mon Sep 17 00:00:00 2001 From: Andrew Nduati Date: Wed, 12 Jun 2024 13:23:05 +0300 Subject: [PATCH 5/8] generate all examples --- dist/betting.yaml | 6 ++++++ dist/lending.yaml | 6 ++++++ dist/savings.yaml | 6 ++++++ dist/wallet.yaml | 6 ++++++ 4 files changed, 24 insertions(+) diff --git a/dist/betting.yaml b/dist/betting.yaml index 9f36955..7b92616 100644 --- a/dist/betting.yaml +++ b/dist/betting.yaml @@ -377,6 +377,7 @@ paths: - NGN - GHS - ZAR + - KES authorization_code: description: An authorization code from a previous transaction type: string @@ -502,6 +503,11 @@ paths: status: success transfer_code: TRF_fiyxvgkh71e717b id: 23070321 + failures: null + source_details: null + request: 654770431 + transferred_at: 2020-05-13T14:22:49.687Z + transfersessionid: [] createdAt: 2020-05-13T14:22:49.687Z updatedAt: 2020-05-13T14:22:49.687Z '401': diff --git a/dist/lending.yaml b/dist/lending.yaml index 8007a7e..8e5fc17 100644 --- a/dist/lending.yaml +++ b/dist/lending.yaml @@ -431,6 +431,7 @@ paths: - NGN - GHS - ZAR + - KES authorization_code: description: An authorization code from a previous transaction type: string @@ -545,6 +546,11 @@ paths: status: success transfer_code: TRF_fiyxvgkh71e717b id: 23070321 + failures: null + source_details: null + request: 654770431 + transferred_at: 2020-05-13T14:22:49.687Z + transfersessionid: [] createdAt: 2020-05-13T14:22:49.687Z updatedAt: 2020-05-13T14:22:49.687Z '401': diff --git a/dist/savings.yaml b/dist/savings.yaml index d52fa5d..00d8f69 100644 --- a/dist/savings.yaml +++ b/dist/savings.yaml @@ -326,6 +326,7 @@ paths: - NGN - GHS - ZAR + - KES authorization_code: description: An authorization code from a previous transaction type: string @@ -440,6 +441,11 @@ paths: status: success transfer_code: TRF_fiyxvgkh71e717b id: 23070321 + failures: null + source_details: null + request: 654770431 + transferred_at: 2020-05-13T14:22:49.687Z + transfersessionid: [] createdAt: 2020-05-13T14:22:49.687Z updatedAt: 2020-05-13T14:22:49.687Z '401': diff --git a/dist/wallet.yaml b/dist/wallet.yaml index 43d7eb2..e658f23 100644 --- a/dist/wallet.yaml +++ b/dist/wallet.yaml @@ -480,6 +480,7 @@ paths: - NGN - GHS - ZAR + - KES authorization_code: description: An authorization code from a previous transaction type: string @@ -594,6 +595,11 @@ paths: status: success transfer_code: TRF_fiyxvgkh71e717b id: 23070321 + failures: null + source_details: null + request: 654770431 + transferred_at: 2020-05-13T14:22:49.687Z + transfersessionid: [] createdAt: 2020-05-13T14:22:49.687Z updatedAt: 2020-05-13T14:22:49.687Z '401': From 3832552328b8edcb778cb1026d816a6992166b0d Mon Sep 17 00:00:00 2001 From: Andrew Nduati Date: Wed, 3 Jul 2024 17:09:03 +0300 Subject: [PATCH 6/8] fix finalize transfer examples --- dist/paystack.yaml | 139 +++++++------------------- main/examples/transfer/bulk.yaml | 6 +- main/examples/transfer/finalize.yaml | 19 ++++ main/resources/transfer/finalize.yaml | 2 +- main/responses/ok.yaml | 5 +- main/responses/transfer/bulk.yaml | 3 +- main/responses/transfer/finalize.yaml | 8 ++ main/responses/transfer/transfer.yaml | 6 +- 8 files changed, 78 insertions(+), 110 deletions(-) create mode 100644 main/examples/transfer/finalize.yaml create mode 100644 main/responses/transfer/finalize.yaml diff --git a/dist/paystack.yaml b/dist/paystack.yaml index 23db360..97ec46e 100644 --- a/dist/paystack.yaml +++ b/dist/paystack.yaml @@ -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: @@ -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: @@ -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: diff --git a/main/examples/transfer/bulk.yaml b/main/examples/transfer/bulk.yaml index 1d5ed7d..e05d259 100644 --- a/main/examples/transfer/bulk.yaml +++ b/main/examples/transfer/bulk.yaml @@ -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 diff --git a/main/examples/transfer/finalize.yaml b/main/examples/transfer/finalize.yaml new file mode 100644 index 0000000..d740cb4 --- /dev/null +++ b/main/examples/transfer/finalize.yaml @@ -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' \ No newline at end of file diff --git a/main/resources/transfer/finalize.yaml b/main/resources/transfer/finalize.yaml index ae95298..feddb24 100644 --- a/main/resources/transfer/finalize.yaml +++ b/main/resources/transfer/finalize.yaml @@ -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: diff --git a/main/responses/ok.yaml b/main/responses/ok.yaml index f08a95c..9badda7 100644 --- a/main/responses/ok.yaml +++ b/main/responses/ok.yaml @@ -2,7 +2,4 @@ description: Request successful content: application/json: schema: - $ref: './response.yaml' - examples: - List Transfers: - $ref: '../examples/transfer/list.yaml' \ No newline at end of file + $ref: './response.yaml' \ No newline at end of file diff --git a/main/responses/transfer/bulk.yaml b/main/responses/transfer/bulk.yaml index 4e7dc2b..2c7bfaf 100644 --- a/main/responses/transfer/bulk.yaml +++ b/main/responses/transfer/bulk.yaml @@ -4,4 +4,5 @@ content: schema: $ref: '../bulk-response.yaml' example: - $ref: '../../examples/transfer/bulk.yaml' \ No newline at end of file + Bulk Transfers: + $ref: '../../examples/transfer/bulk.yaml' \ No newline at end of file diff --git a/main/responses/transfer/finalize.yaml b/main/responses/transfer/finalize.yaml new file mode 100644 index 0000000..78bdb49 --- /dev/null +++ b/main/responses/transfer/finalize.yaml @@ -0,0 +1,8 @@ +description: Request successful +content: + application/json: + schema: + $ref: '../response.yaml' + examples: + Finalize Transfer: + $ref: '../../examples/transfer/finalize.yaml' \ No newline at end of file diff --git a/main/responses/transfer/transfer.yaml b/main/responses/transfer/transfer.yaml index e72c190..95428ef 100644 --- a/main/responses/transfer/transfer.yaml +++ b/main/responses/transfer/transfer.yaml @@ -5,4 +5,8 @@ content: $ref: '../response.yaml' examples: Initiate Transfer: - $ref: '../../examples/transfer/initiate.yaml' \ No newline at end of file + $ref: '../../examples/transfer/initiate.yaml' + Bulk Transfers: + $ref: '../../examples/transfer/bulk.yaml' + Finalize Transfer: + $ref: '../../examples/transfer/finalize.yaml' \ No newline at end of file From a83b52bcbdce9ba225a09a8fa960827a6d9c27f2 Mon Sep 17 00:00:00 2001 From: Andrew Nduati Date: Thu, 4 Jul 2024 14:07:56 +0300 Subject: [PATCH 7/8] add examples to Transfer APIs --- dist/paystack.yaml | 229 +++++++++++++++++- .../transaction/VerifyTransaction.yaml | 16 +- .../transfer/disable-otp-finalize.yaml | 3 + main/examples/transfer/disable-otp.yaml | 3 + main/examples/transfer/enable-otp.yaml | 3 + main/examples/transfer/fetch.yaml | 48 ++++ main/examples/transfer/list.yaml | 2 +- main/examples/transfer/resend-otp.yaml | 3 + main/examples/transfer/verify.yaml | 48 ++++ .../transfer/disable-otp-finalize.yaml | 2 +- main/resources/transfer/disable-otp.yaml | 2 +- main/resources/transfer/enable-otp.yaml | 2 +- main/resources/transfer/list.yaml | 4 +- main/resources/transfer/resend-otp.yaml | 2 +- main/resources/transfer/transfer-code.yaml | 2 +- main/resources/transfer/verify.yaml | 2 +- main/responses/transfer/list.yaml | 4 +- main/responses/transfer/transfer.yaml | 16 +- 18 files changed, 360 insertions(+), 31 deletions(-) create mode 100644 main/examples/transfer/disable-otp-finalize.yaml create mode 100644 main/examples/transfer/disable-otp.yaml create mode 100644 main/examples/transfer/enable-otp.yaml create mode 100644 main/examples/transfer/fetch.yaml create mode 100644 main/examples/transfer/resend-otp.yaml create mode 100644 main/examples/transfer/verify.yaml diff --git a/dist/paystack.yaml b/dist/paystack.yaml index 97ec46e..ba0e5b9 100644 --- a/dist/paystack.yaml +++ b/dist/paystack.yaml @@ -3048,11 +3048,9 @@ paths: description: The end date responses: '200': - $ref: '#/paths/~1page/get/responses/200' + $ref: '#/paths/~1transfer~1bulk/post/responses/200' '401': $ref: '#/paths/~1page/get/responses/401' - '404': - $ref: '#/paths/~1page/get/responses/401' default: description: Server error /transfer/finalize_transfer: @@ -3181,6 +3179,219 @@ paths: recipient: 225204 createdAt: '2018-08-02T10:02:55.000Z' updatedAt: '2018-08-02T10:12:05.000Z' + 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: 3 + skipped: 0 + perPage: 50 + page: 1 + pageCount: 1 + Fetch Transfer: + value: + status: true + message: Transfer retrieved + data: + amount: 2000 + createdAt: 2023-04-04T10:41:58.000Z + currency: NGN + domain: live + failures: null + id: 269771800 + integration: 463433 + reason: Redemption amount + reference: abc-123-reference + source: balance + source_details: null + status: success + titan_code: null + transfer_code: TRF_09i424359abc123 + request: 2484542312 + transferred_at: 2023-04-04T10:42:01.000Z + updatedAt: 2023-04-04T10:42:01.000Z + recipient: + active: true + createdAt: 2023-04-04T10:41:12.000Z + currency: NGN + description: null + domain: live + email: customer@example.com + id: 51991232 + integration: 463433 + metadata: null + name: Mekatilili Menza + recipient_code: RCP_hcbqw7tcdojffkg + type: nuban + updatedAt: 2023-04-04T10:41:12.000Z + is_deleted: false + isDeleted: false + details: + authorization_code: null + account_number: 0123456789 + account_name: MEKATILILI MENZA M + bank_code: 058 + bank_name: Guaranty Trust Bank + session: + provider: nip + id: '00031231231231231231231230101' + fee_charged: 1000 + fees_breakdown: null + Verify Transfer: + value: + status: true + message: Transfer retrieved + data: + amount: 2000 + createdAt: 2023-04-04T10:41:58.000Z + currency: NGN + domain: live + failures: null + id: 269771800 + integration: 463433 + reason: Redemption amount + reference: abc-123-reference + source: balance + source_details: null + status: success + titan_code: null + transfer_code: TRF_09i424359abc123 + request: 2484542312 + transferred_at: 2023-04-04T10:42:01.000Z + updatedAt: 2023-04-04T10:42:01.000Z + recipient: + active: true + createdAt: 2023-04-04T10:41:12.000Z + currency: NGN + description: null + domain: live + email: customer@example.com + id: 51991232 + integration: 463433 + metadata: null + name: Mekatilili Menza + recipient_code: RCP_hcbqw7tcdojffkg + type: nuban + updatedAt: 2023-04-04T10:41:12.000Z + is_deleted: false + isDeleted: false + details: + authorization_code: null + account_number: 0123456789 + account_name: MEKATILILI MENZA M + bank_code: 058 + bank_name: Guaranty Trust Bank + session: + provider: nip + id: '00031231231231231231231230101' + fee_charged: 1000 + fees_breakdown: null + Enable OTP: + value: + status: true + message: OTP requirement for transfers has been enabled + Resend OTP: + value: + status: true + message: OTP has been resent + Disable OTP: + value: + status: true + message: OTP has been sent to mobile number ending with 4321 + Finalize Disable OTP: + value: + status: true + message: OTP requirement for transfers has been disabled '401': $ref: '#/paths/~1page/get/responses/401' default: @@ -3200,7 +3411,7 @@ paths: operationId: transfer_fetch responses: '200': - $ref: '#/paths/~1page/get/responses/200' + $ref: '#/paths/~1transfer~1bulk/post/responses/200' '401': $ref: '#/paths/~1page/get/responses/401' '404': @@ -3221,7 +3432,7 @@ paths: operationId: transfer_verify responses: '200': - $ref: '#/paths/~1page/get/responses/200' + $ref: '#/paths/~1transfer~1bulk/post/responses/200' '401': $ref: '#/paths/~1page/get/responses/401' '404': @@ -3296,7 +3507,7 @@ paths: type: string responses: '200': - $ref: '#/paths/~1page/get/responses/200' + $ref: '#/paths/~1transfer~1bulk/post/responses/200' '401': $ref: '#/paths/~1page/get/responses/401' default: @@ -3309,7 +3520,7 @@ paths: operationId: transfer_disableOtp responses: '200': - $ref: '#/paths/~1page/get/responses/200' + $ref: '#/paths/~1transfer~1bulk/post/responses/200' '401': $ref: '#/paths/~1page/get/responses/401' default: @@ -3337,7 +3548,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: @@ -3350,7 +3561,7 @@ paths: operationId: transfer_enableOtp responses: '200': - $ref: '#/paths/~1page/get/responses/200' + $ref: '#/paths/~1transfer~1bulk/post/responses/200' '401': $ref: '#/paths/~1page/get/responses/401' default: diff --git a/main/examples/transaction/VerifyTransaction.yaml b/main/examples/transaction/VerifyTransaction.yaml index 87a8e46..931cb5f 100644 --- a/main/examples/transaction/VerifyTransaction.yaml +++ b/main/examples/transaction/VerifyTransaction.yaml @@ -25,14 +25,14 @@ value: input: [] history: [ - type: action - message: Attempted to pay with card - time: 13 - - - type: success - message: Successfully paid with card - time: 16 + type: action + message: Attempted to pay with card + time: 13 + + + type: success + message: Successfully paid with card + time: 16 ] fees: 50 diff --git a/main/examples/transfer/disable-otp-finalize.yaml b/main/examples/transfer/disable-otp-finalize.yaml new file mode 100644 index 0000000..96dfb63 --- /dev/null +++ b/main/examples/transfer/disable-otp-finalize.yaml @@ -0,0 +1,3 @@ +value: + status: true + message: OTP requirement for transfers has been disabled \ No newline at end of file diff --git a/main/examples/transfer/disable-otp.yaml b/main/examples/transfer/disable-otp.yaml new file mode 100644 index 0000000..75b8454 --- /dev/null +++ b/main/examples/transfer/disable-otp.yaml @@ -0,0 +1,3 @@ +value: + status: true + message: OTP has been sent to mobile number ending with 4321 \ No newline at end of file diff --git a/main/examples/transfer/enable-otp.yaml b/main/examples/transfer/enable-otp.yaml new file mode 100644 index 0000000..864185e --- /dev/null +++ b/main/examples/transfer/enable-otp.yaml @@ -0,0 +1,3 @@ +value: + status: true + message: OTP requirement for transfers has been enabled \ No newline at end of file diff --git a/main/examples/transfer/fetch.yaml b/main/examples/transfer/fetch.yaml new file mode 100644 index 0000000..9affd6f --- /dev/null +++ b/main/examples/transfer/fetch.yaml @@ -0,0 +1,48 @@ +value: + status: true + message: Transfer retrieved + data: + amount: 2000 + createdAt: 2023-04-04T10:41:58.000Z + currency: NGN + domain: live + failures: + id: 269771800 + integration: 463433 + reason: Redemption amount + reference: abc-123-reference + source: balance + source_details: + status: success + titan_code: + transfer_code: TRF_09i424359abc123 + request: 2484542312 + transferred_at: 2023-04-04T10:42:01.000Z + updatedAt: 2023-04-04T10:42:01.000Z + recipient: + active: true + createdAt: 2023-04-04T10:41:12.000Z + currency: NGN + description: + domain: live + email: customer@example.com + id: 51991232 + integration: 463433 + metadata: + name: Mekatilili Menza + recipient_code: RCP_hcbqw7tcdojffkg + type: nuban + updatedAt: 2023-04-04T10:41:12.000Z + is_deleted: false + isDeleted: false + details: + authorization_code: + account_number: 0123456789 + account_name: MEKATILILI MENZA M + bank_code: 058 + bank_name: Guaranty Trust Bank + session: + provider: nip + id: '00031231231231231231231230101' + fee_charged: 1000 + fees_breakdown: \ No newline at end of file diff --git a/main/examples/transfer/list.yaml b/main/examples/transfer/list.yaml index 15e7635..308eea2 100644 --- a/main/examples/transfer/list.yaml +++ b/main/examples/transfer/list.yaml @@ -91,7 +91,7 @@ value: fee_charged: 0 fees_breakdown: null meta: - total: 30 + total: 3 skipped: 0 perPage: 50 page: 1 diff --git a/main/examples/transfer/resend-otp.yaml b/main/examples/transfer/resend-otp.yaml new file mode 100644 index 0000000..2ef5e35 --- /dev/null +++ b/main/examples/transfer/resend-otp.yaml @@ -0,0 +1,3 @@ +value: + status: true + message: OTP has been resent \ No newline at end of file diff --git a/main/examples/transfer/verify.yaml b/main/examples/transfer/verify.yaml new file mode 100644 index 0000000..9affd6f --- /dev/null +++ b/main/examples/transfer/verify.yaml @@ -0,0 +1,48 @@ +value: + status: true + message: Transfer retrieved + data: + amount: 2000 + createdAt: 2023-04-04T10:41:58.000Z + currency: NGN + domain: live + failures: + id: 269771800 + integration: 463433 + reason: Redemption amount + reference: abc-123-reference + source: balance + source_details: + status: success + titan_code: + transfer_code: TRF_09i424359abc123 + request: 2484542312 + transferred_at: 2023-04-04T10:42:01.000Z + updatedAt: 2023-04-04T10:42:01.000Z + recipient: + active: true + createdAt: 2023-04-04T10:41:12.000Z + currency: NGN + description: + domain: live + email: customer@example.com + id: 51991232 + integration: 463433 + metadata: + name: Mekatilili Menza + recipient_code: RCP_hcbqw7tcdojffkg + type: nuban + updatedAt: 2023-04-04T10:41:12.000Z + is_deleted: false + isDeleted: false + details: + authorization_code: + account_number: 0123456789 + account_name: MEKATILILI MENZA M + bank_code: 058 + bank_name: Guaranty Trust Bank + session: + provider: nip + id: '00031231231231231231231230101' + fee_charged: 1000 + fees_breakdown: \ No newline at end of file diff --git a/main/resources/transfer/disable-otp-finalize.yaml b/main/resources/transfer/disable-otp-finalize.yaml index affd546..8a2f036 100644 --- a/main/resources/transfer/disable-otp-finalize.yaml +++ b/main/resources/transfer/disable-otp-finalize.yaml @@ -13,7 +13,7 @@ post: $ref: '../../schemas/transfer/DisableOTP.yaml' responses: 200: - $ref: '../../responses/ok.yaml' + $ref: '../../responses/transfer/transfer.yaml' 401: $ref: '../../responses/unauthorized.yaml' default: diff --git a/main/resources/transfer/disable-otp.yaml b/main/resources/transfer/disable-otp.yaml index 50a757d..02de528 100644 --- a/main/resources/transfer/disable-otp.yaml +++ b/main/resources/transfer/disable-otp.yaml @@ -5,7 +5,7 @@ post: operationId: transfer_disableOtp responses: 200: - $ref: '../../responses/ok.yaml' + $ref: '../../responses/transfer/transfer.yaml' 401: $ref: '../../responses/unauthorized.yaml' default: diff --git a/main/resources/transfer/enable-otp.yaml b/main/resources/transfer/enable-otp.yaml index 66a28ac..004383f 100644 --- a/main/resources/transfer/enable-otp.yaml +++ b/main/resources/transfer/enable-otp.yaml @@ -5,7 +5,7 @@ post: operationId: transfer_enableOtp responses: 200: - $ref: '../../responses/ok.yaml' + $ref: '../../responses/transfer/transfer.yaml' 401: $ref: '../../responses/unauthorized.yaml' default: diff --git a/main/resources/transfer/list.yaml b/main/resources/transfer/list.yaml index a7a51f9..c801ee1 100644 --- a/main/resources/transfer/list.yaml +++ b/main/resources/transfer/list.yaml @@ -31,10 +31,8 @@ parameters: description: The end date responses: 200: - $ref: '../../responses/ok.yaml' + $ref: '../../responses/transfer/transfer.yaml' 401: $ref: '../../responses/unauthorized.yaml' - 404: - $ref: '../../responses/unauthorized.yaml' default: description: Server error \ No newline at end of file diff --git a/main/resources/transfer/resend-otp.yaml b/main/resources/transfer/resend-otp.yaml index f6a88d1..d5d7245 100644 --- a/main/resources/transfer/resend-otp.yaml +++ b/main/resources/transfer/resend-otp.yaml @@ -13,7 +13,7 @@ post: $ref: '../../schemas/transfer/ResendOTP.yaml' responses: 200: - $ref: '../../responses/ok.yaml' + $ref: '../../responses/transfer/transfer.yaml' 401: $ref: '../../responses/unauthorized.yaml' default: diff --git a/main/resources/transfer/transfer-code.yaml b/main/resources/transfer/transfer-code.yaml index 9a91071..4b66431 100644 --- a/main/resources/transfer/transfer-code.yaml +++ b/main/resources/transfer/transfer-code.yaml @@ -12,7 +12,7 @@ get: operationId: transfer_fetch responses: 200: - $ref: '../../responses/ok.yaml' + $ref: '../../responses/transfer/transfer.yaml' 401: $ref: '../../responses/unauthorized.yaml' 404: diff --git a/main/resources/transfer/verify.yaml b/main/resources/transfer/verify.yaml index 98e7a82..86306fe 100644 --- a/main/resources/transfer/verify.yaml +++ b/main/resources/transfer/verify.yaml @@ -11,7 +11,7 @@ get: operationId: transfer_verify responses: 200: - $ref: '../../responses/ok.yaml' + $ref: '../../responses/transfer/transfer.yaml' 401: $ref: '../../responses/unauthorized.yaml' 404: diff --git a/main/responses/transfer/list.yaml b/main/responses/transfer/list.yaml index ecbbdc0..44a694e 100644 --- a/main/responses/transfer/list.yaml +++ b/main/responses/transfer/list.yaml @@ -3,6 +3,4 @@ content: application/json: schema: $ref: '../response.yaml' - examples: - List Transfers: - $ref: '../../examples/transfer/list.yaml' + diff --git a/main/responses/transfer/transfer.yaml b/main/responses/transfer/transfer.yaml index 95428ef..b13a6e7 100644 --- a/main/responses/transfer/transfer.yaml +++ b/main/responses/transfer/transfer.yaml @@ -9,4 +9,18 @@ content: Bulk Transfers: $ref: '../../examples/transfer/bulk.yaml' Finalize Transfer: - $ref: '../../examples/transfer/finalize.yaml' \ No newline at end of file + $ref: '../../examples/transfer/finalize.yaml' + List Transfers: + $ref: '../../examples/transfer/list.yaml' + Fetch Transfer: + $ref: '../../examples/transfer/fetch.yaml' + Verify Transfer: + $ref: '../../examples/transfer/verify.yaml' + Enable OTP: + $ref: '../../examples/transfer/enable-otp.yaml' + Resend OTP: + $ref: '../../examples/transfer/resend-otp.yaml' + Disable OTP: + $ref: '../../examples/transfer/disable-otp.yaml' + Finalize Disable OTP: + $ref: '../../examples/transfer/disable-otp-finalize.yaml' From 933c569ca3a72d159a98db1b52cb487a676ab250 Mon Sep 17 00:00:00 2001 From: Andrew Nduati Date: Thu, 4 Jul 2024 17:50:17 +0300 Subject: [PATCH 8/8] fix transation initialize array --- dist/betting.yaml | 261 ++++++++++++++++++++++- dist/lending.yaml | 261 ++++++++++++++++++++++- dist/marketplace.yaml | 11 +- dist/membership.yaml | 11 +- dist/paystack.yaml | 11 +- dist/savings.yaml | 261 ++++++++++++++++++++++- dist/wallet.yaml | 261 ++++++++++++++++++++++- main/schemas/transaction/Initialize.yaml | 11 +- 8 files changed, 1024 insertions(+), 64 deletions(-) diff --git a/dist/betting.yaml b/dist/betting.yaml index 7b92616..9bb4be5 100644 --- a/dist/betting.yaml +++ b/dist/betting.yaml @@ -82,14 +82,9 @@ paths: channels: description: An array of payment channels to control what channels you want to make available to the user to make a payment with type: array - enum: - - card - - bank - - ussd - - qr - - eft - - mobile_money - - bank_transfer + items: + type: string + example: '[''card'', ''bank'',''ussd'', ''qr'', ''eft'', ''mobile_money'', ''bank_transfer'']' split_code: description: The split code of the transaction split type: string @@ -510,6 +505,256 @@ 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' + 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: 3 + skipped: 0 + perPage: 50 + page: 1 + pageCount: 1 + Fetch Transfer: + value: + status: true + message: Transfer retrieved + data: + amount: 2000 + createdAt: 2023-04-04T10:41:58.000Z + currency: NGN + domain: live + failures: null + id: 269771800 + integration: 463433 + reason: Redemption amount + reference: abc-123-reference + source: balance + source_details: null + status: success + titan_code: null + transfer_code: TRF_09i424359abc123 + request: 2484542312 + transferred_at: 2023-04-04T10:42:01.000Z + updatedAt: 2023-04-04T10:42:01.000Z + recipient: + active: true + createdAt: 2023-04-04T10:41:12.000Z + currency: NGN + description: null + domain: live + email: customer@example.com + id: 51991232 + integration: 463433 + metadata: null + name: Mekatilili Menza + recipient_code: RCP_hcbqw7tcdojffkg + type: nuban + updatedAt: 2023-04-04T10:41:12.000Z + is_deleted: false + isDeleted: false + details: + authorization_code: null + account_number: 0123456789 + account_name: MEKATILILI MENZA M + bank_code: 058 + bank_name: Guaranty Trust Bank + session: + provider: nip + id: '00031231231231231231231230101' + fee_charged: 1000 + fees_breakdown: null + Verify Transfer: + value: + status: true + message: Transfer retrieved + data: + amount: 2000 + createdAt: 2023-04-04T10:41:58.000Z + currency: NGN + domain: live + failures: null + id: 269771800 + integration: 463433 + reason: Redemption amount + reference: abc-123-reference + source: balance + source_details: null + status: success + titan_code: null + transfer_code: TRF_09i424359abc123 + request: 2484542312 + transferred_at: 2023-04-04T10:42:01.000Z + updatedAt: 2023-04-04T10:42:01.000Z + recipient: + active: true + createdAt: 2023-04-04T10:41:12.000Z + currency: NGN + description: null + domain: live + email: customer@example.com + id: 51991232 + integration: 463433 + metadata: null + name: Mekatilili Menza + recipient_code: RCP_hcbqw7tcdojffkg + type: nuban + updatedAt: 2023-04-04T10:41:12.000Z + is_deleted: false + isDeleted: false + details: + authorization_code: null + account_number: 0123456789 + account_name: MEKATILILI MENZA M + bank_code: 058 + bank_name: Guaranty Trust Bank + session: + provider: nip + id: '00031231231231231231231230101' + fee_charged: 1000 + fees_breakdown: null + Enable OTP: + value: + status: true + message: OTP requirement for transfers has been enabled + Resend OTP: + value: + status: true + message: OTP has been resent + Disable OTP: + value: + status: true + message: OTP has been sent to mobile number ending with 4321 + Finalize Disable OTP: + value: + status: true + message: OTP requirement for transfers has been disabled '401': $ref: '#/paths/~1bank~1resolve/get/responses/401' default: diff --git a/dist/lending.yaml b/dist/lending.yaml index 8e5fc17..4255c66 100644 --- a/dist/lending.yaml +++ b/dist/lending.yaml @@ -82,14 +82,9 @@ paths: channels: description: An array of payment channels to control what channels you want to make available to the user to make a payment with type: array - enum: - - card - - bank - - ussd - - qr - - eft - - mobile_money - - bank_transfer + items: + type: string + example: '[''card'', ''bank'',''ussd'', ''qr'', ''eft'', ''mobile_money'', ''bank_transfer'']' split_code: description: The split code of the transaction split type: string @@ -553,6 +548,256 @@ 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' + 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: 3 + skipped: 0 + perPage: 50 + page: 1 + pageCount: 1 + Fetch Transfer: + value: + status: true + message: Transfer retrieved + data: + amount: 2000 + createdAt: 2023-04-04T10:41:58.000Z + currency: NGN + domain: live + failures: null + id: 269771800 + integration: 463433 + reason: Redemption amount + reference: abc-123-reference + source: balance + source_details: null + status: success + titan_code: null + transfer_code: TRF_09i424359abc123 + request: 2484542312 + transferred_at: 2023-04-04T10:42:01.000Z + updatedAt: 2023-04-04T10:42:01.000Z + recipient: + active: true + createdAt: 2023-04-04T10:41:12.000Z + currency: NGN + description: null + domain: live + email: customer@example.com + id: 51991232 + integration: 463433 + metadata: null + name: Mekatilili Menza + recipient_code: RCP_hcbqw7tcdojffkg + type: nuban + updatedAt: 2023-04-04T10:41:12.000Z + is_deleted: false + isDeleted: false + details: + authorization_code: null + account_number: 0123456789 + account_name: MEKATILILI MENZA M + bank_code: 058 + bank_name: Guaranty Trust Bank + session: + provider: nip + id: '00031231231231231231231230101' + fee_charged: 1000 + fees_breakdown: null + Verify Transfer: + value: + status: true + message: Transfer retrieved + data: + amount: 2000 + createdAt: 2023-04-04T10:41:58.000Z + currency: NGN + domain: live + failures: null + id: 269771800 + integration: 463433 + reason: Redemption amount + reference: abc-123-reference + source: balance + source_details: null + status: success + titan_code: null + transfer_code: TRF_09i424359abc123 + request: 2484542312 + transferred_at: 2023-04-04T10:42:01.000Z + updatedAt: 2023-04-04T10:42:01.000Z + recipient: + active: true + createdAt: 2023-04-04T10:41:12.000Z + currency: NGN + description: null + domain: live + email: customer@example.com + id: 51991232 + integration: 463433 + metadata: null + name: Mekatilili Menza + recipient_code: RCP_hcbqw7tcdojffkg + type: nuban + updatedAt: 2023-04-04T10:41:12.000Z + is_deleted: false + isDeleted: false + details: + authorization_code: null + account_number: 0123456789 + account_name: MEKATILILI MENZA M + bank_code: 058 + bank_name: Guaranty Trust Bank + session: + provider: nip + id: '00031231231231231231231230101' + fee_charged: 1000 + fees_breakdown: null + Enable OTP: + value: + status: true + message: OTP requirement for transfers has been enabled + Resend OTP: + value: + status: true + message: OTP has been resent + Disable OTP: + value: + status: true + message: OTP has been sent to mobile number ending with 4321 + Finalize Disable OTP: + value: + status: true + message: OTP requirement for transfers has been disabled '401': description: Unauthorized operation content: diff --git a/dist/marketplace.yaml b/dist/marketplace.yaml index 8165ff1..d6e3faa 100644 --- a/dist/marketplace.yaml +++ b/dist/marketplace.yaml @@ -315,14 +315,9 @@ paths: channels: description: An array of payment channels to control what channels you want to make available to the user to make a payment with type: array - enum: - - card - - bank - - ussd - - qr - - eft - - mobile_money - - bank_transfer + items: + type: string + example: '[''card'', ''bank'',''ussd'', ''qr'', ''eft'', ''mobile_money'', ''bank_transfer'']' split_code: description: The split code of the transaction split type: string diff --git a/dist/membership.yaml b/dist/membership.yaml index b7abd7a..8500ed3 100644 --- a/dist/membership.yaml +++ b/dist/membership.yaml @@ -263,14 +263,9 @@ paths: channels: description: An array of payment channels to control what channels you want to make available to the user to make a payment with type: array - enum: - - card - - bank - - ussd - - qr - - eft - - mobile_money - - bank_transfer + items: + type: string + example: '[''card'', ''bank'',''ussd'', ''qr'', ''eft'', ''mobile_money'', ''bank_transfer'']' split_code: description: The split code of the transaction split type: string diff --git a/dist/paystack.yaml b/dist/paystack.yaml index ba0e5b9..fd48f8b 100644 --- a/dist/paystack.yaml +++ b/dist/paystack.yaml @@ -97,14 +97,9 @@ paths: channels: description: An array of payment channels to control what channels you want to make available to the user to make a payment with type: array - enum: - - card - - bank - - ussd - - qr - - eft - - mobile_money - - bank_transfer + items: + type: string + example: '[''card'', ''bank'',''ussd'', ''qr'', ''eft'', ''mobile_money'', ''bank_transfer'']' split_code: description: The split code of the transaction split type: string diff --git a/dist/savings.yaml b/dist/savings.yaml index 00d8f69..c1fe92a 100644 --- a/dist/savings.yaml +++ b/dist/savings.yaml @@ -82,14 +82,9 @@ paths: channels: description: An array of payment channels to control what channels you want to make available to the user to make a payment with type: array - enum: - - card - - bank - - ussd - - qr - - eft - - mobile_money - - bank_transfer + items: + type: string + example: '[''card'', ''bank'',''ussd'', ''qr'', ''eft'', ''mobile_money'', ''bank_transfer'']' split_code: description: The split code of the transaction split type: string @@ -448,6 +443,256 @@ 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' + 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: 3 + skipped: 0 + perPage: 50 + page: 1 + pageCount: 1 + Fetch Transfer: + value: + status: true + message: Transfer retrieved + data: + amount: 2000 + createdAt: 2023-04-04T10:41:58.000Z + currency: NGN + domain: live + failures: null + id: 269771800 + integration: 463433 + reason: Redemption amount + reference: abc-123-reference + source: balance + source_details: null + status: success + titan_code: null + transfer_code: TRF_09i424359abc123 + request: 2484542312 + transferred_at: 2023-04-04T10:42:01.000Z + updatedAt: 2023-04-04T10:42:01.000Z + recipient: + active: true + createdAt: 2023-04-04T10:41:12.000Z + currency: NGN + description: null + domain: live + email: customer@example.com + id: 51991232 + integration: 463433 + metadata: null + name: Mekatilili Menza + recipient_code: RCP_hcbqw7tcdojffkg + type: nuban + updatedAt: 2023-04-04T10:41:12.000Z + is_deleted: false + isDeleted: false + details: + authorization_code: null + account_number: 0123456789 + account_name: MEKATILILI MENZA M + bank_code: 058 + bank_name: Guaranty Trust Bank + session: + provider: nip + id: '00031231231231231231231230101' + fee_charged: 1000 + fees_breakdown: null + Verify Transfer: + value: + status: true + message: Transfer retrieved + data: + amount: 2000 + createdAt: 2023-04-04T10:41:58.000Z + currency: NGN + domain: live + failures: null + id: 269771800 + integration: 463433 + reason: Redemption amount + reference: abc-123-reference + source: balance + source_details: null + status: success + titan_code: null + transfer_code: TRF_09i424359abc123 + request: 2484542312 + transferred_at: 2023-04-04T10:42:01.000Z + updatedAt: 2023-04-04T10:42:01.000Z + recipient: + active: true + createdAt: 2023-04-04T10:41:12.000Z + currency: NGN + description: null + domain: live + email: customer@example.com + id: 51991232 + integration: 463433 + metadata: null + name: Mekatilili Menza + recipient_code: RCP_hcbqw7tcdojffkg + type: nuban + updatedAt: 2023-04-04T10:41:12.000Z + is_deleted: false + isDeleted: false + details: + authorization_code: null + account_number: 0123456789 + account_name: MEKATILILI MENZA M + bank_code: 058 + bank_name: Guaranty Trust Bank + session: + provider: nip + id: '00031231231231231231231230101' + fee_charged: 1000 + fees_breakdown: null + Enable OTP: + value: + status: true + message: OTP requirement for transfers has been enabled + Resend OTP: + value: + status: true + message: OTP has been resent + Disable OTP: + value: + status: true + message: OTP has been sent to mobile number ending with 4321 + Finalize Disable OTP: + value: + status: true + message: OTP requirement for transfers has been disabled '401': description: Unauthorized operation content: diff --git a/dist/wallet.yaml b/dist/wallet.yaml index e658f23..8bb4cfd 100644 --- a/dist/wallet.yaml +++ b/dist/wallet.yaml @@ -86,14 +86,9 @@ paths: channels: description: An array of payment channels to control what channels you want to make available to the user to make a payment with type: array - enum: - - card - - bank - - ussd - - qr - - eft - - mobile_money - - bank_transfer + items: + type: string + example: '[''card'', ''bank'',''ussd'', ''qr'', ''eft'', ''mobile_money'', ''bank_transfer'']' split_code: description: The split code of the transaction split type: string @@ -602,6 +597,256 @@ 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' + 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: 3 + skipped: 0 + perPage: 50 + page: 1 + pageCount: 1 + Fetch Transfer: + value: + status: true + message: Transfer retrieved + data: + amount: 2000 + createdAt: 2023-04-04T10:41:58.000Z + currency: NGN + domain: live + failures: null + id: 269771800 + integration: 463433 + reason: Redemption amount + reference: abc-123-reference + source: balance + source_details: null + status: success + titan_code: null + transfer_code: TRF_09i424359abc123 + request: 2484542312 + transferred_at: 2023-04-04T10:42:01.000Z + updatedAt: 2023-04-04T10:42:01.000Z + recipient: + active: true + createdAt: 2023-04-04T10:41:12.000Z + currency: NGN + description: null + domain: live + email: customer@example.com + id: 51991232 + integration: 463433 + metadata: null + name: Mekatilili Menza + recipient_code: RCP_hcbqw7tcdojffkg + type: nuban + updatedAt: 2023-04-04T10:41:12.000Z + is_deleted: false + isDeleted: false + details: + authorization_code: null + account_number: 0123456789 + account_name: MEKATILILI MENZA M + bank_code: 058 + bank_name: Guaranty Trust Bank + session: + provider: nip + id: '00031231231231231231231230101' + fee_charged: 1000 + fees_breakdown: null + Verify Transfer: + value: + status: true + message: Transfer retrieved + data: + amount: 2000 + createdAt: 2023-04-04T10:41:58.000Z + currency: NGN + domain: live + failures: null + id: 269771800 + integration: 463433 + reason: Redemption amount + reference: abc-123-reference + source: balance + source_details: null + status: success + titan_code: null + transfer_code: TRF_09i424359abc123 + request: 2484542312 + transferred_at: 2023-04-04T10:42:01.000Z + updatedAt: 2023-04-04T10:42:01.000Z + recipient: + active: true + createdAt: 2023-04-04T10:41:12.000Z + currency: NGN + description: null + domain: live + email: customer@example.com + id: 51991232 + integration: 463433 + metadata: null + name: Mekatilili Menza + recipient_code: RCP_hcbqw7tcdojffkg + type: nuban + updatedAt: 2023-04-04T10:41:12.000Z + is_deleted: false + isDeleted: false + details: + authorization_code: null + account_number: 0123456789 + account_name: MEKATILILI MENZA M + bank_code: 058 + bank_name: Guaranty Trust Bank + session: + provider: nip + id: '00031231231231231231231230101' + fee_charged: 1000 + fees_breakdown: null + Enable OTP: + value: + status: true + message: OTP requirement for transfers has been enabled + Resend OTP: + value: + status: true + message: OTP has been resent + Disable OTP: + value: + status: true + message: OTP has been sent to mobile number ending with 4321 + Finalize Disable OTP: + value: + status: true + message: OTP requirement for transfers has been disabled '401': $ref: '#/paths/~1customer/post/responses/401' default: diff --git a/main/schemas/transaction/Initialize.yaml b/main/schemas/transaction/Initialize.yaml index e84fba9..8692278 100644 --- a/main/schemas/transaction/Initialize.yaml +++ b/main/schemas/transaction/Initialize.yaml @@ -54,14 +54,9 @@ properties: description: |- An array of payment channels to control what channels you want to make available to the user to make a payment with type: array - enum: - - card - - bank - - ussd - - qr - - eft - - mobile_money - - bank_transfer + items: + type: string + example: "['card', 'bank','ussd', 'qr', 'eft', 'mobile_money', 'bank_transfer']" split_code: description: The split code of the transaction split type: string