@open-tender/types 0.4.12 → 0.4.13

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.
@@ -1,5 +1,5 @@
1
1
  import { DateString, ISOString, ISOStringOffset, RequestedAt, TimeHuman, TimezonePython } from '../datetimes';
2
- import { CardType, CardTypeName, ChannelType, DeviceType, DiscountAuthType, Gender, Images, Money, NegativeMoney, OrderStatus, OrderType, ServiceType, TenderStatus, TenderType } from '../global';
2
+ import { CardType, CardTypeName, ChannelType, DeviceType, DiscountAuthType, Gender, Images, Money, NegativeMoney, OrderStatus, OrderType, ReceiptType, ServiceType, TenderStatus, TenderType } from '../global';
3
3
  import { CreditCard, CreditCards } from './creditCards';
4
4
  import { Address, Customer, GiftCard, HouseAccounts } from './customer';
5
5
  import { PrepStatus } from './kds';
@@ -117,6 +117,7 @@ export interface OrderFulfillment {
117
117
  vehicle_color: string | null;
118
118
  vehicle_id: string | null;
119
119
  vehicle_type: string | null;
120
+ acknowledged?: boolean;
120
121
  }
121
122
  export interface OrderGiftCard {
122
123
  amount: Money;
@@ -231,33 +232,42 @@ export interface OrderTotals {
231
232
  tip: Money;
232
233
  total: Money;
233
234
  }
235
+ export interface OrderChannel {
236
+ ext_id?: string | null;
237
+ ext_name?: string | null;
238
+ type: ChannelType;
239
+ }
234
240
  export interface Order {
235
241
  address: Address | null;
236
242
  cart: OrderCart;
243
+ channel: OrderChannel;
237
244
  created_at: ISOStringOffset;
238
- customer: OrderCustomer;
239
- deposit: Money | null;
245
+ customer: OrderCustomer | null;
240
246
  delivery: OrderDelivery | null;
247
+ deposit: Money | null;
241
248
  details: OrderDetails | null;
242
- device_type: DeviceType;
249
+ device_type?: DeviceType;
243
250
  discounts: OrderDiscounts;
244
251
  estimated_at: ISOStringOffset | null;
245
- gift_cards: OrderGiftCards;
252
+ gift_cards?: OrderGiftCards;
246
253
  is_asap: boolean;
247
254
  is_editable: boolean;
248
255
  is_future: boolean;
249
256
  order_fulfillment: OrderFulfillment | null;
250
- order_id: number;
251
- order_uuid?: string;
257
+ order_id: number | null;
252
258
  order_prep: OrderPrep | null;
253
259
  order_type: OrderType;
254
- rating: OrderRating | null;
260
+ order_uuid?: string | null;
261
+ parent_receipt_uuid?: string | null;
262
+ pos_server_id?: number | null;
263
+ pos_terminal_id?: number | null;
264
+ rating?: OrderRating | null;
265
+ receipt_type?: ReceiptType;
255
266
  refunds?: OrderTenders;
256
267
  requested_at: RequestedAt;
257
- requested_time: TimeHuman;
268
+ requested_time?: TimeHuman;
258
269
  revenue_center: OrderRevenueCenter;
259
270
  service_type: ServiceType;
260
- shipment: OrderShipment | null;
261
271
  status: OrderStatus;
262
272
  surcharges: OrderSurcharges;
263
273
  taxes: OrderTaxes;
@@ -266,11 +276,6 @@ export interface Order {
266
276
  totals: OrderTotals;
267
277
  }
268
278
  export declare type Orders = Order[];
269
- export interface OrderChannel {
270
- ext_id?: string | null;
271
- ext_name?: string | null;
272
- type: ChannelType;
273
- }
274
279
  export interface DisplayItem {
275
280
  allergens: string[];
276
281
  cals: number | null;
@@ -1,5 +1,5 @@
1
1
  import { DateString, ISOString, ISOStringOffset, RequestedAt, TimeHuman, TimezonePython } from '../datetimes';
2
- import { CardType, CardTypeName, ChannelType, DeviceType, DiscountAuthType, Gender, Images, Money, NegativeMoney, OrderStatus, OrderType, ServiceType, TenderStatus, TenderType } from '../global';
2
+ import { CardType, CardTypeName, ChannelType, DeviceType, DiscountAuthType, Gender, Images, Money, NegativeMoney, OrderStatus, OrderType, ReceiptType, ServiceType, TenderStatus, TenderType } from '../global';
3
3
  import { CreditCard, CreditCards } from './creditCards';
4
4
  import { Address, Customer, GiftCard, HouseAccounts } from './customer';
5
5
  import { PrepStatus } from './kds';
@@ -117,6 +117,7 @@ export interface OrderFulfillment {
117
117
  vehicle_color: string | null;
118
118
  vehicle_id: string | null;
119
119
  vehicle_type: string | null;
120
+ acknowledged?: boolean;
120
121
  }
121
122
  export interface OrderGiftCard {
122
123
  amount: Money;
@@ -231,33 +232,42 @@ export interface OrderTotals {
231
232
  tip: Money;
232
233
  total: Money;
233
234
  }
235
+ export interface OrderChannel {
236
+ ext_id?: string | null;
237
+ ext_name?: string | null;
238
+ type: ChannelType;
239
+ }
234
240
  export interface Order {
235
241
  address: Address | null;
236
242
  cart: OrderCart;
243
+ channel: OrderChannel;
237
244
  created_at: ISOStringOffset;
238
- customer: OrderCustomer;
239
- deposit: Money | null;
245
+ customer: OrderCustomer | null;
240
246
  delivery: OrderDelivery | null;
247
+ deposit: Money | null;
241
248
  details: OrderDetails | null;
242
- device_type: DeviceType;
249
+ device_type?: DeviceType;
243
250
  discounts: OrderDiscounts;
244
251
  estimated_at: ISOStringOffset | null;
245
- gift_cards: OrderGiftCards;
252
+ gift_cards?: OrderGiftCards;
246
253
  is_asap: boolean;
247
254
  is_editable: boolean;
248
255
  is_future: boolean;
249
256
  order_fulfillment: OrderFulfillment | null;
250
- order_id: number;
251
- order_uuid?: string;
257
+ order_id: number | null;
252
258
  order_prep: OrderPrep | null;
253
259
  order_type: OrderType;
254
- rating: OrderRating | null;
260
+ order_uuid?: string | null;
261
+ parent_receipt_uuid?: string | null;
262
+ pos_server_id?: number | null;
263
+ pos_terminal_id?: number | null;
264
+ rating?: OrderRating | null;
265
+ receipt_type?: ReceiptType;
255
266
  refunds?: OrderTenders;
256
267
  requested_at: RequestedAt;
257
- requested_time: TimeHuman;
268
+ requested_time?: TimeHuman;
258
269
  revenue_center: OrderRevenueCenter;
259
270
  service_type: ServiceType;
260
- shipment: OrderShipment | null;
261
271
  status: OrderStatus;
262
272
  surcharges: OrderSurcharges;
263
273
  taxes: OrderTaxes;
@@ -266,11 +276,6 @@ export interface Order {
266
276
  totals: OrderTotals;
267
277
  }
268
278
  export declare type Orders = Order[];
269
- export interface OrderChannel {
270
- ext_id?: string | null;
271
- ext_name?: string | null;
272
- type: ChannelType;
273
- }
274
279
  export interface DisplayItem {
275
280
  allergens: string[];
276
281
  cals: number | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/types",
3
- "version": "0.4.12",
3
+ "version": "0.4.13",
4
4
  "description": "A library of types for use with Open Tender applications that utilize our cloud-based Order API.",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",