@open-tender/types 0.2.118 → 0.3.2

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.
@@ -174,15 +174,15 @@ export interface CheckoutTenderGiftCard {
174
174
  }
175
175
  export interface CheckoutTenderHouseAccount {
176
176
  amount: Money;
177
- approved_contact: boolean;
178
- domain: string | null;
177
+ approved_contact?: boolean;
178
+ domain?: string | null;
179
179
  house_account_id: number;
180
180
  name: string;
181
- order_type: OrderType | null;
182
- pin: string;
183
- revenue_centers: number[];
184
- service_type: ServiceType | null;
185
- tender_type: TenderType;
181
+ order_type?: OrderType | null;
182
+ pin?: string;
183
+ revenue_centers?: number[];
184
+ service_type?: ServiceType | null;
185
+ tender_type?: TenderType;
186
186
  }
187
187
  export interface CheckoutTenderApplePay {
188
188
  amount: Money;
@@ -30,6 +30,7 @@ export interface TPLS {
30
30
  first_name: string;
31
31
  gender: Gender | null;
32
32
  last_name: string;
33
+ membership_tier: string | null;
33
34
  phone: string;
34
35
  points: TPLSPoints | null;
35
36
  progress: TPLSProgress | null;
@@ -1,5 +1,5 @@
1
1
  import { DateString, ISOString, ISOStringOffset, RequestedAt, TimeHuman, TimezonePython } from '../datetimes';
2
- import { CardType, CardTypeName, ChannelType, DiscountAuthType, Gender, Images, Money, NegativeMoney, OrderStatus, OrderType, ServiceType, TenderType } from '../global';
2
+ import { CardType, CardTypeName, ChannelType, DeviceType, DiscountAuthType, Gender, Images, Money, NegativeMoney, OrderStatus, OrderType, ServiceType, 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';
@@ -228,6 +228,7 @@ export interface Order {
228
228
  customer: OrderCustomer;
229
229
  delivery: OrderDelivery | null;
230
230
  details: OrderDetails | null;
231
+ device_type: DeviceType;
231
232
  discounts: OrderDiscounts;
232
233
  estimated_at: ISOStringOffset | null;
233
234
  gift_cards: OrderGiftCards;
@@ -174,15 +174,15 @@ export interface CheckoutTenderGiftCard {
174
174
  }
175
175
  export interface CheckoutTenderHouseAccount {
176
176
  amount: Money;
177
- approved_contact: boolean;
178
- domain: string | null;
177
+ approved_contact?: boolean;
178
+ domain?: string | null;
179
179
  house_account_id: number;
180
180
  name: string;
181
- order_type: OrderType | null;
182
- pin: string;
183
- revenue_centers: number[];
184
- service_type: ServiceType | null;
185
- tender_type: TenderType;
181
+ order_type?: OrderType | null;
182
+ pin?: string;
183
+ revenue_centers?: number[];
184
+ service_type?: ServiceType | null;
185
+ tender_type?: TenderType;
186
186
  }
187
187
  export interface CheckoutTenderApplePay {
188
188
  amount: Money;
@@ -30,6 +30,7 @@ export interface TPLS {
30
30
  first_name: string;
31
31
  gender: Gender | null;
32
32
  last_name: string;
33
+ membership_tier: string | null;
33
34
  phone: string;
34
35
  points: TPLSPoints | null;
35
36
  progress: TPLSProgress | null;
@@ -1,5 +1,5 @@
1
1
  import { DateString, ISOString, ISOStringOffset, RequestedAt, TimeHuman, TimezonePython } from '../datetimes';
2
- import { CardType, CardTypeName, ChannelType, DiscountAuthType, Gender, Images, Money, NegativeMoney, OrderStatus, OrderType, ServiceType, TenderType } from '../global';
2
+ import { CardType, CardTypeName, ChannelType, DeviceType, DiscountAuthType, Gender, Images, Money, NegativeMoney, OrderStatus, OrderType, ServiceType, 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';
@@ -228,6 +228,7 @@ export interface Order {
228
228
  customer: OrderCustomer;
229
229
  delivery: OrderDelivery | null;
230
230
  details: OrderDetails | null;
231
+ device_type: DeviceType;
231
232
  discounts: OrderDiscounts;
232
233
  estimated_at: ISOStringOffset | null;
233
234
  gift_cards: OrderGiftCards;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/types",
3
- "version": "0.2.118",
3
+ "version": "0.3.2",
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",