@teamdigipay/dgepay-customer-transaction-package 0.0.5 → 0.0.6

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.
@@ -623,7 +623,6 @@ TransactionController.validateThresholdWise = (config, payload, onData, onError)
623
623
  currency_id: currencyId
624
624
  }, (userThresholdData) => __awaiter(void 0, void 0, void 0, function* () {
625
625
  console.log("userThresholdData ::::::::::", JSON.stringify(userThresholdData));
626
- thresholdType = userThresholdData === null || userThresholdData === void 0 ? void 0 : userThresholdData.threshold_type;
627
626
  userThresholdAmount = userThresholdData === null || userThresholdData === void 0 ? void 0 : userThresholdData.threshold_amount;
628
627
  userThresholdTxn = userThresholdData === null || userThresholdData === void 0 ? void 0 : userThresholdData.threshold_no_txn;
629
628
  (0, ProfileThresholdHelpers_1.getUserProfileHelper)(config, {
@@ -642,6 +641,7 @@ TransactionController.validateThresholdWise = (config, payload, onData, onError)
642
641
  console.log("thresholdData ::::::::::", JSON.stringify(thresholdData));
643
642
  thresholdAmount = thresholdData === null || thresholdData === void 0 ? void 0 : thresholdData.threshold_amount;
644
643
  thresholdTxn = thresholdData === null || thresholdData === void 0 ? void 0 : thresholdData.threshold_no_txn;
644
+ thresholdType = thresholdData === null || thresholdData === void 0 ? void 0 : thresholdData.threshold_type;
645
645
  if ((amount > (thresholdData === null || thresholdData === void 0 ? void 0 : thresholdData.max_amount)) && ((thresholdData === null || thresholdData === void 0 ? void 0 : thresholdData.max_amount) !== null)) {
646
646
  onError("You can not enter amount more than " +
647
647
  (thresholdData === null || thresholdData === void 0 ? void 0 : thresholdData.max_amount));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teamdigipay/dgepay-customer-transaction-package",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "author": "RM (peerbits)",
5
5
  "license": "MIT",
6
6
  "main": "src/index.ts",
@@ -825,7 +825,6 @@ export class TransactionController {
825
825
 
826
826
  console.log("userThresholdData ::::::::::", JSON.stringify(userThresholdData))
827
827
 
828
- thresholdType = userThresholdData?.threshold_type;
829
828
 
830
829
  userThresholdAmount = userThresholdData?.threshold_amount;
831
830
  userThresholdTxn = userThresholdData?.threshold_no_txn;
@@ -852,6 +851,7 @@ export class TransactionController {
852
851
 
853
852
  thresholdAmount = thresholdData?.threshold_amount;
854
853
  thresholdTxn = thresholdData?.threshold_no_txn;
854
+ thresholdType = thresholdData?.threshold_type;
855
855
 
856
856
 
857
857
  if ((amount > thresholdData?.max_amount) && (thresholdData?.max_amount !== null)) {