@compassdigital/sdk.typescript 4.253.0 → 4.255.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/OrderCreatedEvent.d.ts +260 -218
- package/lib/messages/events/OrderCreatedEvent.d.ts.map +1 -1
- package/lib/messages/events/OrderUpdatedEvent.d.ts +260 -218
- package/lib/messages/events/OrderUpdatedEvent.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/messages/events/OrderCreatedEvent.ts +341 -281
- package/src/messages/events/OrderUpdatedEvent.ts +341 -281
|
@@ -1,5 +1,345 @@
|
|
|
1
1
|
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
2
2
|
|
|
3
|
+
export interface CreditCard {
|
|
4
|
+
card_type?: string;
|
|
5
|
+
last4?: string;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export interface CashlessPayment {
|
|
9
|
+
id?: string;
|
|
10
|
+
tender?: string;
|
|
11
|
+
name?: string;
|
|
12
|
+
total?: number;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface POSPayment {
|
|
16
|
+
type?: string;
|
|
17
|
+
transaction?: Record<string, any>;
|
|
18
|
+
[index: string]: any;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface MealPlan {
|
|
22
|
+
id?: string;
|
|
23
|
+
tender?: string;
|
|
24
|
+
name?: string;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface OrderStatus {
|
|
28
|
+
accepted?: boolean;
|
|
29
|
+
in_progress?: boolean;
|
|
30
|
+
ready?: boolean;
|
|
31
|
+
out_for_delivery?: boolean;
|
|
32
|
+
delivered?: boolean;
|
|
33
|
+
checkin_order?: boolean;
|
|
34
|
+
dining_hall_order?: boolean;
|
|
35
|
+
no_show?: boolean;
|
|
36
|
+
collected?: boolean;
|
|
37
|
+
cancelled?: boolean;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export interface OrderDates {
|
|
41
|
+
// Date order was accepted into our system and shown on kitchen apps
|
|
42
|
+
accepted?: string;
|
|
43
|
+
created?: string;
|
|
44
|
+
modified?: string;
|
|
45
|
+
// Date kitchen should start preparation ideally(not mandatory)
|
|
46
|
+
should_start?: string;
|
|
47
|
+
// Date kitchen should be half way preparation ideally(not mandatory)
|
|
48
|
+
completion_warning?: string;
|
|
49
|
+
// Date kitchen finished preparation
|
|
50
|
+
ready?: string;
|
|
51
|
+
// Date kitchen started preparation
|
|
52
|
+
started?: string;
|
|
53
|
+
// Date till which show orders as active
|
|
54
|
+
show_as_active_until?: string;
|
|
55
|
+
// For delivery orders - date customer did not pick the order
|
|
56
|
+
no_show?: string;
|
|
57
|
+
// For delivery orders - date customer completed the order collected and sent back robot
|
|
58
|
+
collected?: string;
|
|
59
|
+
// For delivery orders - date order was delivered to destination(not picked by user)
|
|
60
|
+
delivered?: string;
|
|
61
|
+
// For delivery orders - date order was picked up from station for delivery(out_for_delivery)
|
|
62
|
+
pickup?: string;
|
|
63
|
+
// Date order was cancelled
|
|
64
|
+
cancelled?: string;
|
|
65
|
+
// Date order was polled for kds
|
|
66
|
+
polled?: string;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export interface OrderDetails {
|
|
70
|
+
name?: string;
|
|
71
|
+
display_id?: string;
|
|
72
|
+
contact_number?: string;
|
|
73
|
+
country_code?: string;
|
|
74
|
+
order_type?: string;
|
|
75
|
+
duration?: string;
|
|
76
|
+
destination?: string;
|
|
77
|
+
// Pickup or delivery instructions
|
|
78
|
+
instructions?: string;
|
|
79
|
+
// Email address for receipt
|
|
80
|
+
receiptEmail?: string;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export interface RefundTransaction {
|
|
84
|
+
original_shoppingcart?: string;
|
|
85
|
+
refund_date?: string;
|
|
86
|
+
issued_by?: string;
|
|
87
|
+
amount?: number;
|
|
88
|
+
refund_amount?: number;
|
|
89
|
+
[index: string]: any;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export interface TransactionDetails {
|
|
93
|
+
// used in mx orders - cart totals in dollars and meal exchange value (meals)
|
|
94
|
+
mx_totals?: {
|
|
95
|
+
amount?: number;
|
|
96
|
+
meals?: number;
|
|
97
|
+
};
|
|
98
|
+
// the amount remaining on the transaction after refund - remaining amount available for refund
|
|
99
|
+
transaction_remainder_amount?: number;
|
|
100
|
+
[index: string]: any;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export interface ShoppingCartDetails {
|
|
104
|
+
total?: {
|
|
105
|
+
amount?: number;
|
|
106
|
+
meals?: number;
|
|
107
|
+
};
|
|
108
|
+
// Total of first cart on order. Carts can change after refunds, so this is original value
|
|
109
|
+
original_total?: {
|
|
110
|
+
amount?: number;
|
|
111
|
+
meals?: number;
|
|
112
|
+
};
|
|
113
|
+
[index: string]: any;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export interface DeliveryDetails {
|
|
117
|
+
provider?: string;
|
|
118
|
+
tracker_url?: string;
|
|
119
|
+
loading_code?: string;
|
|
120
|
+
[index: string]: any;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export interface DiscountDetails {
|
|
124
|
+
app?: string;
|
|
125
|
+
code?: string;
|
|
126
|
+
[index: string]: any;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export interface OrderDiscount {
|
|
130
|
+
id?: string;
|
|
131
|
+
date?: string;
|
|
132
|
+
result?: boolean;
|
|
133
|
+
discount?: {
|
|
134
|
+
type?: string;
|
|
135
|
+
amount_off?: number;
|
|
136
|
+
percent_off?: number;
|
|
137
|
+
};
|
|
138
|
+
type?: string;
|
|
139
|
+
original_redemption?: string;
|
|
140
|
+
app?: string;
|
|
141
|
+
name?: string;
|
|
142
|
+
resource_id?: string;
|
|
143
|
+
[index: string]: any;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export interface DiscountsRefund {
|
|
147
|
+
// Client app that applied the discount
|
|
148
|
+
app?: string;
|
|
149
|
+
// Date the discount was refunded
|
|
150
|
+
date?: string;
|
|
151
|
+
// Date the order was created
|
|
152
|
+
order_created_at?: string;
|
|
153
|
+
// Vocuherify Order ID
|
|
154
|
+
order_id?: string;
|
|
155
|
+
// Order items
|
|
156
|
+
order_items?: {
|
|
157
|
+
// Compassdigital item id
|
|
158
|
+
source_id?: string;
|
|
159
|
+
// Quantity of the item
|
|
160
|
+
quantity?: number;
|
|
161
|
+
// Price of the item in cents
|
|
162
|
+
price?: number;
|
|
163
|
+
}[];
|
|
164
|
+
// Order total
|
|
165
|
+
order_total?: number;
|
|
166
|
+
// Reason for refund
|
|
167
|
+
reason?: string;
|
|
168
|
+
// Voucherify parent redemption id for the stacked discounts
|
|
169
|
+
redemption_id?: string;
|
|
170
|
+
// true if refund succeeded
|
|
171
|
+
result?: boolean;
|
|
172
|
+
[index: string]: any;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
export interface MultiLanguageLabel {
|
|
176
|
+
en?: string;
|
|
177
|
+
fr?: string;
|
|
178
|
+
es?: string;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export interface ApexCodeProperties {
|
|
182
|
+
codeType: string;
|
|
183
|
+
codeValue: string;
|
|
184
|
+
qrImage: string;
|
|
185
|
+
qrExpiryDate?: string;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
export interface ApexCodes {
|
|
189
|
+
operator_code: ApexCodeProperties;
|
|
190
|
+
customer_code: ApexCodeProperties;
|
|
191
|
+
reclaim_code: ApexCodeProperties;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
export interface OrderedItem {
|
|
195
|
+
id: string;
|
|
196
|
+
_index: string;
|
|
197
|
+
quantity?: number;
|
|
198
|
+
unit?: number;
|
|
199
|
+
price?: {
|
|
200
|
+
amount?: number;
|
|
201
|
+
};
|
|
202
|
+
_subtotal?: {
|
|
203
|
+
amount?: number;
|
|
204
|
+
};
|
|
205
|
+
_promo?: {
|
|
206
|
+
amount?: number;
|
|
207
|
+
};
|
|
208
|
+
meta?: Record<string, any>;
|
|
209
|
+
options?: {
|
|
210
|
+
label?: {
|
|
211
|
+
en?: string;
|
|
212
|
+
};
|
|
213
|
+
items?: {
|
|
214
|
+
id?: string;
|
|
215
|
+
_index?: string;
|
|
216
|
+
meta?: Record<string, any>;
|
|
217
|
+
}[];
|
|
218
|
+
}[];
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
export type ItemsWithIssue = OrderedItem & {
|
|
222
|
+
reason?: string;
|
|
223
|
+
};
|
|
224
|
+
|
|
225
|
+
export interface RefundItem {
|
|
226
|
+
id?: string;
|
|
227
|
+
_index?: string;
|
|
228
|
+
quantity?: number;
|
|
229
|
+
price?: {
|
|
230
|
+
amount?: number;
|
|
231
|
+
};
|
|
232
|
+
reason?: string;
|
|
233
|
+
[index: string]: any;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
export interface Issue {
|
|
237
|
+
id?: string;
|
|
238
|
+
type?: string;
|
|
239
|
+
item?: Record<string, any>;
|
|
240
|
+
items?: ItemsWithIssue[];
|
|
241
|
+
reason?: string;
|
|
242
|
+
meta?: {
|
|
243
|
+
created_at?: string;
|
|
244
|
+
[index: string]: any;
|
|
245
|
+
};
|
|
246
|
+
[index: string]: any;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
export interface OrderMeta {
|
|
250
|
+
// Check-in UUID for frictionless orders
|
|
251
|
+
checkin_uuid?: string;
|
|
252
|
+
refunds?: RefundTransaction[];
|
|
253
|
+
// which ui the order was placed on
|
|
254
|
+
source?: 'web' | 'mobile' | 'centric_hub';
|
|
255
|
+
transaction?: TransactionDetails;
|
|
256
|
+
shoppingcart?: ShoppingCartDetails;
|
|
257
|
+
// Indicate whether the order is active or inactive
|
|
258
|
+
active?: boolean;
|
|
259
|
+
// Override for meta.active for testing purposes
|
|
260
|
+
active_override?: boolean;
|
|
261
|
+
delivery?: DeliveryDetails;
|
|
262
|
+
discount?: DiscountDetails;
|
|
263
|
+
discounts?: OrderDiscount[];
|
|
264
|
+
discounts_refund?: DiscountsRefund;
|
|
265
|
+
// The type of kds that the brand uses
|
|
266
|
+
type_of_kds?: string;
|
|
267
|
+
// Indicate whether the order is eligible for cancellation
|
|
268
|
+
cancel_eligible?: boolean;
|
|
269
|
+
pickup_instruction?: MultiLanguageLabel;
|
|
270
|
+
market_place_label?: MultiLanguageLabel;
|
|
271
|
+
market_place_description?: MultiLanguageLabel;
|
|
272
|
+
apex_code?: string;
|
|
273
|
+
apex_qr?: string;
|
|
274
|
+
apex_codes?: ApexCodes;
|
|
275
|
+
[index: string]: any;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
export interface Order {
|
|
279
|
+
// order id
|
|
280
|
+
id?: string;
|
|
281
|
+
// The CDL id representing the brand location
|
|
282
|
+
location_brand?: string;
|
|
283
|
+
// The CDL id representing the location
|
|
284
|
+
location?: string;
|
|
285
|
+
// The CDL id representing the shopping cart
|
|
286
|
+
shoppingcart?: string;
|
|
287
|
+
payment?: {
|
|
288
|
+
token?: string;
|
|
289
|
+
credit_card?: CreditCard;
|
|
290
|
+
digital_wallet_pay?: string;
|
|
291
|
+
badge_pay?: CashlessPayment;
|
|
292
|
+
stipend?: CashlessPayment;
|
|
293
|
+
voucher?: CashlessPayment;
|
|
294
|
+
coupon_voucher?: CashlessPayment;
|
|
295
|
+
pos?: POSPayment;
|
|
296
|
+
};
|
|
297
|
+
mealplan?: MealPlan;
|
|
298
|
+
meal_swipes?: {
|
|
299
|
+
id?: string;
|
|
300
|
+
tender?: string;
|
|
301
|
+
tender_name?: string;
|
|
302
|
+
swipes?: number;
|
|
303
|
+
total?: number;
|
|
304
|
+
};
|
|
305
|
+
meal_exchange?: MealPlan;
|
|
306
|
+
// The CDL id representing the customer
|
|
307
|
+
customer?: string;
|
|
308
|
+
is?: OrderStatus;
|
|
309
|
+
date?: OrderDates;
|
|
310
|
+
// @deprecated
|
|
311
|
+
pickup?: string;
|
|
312
|
+
// @deprecated
|
|
313
|
+
pickup_name?: string;
|
|
314
|
+
// @deprecated
|
|
315
|
+
pickup_id?: string;
|
|
316
|
+
requested_date?: string;
|
|
317
|
+
details?: OrderDetails;
|
|
318
|
+
meta?: OrderMeta;
|
|
319
|
+
issue?: Issue;
|
|
320
|
+
past_issues?: Issue[];
|
|
321
|
+
// Delivery user
|
|
322
|
+
runner?: string;
|
|
323
|
+
reorder_eligibility?:
|
|
324
|
+
| 'eligible'
|
|
325
|
+
| 'order_type_ineligible'
|
|
326
|
+
| 'location_ineligible'
|
|
327
|
+
| 'active_order'
|
|
328
|
+
| 'old_order'
|
|
329
|
+
| 'marketplace_order'
|
|
330
|
+
| 'duplicate_order'
|
|
331
|
+
| 'brand_unavailable'
|
|
332
|
+
| 'menu_unavailable'
|
|
333
|
+
| 'items_unavailable'
|
|
334
|
+
| 'refunded_order'
|
|
335
|
+
| 'modifiers_unavailable'
|
|
336
|
+
| 'modified_items'
|
|
337
|
+
| 'cancelled_order';
|
|
338
|
+
refunds?: RefundItem[];
|
|
339
|
+
latest_refunds?: RefundItem[];
|
|
340
|
+
[index: string]: any;
|
|
341
|
+
}
|
|
342
|
+
|
|
3
343
|
export interface OrderUpdatedEvent {
|
|
4
344
|
id: string;
|
|
5
345
|
type: 'OrderUpdatedEvent';
|
|
@@ -9,287 +349,7 @@ export interface OrderUpdatedEvent {
|
|
|
9
349
|
traceId?: string;
|
|
10
350
|
};
|
|
11
351
|
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' | 'centric_hub';
|
|
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
|
-
};
|
|
352
|
+
order: Order;
|
|
293
353
|
};
|
|
294
354
|
source: string;
|
|
295
355
|
}
|