@traxionpay/cbsmiddleware 0.0.12 → 0.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@traxionpay/cbsmiddleware",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "description": "This is a cbs middlware for RB Banks",
5
5
  "author": "Archer",
6
6
  "private": false,
@@ -286,6 +286,15 @@ export class WelcomeBankService implements BankService {
286
286
  AxiosErrorHelper.handleAxiosError(error);
287
287
  }
288
288
 
289
+ if (responseData.data.status === "99994") {
290
+ throw new HttpException({
291
+ statusCode: HttpStatus.BAD_REQUEST,
292
+ code: 400020309,
293
+ message: 'The customer\'s account is a corporate account / joint account',
294
+ data: { ...accountDto }
295
+ }, HttpStatus.BAD_REQUEST);
296
+ }
297
+
289
298
  if (responseData.data.status === "99997") {
290
299
  throw new HttpException({
291
300
  statusCode: HttpStatus.BAD_REQUEST,
@@ -431,6 +440,16 @@ export class WelcomeBankService implements BankService {
431
440
  catch (error) {
432
441
  AxiosErrorHelper.handleAxiosError(error);
433
442
  }
443
+
444
+ if (responseData.data.status === "99994") {
445
+ throw new HttpException({
446
+ statusCode: HttpStatus.BAD_REQUEST,
447
+ code: 400020309,
448
+ message: 'The customer\'s account is a corporate account / joint account',
449
+ data: { ...validateOtp }
450
+ }, HttpStatus.BAD_REQUEST);
451
+ }
452
+
434
453
  if (responseData.data.status === "99997") {
435
454
  throw new HttpException({
436
455
  statusCode: HttpStatus.BAD_REQUEST,
@@ -444,7 +463,7 @@ export class WelcomeBankService implements BankService {
444
463
  throw new HttpException({
445
464
  statusCode: HttpStatus.BAD_REQUEST,
446
465
  code: 400020405,
447
- message: 'Account type is not supported.',
466
+ message: '00001 Account type is not supported.',
448
467
  data: { ...validateOtp }
449
468
  }, HttpStatus.BAD_REQUEST);
450
469
  }