@open-tender/store 1.1.165 → 1.1.166
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.
|
@@ -320,7 +320,7 @@ exports.completeChipDNA = (0, toolkit_1.createAsyncThunk)(CheckoutActionType.Com
|
|
|
320
320
|
});
|
|
321
321
|
}); });
|
|
322
322
|
exports.addCreditTender = (0, toolkit_1.createAsyncThunk)(CheckoutActionType.AddCreditTender, function (_1, _a) { return tslib_1.__awaiter(void 0, [_1, _a], void 0, function (_, _b) {
|
|
323
|
-
var _c, config, order, checkout, orderId, api, amount, tender,
|
|
323
|
+
var _c, config, order, checkout, orderId, api, amount, tender, card_token, hasLoyalty, data, callback, err_7;
|
|
324
324
|
var _d;
|
|
325
325
|
var dispatch = _b.dispatch, getState = _b.getState, rejectWithValue = _b.rejectWithValue;
|
|
326
326
|
return tslib_1.__generator(this, function (_e) {
|
|
@@ -336,8 +336,7 @@ exports.addCreditTender = (0, toolkit_1.createAsyncThunk)(CheckoutActionType.Add
|
|
|
336
336
|
tender = { tender_type: 'CREDIT', amount: amount };
|
|
337
337
|
return [4 /*yield*/, api.postCreditTender(orderId, tender)];
|
|
338
338
|
case 1:
|
|
339
|
-
|
|
340
|
-
console.log(response);
|
|
339
|
+
_e.sent();
|
|
341
340
|
card_token = null;
|
|
342
341
|
hasLoyalty = (_d = config.store) === null || _d === void 0 ? void 0 : _d.has_loyalty;
|
|
343
342
|
if (!(hasLoyalty && card_token && !checkout.customer)) return [3 /*break*/, 2];
|
|
@@ -316,7 +316,7 @@ export var completeChipDNA = createAsyncThunk(CheckoutActionType.CompleteChipDNA
|
|
|
316
316
|
});
|
|
317
317
|
}); });
|
|
318
318
|
export var addCreditTender = createAsyncThunk(CheckoutActionType.AddCreditTender, function (_1, _a) { return __awaiter(void 0, [_1, _a], void 0, function (_, _b) {
|
|
319
|
-
var _c, config, order, checkout, orderId, api, amount, tender,
|
|
319
|
+
var _c, config, order, checkout, orderId, api, amount, tender, card_token, hasLoyalty, data, callback, err_7;
|
|
320
320
|
var _d;
|
|
321
321
|
var dispatch = _b.dispatch, getState = _b.getState, rejectWithValue = _b.rejectWithValue;
|
|
322
322
|
return __generator(this, function (_e) {
|
|
@@ -332,8 +332,7 @@ export var addCreditTender = createAsyncThunk(CheckoutActionType.AddCreditTender
|
|
|
332
332
|
tender = { tender_type: 'CREDIT', amount: amount };
|
|
333
333
|
return [4 /*yield*/, api.postCreditTender(orderId, tender)];
|
|
334
334
|
case 1:
|
|
335
|
-
|
|
336
|
-
console.log(response);
|
|
335
|
+
_e.sent();
|
|
337
336
|
card_token = null;
|
|
338
337
|
hasLoyalty = (_d = config.store) === null || _d === void 0 ? void 0 : _d.has_loyalty;
|
|
339
338
|
if (!(hasLoyalty && card_token && !checkout.customer)) return [3 /*break*/, 2];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-tender/store",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.166",
|
|
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",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
63
|
"@emotion/react": "^11.11.1",
|
|
64
|
-
"@open-tender/types": "^0.4.
|
|
64
|
+
"@open-tender/types": "^0.4.73",
|
|
65
65
|
"@open-tender/ui": "^0.4.2",
|
|
66
66
|
"@open-tender/utils": "^0.4.45",
|
|
67
67
|
"@reduxjs/toolkit": "^2.0.1",
|