@open-tender/store 0.3.77 → 0.3.79
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.
|
@@ -97,6 +97,9 @@ export interface OrderItem {
|
|
|
97
97
|
name: string;
|
|
98
98
|
notes?: string;
|
|
99
99
|
points?: number | null;
|
|
100
|
+
points_applied?: number;
|
|
101
|
+
points_available?: number;
|
|
102
|
+
points_per?: number;
|
|
100
103
|
points_total?: number;
|
|
101
104
|
price: Money;
|
|
102
105
|
price_quantity?: number;
|
|
@@ -113,6 +116,14 @@ export interface OrderItem {
|
|
|
113
116
|
temperature: Temperature;
|
|
114
117
|
}
|
|
115
118
|
export declare type OrderCart = Array<OrderItem>;
|
|
119
|
+
export interface OrderItemPoints {
|
|
120
|
+
index: number;
|
|
121
|
+
name: string;
|
|
122
|
+
points: number;
|
|
123
|
+
discount: Money;
|
|
124
|
+
isApplied: boolean;
|
|
125
|
+
}
|
|
126
|
+
export declare type OrderCartPoints = Array<OrderItemPoints>;
|
|
116
127
|
export interface ModifiersMetadataOption {
|
|
117
128
|
id: number;
|
|
118
129
|
line_no: number;
|
|
@@ -19,7 +19,7 @@ export declare type TenderTypeMap = {
|
|
|
19
19
|
[Property in TenderType]: string;
|
|
20
20
|
};
|
|
21
21
|
export declare type CardType = 'VISA' | 'MC' | 'DISC' | 'AMEX' | 'OTHER';
|
|
22
|
-
export declare type DiscountType = 'DOLLAR' | 'PERCENTAGE';
|
|
22
|
+
export declare type DiscountType = 'DOLLAR' | 'PERCENTAGE' | 'LOYALTY';
|
|
23
23
|
export declare type SurchargeType = 'DOLLAR' | 'PERCENTAGE' | 'DISTANCE' | 'TRAVEL_TIME';
|
|
24
24
|
export declare type TaxType = 'DOLLAR' | 'PERCENTAGE';
|
|
25
25
|
export declare type TaxTypeInt = 1 | 2;
|
|
@@ -97,6 +97,9 @@ export interface OrderItem {
|
|
|
97
97
|
name: string;
|
|
98
98
|
notes?: string;
|
|
99
99
|
points?: number | null;
|
|
100
|
+
points_applied?: number;
|
|
101
|
+
points_available?: number;
|
|
102
|
+
points_per?: number;
|
|
100
103
|
points_total?: number;
|
|
101
104
|
price: Money;
|
|
102
105
|
price_quantity?: number;
|
|
@@ -113,6 +116,14 @@ export interface OrderItem {
|
|
|
113
116
|
temperature: Temperature;
|
|
114
117
|
}
|
|
115
118
|
export declare type OrderCart = Array<OrderItem>;
|
|
119
|
+
export interface OrderItemPoints {
|
|
120
|
+
index: number;
|
|
121
|
+
name: string;
|
|
122
|
+
points: number;
|
|
123
|
+
discount: Money;
|
|
124
|
+
isApplied: boolean;
|
|
125
|
+
}
|
|
126
|
+
export declare type OrderCartPoints = Array<OrderItemPoints>;
|
|
116
127
|
export interface ModifiersMetadataOption {
|
|
117
128
|
id: number;
|
|
118
129
|
line_no: number;
|
|
@@ -19,7 +19,7 @@ export declare type TenderTypeMap = {
|
|
|
19
19
|
[Property in TenderType]: string;
|
|
20
20
|
};
|
|
21
21
|
export declare type CardType = 'VISA' | 'MC' | 'DISC' | 'AMEX' | 'OTHER';
|
|
22
|
-
export declare type DiscountType = 'DOLLAR' | 'PERCENTAGE';
|
|
22
|
+
export declare type DiscountType = 'DOLLAR' | 'PERCENTAGE' | 'LOYALTY';
|
|
23
23
|
export declare type SurchargeType = 'DOLLAR' | 'PERCENTAGE' | 'DISTANCE' | 'TRAVEL_TIME';
|
|
24
24
|
export declare type TaxType = 'DOLLAR' | 'PERCENTAGE';
|
|
25
25
|
export declare type TaxTypeInt = 1 | 2;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-tender/store",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.79",
|
|
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",
|