diff --git a/dist/betting.yaml b/dist/betting.yaml index 9f36955..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 @@ -377,6 +372,7 @@ paths: - NGN - GHS - ZAR + - KES authorization_code: description: An authorization code from a previous transaction type: string @@ -502,8 +498,263 @@ 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 + 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 8007a7e..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 @@ -431,6 +426,7 @@ paths: - NGN - GHS - ZAR + - KES authorization_code: description: An authorization code from a previous transaction type: string @@ -545,8 +541,263 @@ 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 + 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 62e5ccc..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 @@ -2806,6 +2801,7 @@ paths: - NGN - GHS - ZAR + - KES authorization_code: description: An authorization code from a previous transaction type: string @@ -3047,11 +3043,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: @@ -3082,7 +3076,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: @@ -3136,8 +3130,263 @@ 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 + 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/~1page/get/responses/401' default: @@ -3157,7 +3406,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': @@ -3178,7 +3427,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': @@ -3253,7 +3502,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: @@ -3266,7 +3515,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: @@ -3294,7 +3543,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: @@ -3307,7 +3556,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/dist/savings.yaml b/dist/savings.yaml index d52fa5d..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 @@ -326,6 +321,7 @@ paths: - NGN - GHS - ZAR + - KES authorization_code: description: An authorization code from a previous transaction type: string @@ -440,8 +436,263 @@ 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 + 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 43d7eb2..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 @@ -480,6 +475,7 @@ paths: - NGN - GHS - ZAR + - KES authorization_code: description: An authorization code from a previous transaction type: string @@ -594,8 +590,263 @@ 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 + 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/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/bulk.yaml b/main/examples/transfer/bulk.yaml index 43dfeb0..e05d259 100644 --- a/main/examples/transfer/bulk.yaml +++ b/main/examples/transfer/bulk.yaml @@ -2,13 +2,15 @@ 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: success - - recipient: RCP_sa1k1btncp993q1 + status: pending + - reference: abc-123457 + 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/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/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/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/examples/transfer/list.yaml b/main/examples/transfer/list.yaml new file mode 100644 index 0000000..308eea2 --- /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: 3 + skipped: 0 + perPage: 50 + page: 1 + pageCount: 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/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/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/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/list.yaml b/main/responses/transfer/list.yaml new file mode 100644 index 0000000..44a694e --- /dev/null +++ b/main/responses/transfer/list.yaml @@ -0,0 +1,6 @@ +description: Request successful +content: + application/json: + schema: + $ref: '../response.yaml' + diff --git a/main/responses/transfer/transfer.yaml b/main/responses/transfer/transfer.yaml index e72c190..b13a6e7 100644 --- a/main/responses/transfer/transfer.yaml +++ b/main/responses/transfer/transfer.yaml @@ -5,4 +5,22 @@ 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' + 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' 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 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 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",