@compassdigital/sdk.typescript 4.589.0 → 4.590.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/OrderIssueCreatedEvent.d.ts +241 -0
- package/lib/messages/events/OrderIssueCreatedEvent.d.ts.map +1 -0
- package/lib/messages/events/OrderIssueCreatedEvent.js +4 -0
- package/lib/messages/events/OrderIssueCreatedEvent.js.map +1 -0
- package/lib/messages/events/OrderRefundCreatedEvent.d.ts +240 -0
- package/lib/messages/events/OrderRefundCreatedEvent.d.ts.map +1 -0
- package/lib/messages/events/OrderRefundCreatedEvent.js +4 -0
- package/lib/messages/events/OrderRefundCreatedEvent.js.map +1 -0
- package/lib/messages/events/OrderRefundDeniedEvent.d.ts +241 -0
- package/lib/messages/events/OrderRefundDeniedEvent.d.ts.map +1 -0
- package/lib/messages/events/OrderRefundDeniedEvent.js +4 -0
- package/lib/messages/events/OrderRefundDeniedEvent.js.map +1 -0
- package/lib/messages/events/index.d.ts +3 -0
- package/lib/messages/events/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/messages/events/OrderIssueCreatedEvent.ts +278 -0
- package/src/messages/events/OrderRefundCreatedEvent.ts +277 -0
- package/src/messages/events/OrderRefundDeniedEvent.ts +279 -0
- package/src/messages/events/index.ts +6 -0
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
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
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface MealPlan {
|
|
21
|
+
id?: string;
|
|
22
|
+
tender?: string;
|
|
23
|
+
name?: string;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface OrderStatus {
|
|
27
|
+
accepted?: boolean;
|
|
28
|
+
in_progress?: boolean;
|
|
29
|
+
ready?: boolean;
|
|
30
|
+
out_for_delivery?: boolean;
|
|
31
|
+
delivered?: boolean;
|
|
32
|
+
checkin_order?: boolean;
|
|
33
|
+
dining_hall_order?: boolean;
|
|
34
|
+
no_show?: boolean;
|
|
35
|
+
collected?: boolean;
|
|
36
|
+
cancelled?: boolean;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export interface OrderDates {
|
|
40
|
+
accepted?: string;
|
|
41
|
+
created?: string;
|
|
42
|
+
modified?: string;
|
|
43
|
+
should_start?: string;
|
|
44
|
+
completion_warning?: string;
|
|
45
|
+
ready?: string;
|
|
46
|
+
started?: string;
|
|
47
|
+
show_as_active_until?: string;
|
|
48
|
+
no_show?: string;
|
|
49
|
+
collected?: string;
|
|
50
|
+
delivered?: string;
|
|
51
|
+
pickup?: string;
|
|
52
|
+
cancelled?: string;
|
|
53
|
+
polled?: string;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export interface OrderDetails {
|
|
57
|
+
name?: string;
|
|
58
|
+
display_id?: string;
|
|
59
|
+
contact_number?: string;
|
|
60
|
+
country_code?: string;
|
|
61
|
+
order_type?: string;
|
|
62
|
+
duration?: string;
|
|
63
|
+
destination?: string;
|
|
64
|
+
instructions?: string;
|
|
65
|
+
receiptEmail?: string;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export interface RefundTransaction {
|
|
69
|
+
original_shoppingcart?: string;
|
|
70
|
+
refund_date?: string;
|
|
71
|
+
issued_by?: string;
|
|
72
|
+
amount?: number;
|
|
73
|
+
refund_amount?: number;
|
|
74
|
+
[index: string]: any;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export interface TransactionDetails {
|
|
78
|
+
mx_totals?: {
|
|
79
|
+
amount?: number;
|
|
80
|
+
meals?: number;
|
|
81
|
+
};
|
|
82
|
+
transaction_remainder_amount?: number;
|
|
83
|
+
[index: string]: any;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export interface ShoppingCartDetails {
|
|
87
|
+
total?: {
|
|
88
|
+
amount?: number;
|
|
89
|
+
meals?: number;
|
|
90
|
+
};
|
|
91
|
+
original_total?: {
|
|
92
|
+
amount?: number;
|
|
93
|
+
meals?: number;
|
|
94
|
+
};
|
|
95
|
+
[index: string]: any;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export interface DeliveryDetails {
|
|
99
|
+
provider?: string;
|
|
100
|
+
tracker_url?: string;
|
|
101
|
+
loading_code?: string;
|
|
102
|
+
[index: string]: any;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export interface DiscountDetails {
|
|
106
|
+
app?: string;
|
|
107
|
+
code?: string;
|
|
108
|
+
[index: string]: any;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export interface OrderDiscount {
|
|
112
|
+
id?: string;
|
|
113
|
+
date?: string;
|
|
114
|
+
result?: boolean;
|
|
115
|
+
discount?: {
|
|
116
|
+
type?: string;
|
|
117
|
+
amount_off?: number;
|
|
118
|
+
percent_off?: number;
|
|
119
|
+
};
|
|
120
|
+
type?: string;
|
|
121
|
+
original_redemption?: string;
|
|
122
|
+
app?: string;
|
|
123
|
+
name?: string;
|
|
124
|
+
resource_id?: string;
|
|
125
|
+
[index: string]: any;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export interface DiscountsRefund {
|
|
129
|
+
app?: string;
|
|
130
|
+
date?: string;
|
|
131
|
+
order_created_at?: string;
|
|
132
|
+
order_id?: string;
|
|
133
|
+
order_items?: {
|
|
134
|
+
source_id?: string;
|
|
135
|
+
quantity?: number;
|
|
136
|
+
price?: number;
|
|
137
|
+
}[];
|
|
138
|
+
order_total?: number;
|
|
139
|
+
reason?: string;
|
|
140
|
+
redemption_id?: string;
|
|
141
|
+
result?: boolean;
|
|
142
|
+
[index: string]: any;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export interface MultiLanguageLabel {
|
|
146
|
+
en?: string;
|
|
147
|
+
fr?: string;
|
|
148
|
+
es?: string;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export interface OrderMeta {
|
|
152
|
+
checkin_uuid?: string;
|
|
153
|
+
refunds?: RefundTransaction[];
|
|
154
|
+
source?: 'web' | 'mobile' | 'centric_hub';
|
|
155
|
+
transaction?: TransactionDetails;
|
|
156
|
+
shoppingcart?: ShoppingCartDetails;
|
|
157
|
+
active?: boolean;
|
|
158
|
+
active_override?: boolean;
|
|
159
|
+
delivery?: DeliveryDetails;
|
|
160
|
+
discount?: DiscountDetails;
|
|
161
|
+
discounts?: OrderDiscount[];
|
|
162
|
+
discounts_refund?: DiscountsRefund;
|
|
163
|
+
type_of_kds?: string;
|
|
164
|
+
cancel_eligible?: boolean;
|
|
165
|
+
pickup_instruction?: MultiLanguageLabel;
|
|
166
|
+
market_place_label?: MultiLanguageLabel;
|
|
167
|
+
market_place_description?: MultiLanguageLabel;
|
|
168
|
+
[index: string]: any;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
export interface OrderedItem {
|
|
172
|
+
id: string;
|
|
173
|
+
_index: string;
|
|
174
|
+
quantity?: number;
|
|
175
|
+
price?: {
|
|
176
|
+
amount?: number;
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export type ItemsWithIssue = OrderedItem & {
|
|
181
|
+
reason?: string;
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
export interface RefundItem {
|
|
185
|
+
id?: string;
|
|
186
|
+
_index?: string;
|
|
187
|
+
quantity?: number;
|
|
188
|
+
price?: {
|
|
189
|
+
amount?: number;
|
|
190
|
+
};
|
|
191
|
+
reason?: string;
|
|
192
|
+
[index: string]: any;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
export interface Issue {
|
|
196
|
+
id?: string;
|
|
197
|
+
type?: string;
|
|
198
|
+
item?: Record<string, any>;
|
|
199
|
+
items?: ItemsWithIssue[];
|
|
200
|
+
reason?: string;
|
|
201
|
+
meta?: {
|
|
202
|
+
created_at?: string;
|
|
203
|
+
[index: string]: any;
|
|
204
|
+
};
|
|
205
|
+
[index: string]: any;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
export interface Order {
|
|
209
|
+
// order id
|
|
210
|
+
id?: string;
|
|
211
|
+
location_brand?: string;
|
|
212
|
+
location?: string;
|
|
213
|
+
shoppingcart?: string;
|
|
214
|
+
payment?: {
|
|
215
|
+
token?: string;
|
|
216
|
+
credit_card?: CreditCard;
|
|
217
|
+
digital_wallet_pay?: string;
|
|
218
|
+
badge_pay?: CashlessPayment;
|
|
219
|
+
stipend?: CashlessPayment;
|
|
220
|
+
voucher?: CashlessPayment;
|
|
221
|
+
coupon_voucher?: CashlessPayment;
|
|
222
|
+
pos?: POSPayment;
|
|
223
|
+
};
|
|
224
|
+
mealplan?: MealPlan;
|
|
225
|
+
meal_swipes?: {
|
|
226
|
+
id?: string;
|
|
227
|
+
tender?: string;
|
|
228
|
+
tender_name?: string;
|
|
229
|
+
swipes?: number;
|
|
230
|
+
total?: number;
|
|
231
|
+
};
|
|
232
|
+
meal_exchange?: MealPlan;
|
|
233
|
+
customer?: string;
|
|
234
|
+
is?: OrderStatus;
|
|
235
|
+
date?: OrderDates;
|
|
236
|
+
pickup?: string;
|
|
237
|
+
pickup_name?: string;
|
|
238
|
+
pickup_id?: string;
|
|
239
|
+
requested_date?: string;
|
|
240
|
+
details?: OrderDetails;
|
|
241
|
+
meta?: OrderMeta;
|
|
242
|
+
issue?: Issue;
|
|
243
|
+
past_issues?: Issue[];
|
|
244
|
+
runner?: string;
|
|
245
|
+
reorder_eligibility?:
|
|
246
|
+
| 'eligible'
|
|
247
|
+
| 'order_type_ineligible'
|
|
248
|
+
| 'location_ineligible'
|
|
249
|
+
| 'active_order'
|
|
250
|
+
| 'old_order'
|
|
251
|
+
| 'marketplace_order'
|
|
252
|
+
| 'duplicate_order'
|
|
253
|
+
| 'brand_unavailable'
|
|
254
|
+
| 'menu_unavailable'
|
|
255
|
+
| 'items_unavailable'
|
|
256
|
+
| 'refunded_order'
|
|
257
|
+
| 'modifiers_unavailable'
|
|
258
|
+
| 'modified_items'
|
|
259
|
+
| 'cancelled_order';
|
|
260
|
+
refunds?: RefundItem[];
|
|
261
|
+
latest_refunds?: RefundItem[];
|
|
262
|
+
[index: string]: any;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
export interface OrderRefundCreatedEvent {
|
|
266
|
+
id: string;
|
|
267
|
+
type: 'OrderRefundCreatedEvent';
|
|
268
|
+
version: '0.0.1';
|
|
269
|
+
timestamp: string;
|
|
270
|
+
traceContext: {
|
|
271
|
+
traceId?: string;
|
|
272
|
+
};
|
|
273
|
+
payload: {
|
|
274
|
+
order: Order;
|
|
275
|
+
};
|
|
276
|
+
source: string;
|
|
277
|
+
}
|
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
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
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface MealPlan {
|
|
21
|
+
id?: string;
|
|
22
|
+
tender?: string;
|
|
23
|
+
name?: string;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface OrderStatus {
|
|
27
|
+
accepted?: boolean;
|
|
28
|
+
in_progress?: boolean;
|
|
29
|
+
ready?: boolean;
|
|
30
|
+
out_for_delivery?: boolean;
|
|
31
|
+
delivered?: boolean;
|
|
32
|
+
checkin_order?: boolean;
|
|
33
|
+
dining_hall_order?: boolean;
|
|
34
|
+
no_show?: boolean;
|
|
35
|
+
collected?: boolean;
|
|
36
|
+
cancelled?: boolean;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export interface OrderDates {
|
|
40
|
+
accepted?: string;
|
|
41
|
+
created?: string;
|
|
42
|
+
modified?: string;
|
|
43
|
+
should_start?: string;
|
|
44
|
+
completion_warning?: string;
|
|
45
|
+
ready?: string;
|
|
46
|
+
started?: string;
|
|
47
|
+
show_as_active_until?: string;
|
|
48
|
+
no_show?: string;
|
|
49
|
+
collected?: string;
|
|
50
|
+
delivered?: string;
|
|
51
|
+
pickup?: string;
|
|
52
|
+
cancelled?: string;
|
|
53
|
+
polled?: string;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export interface OrderDetails {
|
|
57
|
+
name?: string;
|
|
58
|
+
display_id?: string;
|
|
59
|
+
contact_number?: string;
|
|
60
|
+
country_code?: string;
|
|
61
|
+
order_type?: string;
|
|
62
|
+
duration?: string;
|
|
63
|
+
destination?: string;
|
|
64
|
+
instructions?: string;
|
|
65
|
+
receiptEmail?: string;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export interface RefundTransaction {
|
|
69
|
+
original_shoppingcart?: string;
|
|
70
|
+
refund_date?: string;
|
|
71
|
+
issued_by?: string;
|
|
72
|
+
amount?: number;
|
|
73
|
+
refund_amount?: number;
|
|
74
|
+
[index: string]: any;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export interface TransactionDetails {
|
|
78
|
+
mx_totals?: {
|
|
79
|
+
amount?: number;
|
|
80
|
+
meals?: number;
|
|
81
|
+
};
|
|
82
|
+
transaction_remainder_amount?: number;
|
|
83
|
+
[index: string]: any;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export interface ShoppingCartDetails {
|
|
87
|
+
total?: {
|
|
88
|
+
amount?: number;
|
|
89
|
+
meals?: number;
|
|
90
|
+
};
|
|
91
|
+
original_total?: {
|
|
92
|
+
amount?: number;
|
|
93
|
+
meals?: number;
|
|
94
|
+
};
|
|
95
|
+
[index: string]: any;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export interface DeliveryDetails {
|
|
99
|
+
provider?: string;
|
|
100
|
+
tracker_url?: string;
|
|
101
|
+
loading_code?: string;
|
|
102
|
+
[index: string]: any;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export interface DiscountDetails {
|
|
106
|
+
app?: string;
|
|
107
|
+
code?: string;
|
|
108
|
+
[index: string]: any;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export interface OrderDiscount {
|
|
112
|
+
id?: string;
|
|
113
|
+
date?: string;
|
|
114
|
+
result?: boolean;
|
|
115
|
+
discount?: {
|
|
116
|
+
type?: string;
|
|
117
|
+
amount_off?: number;
|
|
118
|
+
percent_off?: number;
|
|
119
|
+
};
|
|
120
|
+
type?: string;
|
|
121
|
+
original_redemption?: string;
|
|
122
|
+
app?: string;
|
|
123
|
+
name?: string;
|
|
124
|
+
resource_id?: string;
|
|
125
|
+
[index: string]: any;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export interface DiscountsRefund {
|
|
129
|
+
app?: string;
|
|
130
|
+
date?: string;
|
|
131
|
+
order_created_at?: string;
|
|
132
|
+
order_id?: string;
|
|
133
|
+
order_items?: {
|
|
134
|
+
source_id?: string;
|
|
135
|
+
quantity?: number;
|
|
136
|
+
price?: number;
|
|
137
|
+
}[];
|
|
138
|
+
order_total?: number;
|
|
139
|
+
reason?: string;
|
|
140
|
+
redemption_id?: string;
|
|
141
|
+
result?: boolean;
|
|
142
|
+
[index: string]: any;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export interface MultiLanguageLabel {
|
|
146
|
+
en?: string;
|
|
147
|
+
fr?: string;
|
|
148
|
+
es?: string;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export interface OrderMeta {
|
|
152
|
+
checkin_uuid?: string;
|
|
153
|
+
refunds?: RefundTransaction[];
|
|
154
|
+
source?: 'web' | 'mobile' | 'centric_hub';
|
|
155
|
+
transaction?: TransactionDetails;
|
|
156
|
+
shoppingcart?: ShoppingCartDetails;
|
|
157
|
+
active?: boolean;
|
|
158
|
+
active_override?: boolean;
|
|
159
|
+
delivery?: DeliveryDetails;
|
|
160
|
+
discount?: DiscountDetails;
|
|
161
|
+
discounts?: OrderDiscount[];
|
|
162
|
+
discounts_refund?: DiscountsRefund;
|
|
163
|
+
type_of_kds?: string;
|
|
164
|
+
cancel_eligible?: boolean;
|
|
165
|
+
pickup_instruction?: MultiLanguageLabel;
|
|
166
|
+
market_place_label?: MultiLanguageLabel;
|
|
167
|
+
market_place_description?: MultiLanguageLabel;
|
|
168
|
+
[index: string]: any;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
export interface OrderedItem {
|
|
172
|
+
id: string;
|
|
173
|
+
_index: string;
|
|
174
|
+
quantity?: number;
|
|
175
|
+
price?: {
|
|
176
|
+
amount?: number;
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export type ItemsWithIssue = OrderedItem & {
|
|
181
|
+
reason?: string;
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
export interface RefundItem {
|
|
185
|
+
id?: string;
|
|
186
|
+
_index?: string;
|
|
187
|
+
quantity?: number;
|
|
188
|
+
price?: {
|
|
189
|
+
amount?: number;
|
|
190
|
+
};
|
|
191
|
+
reason?: string;
|
|
192
|
+
[index: string]: any;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
export interface Issue {
|
|
196
|
+
id?: string;
|
|
197
|
+
type?: string;
|
|
198
|
+
item?: Record<string, any>;
|
|
199
|
+
items?: ItemsWithIssue[];
|
|
200
|
+
reason?: string;
|
|
201
|
+
meta?: {
|
|
202
|
+
created_at?: string;
|
|
203
|
+
[index: string]: any;
|
|
204
|
+
};
|
|
205
|
+
[index: string]: any;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
export interface Order {
|
|
209
|
+
// order id
|
|
210
|
+
id?: string;
|
|
211
|
+
location_brand?: string;
|
|
212
|
+
location?: string;
|
|
213
|
+
shoppingcart?: string;
|
|
214
|
+
payment?: {
|
|
215
|
+
token?: string;
|
|
216
|
+
credit_card?: CreditCard;
|
|
217
|
+
digital_wallet_pay?: string;
|
|
218
|
+
badge_pay?: CashlessPayment;
|
|
219
|
+
stipend?: CashlessPayment;
|
|
220
|
+
voucher?: CashlessPayment;
|
|
221
|
+
coupon_voucher?: CashlessPayment;
|
|
222
|
+
pos?: POSPayment;
|
|
223
|
+
};
|
|
224
|
+
mealplan?: MealPlan;
|
|
225
|
+
meal_swipes?: {
|
|
226
|
+
id?: string;
|
|
227
|
+
tender?: string;
|
|
228
|
+
tender_name?: string;
|
|
229
|
+
swipes?: number;
|
|
230
|
+
total?: number;
|
|
231
|
+
};
|
|
232
|
+
meal_exchange?: MealPlan;
|
|
233
|
+
customer?: string;
|
|
234
|
+
is?: OrderStatus;
|
|
235
|
+
date?: OrderDates;
|
|
236
|
+
pickup?: string;
|
|
237
|
+
pickup_name?: string;
|
|
238
|
+
pickup_id?: string;
|
|
239
|
+
requested_date?: string;
|
|
240
|
+
details?: OrderDetails;
|
|
241
|
+
meta?: OrderMeta;
|
|
242
|
+
issue?: Issue;
|
|
243
|
+
past_issues?: Issue[];
|
|
244
|
+
runner?: string;
|
|
245
|
+
reorder_eligibility?:
|
|
246
|
+
| 'eligible'
|
|
247
|
+
| 'order_type_ineligible'
|
|
248
|
+
| 'location_ineligible'
|
|
249
|
+
| 'active_order'
|
|
250
|
+
| 'old_order'
|
|
251
|
+
| 'marketplace_order'
|
|
252
|
+
| 'duplicate_order'
|
|
253
|
+
| 'brand_unavailable'
|
|
254
|
+
| 'menu_unavailable'
|
|
255
|
+
| 'items_unavailable'
|
|
256
|
+
| 'refunded_order'
|
|
257
|
+
| 'modifiers_unavailable'
|
|
258
|
+
| 'modified_items'
|
|
259
|
+
| 'cancelled_order';
|
|
260
|
+
refunds?: RefundItem[];
|
|
261
|
+
latest_refunds?: RefundItem[];
|
|
262
|
+
[index: string]: any;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
export interface OrderRefundDeniedEvent {
|
|
266
|
+
id: string;
|
|
267
|
+
type: 'OrderRefundDeniedEvent';
|
|
268
|
+
version: '0.0.1';
|
|
269
|
+
timestamp: string;
|
|
270
|
+
traceContext: {
|
|
271
|
+
traceId?: string;
|
|
272
|
+
};
|
|
273
|
+
payload: {
|
|
274
|
+
order: Order;
|
|
275
|
+
// The reason the refund was denied
|
|
276
|
+
reason: string;
|
|
277
|
+
};
|
|
278
|
+
source: string;
|
|
279
|
+
}
|
|
@@ -54,6 +54,12 @@ export { OrderCompletedEvent } from './OrderCompletedEvent';
|
|
|
54
54
|
|
|
55
55
|
export { OrderCreatedEvent } from './OrderCreatedEvent';
|
|
56
56
|
|
|
57
|
+
export { OrderIssueCreatedEvent } from './OrderIssueCreatedEvent';
|
|
58
|
+
|
|
59
|
+
export { OrderRefundCreatedEvent } from './OrderRefundCreatedEvent';
|
|
60
|
+
|
|
61
|
+
export { OrderRefundDeniedEvent } from './OrderRefundDeniedEvent';
|
|
62
|
+
|
|
57
63
|
export { OrderUpdatedEvent } from './OrderUpdatedEvent';
|
|
58
64
|
|
|
59
65
|
export { PublishedMenuCreatedEvent } from './PublishedMenuCreatedEvent';
|