@open-tender/cloud 0.0.78 → 0.0.80
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.
|
@@ -253,8 +253,8 @@ const checkoutSlice = (0, toolkit_1.createSlice)({
|
|
|
253
253
|
};
|
|
254
254
|
state.loading = 'idle';
|
|
255
255
|
})
|
|
256
|
-
.addCase(exports.submitOrder.fulfilled, (
|
|
257
|
-
|
|
256
|
+
.addCase(exports.submitOrder.fulfilled, (_, action) => {
|
|
257
|
+
return Object.assign(Object.assign({}, initialState), { completedOrder: action.payload });
|
|
258
258
|
})
|
|
259
259
|
.addCase(exports.submitOrder.pending, state => {
|
|
260
260
|
state.loading = 'pending';
|
|
@@ -22,7 +22,7 @@ export declare const selectCustomerLoyaltyProgram: (state: AppState) => {
|
|
|
22
22
|
loading: RequestStatus;
|
|
23
23
|
error: RequestError;
|
|
24
24
|
};
|
|
25
|
-
export declare const selectCustomerPointsProgram: (orderType: OrderType) => (state: AppState) => import("@open-tender/types").CustomerLoyalty | null;
|
|
26
|
-
export declare const selectCustomerPoints: (orderType: OrderType) => (state: AppState) => import("@open-tender/types").LoyaltyPoints | null;
|
|
25
|
+
export declare const selectCustomerPointsProgram: (orderType: OrderType | null) => (state: AppState) => import("@open-tender/types").CustomerLoyalty | null;
|
|
26
|
+
export declare const selectCustomerPoints: (orderType: OrderType | null) => (state: AppState) => import("@open-tender/types").LoyaltyPoints | null;
|
|
27
27
|
export declare const selectPointsProgram: (state: AppState) => import("@open-tender/types").CustomerLoyalty | null;
|
|
28
28
|
export declare const customerLoyaltyReducer: import("redux").Reducer<CustomerLoyaltyState, import("redux").AnyAction>;
|
|
@@ -249,8 +249,8 @@ const checkoutSlice = createSlice({
|
|
|
249
249
|
};
|
|
250
250
|
state.loading = 'idle';
|
|
251
251
|
})
|
|
252
|
-
.addCase(submitOrder.fulfilled, (
|
|
253
|
-
|
|
252
|
+
.addCase(submitOrder.fulfilled, (_, action) => {
|
|
253
|
+
return Object.assign(Object.assign({}, initialState), { completedOrder: action.payload });
|
|
254
254
|
})
|
|
255
255
|
.addCase(submitOrder.pending, state => {
|
|
256
256
|
state.loading = 'pending';
|
|
@@ -22,7 +22,7 @@ export declare const selectCustomerLoyaltyProgram: (state: AppState) => {
|
|
|
22
22
|
loading: RequestStatus;
|
|
23
23
|
error: RequestError;
|
|
24
24
|
};
|
|
25
|
-
export declare const selectCustomerPointsProgram: (orderType: OrderType) => (state: AppState) => import("@open-tender/types").CustomerLoyalty | null;
|
|
26
|
-
export declare const selectCustomerPoints: (orderType: OrderType) => (state: AppState) => import("@open-tender/types").LoyaltyPoints | null;
|
|
25
|
+
export declare const selectCustomerPointsProgram: (orderType: OrderType | null) => (state: AppState) => import("@open-tender/types").CustomerLoyalty | null;
|
|
26
|
+
export declare const selectCustomerPoints: (orderType: OrderType | null) => (state: AppState) => import("@open-tender/types").LoyaltyPoints | null;
|
|
27
27
|
export declare const selectPointsProgram: (state: AppState) => import("@open-tender/types").CustomerLoyalty | null;
|
|
28
28
|
export declare const customerLoyaltyReducer: import("redux").Reducer<CustomerLoyaltyState, import("redux").AnyAction>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-tender/cloud",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.80",
|
|
4
4
|
"description": "A library of hooks, reducers, utility functions, and types for use with Open Tender applications that utilize our cloud-based Order API.",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|