@open-tender/types 0.3.9 → 0.3.11
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.
- package/dist/cjs/types/api/checkout.d.ts +2 -2
- package/dist/cjs/types/api/customer/loyalty.d.ts +9 -9
- package/dist/cjs/types/api/order.d.ts +1 -1
- package/dist/esm/types/api/checkout.d.ts +2 -2
- package/dist/esm/types/api/customer/loyalty.d.ts +9 -9
- package/dist/esm/types/api/order.d.ts +1 -1
- package/package.json +1 -1
|
@@ -220,7 +220,7 @@ export interface OrderData {
|
|
|
220
220
|
cart: Cart;
|
|
221
221
|
cartId: number | null;
|
|
222
222
|
customer: CheckoutFormCustomer | null;
|
|
223
|
-
deposit:
|
|
223
|
+
deposit: Money | null;
|
|
224
224
|
details: OrderCreateDetails | null;
|
|
225
225
|
deviceType: DeviceType | null;
|
|
226
226
|
discounts: OrderCreateDiscounts | null;
|
|
@@ -243,7 +243,7 @@ export interface OrderCreate {
|
|
|
243
243
|
cart: SimpleCart;
|
|
244
244
|
cart_id?: number;
|
|
245
245
|
customer?: CheckoutFormCustomer | null;
|
|
246
|
-
deposit?:
|
|
246
|
+
deposit?: Money | null;
|
|
247
247
|
details?: OrderCreateDetails | null;
|
|
248
248
|
discounts?: OrderCreateDiscounts;
|
|
249
249
|
discounts_internal?: OrderCreateDiscounts | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OrderType } from '../../global';
|
|
1
|
+
import { Money, OrderType } from '../../global';
|
|
2
2
|
export interface LoyaltyCredit {
|
|
3
3
|
current: string;
|
|
4
4
|
total: string;
|
|
@@ -27,11 +27,6 @@ export interface LoyaltySpend {
|
|
|
27
27
|
total: string;
|
|
28
28
|
type: string;
|
|
29
29
|
}
|
|
30
|
-
export interface LoyaltyStatus {
|
|
31
|
-
days: number;
|
|
32
|
-
progress: string;
|
|
33
|
-
tier: any;
|
|
34
|
-
}
|
|
35
30
|
export interface LoyaltyThreshold {
|
|
36
31
|
name: string;
|
|
37
32
|
points: number;
|
|
@@ -53,12 +48,17 @@ export interface LoyaltyDiscount {
|
|
|
53
48
|
}
|
|
54
49
|
export interface LoyaltyTier {
|
|
55
50
|
description: string;
|
|
51
|
+
discount: LoyaltyDiscount | null;
|
|
56
52
|
hex_code: string;
|
|
53
|
+
is_current_tier: true;
|
|
57
54
|
name: string;
|
|
58
55
|
threshold: string;
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
56
|
+
tier_no: number;
|
|
57
|
+
}
|
|
58
|
+
export interface LoyaltyStatus {
|
|
59
|
+
days: number;
|
|
60
|
+
progress: Money;
|
|
61
|
+
tier: LoyaltyTier;
|
|
62
62
|
}
|
|
63
63
|
export declare type LoyaltyTiers = LoyaltyTier[];
|
|
64
64
|
export interface LoyaltyProgram {
|
|
@@ -227,7 +227,7 @@ export interface Order {
|
|
|
227
227
|
cart: OrderCart;
|
|
228
228
|
created_at: ISOStringOffset;
|
|
229
229
|
customer: OrderCustomer;
|
|
230
|
-
deposit:
|
|
230
|
+
deposit: Money | null;
|
|
231
231
|
delivery: OrderDelivery | null;
|
|
232
232
|
details: OrderDetails | null;
|
|
233
233
|
device_type: DeviceType;
|
|
@@ -220,7 +220,7 @@ export interface OrderData {
|
|
|
220
220
|
cart: Cart;
|
|
221
221
|
cartId: number | null;
|
|
222
222
|
customer: CheckoutFormCustomer | null;
|
|
223
|
-
deposit:
|
|
223
|
+
deposit: Money | null;
|
|
224
224
|
details: OrderCreateDetails | null;
|
|
225
225
|
deviceType: DeviceType | null;
|
|
226
226
|
discounts: OrderCreateDiscounts | null;
|
|
@@ -243,7 +243,7 @@ export interface OrderCreate {
|
|
|
243
243
|
cart: SimpleCart;
|
|
244
244
|
cart_id?: number;
|
|
245
245
|
customer?: CheckoutFormCustomer | null;
|
|
246
|
-
deposit?:
|
|
246
|
+
deposit?: Money | null;
|
|
247
247
|
details?: OrderCreateDetails | null;
|
|
248
248
|
discounts?: OrderCreateDiscounts;
|
|
249
249
|
discounts_internal?: OrderCreateDiscounts | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OrderType } from '../../global';
|
|
1
|
+
import { Money, OrderType } from '../../global';
|
|
2
2
|
export interface LoyaltyCredit {
|
|
3
3
|
current: string;
|
|
4
4
|
total: string;
|
|
@@ -27,11 +27,6 @@ export interface LoyaltySpend {
|
|
|
27
27
|
total: string;
|
|
28
28
|
type: string;
|
|
29
29
|
}
|
|
30
|
-
export interface LoyaltyStatus {
|
|
31
|
-
days: number;
|
|
32
|
-
progress: string;
|
|
33
|
-
tier: any;
|
|
34
|
-
}
|
|
35
30
|
export interface LoyaltyThreshold {
|
|
36
31
|
name: string;
|
|
37
32
|
points: number;
|
|
@@ -53,12 +48,17 @@ export interface LoyaltyDiscount {
|
|
|
53
48
|
}
|
|
54
49
|
export interface LoyaltyTier {
|
|
55
50
|
description: string;
|
|
51
|
+
discount: LoyaltyDiscount | null;
|
|
56
52
|
hex_code: string;
|
|
53
|
+
is_current_tier: true;
|
|
57
54
|
name: string;
|
|
58
55
|
threshold: string;
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
56
|
+
tier_no: number;
|
|
57
|
+
}
|
|
58
|
+
export interface LoyaltyStatus {
|
|
59
|
+
days: number;
|
|
60
|
+
progress: Money;
|
|
61
|
+
tier: LoyaltyTier;
|
|
62
62
|
}
|
|
63
63
|
export declare type LoyaltyTiers = LoyaltyTier[];
|
|
64
64
|
export interface LoyaltyProgram {
|
|
@@ -227,7 +227,7 @@ export interface Order {
|
|
|
227
227
|
cart: OrderCart;
|
|
228
228
|
created_at: ISOStringOffset;
|
|
229
229
|
customer: OrderCustomer;
|
|
230
|
-
deposit:
|
|
230
|
+
deposit: Money | null;
|
|
231
231
|
delivery: OrderDelivery | null;
|
|
232
232
|
details: OrderDetails | null;
|
|
233
233
|
device_type: DeviceType;
|
package/package.json
CHANGED