@compassdigital/sdk.typescript 4.160.0 → 4.163.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/index.d.ts +18 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +18 -0
- package/lib/index.js.map +1 -1
- package/lib/interface/ai.d.ts.map +1 -1
- package/lib/interface/auth.d.ts.map +1 -1
- package/lib/interface/catalog.d.ts.map +1 -1
- package/lib/interface/centricos.d.ts +13 -10
- package/lib/interface/centricos.d.ts.map +1 -1
- package/lib/interface/consumer.d.ts +14 -30
- package/lib/interface/consumer.d.ts.map +1 -1
- package/lib/interface/discount.d.ts.map +1 -1
- package/lib/interface/frictionless.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +15 -0
- package/lib/interface/menu.d.ts.map +1 -1
- package/lib/interface/order.d.ts +2 -2
- package/lib/interface/order.d.ts.map +1 -1
- package/lib/interface/review.d.ts.map +1 -1
- package/lib/interface/tax.d.ts.map +1 -1
- package/lib/interface/timeslots.d.ts.map +1 -1
- package/lib/interface/user.d.ts +2 -0
- package/lib/interface/user.d.ts.map +1 -1
- package/lib/messages/legacy/CheckinProcessingFailedEvent.d.ts +1 -1
- package/lib/messages/legacy/CheckinProcessingFailedEvent.d.ts.map +1 -1
- package/lib/messages/legacy/FrictionlessCheckinExecutedEvent.d.ts +1 -1
- package/lib/messages/legacy/FrictionlessCheckinExecutedEvent.d.ts.map +1 -1
- package/lib/messages/legacy/FrictionlessThirdPartyWebhookReceivedEvent.d.ts +1 -1
- package/lib/messages/legacy/FrictionlessThirdPartyWebhookReceivedEvent.d.ts.map +1 -1
- package/lib/messages/legacy/ReprocessCheckinCommandArrivedEvent.d.ts +1 -1
- package/lib/messages/legacy/ReprocessCheckinCommandArrivedEvent.d.ts.map +1 -1
- package/lib/messages/legacy/UpdateCheckInPaymentRequiredEvent.d.ts +1 -1
- package/lib/messages/legacy/UpdateCheckInPaymentRequiredEvent.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/index.ts +45 -0
- package/src/interface/ai.ts +2 -0
- package/src/interface/auth.ts +2 -0
- package/src/interface/catalog.ts +2 -0
- package/src/interface/centricos.ts +30 -10
- package/src/interface/consumer.ts +61 -30
- package/src/interface/discount.ts +4 -0
- package/src/interface/frictionless.ts +4 -0
- package/src/interface/menu.ts +24 -0
- package/src/interface/order.ts +2 -2
- package/src/interface/review.ts +2 -0
- package/src/interface/tax.ts +5 -0
- package/src/interface/timeslots.ts +2 -0
- package/src/interface/user.ts +2 -0
- package/src/messages/legacy/CheckinProcessingFailedEvent.ts +1 -1
- package/src/messages/legacy/FrictionlessCheckinExecutedEvent.ts +1 -1
- package/src/messages/legacy/FrictionlessThirdPartyWebhookReceivedEvent.ts +1 -1
- package/src/messages/legacy/ReprocessCheckinCommandArrivedEvent.ts +1 -1
- package/src/messages/legacy/UpdateCheckInPaymentRequiredEvent.ts +1 -1
|
@@ -77,6 +77,7 @@ export interface ErrorData {
|
|
|
77
77
|
// http status text
|
|
78
78
|
statusText: string;
|
|
79
79
|
timestamp: string;
|
|
80
|
+
// user friendly error message
|
|
80
81
|
displayMessage: ErrorDisplayMessage;
|
|
81
82
|
}
|
|
82
83
|
|
|
@@ -85,6 +86,7 @@ export interface Error {
|
|
|
85
86
|
code: number;
|
|
86
87
|
// business error description
|
|
87
88
|
message: string;
|
|
89
|
+
// additional error data
|
|
88
90
|
data: ErrorData;
|
|
89
91
|
}
|
|
90
92
|
|
|
@@ -94,12 +96,14 @@ export interface OrderTotals {
|
|
|
94
96
|
}
|
|
95
97
|
|
|
96
98
|
export interface OrderTransaction {
|
|
99
|
+
// used in mx orders - cart totals in dollars and meal exchange value (meals)
|
|
97
100
|
mx_totals?: OrderTotals;
|
|
98
101
|
// the amount remaining on the transaction after refund - remaining amount available for refund
|
|
99
102
|
transaction_remainder_amount?: number;
|
|
100
103
|
}
|
|
101
104
|
|
|
102
105
|
export interface OrderMetaShoppingcart {
|
|
106
|
+
// Total of first cart on order. Carts can change after refunds, so this is original value
|
|
103
107
|
original_total?: OrderTotals;
|
|
104
108
|
total?: OrderTotals;
|
|
105
109
|
}
|
|
@@ -150,13 +154,17 @@ export interface OrderMeta {
|
|
|
150
154
|
checkin_uuid?: string;
|
|
151
155
|
// which ui the order was placed on
|
|
152
156
|
source?: 'web' | 'mobile';
|
|
157
|
+
// details pertaining to the amount charged on the order
|
|
153
158
|
transaction?: OrderTransaction;
|
|
159
|
+
// Shoppingcart details
|
|
154
160
|
shoppingcart?: OrderMetaShoppingcart;
|
|
155
161
|
// Indicate whether the order is active or inactive
|
|
156
162
|
active?: boolean;
|
|
157
163
|
// Override for meta.active for testing purposes
|
|
158
164
|
active_override?: boolean;
|
|
165
|
+
// Delivery details
|
|
159
166
|
delivery?: OrderDelivery;
|
|
167
|
+
// Discount details
|
|
160
168
|
discount?: OrderDiscount;
|
|
161
169
|
// The type of kds that the brand uses
|
|
162
170
|
type_of_kds?: string;
|
|
@@ -229,6 +237,7 @@ export interface OrderRefundItem {
|
|
|
229
237
|
_index?: string;
|
|
230
238
|
// Quantity of the item
|
|
231
239
|
quantity?: number;
|
|
240
|
+
// Price of the item
|
|
232
241
|
price?: OrderMonetaryValue;
|
|
233
242
|
// Reason for refund
|
|
234
243
|
reason?: string;
|
|
@@ -316,7 +325,9 @@ export interface OrderItemWithIssue {
|
|
|
316
325
|
id: string;
|
|
317
326
|
// index
|
|
318
327
|
_index: string;
|
|
328
|
+
// Subtotal of the item including all options
|
|
319
329
|
_subtotal?: OrderMonetaryValue;
|
|
330
|
+
// Promo applied to this item
|
|
320
331
|
_promo?: OrderMonetaryValue;
|
|
321
332
|
reason?: string;
|
|
322
333
|
quantity?: number;
|
|
@@ -337,9 +348,8 @@ export interface OrderIssue {
|
|
|
337
348
|
items?: OrderItemWithIssue[];
|
|
338
349
|
// Optional additional explanation for issue: 5,10,15 for late issues, SOLD_OUT, MODIFICATION, DIETARY_RESTRICTION for see kitchen issues
|
|
339
350
|
reason?: string;
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
} & OrderIssueMeta;
|
|
351
|
+
// Issue Meta
|
|
352
|
+
meta?: OrderIssueMeta;
|
|
343
353
|
type?: string;
|
|
344
354
|
}
|
|
345
355
|
|
|
@@ -412,9 +422,7 @@ export interface ShoppingcartItemModifierIs {
|
|
|
412
422
|
export interface ShoppingcartItemModifier {
|
|
413
423
|
// index
|
|
414
424
|
_index?: string;
|
|
415
|
-
meta?:
|
|
416
|
-
[index: string]: any;
|
|
417
|
-
} & ShoppingcartItemModifierMeta;
|
|
425
|
+
meta?: ShoppingcartItemModifierMeta;
|
|
418
426
|
amount_off_exclusions?: string[];
|
|
419
427
|
id?: string;
|
|
420
428
|
price?: ShoppingcartMonetaryValue;
|
|
@@ -424,9 +432,7 @@ export interface ShoppingcartItemModifier {
|
|
|
424
432
|
}
|
|
425
433
|
|
|
426
434
|
export interface ShoppingcartItemModifierGroup {
|
|
427
|
-
meta?:
|
|
428
|
-
[index: string]: any;
|
|
429
|
-
} & ShoppingcartItemModifierGroupMeta;
|
|
435
|
+
meta?: ShoppingcartItemModifierGroupMeta;
|
|
430
436
|
id?: string;
|
|
431
437
|
label?: ShoppingcartLabel;
|
|
432
438
|
items?: ShoppingcartItemModifier[];
|
|
@@ -467,13 +473,15 @@ export interface ShoppingcartItem {
|
|
|
467
473
|
id: string;
|
|
468
474
|
// index based on cdl id or stringified timestamp
|
|
469
475
|
_index?: string;
|
|
476
|
+
// Final item price after LTO/Bundle/BOGO etc is applied on the item.
|
|
470
477
|
sale_price?: ShoppingcartSalePrice;
|
|
478
|
+
// Subtotal of the item including all options
|
|
471
479
|
_subtotal?: ShoppingcartMonetaryValue;
|
|
480
|
+
// Promo applied to this item
|
|
472
481
|
_promo?: ShoppingcartMonetaryValue;
|
|
482
|
+
// Discount applied to this item
|
|
473
483
|
_discount?: ShoppingcartMonetaryValue;
|
|
474
|
-
meta?:
|
|
475
|
-
[index: string]: any;
|
|
476
|
-
} & ShoppingcartItemMeta;
|
|
484
|
+
meta?: ShoppingcartItemMeta;
|
|
477
485
|
// Details about discount like BOGO, LTO, Bundle etc.
|
|
478
486
|
item_discount?: Record<string, any>;
|
|
479
487
|
// user specified instructions for the item
|
|
@@ -761,9 +769,7 @@ export interface CustomerOrderShoppingcartDTO {
|
|
|
761
769
|
}
|
|
762
770
|
|
|
763
771
|
export interface CustomerOrder {
|
|
764
|
-
meta?:
|
|
765
|
-
[index: string]: any;
|
|
766
|
-
} & OrderMeta;
|
|
772
|
+
meta?: OrderMeta;
|
|
767
773
|
id?: string;
|
|
768
774
|
reorder_eligibility?:
|
|
769
775
|
| 'eligible'
|
|
@@ -839,20 +845,23 @@ export interface PostOrderBodyDto {
|
|
|
839
845
|
location?: string;
|
|
840
846
|
// The shoppingcart
|
|
841
847
|
shoppingcart?: string;
|
|
848
|
+
// Payment details
|
|
842
849
|
payment?: CreateOrderPayment;
|
|
850
|
+
// Meal plan
|
|
843
851
|
mealplan?: OrderMealplan;
|
|
844
852
|
// User ID
|
|
845
853
|
customer?: string;
|
|
854
|
+
// Order status flags
|
|
846
855
|
is?: CreateOrderIs;
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
} & CreateOrderMeta;
|
|
856
|
+
// Meta information
|
|
857
|
+
meta?: CreateOrderMeta;
|
|
850
858
|
// Pickup (deprecated)
|
|
851
859
|
pickup?: string;
|
|
852
860
|
// Pickup name (deprecated)
|
|
853
861
|
pickup_name?: string;
|
|
854
862
|
// Requested date
|
|
855
863
|
requested_date?: string;
|
|
864
|
+
// Order details
|
|
856
865
|
details?: CreateOrderDetails;
|
|
857
866
|
}
|
|
858
867
|
|
|
@@ -861,13 +870,17 @@ export interface PlacedOrderMeta {
|
|
|
861
870
|
checkin_uuid?: string;
|
|
862
871
|
// which ui the order was placed on
|
|
863
872
|
source?: 'web' | 'mobile';
|
|
873
|
+
// details pertaining to the amount charged on the order
|
|
864
874
|
transaction?: OrderTransaction;
|
|
875
|
+
// Shoppingcart details
|
|
865
876
|
shoppingcart?: OrderMetaShoppingcart;
|
|
866
877
|
// Indicate whether the order is active or inactive
|
|
867
878
|
active?: boolean;
|
|
868
879
|
// Override for meta.active for testing purposes
|
|
869
880
|
active_override?: boolean;
|
|
881
|
+
// Delivery details
|
|
870
882
|
delivery?: OrderDelivery;
|
|
883
|
+
// Discount details
|
|
871
884
|
discount?: OrderDiscount;
|
|
872
885
|
// The type of kds that the brand uses
|
|
873
886
|
type_of_kds?: string;
|
|
@@ -885,13 +898,19 @@ export interface PostOrderResponseDto {
|
|
|
885
898
|
location?: string;
|
|
886
899
|
// Shopping cart ID
|
|
887
900
|
shoppingcart?: string;
|
|
901
|
+
// Payment details
|
|
888
902
|
payment?: OrderPayment;
|
|
903
|
+
// Meal plan
|
|
889
904
|
mealplan?: OrderMealplan;
|
|
905
|
+
// Meal swipes
|
|
890
906
|
meal_swipes?: OrderMealSwipes;
|
|
907
|
+
// Meal exchange
|
|
891
908
|
meal_exchange?: OrderMealplan;
|
|
892
909
|
// User ID
|
|
893
910
|
customer?: string;
|
|
911
|
+
// Order status flags
|
|
894
912
|
is?: OrderIs;
|
|
913
|
+
// Order date info
|
|
895
914
|
date?: OrderDate;
|
|
896
915
|
// Pickup (deprecated)
|
|
897
916
|
pickup?: string;
|
|
@@ -901,10 +920,11 @@ export interface PostOrderResponseDto {
|
|
|
901
920
|
pickup_id?: string;
|
|
902
921
|
// Requested date
|
|
903
922
|
requested_date?: string;
|
|
923
|
+
// Order details
|
|
904
924
|
details?: OrderDetails;
|
|
905
|
-
meta
|
|
906
|
-
|
|
907
|
-
|
|
925
|
+
// Order meta info
|
|
926
|
+
meta?: PlacedOrderMeta;
|
|
927
|
+
// Issue
|
|
908
928
|
issue?: OrderIssue;
|
|
909
929
|
// Past issues
|
|
910
930
|
past_issues?: OrderIssue[];
|
|
@@ -989,9 +1009,7 @@ export interface ConsumerAnnouncement {
|
|
|
989
1009
|
}
|
|
990
1010
|
|
|
991
1011
|
export interface HomePageOrder {
|
|
992
|
-
meta?:
|
|
993
|
-
[index: string]: any;
|
|
994
|
-
} & OrderMeta;
|
|
1012
|
+
meta?: OrderMeta;
|
|
995
1013
|
id?: string;
|
|
996
1014
|
reorder_eligibility?:
|
|
997
1015
|
| 'eligible'
|
|
@@ -1282,12 +1300,15 @@ export interface ConsumerGroup {
|
|
|
1282
1300
|
}
|
|
1283
1301
|
|
|
1284
1302
|
export interface HomePageResponse {
|
|
1303
|
+
// valid diverse greeting messages
|
|
1285
1304
|
greetingMessage: DiverseGreetingMessages;
|
|
1305
|
+
// valid hero images
|
|
1286
1306
|
heroImages: HeroImage;
|
|
1287
1307
|
// active announcements
|
|
1288
1308
|
announcements?: ConsumerAnnouncement[];
|
|
1289
1309
|
// array of orders
|
|
1290
1310
|
orders?: HomePageOrder[];
|
|
1311
|
+
// location object for the site
|
|
1291
1312
|
location?: ConsumerGroup;
|
|
1292
1313
|
}
|
|
1293
1314
|
|
|
@@ -1738,9 +1759,8 @@ export interface PutConsumerUserResponse {
|
|
|
1738
1759
|
realm?: string;
|
|
1739
1760
|
// The gender of the user
|
|
1740
1761
|
gender?: Record<string, any>;
|
|
1741
|
-
meta
|
|
1742
|
-
|
|
1743
|
-
} & ConsumerUserMeta;
|
|
1762
|
+
// The meta of the user
|
|
1763
|
+
meta?: ConsumerUserMeta;
|
|
1744
1764
|
is?: {
|
|
1745
1765
|
disabled?: boolean;
|
|
1746
1766
|
locked_out?: boolean;
|
|
@@ -1749,6 +1769,7 @@ export interface PutConsumerUserResponse {
|
|
|
1749
1769
|
deleted?: boolean;
|
|
1750
1770
|
placeholder?: boolean;
|
|
1751
1771
|
};
|
|
1772
|
+
// The permissions of the user
|
|
1752
1773
|
permissions?: ConsumerScopes;
|
|
1753
1774
|
// The location group of the user
|
|
1754
1775
|
location_group?: string;
|
|
@@ -1781,9 +1802,8 @@ export interface GetConsumerUserResponse {
|
|
|
1781
1802
|
realm?: string;
|
|
1782
1803
|
// The gender of the user
|
|
1783
1804
|
gender?: Record<string, any>;
|
|
1784
|
-
meta
|
|
1785
|
-
|
|
1786
|
-
} & ConsumerUserMeta;
|
|
1805
|
+
// The meta of the user
|
|
1806
|
+
meta?: ConsumerUserMeta;
|
|
1787
1807
|
is?: {
|
|
1788
1808
|
disabled?: boolean;
|
|
1789
1809
|
locked_out?: boolean;
|
|
@@ -1792,6 +1812,7 @@ export interface GetConsumerUserResponse {
|
|
|
1792
1812
|
deleted?: boolean;
|
|
1793
1813
|
placeholder?: boolean;
|
|
1794
1814
|
};
|
|
1815
|
+
// The permissions of the user
|
|
1795
1816
|
permissions?: ConsumerScopes;
|
|
1796
1817
|
// The location group of the user
|
|
1797
1818
|
location_group?: string;
|
|
@@ -1929,6 +1950,7 @@ export interface PostConsumerRecommendedRequest {
|
|
|
1929
1950
|
}
|
|
1930
1951
|
|
|
1931
1952
|
export interface ConsumerRecommendedItem {
|
|
1953
|
+
// item
|
|
1932
1954
|
item: ConsumerItem;
|
|
1933
1955
|
station_name?: string;
|
|
1934
1956
|
menu_id?: string;
|
|
@@ -2072,6 +2094,7 @@ export interface ConsumerRedemption {
|
|
|
2072
2094
|
result?: boolean;
|
|
2073
2095
|
// The promo code that was redeemed
|
|
2074
2096
|
code?: string;
|
|
2097
|
+
// The discount applied
|
|
2075
2098
|
discount?: ConsumerAppliedDiscount;
|
|
2076
2099
|
// The type of redemption
|
|
2077
2100
|
type?: string;
|
|
@@ -2435,3 +2458,11 @@ export type PostConsumerPromoValidateResponse = ConsumerVoucher;
|
|
|
2435
2458
|
export type PostConsumerPromoRedeemBody = PostConsumerPromoRedeemRequest;
|
|
2436
2459
|
|
|
2437
2460
|
export type PostConsumerPromoRedeemResponse = ConsumerRedemption;
|
|
2461
|
+
|
|
2462
|
+
// PUT /consumer/user/mealplan/{locationId} - Link mealplan to user
|
|
2463
|
+
|
|
2464
|
+
export interface PutConsumerUserMealplanPath {
|
|
2465
|
+
locationId: string;
|
|
2466
|
+
}
|
|
2467
|
+
|
|
2468
|
+
export type PutConsumerUserMealplanResponse = {};
|
|
@@ -29,10 +29,12 @@ export interface VoucherifyMetaData {
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
export interface MetaProvider {
|
|
32
|
+
// Voucherify metadata
|
|
32
33
|
voucherify?: VoucherifyMetaData;
|
|
33
34
|
}
|
|
34
35
|
|
|
35
36
|
export interface DiscountMeta {
|
|
37
|
+
// discount 3rd party provider metadata
|
|
36
38
|
provider: MetaProvider;
|
|
37
39
|
}
|
|
38
40
|
|
|
@@ -66,6 +68,7 @@ export interface ErrorData {
|
|
|
66
68
|
// http status text
|
|
67
69
|
statusText: string;
|
|
68
70
|
timestamp: string;
|
|
71
|
+
// user friendly error message
|
|
69
72
|
displayMessage: ErrorDisplayMessage;
|
|
70
73
|
}
|
|
71
74
|
|
|
@@ -74,6 +77,7 @@ export interface Error {
|
|
|
74
77
|
code: number;
|
|
75
78
|
// business error description
|
|
76
79
|
message: string;
|
|
80
|
+
// additional error data
|
|
77
81
|
data: ErrorData;
|
|
78
82
|
}
|
|
79
83
|
|
|
@@ -23,6 +23,7 @@ export interface ErrorData {
|
|
|
23
23
|
// http status text
|
|
24
24
|
statusText: string;
|
|
25
25
|
timestamp: string;
|
|
26
|
+
// user friendly error message
|
|
26
27
|
displayMessage: ErrorDisplayMessage;
|
|
27
28
|
}
|
|
28
29
|
|
|
@@ -31,6 +32,7 @@ export interface Error {
|
|
|
31
32
|
code: number;
|
|
32
33
|
// business error description
|
|
33
34
|
message: string;
|
|
35
|
+
// additional error data
|
|
34
36
|
data: ErrorData;
|
|
35
37
|
}
|
|
36
38
|
|
|
@@ -49,7 +51,9 @@ export interface CreditCardDTO {
|
|
|
49
51
|
}
|
|
50
52
|
|
|
51
53
|
export interface PaymentMethodDTO {
|
|
54
|
+
// The mealplan information
|
|
52
55
|
mealplan?: MealplanDTO;
|
|
56
|
+
// The credit card information
|
|
53
57
|
creditCard?: CreditCardDTO;
|
|
54
58
|
// Token used for identify the payment method
|
|
55
59
|
token: string;
|
package/src/interface/menu.ts
CHANGED
|
@@ -4451,6 +4451,7 @@ export interface PostMenuV3DraftMenuDuplicatePath {
|
|
|
4451
4451
|
|
|
4452
4452
|
export interface PostMenuV3DraftMenuDuplicateBody {
|
|
4453
4453
|
name?: string;
|
|
4454
|
+
translation?: NameTranslation;
|
|
4454
4455
|
[index: string]: any;
|
|
4455
4456
|
}
|
|
4456
4457
|
|
|
@@ -4841,6 +4842,7 @@ export interface PostMenuV3DraftCategoryDuplicateBody {
|
|
|
4841
4842
|
sequence?: number;
|
|
4842
4843
|
is_active?: boolean;
|
|
4843
4844
|
menu_id?: string;
|
|
4845
|
+
translation?: NameTranslation;
|
|
4844
4846
|
[index: string]: any;
|
|
4845
4847
|
}
|
|
4846
4848
|
|
|
@@ -8367,6 +8369,28 @@ export interface PostMenuV4BrandMenuDuplicateRequest
|
|
|
8367
8369
|
body: PostMenuV4BrandMenuDuplicateBody;
|
|
8368
8370
|
}
|
|
8369
8371
|
|
|
8372
|
+
// GET /menu/v4/brand/{id}/export
|
|
8373
|
+
|
|
8374
|
+
export interface GetMenuV4BrandExportPath {
|
|
8375
|
+
id: string;
|
|
8376
|
+
}
|
|
8377
|
+
|
|
8378
|
+
export interface GetMenuV4BrandExportQuery {
|
|
8379
|
+
format?: 'xlsx';
|
|
8380
|
+
// Graphql query string
|
|
8381
|
+
_query?: string;
|
|
8382
|
+
}
|
|
8383
|
+
|
|
8384
|
+
export interface GetMenuV4BrandExportResponse {
|
|
8385
|
+
s3_link: string;
|
|
8386
|
+
[index: string]: any;
|
|
8387
|
+
}
|
|
8388
|
+
|
|
8389
|
+
export interface GetMenuV4BrandExportRequest
|
|
8390
|
+
extends BaseRequest,
|
|
8391
|
+
RequestQuery<GetMenuV4BrandExportQuery>,
|
|
8392
|
+
GetMenuV4BrandExportPath {}
|
|
8393
|
+
|
|
8370
8394
|
// POST /menu/v4/item/{id}/attachment/{name}
|
|
8371
8395
|
|
|
8372
8396
|
export interface PostMenuV4ItemAttachmentPath {
|
package/src/interface/order.ts
CHANGED
|
@@ -378,9 +378,9 @@ export interface Orders {
|
|
|
378
378
|
};
|
|
379
379
|
}
|
|
380
380
|
|
|
381
|
-
export
|
|
381
|
+
export type ItemsWithIssue = OrderedItem & {
|
|
382
382
|
reason?: string;
|
|
383
|
-
}
|
|
383
|
+
};
|
|
384
384
|
|
|
385
385
|
export interface ActionResponse {
|
|
386
386
|
success?: boolean;
|
package/src/interface/review.ts
CHANGED
|
@@ -30,6 +30,7 @@ export interface ErrorData {
|
|
|
30
30
|
// http status text
|
|
31
31
|
statusText: string;
|
|
32
32
|
timestamp: string;
|
|
33
|
+
// user friendly error message
|
|
33
34
|
displayMessage: ErrorDisplayMessage;
|
|
34
35
|
}
|
|
35
36
|
|
|
@@ -38,6 +39,7 @@ export interface Error {
|
|
|
38
39
|
code: number;
|
|
39
40
|
// business error description
|
|
40
41
|
message: string;
|
|
42
|
+
// additional error data
|
|
41
43
|
data: ErrorData;
|
|
42
44
|
}
|
|
43
45
|
|
package/src/interface/tax.ts
CHANGED
|
@@ -45,11 +45,13 @@ export interface TaxRequestDTO {
|
|
|
45
45
|
id: string;
|
|
46
46
|
// the app to associate the transaction with
|
|
47
47
|
appName: string;
|
|
48
|
+
// the order fulfillment type
|
|
48
49
|
transactionType: TransactionType;
|
|
49
50
|
// numeric value of service fee
|
|
50
51
|
serviceFee?: number;
|
|
51
52
|
// numeric value of delivery fee
|
|
52
53
|
deliveryFee?: number;
|
|
54
|
+
// location data of the transaction
|
|
53
55
|
locationData: TaxLocationData;
|
|
54
56
|
// items to calculate tax on
|
|
55
57
|
items: TaxItemDTO[];
|
|
@@ -75,6 +77,7 @@ export interface TaxResponseDTO {
|
|
|
75
77
|
amount: number;
|
|
76
78
|
// the total tax rate applied to the items to determine the total tax of the transaction
|
|
77
79
|
rate: number;
|
|
80
|
+
// tax breakdown containing amount for state/province and total taxable amount
|
|
78
81
|
breakdown: TaxBreakdownDTO;
|
|
79
82
|
// the name of the tax provider
|
|
80
83
|
provider: string;
|
|
@@ -93,6 +96,7 @@ export interface ErrorData {
|
|
|
93
96
|
// http status text
|
|
94
97
|
statusText: string;
|
|
95
98
|
timestamp: string;
|
|
99
|
+
// user friendly error message
|
|
96
100
|
displayMessage: ErrorDisplayMessage;
|
|
97
101
|
}
|
|
98
102
|
|
|
@@ -101,6 +105,7 @@ export interface Error {
|
|
|
101
105
|
code: number;
|
|
102
106
|
// business error description
|
|
103
107
|
message: string;
|
|
108
|
+
// additional error data
|
|
104
109
|
data: ErrorData;
|
|
105
110
|
}
|
|
106
111
|
|
|
@@ -28,6 +28,7 @@ export interface ErrorData {
|
|
|
28
28
|
// http status text
|
|
29
29
|
statusText: string;
|
|
30
30
|
timestamp: string;
|
|
31
|
+
// user friendly error message
|
|
31
32
|
displayMessage: ErrorDisplayMessage;
|
|
32
33
|
}
|
|
33
34
|
|
|
@@ -36,6 +37,7 @@ export interface Error {
|
|
|
36
37
|
code: number;
|
|
37
38
|
// business error description
|
|
38
39
|
message: string;
|
|
40
|
+
// additional error data
|
|
39
41
|
data: ErrorData;
|
|
40
42
|
}
|
|
41
43
|
|
package/src/interface/user.ts
CHANGED
|
@@ -19,6 +19,7 @@ export interface User {
|
|
|
19
19
|
date?: {
|
|
20
20
|
created?: string;
|
|
21
21
|
modified?: string;
|
|
22
|
+
last_accessed?: string;
|
|
22
23
|
};
|
|
23
24
|
birthday?: string;
|
|
24
25
|
password?: string;
|
|
@@ -47,6 +48,7 @@ export interface User {
|
|
|
47
48
|
// User location group
|
|
48
49
|
location_group?: string;
|
|
49
50
|
ssoId?: string;
|
|
51
|
+
last_accessed?: string;
|
|
50
52
|
}
|
|
51
53
|
|
|
52
54
|
export interface CashlessLog {
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Create a new message type respecting the new standards
|
|
6
6
|
*/
|
|
7
7
|
export interface ReprocessCheckinCommandArrivedEvent {
|
|
8
|
-
name:
|
|
8
|
+
name: 'reprocess-checkin-command-arrived-event';
|
|
9
9
|
checkinID: string;
|
|
10
10
|
correlationID: string;
|
|
11
11
|
type: 'ReprocessCheckinCommandArrivedEvent';
|