@open-tender/types 0.0.28 → 0.0.30
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,4 +1,4 @@
|
|
|
1
|
-
import { DateString, ISOStringOffset, TimezonePython } from '../datetimes';
|
|
1
|
+
import { DateString, ISOString, ISOStringOffset, TimezonePython } from '../datetimes';
|
|
2
2
|
import { CardType, ChannelType, Decimal, Money, NegativeMoney, OrderStatus, OrderType, ReceiptType, ServiceType, SurchargeType, Temperature, TenderStatus, TenderType } from '../global';
|
|
3
3
|
import { Address, Customer, CustomerAllergens, CustomerGiftCards, LoyaltyPoints } from './customer';
|
|
4
4
|
import { PrepStatus, TicketStatus } from './kds';
|
|
@@ -220,6 +220,7 @@ export interface OrderTenderCredit {
|
|
|
220
220
|
profileid: string;
|
|
221
221
|
retref: string;
|
|
222
222
|
token: string;
|
|
223
|
+
card_type_name?: string;
|
|
223
224
|
}
|
|
224
225
|
export interface OrderTenderGiftCard {
|
|
225
226
|
gift_card_id: number;
|
|
@@ -308,7 +309,7 @@ export interface Order {
|
|
|
308
309
|
estimated_at?: ISOStringOffset | null;
|
|
309
310
|
done_at: ISOStringOffset | null;
|
|
310
311
|
expected_at: ISOStringOffset | null;
|
|
311
|
-
fire_at: ISOStringOffset | null;
|
|
312
|
+
fire_at: ISOStringOffset | ISOString | null;
|
|
312
313
|
fulfillment?: OrderFulfillment | null;
|
|
313
314
|
order_fulfillment?: OrderFulfillment | null;
|
|
314
315
|
gift_cards: CustomerGiftCards;
|
|
@@ -327,7 +328,7 @@ export interface Order {
|
|
|
327
328
|
pos_server_id?: number;
|
|
328
329
|
pos_terminal_id?: number;
|
|
329
330
|
prep_status: PrepStatus;
|
|
330
|
-
ready_at: ISOStringOffset | null;
|
|
331
|
+
ready_at: ISOStringOffset | ISOString | null;
|
|
331
332
|
receipt_type: ReceiptType;
|
|
332
333
|
refunds?: Array<OrderTender>;
|
|
333
334
|
requested_at: ISOStringOffset;
|
|
@@ -374,6 +375,7 @@ export interface OrderCounts {
|
|
|
374
375
|
current: Record<string, number> | null;
|
|
375
376
|
future: Record<string, number> | null;
|
|
376
377
|
qa: Record<string, number> | null;
|
|
378
|
+
Orders: number;
|
|
377
379
|
}
|
|
378
380
|
export interface OrdersAndCounts {
|
|
379
381
|
orders: OrdersKds;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DateString, ISOStringOffset, TimezonePython } from '../datetimes';
|
|
1
|
+
import { DateString, ISOString, ISOStringOffset, TimezonePython } from '../datetimes';
|
|
2
2
|
import { CardType, ChannelType, Decimal, Money, NegativeMoney, OrderStatus, OrderType, ReceiptType, ServiceType, SurchargeType, Temperature, TenderStatus, TenderType } from '../global';
|
|
3
3
|
import { Address, Customer, CustomerAllergens, CustomerGiftCards, LoyaltyPoints } from './customer';
|
|
4
4
|
import { PrepStatus, TicketStatus } from './kds';
|
|
@@ -220,6 +220,7 @@ export interface OrderTenderCredit {
|
|
|
220
220
|
profileid: string;
|
|
221
221
|
retref: string;
|
|
222
222
|
token: string;
|
|
223
|
+
card_type_name?: string;
|
|
223
224
|
}
|
|
224
225
|
export interface OrderTenderGiftCard {
|
|
225
226
|
gift_card_id: number;
|
|
@@ -308,7 +309,7 @@ export interface Order {
|
|
|
308
309
|
estimated_at?: ISOStringOffset | null;
|
|
309
310
|
done_at: ISOStringOffset | null;
|
|
310
311
|
expected_at: ISOStringOffset | null;
|
|
311
|
-
fire_at: ISOStringOffset | null;
|
|
312
|
+
fire_at: ISOStringOffset | ISOString | null;
|
|
312
313
|
fulfillment?: OrderFulfillment | null;
|
|
313
314
|
order_fulfillment?: OrderFulfillment | null;
|
|
314
315
|
gift_cards: CustomerGiftCards;
|
|
@@ -327,7 +328,7 @@ export interface Order {
|
|
|
327
328
|
pos_server_id?: number;
|
|
328
329
|
pos_terminal_id?: number;
|
|
329
330
|
prep_status: PrepStatus;
|
|
330
|
-
ready_at: ISOStringOffset | null;
|
|
331
|
+
ready_at: ISOStringOffset | ISOString | null;
|
|
331
332
|
receipt_type: ReceiptType;
|
|
332
333
|
refunds?: Array<OrderTender>;
|
|
333
334
|
requested_at: ISOStringOffset;
|
|
@@ -374,6 +375,7 @@ export interface OrderCounts {
|
|
|
374
375
|
current: Record<string, number> | null;
|
|
375
376
|
future: Record<string, number> | null;
|
|
376
377
|
qa: Record<string, number> | null;
|
|
378
|
+
Orders: number;
|
|
377
379
|
}
|
|
378
380
|
export interface OrdersAndCounts {
|
|
379
381
|
orders: OrdersKds;
|
package/package.json
CHANGED