Skip to content

Commit 940cd76

Browse files
committed
updates min and max values for account_bank parameter for subaccount creation
1 parent a9208aa commit 940cd76

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
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
410
Updated BVN verification flow and hotfixes on subaccount, bills and transaction fees:
511

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)