Skip to content

Commit 24352be

Browse files
Merge pull request #148 from Dekunledev/master
Updates min and max values for account_bank parameter in the subaccountSchema
2 parents 244c9fa + 940cd76 commit 24352be

File tree

3 files changed

+23
-17
lines changed

3 files changed

+23
-17
lines changed

CHANGELOG.md

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,38 @@
11
# Changelog
22

3+
## 1.1.9 | 2024-03-18
4+
Hotfixes to allow a minimum of 3 characters and a maximum of 6 characters for the "account_bank" parameter in the subaccountSchema for the creation of subaccounts.
5+
6+
### Version Changes.
7+
- [FIXED] The min and max value for the 'account_bank" parameter in the subaccountSchema
8+
39
## 1.1.8 | 2024-02-19
4-
This release, we've addressed several Hotfixes and added support for the new NIBBS BVN verification flow. Check out the details below:
10+
Updated BVN verification flow and hotfixes on subaccount, bills and transaction fees:
511

612
### Version Changes.
7-
- [ADDED] NIBBS BVN verification flow.
8-
- [ADDED] unit tests for the new BVN verification flow, transaction fees, and Card Collection (split payments) into subaccounts.
9-
- [ADDED] 'subaccounts' as an optional body parameter for card charge and PWBT (Pay with Bank Transfer).
10-
- [FIXED] "URL Not Found" Error returned from Validate Bill Service method.
11-
- [FIXED] "Invalid currency provided" Error returned from the Transaction fees method.
13+
- [ADDED] New BVN verification flow (via NIBBS).
14+
- [ADDED] Unit tests for more coverage on the BVN verification, fees, and split payments.
15+
- [ADDED] Subaccounts parameter (optional) to card charge and PWBT requests.
16+
- [FIXED] Resolved "URL Not Found" Error returned from Validate Bill Service method.
17+
- [FIXED] Resolved "Invalid currency provided" Error returned from the Transaction fees method.
1218

1319
## 1.1.7 | 2024-01-25
14-
In this release, we've enhanced payment methods and addressed various housekeeping issues to ensure a smoother experience. Check out the details below:
20+
Scheduled updates and bugfixes:
1521

1622
### Version Changes.
1723
- [ADDED] Tanzania mobile money payment method.
1824
- [ADDED] Fawry Pay payment method.
19-
- [ADDED] Additional unit tests for Fawry Pay, Google Pay, Apple Pay, and eNaira.
20-
- [FIXED] Optional parameters in beneficiarySchema.
2125
- [ADDED] Supplementary parameters in the createBulkTransferSchema.
22-
- [ADDED] Introduced "expires" as an optional body parameter for PWBT (Pay with Bank Transfer).
23-
- [ADDED] New tests for payment plans, Charge NG Bank Account (Mono), Charge with Bank Transfer (PWBT), and Change UK & EU Bank Account.
26+
- [ADDED] Expires parameter (optional) to PWBT (Pay with Bank Transfer) requests.
2427
- [ADDED] Schema for USSD charge (ussdChargeSchema).
25-
- [ADDED] "status" as a body parameter in the updatePlanSchema.
28+
- [ADDED] Status parameter to the updatePlanSchema requests.
29+
- [ADDED] Unit tests for more coverage on Fawry Pay, Google Pay, Apple Pay, and eNaira
30+
- [ADDED] Unit tests for more coverage on payment plans, Charge NG Bank Account (Mono), Charge with Bank Transfer (PWBT), and Change UK & EU Bank Account.
31+
- [FIXED] Optional parameters in beneficiarySchema.
2632
- [FIXED] Updated transaction tests to stub response.
2733
- [FIXED] Modified "id" in the fetchSchema to accept only integer values.
28-
- [FIXED] Adjusted "authorization.zipcode" in the cardChargeSchema to accept string values.
29-
- [FIXED] Adapted "billing_zip" in the chargeSchema to accept string values.
34+
- [FIXED] Support string values for zip code in the cardChargeSchema.
35+
- [FIXED] Support string values for "billing_zip" in the chargeSchema.
3036
- [FIXED] Extended the length of "account_bank" values in the transferSchema.
3137
- [FIXED] Updated the UK & USSD bank charge.
3238
- [FIXED] Revised the NG bank charge (Mono).

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "flutterwave-node-v3",
3-
"version": "1.1.7",
3+
"version": "1.1.8",
44
"description": "The official Node.JS library for Flutterwave v3 payment APIs",
55
"main": "index.js",
66
"scripts": {

services/schema/create.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ const refundSchema = joi.object({
413413

414414
// create a subaccount
415415
const subaccountSchema = joi.object({
416-
account_bank: joi.string().length(3).required(),
416+
account_bank: joi.string().min(3).max(6).required(),
417417
account_number: joi.string().trim().max(20).required(),
418418
business_name: joi.string().trim().max(100).required(),
419419
split_value: joi.number().min(0).max(1).required(),
@@ -637,7 +637,7 @@ const tokenSchema = joi.object({
637637

638638
// charge bank accounts: base for USSD charge
639639
const ussdChargeSchema = joi.object({
640-
account_bank: joi.string().length(3).required(),
640+
account_bank: joi.string().min(3).max(6).required(),
641641
amount: joi.number().positive().required(),
642642
email: joi.string().max(100).email().required(),
643643
tx_ref: joi.string().trim().max(100).required(),

0 commit comments

Comments
 (0)