@compassdigital/sdk.typescript 4.822.0 → 4.824.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.
@@ -1166,6 +1166,48 @@ export interface PatchOrderCancelResponseDTO {
1166
1166
  latest_refunds?: OrderRefundItem[];
1167
1167
  }
1168
1168
 
1169
+ export interface PostOrderIssueItemDTO {
1170
+ // Item ID
1171
+ id: string;
1172
+ // Unique index of the item within the cart
1173
+ _index: string;
1174
+ // Quantity of the item with the issue
1175
+ quantity?: number;
1176
+ // Reason for the issue with this item
1177
+ reason?: string;
1178
+ }
1179
+
1180
+ export interface PostOrderIssueMetaDTO {
1181
+ // POS item ID that could not be matched, for issue type INVALID_NEXTEP_ID
1182
+ invalid_id?: string;
1183
+ }
1184
+
1185
+ export interface PostOrderIssueBodyDTO {
1186
+ // Type of issue. Use 'DISPUTE' when reporting a dispute
1187
+ type?: string;
1188
+ // Array of items with issues. Required for DISPUTE along with reason
1189
+ items?: PostOrderIssueItemDTO[];
1190
+ // Optional additional explanation for issue: 5,10,15 for late issues, SOLD_OUT, MODIFICATION, DIETARY_RESTRICTION for see kitchen issues
1191
+ reason?: string;
1192
+ // Brand ID, used to include the brand name in the issue message for SEE_KITCHEN
1193
+ location_brand?: string;
1194
+ // Issue meta
1195
+ meta?: PostOrderIssueMetaDTO;
1196
+ }
1197
+
1198
+ export interface PostOrderIssueResponseDTO {
1199
+ // Issue ID
1200
+ id?: string;
1201
+ // Type of issue
1202
+ type?: string;
1203
+ // Array of items with issues
1204
+ items?: OrderItemWithIssue[];
1205
+ // Optional additional explanation for issue: 5,10,15 for late issues, SOLD_OUT, MODIFICATION, DIETARY_RESTRICTION for see kitchen issues
1206
+ reason?: string;
1207
+ // Issue meta
1208
+ meta?: OrderIssueMeta;
1209
+ }
1210
+
1169
1211
  export interface PostReviewOrderItemRequest {
1170
1212
  // rating score
1171
1213
  score: number;
@@ -4846,6 +4888,17 @@ export type PatchConsumerOrderCancelBody = PatchOrderCancelBodyDTO;
4846
4888
 
4847
4889
  export type PatchConsumerOrderCancelResponse = PatchOrderCancelResponseDTO;
4848
4890
 
4891
+ // POST /consumer/order/{id}/issue - Report an issue with an existing order
4892
+
4893
+ export interface PostConsumerOrderIssuePath {
4894
+ // a valid CDL order id
4895
+ id: string;
4896
+ }
4897
+
4898
+ export type PostConsumerOrderIssueBody = PostOrderIssueBodyDTO;
4899
+
4900
+ export type PostConsumerOrderIssueResponse = PostOrderIssueResponseDTO;
4901
+
4849
4902
  // POST /consumer/review/order-items - Submit reviews for order items
4850
4903
 
4851
4904
  export type PostReviewOrderItemsBody = PostReviewOrderItemsRequestDTO;
@@ -54,6 +54,8 @@ export interface UserCreatedEvent {
54
54
  last_accessed?: string;
55
55
  };
56
56
  birthday?: string;
57
+ // Client affiliation, assigned by SSO login or exclusive access code
58
+ client?: string;
57
59
  phone?: number;
58
60
  phone_country_code?: string;
59
61
  realm?: string;
@@ -54,6 +54,8 @@ export interface UserUpdatedEvent {
54
54
  last_accessed?: string;
55
55
  };
56
56
  birthday?: string;
57
+ // Client affiliation, assigned by SSO login or exclusive access code
58
+ client?: string;
57
59
  phone?: number;
58
60
  phone_country_code?: string;
59
61
  realm?: string;