@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/dist/banking/services/WelcomeBank.service.d.ts.map +1 -1
- package/dist/banking/services/WelcomeBank.service.js +16 -0
- package/dist/banking/services/WelcomeBank.service.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/banking/services/WelcomeBank.service.ts +19 -1
package/package.json
CHANGED
|
@@ -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 {
|