@open-tender/types 0.4.31 → 0.4.33

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.
@@ -63,7 +63,7 @@ export interface CheckoutConfigCurbside {
63
63
  export interface CheckoutConfigLoyalty {
64
64
  balance: Money;
65
65
  name: string;
66
- per: 5;
66
+ per: number;
67
67
  remaining: Money;
68
68
  }
69
69
  export interface CheckoutConfigSurcharge extends OrderSurcharge {
@@ -1,9 +1,12 @@
1
1
  import { DateString } from '../../datetimes';
2
2
  import { Gender, OrderNotifications } from '../../global';
3
3
  import { Allergens } from '../allergens';
4
+ import { Discounts } from '../discounts';
4
5
  import { Favorites } from '../favorite';
6
+ import { Orders } from '../order';
5
7
  import { CustomerNotificationPrefs, NotificationChannel } from './communicationPreferences';
6
8
  import { GiftCards } from './giftCards';
9
+ import { LoyaltyPrograms } from './loyalty';
7
10
  export interface CustomerCreate {
8
11
  birth_date?: DateString | null;
9
12
  communications?: NotificationChannel[];
@@ -37,3 +40,14 @@ export interface Brand {
37
40
  name: string;
38
41
  }
39
42
  export declare type Brands = Brand[];
43
+ declare type CustomerEndpoint = 'ACCOUNT' | 'GIFT_CARDS' | 'FAVORITES' | 'LOYALTY' | 'REWARDS' | 'ORDERS';
44
+ export declare type CustomerEndpoints = CustomerEndpoint[];
45
+ export interface CustomerEntities {
46
+ ACCOUNT?: Customer;
47
+ GIFT_CARDS?: GiftCards;
48
+ FAVORITES?: Favorites;
49
+ LOYALTY?: LoyaltyPrograms;
50
+ REWARDS?: Discounts;
51
+ ORDERS?: Orders;
52
+ }
53
+ export {};
@@ -42,8 +42,10 @@ export interface Discount {
42
42
  min_order_size: Money | null;
43
43
  name: string;
44
44
  order_type: OrderType | null;
45
+ position?: number;
45
46
  per_order: number | null;
46
47
  required_items: DiscountItems;
48
+ requires_approval?: boolean;
47
49
  revenue_centers: DiscountRevenueCenters;
48
50
  service_type: ServiceType | null;
49
51
  short_description: string;
@@ -63,7 +63,7 @@ export interface CheckoutConfigCurbside {
63
63
  export interface CheckoutConfigLoyalty {
64
64
  balance: Money;
65
65
  name: string;
66
- per: 5;
66
+ per: number;
67
67
  remaining: Money;
68
68
  }
69
69
  export interface CheckoutConfigSurcharge extends OrderSurcharge {
@@ -1,9 +1,12 @@
1
1
  import { DateString } from '../../datetimes';
2
2
  import { Gender, OrderNotifications } from '../../global';
3
3
  import { Allergens } from '../allergens';
4
+ import { Discounts } from '../discounts';
4
5
  import { Favorites } from '../favorite';
6
+ import { Orders } from '../order';
5
7
  import { CustomerNotificationPrefs, NotificationChannel } from './communicationPreferences';
6
8
  import { GiftCards } from './giftCards';
9
+ import { LoyaltyPrograms } from './loyalty';
7
10
  export interface CustomerCreate {
8
11
  birth_date?: DateString | null;
9
12
  communications?: NotificationChannel[];
@@ -37,3 +40,14 @@ export interface Brand {
37
40
  name: string;
38
41
  }
39
42
  export declare type Brands = Brand[];
43
+ declare type CustomerEndpoint = 'ACCOUNT' | 'GIFT_CARDS' | 'FAVORITES' | 'LOYALTY' | 'REWARDS' | 'ORDERS';
44
+ export declare type CustomerEndpoints = CustomerEndpoint[];
45
+ export interface CustomerEntities {
46
+ ACCOUNT?: Customer;
47
+ GIFT_CARDS?: GiftCards;
48
+ FAVORITES?: Favorites;
49
+ LOYALTY?: LoyaltyPrograms;
50
+ REWARDS?: Discounts;
51
+ ORDERS?: Orders;
52
+ }
53
+ export {};
@@ -42,8 +42,10 @@ export interface Discount {
42
42
  min_order_size: Money | null;
43
43
  name: string;
44
44
  order_type: OrderType | null;
45
+ position?: number;
45
46
  per_order: number | null;
46
47
  required_items: DiscountItems;
48
+ requires_approval?: boolean;
47
49
  revenue_centers: DiscountRevenueCenters;
48
50
  service_type: ServiceType | null;
49
51
  short_description: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/types",
3
- "version": "0.4.31",
3
+ "version": "0.4.33",
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",