@managesome/eposmatic-toolkit 0.2.307 → 0.2.308

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.
@@ -1286,6 +1286,8 @@ function getOffersWithStats({ offers, customer, vouchers, giftCards, customerOff
1286
1286
  if (stats.claimable) {
1287
1287
  totalClaimableOffers = totalClaimableOffers.filter((id) => id !== offer._id);
1288
1288
  }
1289
+ stats.applicable_quantity = 0;
1290
+ unlockedOffersApplicableTimes[offer._id] = 0;
1289
1291
  stats.claimable = false;
1290
1292
  stats.message = '⛔️ You have reached your personal limit for this offer ⛔️';
1291
1293
  }
@@ -1543,6 +1545,8 @@ function getOffersWithStats({ offers, customer, vouchers, giftCards, customerOff
1543
1545
  if (stats.claimable) {
1544
1546
  totalClaimableOffers = totalClaimableOffers.filter((id) => id !== offer._id);
1545
1547
  }
1548
+ stats.applicable_quantity = 0;
1549
+ unlockedOffersApplicableTimes[offer._id] = 0;
1546
1550
  stats.claimable = false;
1547
1551
  stats.message = '⛔️ You have reached your personal limit for this offer ⛔️';
1548
1552
  }
@@ -1807,6 +1811,8 @@ function getOffersWithStats({ offers, customer, vouchers, giftCards, customerOff
1807
1811
  if (stats.claimable) {
1808
1812
  totalClaimableOffers = totalClaimableOffers.filter((id) => id !== offer._id);
1809
1813
  }
1814
+ stats.applicable_quantity = 0;
1815
+ unlockedOffersApplicableTimes[offer._id] = 0;
1810
1816
  stats.claimable = false;
1811
1817
  stats.message = '⛔️ You have reached your personal limit for this offer ⛔️';
1812
1818
  }
@@ -2082,6 +2088,8 @@ function getOffersWithStats({ offers, customer, vouchers, giftCards, customerOff
2082
2088
  if (stats.claimable) {
2083
2089
  totalClaimableOffers = totalClaimableOffers.filter((id) => id !== offer._id);
2084
2090
  }
2091
+ stats.applicable_quantity = 0;
2092
+ unlockedOffersApplicableTimes[offer._id] = 0;
2085
2093
  stats.claimable = false;
2086
2094
  stats.message = '⛔️ You have reached your personal limit for this offer ⛔️';
2087
2095
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@managesome/eposmatic-toolkit",
3
- "version": "0.2.307",
3
+ "version": "0.2.308",
4
4
  "description": "A Toolkit Library for Eposmatic",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",