@compassdigital/sdk.typescript 4.228.0 → 4.229.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/lib/messages/events/LocationBrandCreatedEvent.d.ts +223 -0
- package/lib/messages/events/LocationBrandCreatedEvent.d.ts.map +1 -0
- package/lib/messages/events/LocationBrandCreatedEvent.js +4 -0
- package/lib/messages/events/LocationBrandCreatedEvent.js.map +1 -0
- package/lib/messages/events/LocationBrandUpdatedEvent.d.ts +223 -0
- package/lib/messages/events/LocationBrandUpdatedEvent.d.ts.map +1 -0
- package/lib/messages/events/LocationBrandUpdatedEvent.js +4 -0
- package/lib/messages/events/LocationBrandUpdatedEvent.js.map +1 -0
- package/lib/messages/events/LocationGroupCreatedEvent.d.ts +74 -0
- package/lib/messages/events/LocationGroupCreatedEvent.d.ts.map +1 -0
- package/lib/messages/events/LocationGroupCreatedEvent.js +4 -0
- package/lib/messages/events/LocationGroupCreatedEvent.js.map +1 -0
- package/lib/messages/events/OrderUpdatedEvent.d.ts +231 -0
- package/lib/messages/events/OrderUpdatedEvent.d.ts.map +1 -0
- package/lib/messages/events/OrderUpdatedEvent.js +4 -0
- package/lib/messages/events/OrderUpdatedEvent.js.map +1 -0
- package/lib/messages/events/index.d.ts +4 -0
- package/lib/messages/events/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/messages/events/LocationBrandCreatedEvent.ts +255 -0
- package/src/messages/events/LocationBrandUpdatedEvent.ts +255 -0
- package/src/messages/events/LocationGroupCreatedEvent.ts +88 -0
- package/src/messages/events/OrderUpdatedEvent.ts +295 -0
- package/src/messages/events/index.ts +8 -0
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
2
|
+
|
|
3
|
+
export interface LocationBrandUpdatedEvent {
|
|
4
|
+
id: string;
|
|
5
|
+
type: 'LocationBrandUpdatedEvent';
|
|
6
|
+
version: '0.0.1';
|
|
7
|
+
timestamp: string;
|
|
8
|
+
traceContext: {
|
|
9
|
+
traceId?: string;
|
|
10
|
+
};
|
|
11
|
+
payload: {
|
|
12
|
+
brand?: {
|
|
13
|
+
// brand id
|
|
14
|
+
id?: string;
|
|
15
|
+
// ISO timestamp when the brand was soft deleted
|
|
16
|
+
deletedAt?: string;
|
|
17
|
+
// The CDL id representing the sector this brand belongs to
|
|
18
|
+
sector?: string;
|
|
19
|
+
// brand name
|
|
20
|
+
name?: string;
|
|
21
|
+
label?: {
|
|
22
|
+
en?: string;
|
|
23
|
+
fr?: string;
|
|
24
|
+
};
|
|
25
|
+
sequence?: number;
|
|
26
|
+
timezone?: string;
|
|
27
|
+
description?: string;
|
|
28
|
+
// @deprecated
|
|
29
|
+
latitude?: number;
|
|
30
|
+
// @deprecated
|
|
31
|
+
longitude?: number;
|
|
32
|
+
address?: {
|
|
33
|
+
// Suite number of the address, if applicable
|
|
34
|
+
suite?: string;
|
|
35
|
+
// First line of the address, should include street number
|
|
36
|
+
address?: string;
|
|
37
|
+
// City of the address
|
|
38
|
+
city?: string;
|
|
39
|
+
// State of the address, also province in Canada
|
|
40
|
+
state?: string;
|
|
41
|
+
// Country of the address
|
|
42
|
+
country?: string;
|
|
43
|
+
// Zip code or postal code of the address
|
|
44
|
+
zip?: string;
|
|
45
|
+
coordinates?: {
|
|
46
|
+
// latitude of the the address
|
|
47
|
+
latitude?: number;
|
|
48
|
+
// longitude of the the address
|
|
49
|
+
longitude?: number;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
menus?: {
|
|
53
|
+
id?: string;
|
|
54
|
+
label?: {
|
|
55
|
+
en?: string;
|
|
56
|
+
};
|
|
57
|
+
hours?: {
|
|
58
|
+
id?: string;
|
|
59
|
+
date?: {
|
|
60
|
+
deleted?: string;
|
|
61
|
+
start?: string;
|
|
62
|
+
end?: string;
|
|
63
|
+
};
|
|
64
|
+
day?: {
|
|
65
|
+
start?: number;
|
|
66
|
+
end?: number;
|
|
67
|
+
};
|
|
68
|
+
hours?: string;
|
|
69
|
+
}[];
|
|
70
|
+
isPickup?: boolean;
|
|
71
|
+
isDelivery?: boolean;
|
|
72
|
+
isFrictionless?: boolean;
|
|
73
|
+
state?: 'open' | 'closed' | 'preorder';
|
|
74
|
+
isDisabled?: boolean;
|
|
75
|
+
}[];
|
|
76
|
+
date?: {
|
|
77
|
+
deleted?: string;
|
|
78
|
+
created?: string;
|
|
79
|
+
modified?: string;
|
|
80
|
+
};
|
|
81
|
+
hours?: {
|
|
82
|
+
id?: string;
|
|
83
|
+
date?: {
|
|
84
|
+
deleted?: string;
|
|
85
|
+
start?: string;
|
|
86
|
+
end?: string;
|
|
87
|
+
};
|
|
88
|
+
day?: {
|
|
89
|
+
start?: number;
|
|
90
|
+
end?: number;
|
|
91
|
+
};
|
|
92
|
+
hours?: string;
|
|
93
|
+
}[];
|
|
94
|
+
deliveryHours?: {
|
|
95
|
+
id?: string;
|
|
96
|
+
day?: {
|
|
97
|
+
start?: number;
|
|
98
|
+
end?: number;
|
|
99
|
+
};
|
|
100
|
+
hours?: string;
|
|
101
|
+
}[];
|
|
102
|
+
style?: {
|
|
103
|
+
logo?: string;
|
|
104
|
+
mainLogo?: string;
|
|
105
|
+
altLogo?: string;
|
|
106
|
+
};
|
|
107
|
+
// The CDL id representing the PoS for this brand
|
|
108
|
+
pos?: string;
|
|
109
|
+
terminals?: Record<string, any>[];
|
|
110
|
+
deviceMapping?: Record<
|
|
111
|
+
string,
|
|
112
|
+
{
|
|
113
|
+
deviceType?: string;
|
|
114
|
+
siteDeviceId?: string;
|
|
115
|
+
businessUnits?: string[];
|
|
116
|
+
}[]
|
|
117
|
+
>;
|
|
118
|
+
timeslots?: {
|
|
119
|
+
time?: string;
|
|
120
|
+
averagePrepTime?: string;
|
|
121
|
+
durationMinutes?: number;
|
|
122
|
+
customersPerSlot?: number;
|
|
123
|
+
menuItemsPerSlot?: number;
|
|
124
|
+
deliveryTime?: string;
|
|
125
|
+
deliveryCustomersPerSlot?: number;
|
|
126
|
+
deliveryMenuItemsPerSlot?: number;
|
|
127
|
+
deliveryPrepTime?: string;
|
|
128
|
+
deliveryIsUserDefined?: boolean;
|
|
129
|
+
deliveryUserDefined?: {
|
|
130
|
+
startTime?: string;
|
|
131
|
+
endTime?: string;
|
|
132
|
+
deliveryDestinations?: string[];
|
|
133
|
+
}[];
|
|
134
|
+
};
|
|
135
|
+
is?: {
|
|
136
|
+
pickupSupported?: boolean;
|
|
137
|
+
deliverySupported?: boolean;
|
|
138
|
+
frictionlessSupported?: boolean;
|
|
139
|
+
pluEnabled?: boolean;
|
|
140
|
+
promoExemptionsEnabled?: boolean;
|
|
141
|
+
localImagesEnabled?: boolean;
|
|
142
|
+
hidden?: boolean;
|
|
143
|
+
showInKiosk?: boolean;
|
|
144
|
+
showInPos?: boolean;
|
|
145
|
+
itemDescEditEnabled?: boolean;
|
|
146
|
+
scanAndGoSupported?: boolean;
|
|
147
|
+
caloriesEditEnabled?: boolean;
|
|
148
|
+
// admin panel toggle
|
|
149
|
+
specialInstructionsEnabled?: boolean;
|
|
150
|
+
diningHall?: boolean;
|
|
151
|
+
[index: string]: any;
|
|
152
|
+
};
|
|
153
|
+
// The CDL id representing the brand
|
|
154
|
+
brand?: string;
|
|
155
|
+
// The CDL id representing the location of this brand
|
|
156
|
+
location?: string;
|
|
157
|
+
// location group
|
|
158
|
+
group?: string;
|
|
159
|
+
// The CDL id representing the payment provider of this brand
|
|
160
|
+
paymentProvider?: string;
|
|
161
|
+
// @deprecated
|
|
162
|
+
locationDescription?: string;
|
|
163
|
+
// The CDL id representing the company of this brand
|
|
164
|
+
company?: string;
|
|
165
|
+
config?: {
|
|
166
|
+
private?: Record<string, any>;
|
|
167
|
+
public?: Record<string, any>;
|
|
168
|
+
};
|
|
169
|
+
taxRate?: number;
|
|
170
|
+
meta?: {
|
|
171
|
+
scout?: {
|
|
172
|
+
userId?: string;
|
|
173
|
+
name?: {
|
|
174
|
+
first?: string;
|
|
175
|
+
last?: string;
|
|
176
|
+
};
|
|
177
|
+
};
|
|
178
|
+
partner?: {
|
|
179
|
+
userId?: string;
|
|
180
|
+
name?: {
|
|
181
|
+
first?: string;
|
|
182
|
+
last?: string;
|
|
183
|
+
};
|
|
184
|
+
};
|
|
185
|
+
contact?: {
|
|
186
|
+
name?: string;
|
|
187
|
+
role?: string;
|
|
188
|
+
email?: string;
|
|
189
|
+
phone?: string;
|
|
190
|
+
};
|
|
191
|
+
marketId?: string;
|
|
192
|
+
partnerType?: string;
|
|
193
|
+
businessNumber?: number;
|
|
194
|
+
website?: string;
|
|
195
|
+
cuisineTypes?: string[];
|
|
196
|
+
status?: 'await_partner' | 'await_scout' | 'completed';
|
|
197
|
+
active?: boolean;
|
|
198
|
+
maxShowcaseItems?: number;
|
|
199
|
+
jdeCategory?: string;
|
|
200
|
+
softwareIntegrations?: {
|
|
201
|
+
system365?: string;
|
|
202
|
+
jwo?: string;
|
|
203
|
+
time2eat?: {
|
|
204
|
+
enabled?: boolean;
|
|
205
|
+
};
|
|
206
|
+
nextep?: {
|
|
207
|
+
mobileApp?: boolean;
|
|
208
|
+
web?: boolean;
|
|
209
|
+
};
|
|
210
|
+
mashgin?: {
|
|
211
|
+
enabled?: boolean;
|
|
212
|
+
};
|
|
213
|
+
};
|
|
214
|
+
typeOfKds?: {
|
|
215
|
+
cdl?: boolean;
|
|
216
|
+
nextep?: boolean;
|
|
217
|
+
volante?: boolean;
|
|
218
|
+
agilysys?: boolean;
|
|
219
|
+
[index: string]: any;
|
|
220
|
+
};
|
|
221
|
+
[index: string]: any;
|
|
222
|
+
};
|
|
223
|
+
descriptions?: {
|
|
224
|
+
location?: {
|
|
225
|
+
en?: string;
|
|
226
|
+
fr?: string;
|
|
227
|
+
};
|
|
228
|
+
};
|
|
229
|
+
estimatedWaitTime?: {
|
|
230
|
+
delivery?: {
|
|
231
|
+
// maxium wait time to the next time slot in minutes
|
|
232
|
+
max?: number;
|
|
233
|
+
// minimum wait time to the next time slot in minutes
|
|
234
|
+
min?: number;
|
|
235
|
+
// the epoch timestamp of the next available ready time for a station
|
|
236
|
+
readyTime?: number;
|
|
237
|
+
};
|
|
238
|
+
pickup?: {
|
|
239
|
+
// maxium wait time to the next time slot in minutes
|
|
240
|
+
max?: number;
|
|
241
|
+
// minimum wait time to the next time slot in minutes
|
|
242
|
+
min?: number;
|
|
243
|
+
// the epoch timestamp of the next available ready time for a station
|
|
244
|
+
readyTime?: number;
|
|
245
|
+
};
|
|
246
|
+
};
|
|
247
|
+
state?: {
|
|
248
|
+
pickup?: 'open' | 'closed' | 'preorder';
|
|
249
|
+
delivery?: 'open' | 'closed' | 'preorder';
|
|
250
|
+
};
|
|
251
|
+
[index: string]: any;
|
|
252
|
+
};
|
|
253
|
+
};
|
|
254
|
+
source: string;
|
|
255
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
2
|
+
|
|
3
|
+
export interface LocationGroupCreatedEvent {
|
|
4
|
+
id: string;
|
|
5
|
+
type: 'LocationGroupCreatedEvent';
|
|
6
|
+
version: '0.0.1';
|
|
7
|
+
timestamp: string;
|
|
8
|
+
traceContext: {
|
|
9
|
+
traceId?: string;
|
|
10
|
+
};
|
|
11
|
+
payload: {
|
|
12
|
+
locationGroup?: {
|
|
13
|
+
// location group id
|
|
14
|
+
id?: string;
|
|
15
|
+
// ISO timestamp when the location group was soft deleted
|
|
16
|
+
deletedAt?: string;
|
|
17
|
+
// Name of the location group
|
|
18
|
+
name?: string;
|
|
19
|
+
label?: {
|
|
20
|
+
en?: string;
|
|
21
|
+
fr?: string;
|
|
22
|
+
};
|
|
23
|
+
// Distance in meters from the location group
|
|
24
|
+
distance?: number;
|
|
25
|
+
// Array of Location objects
|
|
26
|
+
locations?: {
|
|
27
|
+
id?: string;
|
|
28
|
+
name?: string;
|
|
29
|
+
address?: {
|
|
30
|
+
address?: string;
|
|
31
|
+
city?: string;
|
|
32
|
+
state?: string;
|
|
33
|
+
country?: string;
|
|
34
|
+
zip?: string;
|
|
35
|
+
coordinates?: {
|
|
36
|
+
latitude?: number;
|
|
37
|
+
longitude?: number;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
}[];
|
|
41
|
+
address?: {
|
|
42
|
+
// Suite number of the address, if applicable
|
|
43
|
+
suite?: string;
|
|
44
|
+
// First line of the address, should include street number
|
|
45
|
+
address?: string;
|
|
46
|
+
// City of the address
|
|
47
|
+
city?: string;
|
|
48
|
+
// State of the address, also province in Canada
|
|
49
|
+
state?: string;
|
|
50
|
+
// Country of the address
|
|
51
|
+
country?: string;
|
|
52
|
+
// Zip code or postal code of the address
|
|
53
|
+
zip?: string;
|
|
54
|
+
coordinates?: {
|
|
55
|
+
// latitude of the address
|
|
56
|
+
latitude?: number;
|
|
57
|
+
// longitude of the address
|
|
58
|
+
longitude?: number;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
meta?: {
|
|
62
|
+
tags?: string[];
|
|
63
|
+
category?: string;
|
|
64
|
+
[index: string]: any;
|
|
65
|
+
};
|
|
66
|
+
style?: {
|
|
67
|
+
logo?: string;
|
|
68
|
+
mainLogo?: string;
|
|
69
|
+
altLogo?: string;
|
|
70
|
+
appThemeId?: string;
|
|
71
|
+
};
|
|
72
|
+
timezone?: string;
|
|
73
|
+
deviceMapping?: {
|
|
74
|
+
pos?: {
|
|
75
|
+
deviceType?: string;
|
|
76
|
+
siteDeviceId?: string;
|
|
77
|
+
name?: string;
|
|
78
|
+
}[];
|
|
79
|
+
};
|
|
80
|
+
date?: {
|
|
81
|
+
created?: string;
|
|
82
|
+
modified?: string;
|
|
83
|
+
};
|
|
84
|
+
[index: string]: any;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
source: string;
|
|
88
|
+
}
|
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
2
|
+
|
|
3
|
+
export interface OrderUpdatedEvent {
|
|
4
|
+
id: string;
|
|
5
|
+
type: 'OrderUpdatedEvent';
|
|
6
|
+
version: '0.0.1';
|
|
7
|
+
timestamp: string;
|
|
8
|
+
traceContext: {
|
|
9
|
+
traceId?: string;
|
|
10
|
+
};
|
|
11
|
+
payload: {
|
|
12
|
+
order?: {
|
|
13
|
+
// order id
|
|
14
|
+
id?: string;
|
|
15
|
+
// The CDL id representing the brand location
|
|
16
|
+
locationBrand?: string;
|
|
17
|
+
// The CDL id representing the location
|
|
18
|
+
location?: string;
|
|
19
|
+
// The CDL id representing the shopping cart
|
|
20
|
+
shoppingcart?: string;
|
|
21
|
+
payment?: {
|
|
22
|
+
token?: string;
|
|
23
|
+
creditCard?: {
|
|
24
|
+
cardType?: string;
|
|
25
|
+
last4?: string;
|
|
26
|
+
};
|
|
27
|
+
digitalWalletPay?: string;
|
|
28
|
+
badgePay?: {
|
|
29
|
+
id?: string;
|
|
30
|
+
tender?: string;
|
|
31
|
+
name?: string;
|
|
32
|
+
total?: number;
|
|
33
|
+
};
|
|
34
|
+
stipend?: {
|
|
35
|
+
id?: string;
|
|
36
|
+
tender?: string;
|
|
37
|
+
name?: string;
|
|
38
|
+
total?: number;
|
|
39
|
+
};
|
|
40
|
+
voucher?: {
|
|
41
|
+
id?: string;
|
|
42
|
+
tender?: string;
|
|
43
|
+
name?: string;
|
|
44
|
+
total?: number;
|
|
45
|
+
};
|
|
46
|
+
couponVoucher?: {
|
|
47
|
+
id?: string;
|
|
48
|
+
tender?: string;
|
|
49
|
+
name?: string;
|
|
50
|
+
total?: number;
|
|
51
|
+
};
|
|
52
|
+
pos?: {
|
|
53
|
+
provider?: string;
|
|
54
|
+
transactionId?: string;
|
|
55
|
+
[index: string]: any;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
mealplan?: {
|
|
59
|
+
id?: string;
|
|
60
|
+
tender?: string;
|
|
61
|
+
name?: string;
|
|
62
|
+
};
|
|
63
|
+
mealSwipes?: {
|
|
64
|
+
id?: string;
|
|
65
|
+
tender?: string;
|
|
66
|
+
tenderName?: string;
|
|
67
|
+
swipes?: number;
|
|
68
|
+
total?: number;
|
|
69
|
+
};
|
|
70
|
+
mealExchange?: {
|
|
71
|
+
id?: string;
|
|
72
|
+
tender?: string;
|
|
73
|
+
name?: string;
|
|
74
|
+
};
|
|
75
|
+
// The CDL id representing the customer
|
|
76
|
+
customer?: string;
|
|
77
|
+
is?: {
|
|
78
|
+
accepted?: boolean;
|
|
79
|
+
inProgress?: boolean;
|
|
80
|
+
ready?: boolean;
|
|
81
|
+
outForDelivery?: boolean;
|
|
82
|
+
delivered?: boolean;
|
|
83
|
+
checkinOrder?: boolean;
|
|
84
|
+
diningHallOrder?: boolean;
|
|
85
|
+
noShow?: boolean;
|
|
86
|
+
collected?: boolean;
|
|
87
|
+
cancelled?: boolean;
|
|
88
|
+
};
|
|
89
|
+
date?: {
|
|
90
|
+
// Date order was accepted into our system and shown on kitchen apps
|
|
91
|
+
accepted?: string;
|
|
92
|
+
created?: string;
|
|
93
|
+
modified?: string;
|
|
94
|
+
// Date kitchen should start preparation ideally(not mandatory)
|
|
95
|
+
shouldStart?: string;
|
|
96
|
+
// Date kitchen should be half way preparation ideally(not mandatory)
|
|
97
|
+
completionWarning?: string;
|
|
98
|
+
// Date kitchen finished preparation
|
|
99
|
+
ready?: string;
|
|
100
|
+
// Date kitchen started preparation
|
|
101
|
+
started?: string;
|
|
102
|
+
// Date till which show orders as active
|
|
103
|
+
showAsActiveUntil?: string;
|
|
104
|
+
// For delivery orders - date customer did not pick the order
|
|
105
|
+
noShow?: string;
|
|
106
|
+
// For delivery orders - date customer completed the order collected and sent back robot
|
|
107
|
+
collected?: string;
|
|
108
|
+
// For delivery orders - date order was delivered to destination(not picked by user)
|
|
109
|
+
delivered?: string;
|
|
110
|
+
// For delivery orders - date order was picked up from station for delivery(out_for_delivery)
|
|
111
|
+
pickup?: string;
|
|
112
|
+
// Date order was cancelled
|
|
113
|
+
cancelled?: string;
|
|
114
|
+
// Date order was polled for kds
|
|
115
|
+
polled?: string;
|
|
116
|
+
};
|
|
117
|
+
// @deprecated
|
|
118
|
+
pickup?: string;
|
|
119
|
+
// @deprecated
|
|
120
|
+
pickupName?: string;
|
|
121
|
+
// @deprecated
|
|
122
|
+
pickupId?: string;
|
|
123
|
+
requestedDate?: string;
|
|
124
|
+
details?: {
|
|
125
|
+
name?: string;
|
|
126
|
+
displayId?: string;
|
|
127
|
+
contactNumber?: string;
|
|
128
|
+
countryCode?: string;
|
|
129
|
+
orderType?: string;
|
|
130
|
+
duration?: string;
|
|
131
|
+
destination?: string;
|
|
132
|
+
// Pickup or delivery instructions
|
|
133
|
+
instructions?: string;
|
|
134
|
+
// Email address for receipt
|
|
135
|
+
receiptEmail?: string;
|
|
136
|
+
};
|
|
137
|
+
meta?: {
|
|
138
|
+
// Check-in UUID for frictionless orders
|
|
139
|
+
checkinUuid?: string;
|
|
140
|
+
refunds?: {
|
|
141
|
+
originalShoppingcart?: string;
|
|
142
|
+
refundDate?: string;
|
|
143
|
+
[index: string]: any;
|
|
144
|
+
}[];
|
|
145
|
+
// which ui the order was placed on
|
|
146
|
+
source?: 'web' | 'mobile' | 'pos';
|
|
147
|
+
// details pertaining to the amount charged on the order
|
|
148
|
+
transaction?: {
|
|
149
|
+
// used in mx orders - cart totals in dollars and meal exchange value (meals)
|
|
150
|
+
mxTotals?: {
|
|
151
|
+
amount?: number;
|
|
152
|
+
meals?: number;
|
|
153
|
+
};
|
|
154
|
+
// the amount remaining on the transaction after refund - remaining amount available for refund
|
|
155
|
+
transactionRemainderAmount?: number;
|
|
156
|
+
[index: string]: any;
|
|
157
|
+
};
|
|
158
|
+
// Shoppingcart details
|
|
159
|
+
shoppingcart?: {
|
|
160
|
+
total?: {
|
|
161
|
+
amount?: number;
|
|
162
|
+
meals?: number;
|
|
163
|
+
};
|
|
164
|
+
// Total of first cart on order. Carts can change after refunds, so this is original value
|
|
165
|
+
originalTotal?: {
|
|
166
|
+
amount?: number;
|
|
167
|
+
meals?: number;
|
|
168
|
+
};
|
|
169
|
+
[index: string]: any;
|
|
170
|
+
};
|
|
171
|
+
// Indicate whether the order is active or inactive
|
|
172
|
+
active?: boolean;
|
|
173
|
+
// Override for meta.active for testing purposes
|
|
174
|
+
activeOverride?: boolean;
|
|
175
|
+
// Delivery details
|
|
176
|
+
delivery?: {
|
|
177
|
+
provider?: string;
|
|
178
|
+
trackerUrl?: string;
|
|
179
|
+
loadingCode?: string;
|
|
180
|
+
[index: string]: any;
|
|
181
|
+
};
|
|
182
|
+
// Discount details
|
|
183
|
+
discount?: {
|
|
184
|
+
app?: string;
|
|
185
|
+
code?: string;
|
|
186
|
+
[index: string]: any;
|
|
187
|
+
};
|
|
188
|
+
discounts?: {
|
|
189
|
+
app?: string;
|
|
190
|
+
code?: string;
|
|
191
|
+
[index: string]: any;
|
|
192
|
+
}[];
|
|
193
|
+
// Discounts for refunds
|
|
194
|
+
discountsRefund?: {
|
|
195
|
+
// Client app that applied the discount
|
|
196
|
+
app?: string;
|
|
197
|
+
// Date the discount was refunded
|
|
198
|
+
date?: string;
|
|
199
|
+
// Date the order was created
|
|
200
|
+
orderCreatedAt?: string;
|
|
201
|
+
// Vocuherify Order ID
|
|
202
|
+
orderId?: string;
|
|
203
|
+
// Order items
|
|
204
|
+
orderItems?: {
|
|
205
|
+
// Compassdigital item id
|
|
206
|
+
sourceId?: string;
|
|
207
|
+
// Quantity of the item
|
|
208
|
+
quantity?: number;
|
|
209
|
+
// Price of the item in cents
|
|
210
|
+
price?: number;
|
|
211
|
+
}[];
|
|
212
|
+
// Order total
|
|
213
|
+
orderTotal?: number;
|
|
214
|
+
// Reason for refund
|
|
215
|
+
reason?: string;
|
|
216
|
+
// Voucherify parent redemption id for the stacked discounts
|
|
217
|
+
redemptionId?: string;
|
|
218
|
+
// true if refund succeeded
|
|
219
|
+
result?: boolean;
|
|
220
|
+
[index: string]: any;
|
|
221
|
+
};
|
|
222
|
+
// The type of kds that the brand uses
|
|
223
|
+
typeOfKds?: string;
|
|
224
|
+
// Indicate whether the order is eligible for cancellation
|
|
225
|
+
cancelEligible?: boolean;
|
|
226
|
+
pickupInstruction?: {
|
|
227
|
+
en?: string;
|
|
228
|
+
fr?: string;
|
|
229
|
+
};
|
|
230
|
+
marketPlaceLabel?: {
|
|
231
|
+
en?: string;
|
|
232
|
+
fr?: string;
|
|
233
|
+
};
|
|
234
|
+
marketPlaceDescription?: {
|
|
235
|
+
en?: string;
|
|
236
|
+
fr?: string;
|
|
237
|
+
};
|
|
238
|
+
apexCode?: string;
|
|
239
|
+
apexQr?: string;
|
|
240
|
+
apexCodes?: {
|
|
241
|
+
customerCode?: {
|
|
242
|
+
qrExpiryDate?: string;
|
|
243
|
+
};
|
|
244
|
+
[index: string]: any;
|
|
245
|
+
};
|
|
246
|
+
[index: string]: any;
|
|
247
|
+
};
|
|
248
|
+
issue?: {
|
|
249
|
+
id?: string;
|
|
250
|
+
type?: string;
|
|
251
|
+
items?: any;
|
|
252
|
+
[index: string]: any;
|
|
253
|
+
};
|
|
254
|
+
pastIssues?: {
|
|
255
|
+
id?: string;
|
|
256
|
+
type?: string;
|
|
257
|
+
items?: any;
|
|
258
|
+
[index: string]: any;
|
|
259
|
+
}[];
|
|
260
|
+
// Delivery user
|
|
261
|
+
runner?: string;
|
|
262
|
+
reorderEligibility?:
|
|
263
|
+
| 'eligible'
|
|
264
|
+
| 'order_type_ineligible'
|
|
265
|
+
| 'location_ineligible'
|
|
266
|
+
| 'active_order'
|
|
267
|
+
| 'old_order'
|
|
268
|
+
| 'marketplace_order'
|
|
269
|
+
| 'duplicate_order'
|
|
270
|
+
| 'brand_unavailable'
|
|
271
|
+
| 'menu_unavailable'
|
|
272
|
+
| 'items_unavailable'
|
|
273
|
+
| 'refunded_order'
|
|
274
|
+
| 'modifiers_unavailable'
|
|
275
|
+
| 'modified_items'
|
|
276
|
+
| 'cancelled_order';
|
|
277
|
+
refunds?: {
|
|
278
|
+
id?: string;
|
|
279
|
+
amount?: number;
|
|
280
|
+
reason?: string;
|
|
281
|
+
date?: string;
|
|
282
|
+
[index: string]: any;
|
|
283
|
+
}[];
|
|
284
|
+
latestRefunds?: {
|
|
285
|
+
id?: string;
|
|
286
|
+
amount?: number;
|
|
287
|
+
reason?: string;
|
|
288
|
+
date?: string;
|
|
289
|
+
[index: string]: any;
|
|
290
|
+
}[];
|
|
291
|
+
[index: string]: any;
|
|
292
|
+
};
|
|
293
|
+
};
|
|
294
|
+
source: string;
|
|
295
|
+
}
|
|
@@ -8,12 +8,20 @@ export { DiscountUpdatedEvent } from './DiscountUpdatedEvent';
|
|
|
8
8
|
|
|
9
9
|
export { FakeEvent } from './FakeEvent';
|
|
10
10
|
|
|
11
|
+
export { LocationBrandCreatedEvent } from './LocationBrandCreatedEvent';
|
|
12
|
+
|
|
13
|
+
export { LocationBrandUpdatedEvent } from './LocationBrandUpdatedEvent';
|
|
14
|
+
|
|
11
15
|
export { LocationCreatedEvent } from './LocationCreatedEvent';
|
|
12
16
|
|
|
17
|
+
export { LocationGroupCreatedEvent } from './LocationGroupCreatedEvent';
|
|
18
|
+
|
|
13
19
|
export { LocationUpdatedEvent } from './LocationUpdatedEvent';
|
|
14
20
|
|
|
15
21
|
export { OrderCompletedEvent } from './OrderCompletedEvent';
|
|
16
22
|
|
|
17
23
|
export { OrderCreatedEvent } from './OrderCreatedEvent';
|
|
18
24
|
|
|
25
|
+
export { OrderUpdatedEvent } from './OrderUpdatedEvent';
|
|
26
|
+
|
|
19
27
|
export { PublishedMenuUpdatedEvent } from './PublishedMenuUpdatedEvent';
|