@open-tender/types 0.4.11 → 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;
@@ -220,39 +221,53 @@ export interface OrderTotals {
220
221
  amount_due?: Money;
221
222
  discount: NegativeMoney;
222
223
  gift_card: Money;
224
+ refund?: NegativeMoney;
225
+ refunds_total?: NegativeMoney;
223
226
  shipping: Money;
224
227
  subtotal: Money;
225
228
  surcharge: Money;
226
229
  tax: Money;
230
+ tenders_net?: Money;
231
+ tenders_total?: Money;
227
232
  tip: Money;
228
233
  total: Money;
229
234
  }
235
+ export interface OrderChannel {
236
+ ext_id?: string | null;
237
+ ext_name?: string | null;
238
+ type: ChannelType;
239
+ }
230
240
  export interface Order {
231
241
  address: Address | null;
232
242
  cart: OrderCart;
243
+ channel: OrderChannel;
233
244
  created_at: ISOStringOffset;
234
- customer: OrderCustomer;
235
- deposit: Money | null;
245
+ customer: OrderCustomer | null;
236
246
  delivery: OrderDelivery | null;
247
+ deposit: Money | null;
237
248
  details: OrderDetails | null;
238
- device_type: DeviceType;
249
+ device_type?: DeviceType;
239
250
  discounts: OrderDiscounts;
240
251
  estimated_at: ISOStringOffset | null;
241
- gift_cards: OrderGiftCards;
252
+ gift_cards?: OrderGiftCards;
242
253
  is_asap: boolean;
243
254
  is_editable: boolean;
244
255
  is_future: boolean;
245
256
  order_fulfillment: OrderFulfillment | null;
246
- order_id: number;
257
+ order_id: number | null;
247
258
  order_prep: OrderPrep | null;
248
259
  order_type: OrderType;
249
- 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;
250
266
  refunds?: OrderTenders;
251
267
  requested_at: RequestedAt;
252
- requested_time: TimeHuman;
268
+ requested_time?: TimeHuman;
253
269
  revenue_center: OrderRevenueCenter;
254
270
  service_type: ServiceType;
255
- shipment: OrderShipment | null;
256
271
  status: OrderStatus;
257
272
  surcharges: OrderSurcharges;
258
273
  taxes: OrderTaxes;
@@ -261,11 +276,6 @@ export interface Order {
261
276
  totals: OrderTotals;
262
277
  }
263
278
  export declare type Orders = Order[];
264
- export interface OrderChannel {
265
- ext_id?: string | null;
266
- ext_name?: string | null;
267
- type: ChannelType;
268
- }
269
279
  export interface DisplayItem {
270
280
  allergens: string[];
271
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;
@@ -220,39 +221,53 @@ export interface OrderTotals {
220
221
  amount_due?: Money;
221
222
  discount: NegativeMoney;
222
223
  gift_card: Money;
224
+ refund?: NegativeMoney;
225
+ refunds_total?: NegativeMoney;
223
226
  shipping: Money;
224
227
  subtotal: Money;
225
228
  surcharge: Money;
226
229
  tax: Money;
230
+ tenders_net?: Money;
231
+ tenders_total?: Money;
227
232
  tip: Money;
228
233
  total: Money;
229
234
  }
235
+ export interface OrderChannel {
236
+ ext_id?: string | null;
237
+ ext_name?: string | null;
238
+ type: ChannelType;
239
+ }
230
240
  export interface Order {
231
241
  address: Address | null;
232
242
  cart: OrderCart;
243
+ channel: OrderChannel;
233
244
  created_at: ISOStringOffset;
234
- customer: OrderCustomer;
235
- deposit: Money | null;
245
+ customer: OrderCustomer | null;
236
246
  delivery: OrderDelivery | null;
247
+ deposit: Money | null;
237
248
  details: OrderDetails | null;
238
- device_type: DeviceType;
249
+ device_type?: DeviceType;
239
250
  discounts: OrderDiscounts;
240
251
  estimated_at: ISOStringOffset | null;
241
- gift_cards: OrderGiftCards;
252
+ gift_cards?: OrderGiftCards;
242
253
  is_asap: boolean;
243
254
  is_editable: boolean;
244
255
  is_future: boolean;
245
256
  order_fulfillment: OrderFulfillment | null;
246
- order_id: number;
257
+ order_id: number | null;
247
258
  order_prep: OrderPrep | null;
248
259
  order_type: OrderType;
249
- 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;
250
266
  refunds?: OrderTenders;
251
267
  requested_at: RequestedAt;
252
- requested_time: TimeHuman;
268
+ requested_time?: TimeHuman;
253
269
  revenue_center: OrderRevenueCenter;
254
270
  service_type: ServiceType;
255
- shipment: OrderShipment | null;
256
271
  status: OrderStatus;
257
272
  surcharges: OrderSurcharges;
258
273
  taxes: OrderTaxes;
@@ -261,11 +276,6 @@ export interface Order {
261
276
  totals: OrderTotals;
262
277
  }
263
278
  export declare type Orders = Order[];
264
- export interface OrderChannel {
265
- ext_id?: string | null;
266
- ext_name?: string | null;
267
- type: ChannelType;
268
- }
269
279
  export interface DisplayItem {
270
280
  allergens: string[];
271
281
  cals: number | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/types",
3
- "version": "0.4.11",
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",