@open-tender/types
Advanced tools
Comparing version 0.0.10 to 0.0.11
@@ -112,2 +112,3 @@ import { DateString, ISOString, Time24, TimeHuman, TimezonePython } from '../../datetimes'; | ||
excluded_times: ExcludedTimes | null; | ||
service_types?: Array<ServiceType>; | ||
} | ||
@@ -169,2 +170,5 @@ export interface CustomerRevenueCenter { | ||
settings?: CustomerRevenueCenterSettings; | ||
distance?: number; | ||
inZone?: boolean; | ||
priority?: number; | ||
} | ||
@@ -171,0 +175,0 @@ export declare type CustomerRevenueCenters = Array<CustomerRevenueCenter>; |
import { DateString, ISOStringOffset, TimezonePython } from '../datetimes'; | ||
import { CardType, ChannelType, Decimal, Money, NegativeMoney, OrderStatus, OrderType, ReceiptType, ServiceType, SurchargeType, Temperature, TenderStatus, TenderType } from '../global'; | ||
import { Address, Customer, CustomerAllergens, CustomerGiftCards } from './customer'; | ||
import { Address, Customer, CustomerAllergens, CustomerGiftCards, LoyaltyPoints } from './customer'; | ||
import { PrepStatus, TicketStatus } from './kds'; | ||
@@ -18,4 +18,6 @@ export interface OrderChannel { | ||
tax_exempt_id: string | null; | ||
device_type: string; | ||
} | ||
export interface OrderDiscount { | ||
discount_id?: number; | ||
amount: Money; | ||
@@ -56,2 +58,3 @@ description?: string | null; | ||
timezone?: TimezonePython; | ||
distance?: number; | ||
} | ||
@@ -180,3 +183,3 @@ export interface OrderItemDiscount { | ||
id: number; | ||
is_optinoal?: boolean; | ||
is_optional?: boolean; | ||
is_taxed: boolean; | ||
@@ -431,1 +434,21 @@ label?: string; | ||
} | ||
export interface UnpreparedOrderData { | ||
orderId: number; | ||
revenueCenterId: number; | ||
serviceType: ServiceType; | ||
requestedAt: string; | ||
cart: OrderCart; | ||
customer: Customer; | ||
address: Address | null; | ||
details: OrderDetails; | ||
surcharges: OrderSurcharge; | ||
discounts: OrderDiscounts; | ||
promoCodes: any; | ||
points: LoyaltyPoints | number; | ||
tip: number; | ||
tenders: OrderTenders; | ||
cartId: number | null; | ||
deviceType: string; | ||
prepType: string; | ||
table: number; | ||
} |
@@ -52,3 +52,4 @@ import { TimeString } from '../datetimes'; | ||
temporary_pickup_wait_time_id: number | null; | ||
distance?: number; | ||
} | ||
export declare type RevenueCenterType = 'POS' | 'OLO' | 'CATERING'; |
@@ -11,2 +11,3 @@ export interface IndexedError { | ||
params?: Record<string, string>; | ||
message?: string; | ||
} | ||
@@ -13,0 +14,0 @@ export declare type RequestError = RequestErrorAPI | null | undefined; |
@@ -112,2 +112,3 @@ import { DateString, ISOString, Time24, TimeHuman, TimezonePython } from '../../datetimes'; | ||
excluded_times: ExcludedTimes | null; | ||
service_types?: Array<ServiceType>; | ||
} | ||
@@ -169,2 +170,5 @@ export interface CustomerRevenueCenter { | ||
settings?: CustomerRevenueCenterSettings; | ||
distance?: number; | ||
inZone?: boolean; | ||
priority?: number; | ||
} | ||
@@ -171,0 +175,0 @@ export declare type CustomerRevenueCenters = Array<CustomerRevenueCenter>; |
import { DateString, ISOStringOffset, TimezonePython } from '../datetimes'; | ||
import { CardType, ChannelType, Decimal, Money, NegativeMoney, OrderStatus, OrderType, ReceiptType, ServiceType, SurchargeType, Temperature, TenderStatus, TenderType } from '../global'; | ||
import { Address, Customer, CustomerAllergens, CustomerGiftCards } from './customer'; | ||
import { Address, Customer, CustomerAllergens, CustomerGiftCards, LoyaltyPoints } from './customer'; | ||
import { PrepStatus, TicketStatus } from './kds'; | ||
@@ -18,4 +18,6 @@ export interface OrderChannel { | ||
tax_exempt_id: string | null; | ||
device_type: string; | ||
} | ||
export interface OrderDiscount { | ||
discount_id?: number; | ||
amount: Money; | ||
@@ -56,2 +58,3 @@ description?: string | null; | ||
timezone?: TimezonePython; | ||
distance?: number; | ||
} | ||
@@ -180,3 +183,3 @@ export interface OrderItemDiscount { | ||
id: number; | ||
is_optinoal?: boolean; | ||
is_optional?: boolean; | ||
is_taxed: boolean; | ||
@@ -431,1 +434,21 @@ label?: string; | ||
} | ||
export interface UnpreparedOrderData { | ||
orderId: number; | ||
revenueCenterId: number; | ||
serviceType: ServiceType; | ||
requestedAt: string; | ||
cart: OrderCart; | ||
customer: Customer; | ||
address: Address | null; | ||
details: OrderDetails; | ||
surcharges: OrderSurcharge; | ||
discounts: OrderDiscounts; | ||
promoCodes: any; | ||
points: LoyaltyPoints | number; | ||
tip: number; | ||
tenders: OrderTenders; | ||
cartId: number | null; | ||
deviceType: string; | ||
prepType: string; | ||
table: number; | ||
} |
@@ -52,3 +52,4 @@ import { TimeString } from '../datetimes'; | ||
temporary_pickup_wait_time_id: number | null; | ||
distance?: number; | ||
} | ||
export declare type RevenueCenterType = 'POS' | 'OLO' | 'CATERING'; |
@@ -11,2 +11,3 @@ export interface IndexedError { | ||
params?: Record<string, string>; | ||
message?: string; | ||
} | ||
@@ -13,0 +14,0 @@ export declare type RequestError = RequestErrorAPI | null | undefined; |
{ | ||
"name": "@open-tender/types", | ||
"version": "0.0.10", | ||
"version": "0.0.11", | ||
"description": "A library of types for use with Open Tender applications that utilize our cloud-based Order API.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/cjs/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
138273
4729