@traxionpay/cbsmiddleware 0.0.9 → 0.0.10

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.9",
3
+ "version": "0.0.10",
4
4
  "description": "This is a cbs middlware for RB Banks",
5
5
  "author": "Archer",
6
6
  "private": false,
@@ -823,7 +823,15 @@ export class WelcomeBankService implements BankService {
823
823
  }, HttpStatus.UNPROCESSABLE_ENTITY);
824
824
  }
825
825
 
826
-
826
+ if (responseData.data.status !== "00000") {
827
+ throw new HttpException({
828
+ statusCode: HttpStatus.UNPROCESSABLE_ENTITY,
829
+ code: 400020618,
830
+ message: 'Unknown Error',
831
+ data: { ...accountTransferDto }
832
+ }, HttpStatus.UNPROCESSABLE_ENTITY);
833
+ }
834
+
827
835
  this.logger.log(`Response Data WelcomeBank Cashin , ${responseData}`);
828
836
 
829
837
  return {
@@ -1046,6 +1054,16 @@ export class WelcomeBankService implements BankService {
1046
1054
  }, HttpStatus.UNPROCESSABLE_ENTITY);
1047
1055
  }
1048
1056
 
1057
+ if (responseData.data.status !== "00000") {
1058
+ throw new HttpException({
1059
+ statusCode: HttpStatus.UNPROCESSABLE_ENTITY,
1060
+ code: 400020617,
1061
+ message: 'Unknown Error',
1062
+ data: { ...accountTransferDto }
1063
+ }, HttpStatus.UNPROCESSABLE_ENTITY);
1064
+ }
1065
+
1066
+
1049
1067
  this.logger.log(`Response Data WelcomeBank Deposit , ${responseData}`);
1050
1068
 
1051
1069
  return {