@open-tender/store 1.1.249 → 1.1.250

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.
@@ -15,7 +15,8 @@ var LoyaltyDiscount = function (_a) {
15
15
  var id = discount.discount_id;
16
16
  var isApplied = !!(discountIds === null || discountIds === void 0 ? void 0 : discountIds.includes(id));
17
17
  var apply = function () {
18
- dispatch((0, slices_1.addDiscount)({ id: id }));
18
+ var discount_id = discount.discount_id, rest = tslib_1.__rest(discount, ["discount_id"]);
19
+ dispatch((0, slices_1.addDiscount)(tslib_1.__assign({ id: discount_id }, rest)));
19
20
  if (callback)
20
21
  callback();
21
22
  };
@@ -1,3 +1,4 @@
1
+ import { __assign, __rest } from "tslib";
1
2
  import React, { useCallback } from 'react';
2
3
  import { useAppDispatch, useAppSelector } from '../app/hooks';
3
4
  import { addDiscount, removeDiscount, selectKioskApi, selectKioskConfig, selectPosCheckout } from '../slices';
@@ -12,7 +13,8 @@ var LoyaltyDiscount = function (_a) {
12
13
  var id = discount.discount_id;
13
14
  var isApplied = !!(discountIds === null || discountIds === void 0 ? void 0 : discountIds.includes(id));
14
15
  var apply = function () {
15
- dispatch(addDiscount({ id: id }));
16
+ var discount_id = discount.discount_id, rest = __rest(discount, ["discount_id"]);
17
+ dispatch(addDiscount(__assign({ id: discount_id }, rest)));
16
18
  if (callback)
17
19
  callback();
18
20
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/store",
3
- "version": "1.1.249",
3
+ "version": "1.1.250",
4
4
  "description": "A library of hooks, reducers, utility functions, and types for use with Open Tender applications that utilize our in-store POS API",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",