@orderingstack/ordering-types 1.18.4 → 1.20.0
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/api.d.ts +3 -3
- package/dist/cjs/api.js +3 -2
- package/dist/cjs/index.d.ts +17 -11
- package/dist/cjs/index.js +5 -0
- package/dist/cjs/kioskErrors.d.ts +1 -1
- package/dist/esm/api.d.ts +3 -3
- package/dist/esm/api.js +3 -2
- package/dist/esm/index.d.ts +17 -11
- package/dist/esm/index.js +5 -0
- package/dist/esm/kioskErrors.d.ts +1 -1
- package/package.json +1 -1
- package/dist/cjs/src/api.d.ts +0 -97
- package/dist/cjs/src/api.js +0 -12
- package/dist/cjs/src/index.d.ts +0 -599
- package/dist/cjs/src/index.js +0 -158
- package/dist/cjs/src/kiosk.d.ts +0 -239
- package/dist/cjs/src/kiosk.js +0 -15
- package/dist/cjs/src/kioskErrors.d.ts +0 -146
- package/dist/cjs/src/kioskErrors.js +0 -144
- package/dist/esm/src/api.d.ts +0 -97
- package/dist/esm/src/api.js +0 -9
- package/dist/esm/src/index.d.ts +0 -599
- package/dist/esm/src/index.js +0 -141
- package/dist/esm/src/kiosk.d.ts +0 -239
- package/dist/esm/src/kiosk.js +0 -12
- package/dist/esm/src/kioskErrors.d.ts +0 -146
- package/dist/esm/src/kioskErrors.js +0 -141
package/dist/cjs/api.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EOrderPaymentType, EOrderStatus, EOrderType, IProductState, IStringKeyRecord } from "./index";
|
|
2
|
-
export declare const aggregators: readonly ["GLOVO", "JUSTEAT", "
|
|
3
|
-
export type TAggregator = typeof aggregators[number];
|
|
4
|
-
type TOrderDir = "DESC" | "ASC";
|
|
2
|
+
export declare const aggregators: readonly ["BOLT", "GLOVO", "JUSTEAT", "TAZZ", "UBER", "UPMENU", "WOLT", "_ANY_"];
|
|
3
|
+
export declare type TAggregator = typeof aggregators[number];
|
|
4
|
+
declare type TOrderDir = "DESC" | "ASC";
|
|
5
5
|
interface ApiParams {
|
|
6
6
|
query?: any;
|
|
7
7
|
headers?: IStringKeyRecord<string>;
|
package/dist/cjs/api.js
CHANGED
package/dist/cjs/index.d.ts
CHANGED
|
@@ -39,7 +39,7 @@ export interface ILanguage {
|
|
|
39
39
|
key: string;
|
|
40
40
|
icon: any;
|
|
41
41
|
}
|
|
42
|
-
export type TStringBoolean = "true" | "false";
|
|
42
|
+
export declare type TStringBoolean = "true" | "false";
|
|
43
43
|
export declare enum EProductKind {
|
|
44
44
|
GROUP = "3e/group",
|
|
45
45
|
PRODUCT = "3e/product",
|
|
@@ -54,14 +54,14 @@ export declare enum EProductKindBucket {
|
|
|
54
54
|
GROUP = "group",
|
|
55
55
|
PRODUCT = "product"
|
|
56
56
|
}
|
|
57
|
-
export type TLiterals = {
|
|
57
|
+
export declare type TLiterals = {
|
|
58
58
|
name: string;
|
|
59
59
|
upsizeName?: string;
|
|
60
60
|
fiscal?: string;
|
|
61
61
|
"target-product-id"?: string;
|
|
62
62
|
description?: string;
|
|
63
63
|
} & IStringKeyRecord<string | undefined>;
|
|
64
|
-
export type TMedia = {
|
|
64
|
+
export declare type TMedia = {
|
|
65
65
|
url: string;
|
|
66
66
|
name: string;
|
|
67
67
|
};
|
|
@@ -92,6 +92,7 @@ export interface IProductExtra extends IStringKeyRecord<string | undefined> {
|
|
|
92
92
|
*/
|
|
93
93
|
export interface IProductFrontAttributes {
|
|
94
94
|
isHiddenByEnableKey?: boolean;
|
|
95
|
+
lineExtra?: IStringKeyRecord<string>;
|
|
95
96
|
}
|
|
96
97
|
export interface IProduct {
|
|
97
98
|
availability?: IProductAvailability;
|
|
@@ -192,7 +193,10 @@ export declare enum EOrderType {
|
|
|
192
193
|
BOLT_TAKE_AWAY = "BOLT_TAKE_AWAY",
|
|
193
194
|
BOLT_DINE_IN = "BOLT_DINE_IN",
|
|
194
195
|
TAZZ_DELIVERY = "TAZZ_DELIVERY",
|
|
195
|
-
TAZZ_TAKE_AWAY = "TAZZ_TAKE_AWAY"
|
|
196
|
+
TAZZ_TAKE_AWAY = "TAZZ_TAKE_AWAY",
|
|
197
|
+
UPMENU_DELIVERY = "UPMENU_DELIVERY",
|
|
198
|
+
UPMENU_TAKE_AWAY = "UPMENU_TAKE_AWAY",
|
|
199
|
+
UPMENU_DINE_IN = "UPMENU_DINE_IN"
|
|
196
200
|
}
|
|
197
201
|
export declare enum EOrderSource {
|
|
198
202
|
KIOSK = "KIOSK",
|
|
@@ -204,7 +208,8 @@ export declare enum EOrderSource {
|
|
|
204
208
|
UBER = "UBER",
|
|
205
209
|
BOLT = "BOLT",
|
|
206
210
|
TAZZ = "TAZZ",
|
|
207
|
-
POS = "POS"
|
|
211
|
+
POS = "POS",
|
|
212
|
+
UPMENU = "UPMENU"
|
|
208
213
|
}
|
|
209
214
|
export declare enum EChannelName {
|
|
210
215
|
DINE_IN = "DINE_IN",
|
|
@@ -215,7 +220,8 @@ export declare enum EChannelName {
|
|
|
215
220
|
UBER = "UBER",
|
|
216
221
|
BOLT = "BOLT",
|
|
217
222
|
WOLT = "WOLT",
|
|
218
|
-
TAZZ = "TAZZ"
|
|
223
|
+
TAZZ = "TAZZ",
|
|
224
|
+
UPMENU = "UPMENU"
|
|
219
225
|
}
|
|
220
226
|
export interface IOrderDeliveryAddress {
|
|
221
227
|
street: string;
|
|
@@ -449,7 +455,7 @@ export interface ISubTotalDiscount {
|
|
|
449
455
|
discount: number;
|
|
450
456
|
vat: string;
|
|
451
457
|
}
|
|
452
|
-
export type IOrderGroupProduct = Pick<IOrderProduct, "kind" | "id" | "literals" | "items" | "extra">;
|
|
458
|
+
export declare type IOrderGroupProduct = Pick<IOrderProduct, "kind" | "id" | "literals" | "items" | "extra">;
|
|
453
459
|
export interface IOrderProduct {
|
|
454
460
|
id: string;
|
|
455
461
|
kind: EOrderProductKind;
|
|
@@ -486,8 +492,8 @@ export declare enum EOrderProductKind {
|
|
|
486
492
|
export interface IProductLiterals {
|
|
487
493
|
[propName: string]: any;
|
|
488
494
|
}
|
|
489
|
-
type TWeekDay = "MON" | "TUE" | "WED" | "THU" | "FRI" | "SAT" | "SUN";
|
|
490
|
-
export type TSaleChannelWeek = Partial<Record<TWeekDay, {
|
|
495
|
+
declare type TWeekDay = "MON" | "TUE" | "WED" | "THU" | "FRI" | "SAT" | "SUN";
|
|
496
|
+
export declare type TSaleChannelWeek = Partial<Record<TWeekDay, {
|
|
491
497
|
from: string;
|
|
492
498
|
to: string;
|
|
493
499
|
}[]>>;
|
|
@@ -561,14 +567,14 @@ export interface IFiscalizeData {
|
|
|
561
567
|
};
|
|
562
568
|
}
|
|
563
569
|
declare const sizes: readonly [48, 57, 70, 100, 160, 250, 300, 500, 600, 900, 1000, 1920, 1080, 900];
|
|
564
|
-
export type TMediaSize = (typeof sizes)[number];
|
|
570
|
+
export declare type TMediaSize = (typeof sizes)[number];
|
|
565
571
|
export declare enum ENotificationType {
|
|
566
572
|
ORDER_EVENT_ERROR = "OrderEventError",
|
|
567
573
|
ORDER_APPLIED_EVENTS = "OrderAppliedEvents",
|
|
568
574
|
ORDER_EVENT_FISCAL = "OrderEventFiscal",
|
|
569
575
|
ORDER_UPSELL = "OrderUpsell"
|
|
570
576
|
}
|
|
571
|
-
export type TUpsellKind = "ANY" | "POPUP" | "SIDE" | "BASKET";
|
|
577
|
+
export declare type TUpsellKind = "ANY" | "POPUP" | "SIDE" | "BASKET";
|
|
572
578
|
export interface IUpsellNotification {
|
|
573
579
|
details: {
|
|
574
580
|
literals?: IStringKeyRecord<string>;
|
package/dist/cjs/index.js
CHANGED
|
@@ -75,6 +75,9 @@ var EOrderType;
|
|
|
75
75
|
EOrderType["BOLT_DINE_IN"] = "BOLT_DINE_IN";
|
|
76
76
|
EOrderType["TAZZ_DELIVERY"] = "TAZZ_DELIVERY";
|
|
77
77
|
EOrderType["TAZZ_TAKE_AWAY"] = "TAZZ_TAKE_AWAY";
|
|
78
|
+
EOrderType["UPMENU_DELIVERY"] = "UPMENU_DELIVERY";
|
|
79
|
+
EOrderType["UPMENU_TAKE_AWAY"] = "UPMENU_TAKE_AWAY";
|
|
80
|
+
EOrderType["UPMENU_DINE_IN"] = "UPMENU_DINE_IN";
|
|
78
81
|
})(EOrderType = exports.EOrderType || (exports.EOrderType = {}));
|
|
79
82
|
var EOrderSource;
|
|
80
83
|
(function (EOrderSource) {
|
|
@@ -88,6 +91,7 @@ var EOrderSource;
|
|
|
88
91
|
EOrderSource["BOLT"] = "BOLT";
|
|
89
92
|
EOrderSource["TAZZ"] = "TAZZ";
|
|
90
93
|
EOrderSource["POS"] = "POS";
|
|
94
|
+
EOrderSource["UPMENU"] = "UPMENU";
|
|
91
95
|
})(EOrderSource = exports.EOrderSource || (exports.EOrderSource = {}));
|
|
92
96
|
var EChannelName;
|
|
93
97
|
(function (EChannelName) {
|
|
@@ -100,6 +104,7 @@ var EChannelName;
|
|
|
100
104
|
EChannelName["BOLT"] = "BOLT";
|
|
101
105
|
EChannelName["WOLT"] = "WOLT";
|
|
102
106
|
EChannelName["TAZZ"] = "TAZZ";
|
|
107
|
+
EChannelName["UPMENU"] = "UPMENU";
|
|
103
108
|
})(EChannelName = exports.EChannelName || (exports.EChannelName = {}));
|
|
104
109
|
var EOrderStatus;
|
|
105
110
|
(function (EOrderStatus) {
|
|
@@ -138,7 +138,7 @@ export declare const KioskErrors: {
|
|
|
138
138
|
x500: string;
|
|
139
139
|
x501: string;
|
|
140
140
|
};
|
|
141
|
-
export type TErrorCode = keyof typeof KioskErrors;
|
|
141
|
+
export declare type TErrorCode = keyof typeof KioskErrors;
|
|
142
142
|
export interface IKioskError {
|
|
143
143
|
errorType: string;
|
|
144
144
|
errorCode: TErrorCode;
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EOrderPaymentType, EOrderStatus, EOrderType, IProductState, IStringKeyRecord } from "./index";
|
|
2
|
-
export declare const aggregators: readonly ["GLOVO", "JUSTEAT", "
|
|
3
|
-
export type TAggregator = typeof aggregators[number];
|
|
4
|
-
type TOrderDir = "DESC" | "ASC";
|
|
2
|
+
export declare const aggregators: readonly ["BOLT", "GLOVO", "JUSTEAT", "TAZZ", "UBER", "UPMENU", "WOLT", "_ANY_"];
|
|
3
|
+
export declare type TAggregator = typeof aggregators[number];
|
|
4
|
+
declare type TOrderDir = "DESC" | "ASC";
|
|
5
5
|
interface ApiParams {
|
|
6
6
|
query?: any;
|
|
7
7
|
headers?: IStringKeyRecord<string>;
|
package/dist/esm/api.js
CHANGED
package/dist/esm/index.d.ts
CHANGED
|
@@ -39,7 +39,7 @@ export interface ILanguage {
|
|
|
39
39
|
key: string;
|
|
40
40
|
icon: any;
|
|
41
41
|
}
|
|
42
|
-
export type TStringBoolean = "true" | "false";
|
|
42
|
+
export declare type TStringBoolean = "true" | "false";
|
|
43
43
|
export declare enum EProductKind {
|
|
44
44
|
GROUP = "3e/group",
|
|
45
45
|
PRODUCT = "3e/product",
|
|
@@ -54,14 +54,14 @@ export declare enum EProductKindBucket {
|
|
|
54
54
|
GROUP = "group",
|
|
55
55
|
PRODUCT = "product"
|
|
56
56
|
}
|
|
57
|
-
export type TLiterals = {
|
|
57
|
+
export declare type TLiterals = {
|
|
58
58
|
name: string;
|
|
59
59
|
upsizeName?: string;
|
|
60
60
|
fiscal?: string;
|
|
61
61
|
"target-product-id"?: string;
|
|
62
62
|
description?: string;
|
|
63
63
|
} & IStringKeyRecord<string | undefined>;
|
|
64
|
-
export type TMedia = {
|
|
64
|
+
export declare type TMedia = {
|
|
65
65
|
url: string;
|
|
66
66
|
name: string;
|
|
67
67
|
};
|
|
@@ -92,6 +92,7 @@ export interface IProductExtra extends IStringKeyRecord<string | undefined> {
|
|
|
92
92
|
*/
|
|
93
93
|
export interface IProductFrontAttributes {
|
|
94
94
|
isHiddenByEnableKey?: boolean;
|
|
95
|
+
lineExtra?: IStringKeyRecord<string>;
|
|
95
96
|
}
|
|
96
97
|
export interface IProduct {
|
|
97
98
|
availability?: IProductAvailability;
|
|
@@ -192,7 +193,10 @@ export declare enum EOrderType {
|
|
|
192
193
|
BOLT_TAKE_AWAY = "BOLT_TAKE_AWAY",
|
|
193
194
|
BOLT_DINE_IN = "BOLT_DINE_IN",
|
|
194
195
|
TAZZ_DELIVERY = "TAZZ_DELIVERY",
|
|
195
|
-
TAZZ_TAKE_AWAY = "TAZZ_TAKE_AWAY"
|
|
196
|
+
TAZZ_TAKE_AWAY = "TAZZ_TAKE_AWAY",
|
|
197
|
+
UPMENU_DELIVERY = "UPMENU_DELIVERY",
|
|
198
|
+
UPMENU_TAKE_AWAY = "UPMENU_TAKE_AWAY",
|
|
199
|
+
UPMENU_DINE_IN = "UPMENU_DINE_IN"
|
|
196
200
|
}
|
|
197
201
|
export declare enum EOrderSource {
|
|
198
202
|
KIOSK = "KIOSK",
|
|
@@ -204,7 +208,8 @@ export declare enum EOrderSource {
|
|
|
204
208
|
UBER = "UBER",
|
|
205
209
|
BOLT = "BOLT",
|
|
206
210
|
TAZZ = "TAZZ",
|
|
207
|
-
POS = "POS"
|
|
211
|
+
POS = "POS",
|
|
212
|
+
UPMENU = "UPMENU"
|
|
208
213
|
}
|
|
209
214
|
export declare enum EChannelName {
|
|
210
215
|
DINE_IN = "DINE_IN",
|
|
@@ -215,7 +220,8 @@ export declare enum EChannelName {
|
|
|
215
220
|
UBER = "UBER",
|
|
216
221
|
BOLT = "BOLT",
|
|
217
222
|
WOLT = "WOLT",
|
|
218
|
-
TAZZ = "TAZZ"
|
|
223
|
+
TAZZ = "TAZZ",
|
|
224
|
+
UPMENU = "UPMENU"
|
|
219
225
|
}
|
|
220
226
|
export interface IOrderDeliveryAddress {
|
|
221
227
|
street: string;
|
|
@@ -449,7 +455,7 @@ export interface ISubTotalDiscount {
|
|
|
449
455
|
discount: number;
|
|
450
456
|
vat: string;
|
|
451
457
|
}
|
|
452
|
-
export type IOrderGroupProduct = Pick<IOrderProduct, "kind" | "id" | "literals" | "items" | "extra">;
|
|
458
|
+
export declare type IOrderGroupProduct = Pick<IOrderProduct, "kind" | "id" | "literals" | "items" | "extra">;
|
|
453
459
|
export interface IOrderProduct {
|
|
454
460
|
id: string;
|
|
455
461
|
kind: EOrderProductKind;
|
|
@@ -486,8 +492,8 @@ export declare enum EOrderProductKind {
|
|
|
486
492
|
export interface IProductLiterals {
|
|
487
493
|
[propName: string]: any;
|
|
488
494
|
}
|
|
489
|
-
type TWeekDay = "MON" | "TUE" | "WED" | "THU" | "FRI" | "SAT" | "SUN";
|
|
490
|
-
export type TSaleChannelWeek = Partial<Record<TWeekDay, {
|
|
495
|
+
declare type TWeekDay = "MON" | "TUE" | "WED" | "THU" | "FRI" | "SAT" | "SUN";
|
|
496
|
+
export declare type TSaleChannelWeek = Partial<Record<TWeekDay, {
|
|
491
497
|
from: string;
|
|
492
498
|
to: string;
|
|
493
499
|
}[]>>;
|
|
@@ -561,14 +567,14 @@ export interface IFiscalizeData {
|
|
|
561
567
|
};
|
|
562
568
|
}
|
|
563
569
|
declare const sizes: readonly [48, 57, 70, 100, 160, 250, 300, 500, 600, 900, 1000, 1920, 1080, 900];
|
|
564
|
-
export type TMediaSize = (typeof sizes)[number];
|
|
570
|
+
export declare type TMediaSize = (typeof sizes)[number];
|
|
565
571
|
export declare enum ENotificationType {
|
|
566
572
|
ORDER_EVENT_ERROR = "OrderEventError",
|
|
567
573
|
ORDER_APPLIED_EVENTS = "OrderAppliedEvents",
|
|
568
574
|
ORDER_EVENT_FISCAL = "OrderEventFiscal",
|
|
569
575
|
ORDER_UPSELL = "OrderUpsell"
|
|
570
576
|
}
|
|
571
|
-
export type TUpsellKind = "ANY" | "POPUP" | "SIDE" | "BASKET";
|
|
577
|
+
export declare type TUpsellKind = "ANY" | "POPUP" | "SIDE" | "BASKET";
|
|
572
578
|
export interface IUpsellNotification {
|
|
573
579
|
details: {
|
|
574
580
|
literals?: IStringKeyRecord<string>;
|
package/dist/esm/index.js
CHANGED
|
@@ -58,6 +58,9 @@ export var EOrderType;
|
|
|
58
58
|
EOrderType["BOLT_DINE_IN"] = "BOLT_DINE_IN";
|
|
59
59
|
EOrderType["TAZZ_DELIVERY"] = "TAZZ_DELIVERY";
|
|
60
60
|
EOrderType["TAZZ_TAKE_AWAY"] = "TAZZ_TAKE_AWAY";
|
|
61
|
+
EOrderType["UPMENU_DELIVERY"] = "UPMENU_DELIVERY";
|
|
62
|
+
EOrderType["UPMENU_TAKE_AWAY"] = "UPMENU_TAKE_AWAY";
|
|
63
|
+
EOrderType["UPMENU_DINE_IN"] = "UPMENU_DINE_IN";
|
|
61
64
|
})(EOrderType || (EOrderType = {}));
|
|
62
65
|
export var EOrderSource;
|
|
63
66
|
(function (EOrderSource) {
|
|
@@ -71,6 +74,7 @@ export var EOrderSource;
|
|
|
71
74
|
EOrderSource["BOLT"] = "BOLT";
|
|
72
75
|
EOrderSource["TAZZ"] = "TAZZ";
|
|
73
76
|
EOrderSource["POS"] = "POS";
|
|
77
|
+
EOrderSource["UPMENU"] = "UPMENU";
|
|
74
78
|
})(EOrderSource || (EOrderSource = {}));
|
|
75
79
|
export var EChannelName;
|
|
76
80
|
(function (EChannelName) {
|
|
@@ -83,6 +87,7 @@ export var EChannelName;
|
|
|
83
87
|
EChannelName["BOLT"] = "BOLT";
|
|
84
88
|
EChannelName["WOLT"] = "WOLT";
|
|
85
89
|
EChannelName["TAZZ"] = "TAZZ";
|
|
90
|
+
EChannelName["UPMENU"] = "UPMENU";
|
|
86
91
|
})(EChannelName || (EChannelName = {}));
|
|
87
92
|
export var EOrderStatus;
|
|
88
93
|
(function (EOrderStatus) {
|
|
@@ -138,7 +138,7 @@ export declare const KioskErrors: {
|
|
|
138
138
|
x500: string;
|
|
139
139
|
x501: string;
|
|
140
140
|
};
|
|
141
|
-
export type TErrorCode = keyof typeof KioskErrors;
|
|
141
|
+
export declare type TErrorCode = keyof typeof KioskErrors;
|
|
142
142
|
export interface IKioskError {
|
|
143
143
|
errorType: string;
|
|
144
144
|
errorCode: TErrorCode;
|
package/package.json
CHANGED
package/dist/cjs/src/api.d.ts
DELETED
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import { EOrderPaymentType, EOrderStatus, EOrderType, IProductState, IStringKeyRecord } from "./index";
|
|
2
|
-
export declare const aggregators: readonly ["GLOVO", "JUSTEAT", "UBER", "WOLT", "BOLT", "TAZZ", "_ANY_"];
|
|
3
|
-
export type TAggregator = typeof aggregators[number];
|
|
4
|
-
type TOrderDir = "DESC" | "ASC";
|
|
5
|
-
interface ApiParams {
|
|
6
|
-
query?: any;
|
|
7
|
-
headers?: IStringKeyRecord<string>;
|
|
8
|
-
data?: any;
|
|
9
|
-
}
|
|
10
|
-
export interface IOrderApiGetListParams extends ApiParams {
|
|
11
|
-
query: {
|
|
12
|
-
_sort?: string;
|
|
13
|
-
_order?: TOrderDir;
|
|
14
|
-
_start?: number;
|
|
15
|
-
_end?: number;
|
|
16
|
-
id?: string;
|
|
17
|
-
extId?: string;
|
|
18
|
-
status?: EOrderStatus;
|
|
19
|
-
type?: EOrderType;
|
|
20
|
-
completed?: boolean;
|
|
21
|
-
closed?: boolean;
|
|
22
|
-
phone?: string;
|
|
23
|
-
mail?: string;
|
|
24
|
-
createdFrom?: string;
|
|
25
|
-
createdTo?: string;
|
|
26
|
-
completedFrom?: string;
|
|
27
|
-
completedTo?: string;
|
|
28
|
-
venue?: string;
|
|
29
|
-
aggregator?: TAggregator;
|
|
30
|
-
payment?: EOrderPaymentType;
|
|
31
|
-
};
|
|
32
|
-
headers: {
|
|
33
|
-
"x-tenant"?: string;
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
interface IDiscount {
|
|
37
|
-
/**
|
|
38
|
-
* Discount layer. It is used to distinguish discounts from loyalty, manual discounts, etc.
|
|
39
|
-
* @pattern [a-zA-Z0-9_.-]+
|
|
40
|
-
*/
|
|
41
|
-
layer: string;
|
|
42
|
-
/**
|
|
43
|
-
* Name that describes this discount
|
|
44
|
-
* @minLength 0
|
|
45
|
-
* @maxLength 128
|
|
46
|
-
*/
|
|
47
|
-
name?: string;
|
|
48
|
-
/** Discount price (subtracted from line total) */
|
|
49
|
-
discountPrice: number;
|
|
50
|
-
/** Extra params */
|
|
51
|
-
extra?: IStringKeyRecord<string>;
|
|
52
|
-
type: string;
|
|
53
|
-
}
|
|
54
|
-
interface ILineDiscount {
|
|
55
|
-
/** Applied discounts */
|
|
56
|
-
discount: IDiscount;
|
|
57
|
-
/** @format date-time */
|
|
58
|
-
expires?: string;
|
|
59
|
-
/**
|
|
60
|
-
* @minLength 0
|
|
61
|
-
* @maxLength 128
|
|
62
|
-
* @pattern [a-zA-Z0-9_. -]+
|
|
63
|
-
*/
|
|
64
|
-
sign: string;
|
|
65
|
-
}
|
|
66
|
-
export interface IAppendedLine {
|
|
67
|
-
/**
|
|
68
|
-
* @format int32
|
|
69
|
-
* @min 1
|
|
70
|
-
* @max 100000
|
|
71
|
-
*/
|
|
72
|
-
quantity: number;
|
|
73
|
-
/**
|
|
74
|
-
* One should not provide price - it will be automatically calculated. If user is privileged (internal system user or has role 'SU' or 'ALTERPRICE') OrderingStack will use provided price and override one from menu. Please be careful when providing value '0' as privileged user here! If you do not want to override price - do not provide 'price' attribute at all (null).
|
|
75
|
-
* @min 0
|
|
76
|
-
* @exclusiveMin false
|
|
77
|
-
*/
|
|
78
|
-
price?: number;
|
|
79
|
-
/** @pattern [a-zA-Z0-9_.-]+ */
|
|
80
|
-
productId: string;
|
|
81
|
-
/** Configuration of product */
|
|
82
|
-
productConfig?: IProductState;
|
|
83
|
-
/** @default "NEW" */
|
|
84
|
-
status: "NEW" | "CONFIRMED";
|
|
85
|
-
/**
|
|
86
|
-
* @minLength 0
|
|
87
|
-
* @maxLength 255
|
|
88
|
-
*/
|
|
89
|
-
comment?: string;
|
|
90
|
-
/**
|
|
91
|
-
* @maxItems 10
|
|
92
|
-
* @minItems 0
|
|
93
|
-
*/
|
|
94
|
-
discounts?: ILineDiscount[];
|
|
95
|
-
extra?: IStringKeyRecord<string>;
|
|
96
|
-
}
|
|
97
|
-
export {};
|