@open-tender/types 0.4.24 → 0.4.26

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.
@@ -5,21 +5,31 @@ export interface CustomerIdentifier {
5
5
  qr_code?: string;
6
6
  }
7
7
  export interface CustomerIdentifyDiscount {
8
- customer_loyalty_id: number;
9
- loyalty_program_id: number;
10
- order_type: OrderType;
11
8
  amount: Money;
12
- name: string;
9
+ before_surcharge: boolean;
10
+ customer_loyalty_id: number;
11
+ description: string;
13
12
  discount_id: number;
14
13
  discount_type: DiscountType;
15
- description: string;
16
- before_surcharge: boolean;
17
- is_taxed: boolean;
18
- is_promo_code: boolean;
19
14
  is_auto: boolean;
20
15
  is_loyalty: boolean;
16
+ is_promo_code: boolean;
17
+ is_taxed: boolean;
18
+ loyalty_program_id: number;
19
+ name: string;
20
+ order_type: OrderType;
21
21
  }
22
22
  export declare type CustomerIdentifyDiscounts = CustomerIdentifyDiscount[];
23
+ export interface CustomerIdentifyReward {
24
+ amount: Money;
25
+ description: string;
26
+ discount_id: number;
27
+ discount_type: DiscountType;
28
+ name: string;
29
+ order_type: OrderType;
30
+ title: string;
31
+ }
32
+ export declare type CustomerIdentifyRewards = CustomerIdentifyReward[];
23
33
  export interface CustomerIdentifyCustomer {
24
34
  customer_id: number;
25
35
  email: string;
@@ -29,7 +39,8 @@ export interface CustomerIdentifyCustomer {
29
39
  }
30
40
  export interface CustomerIdentify {
31
41
  customer: CustomerIdentifyCustomer;
42
+ discount: any;
32
43
  discounts: CustomerIdentifyDiscounts;
33
44
  points: any;
34
- discount: any;
45
+ rewards: CustomerIdentifyRewards;
35
46
  }
@@ -5,7 +5,7 @@ export interface Modal {
5
5
  }
6
6
  export declare type Decimal = `${number}.${number}`;
7
7
  export declare type Money = `${number}.${number}`;
8
- export declare type NegativeMoney = `-${number}.${number}`;
8
+ export declare type NegativeMoney = `-${number}.${number}` | '0.00';
9
9
  export declare type Percentage = `${number}.${number}%`;
10
10
  export declare type IpAddress = `${number}.${number}.${number}.${number}`;
11
11
  export declare type Url = `https://${string}`;
@@ -5,21 +5,31 @@ export interface CustomerIdentifier {
5
5
  qr_code?: string;
6
6
  }
7
7
  export interface CustomerIdentifyDiscount {
8
- customer_loyalty_id: number;
9
- loyalty_program_id: number;
10
- order_type: OrderType;
11
8
  amount: Money;
12
- name: string;
9
+ before_surcharge: boolean;
10
+ customer_loyalty_id: number;
11
+ description: string;
13
12
  discount_id: number;
14
13
  discount_type: DiscountType;
15
- description: string;
16
- before_surcharge: boolean;
17
- is_taxed: boolean;
18
- is_promo_code: boolean;
19
14
  is_auto: boolean;
20
15
  is_loyalty: boolean;
16
+ is_promo_code: boolean;
17
+ is_taxed: boolean;
18
+ loyalty_program_id: number;
19
+ name: string;
20
+ order_type: OrderType;
21
21
  }
22
22
  export declare type CustomerIdentifyDiscounts = CustomerIdentifyDiscount[];
23
+ export interface CustomerIdentifyReward {
24
+ amount: Money;
25
+ description: string;
26
+ discount_id: number;
27
+ discount_type: DiscountType;
28
+ name: string;
29
+ order_type: OrderType;
30
+ title: string;
31
+ }
32
+ export declare type CustomerIdentifyRewards = CustomerIdentifyReward[];
23
33
  export interface CustomerIdentifyCustomer {
24
34
  customer_id: number;
25
35
  email: string;
@@ -29,7 +39,8 @@ export interface CustomerIdentifyCustomer {
29
39
  }
30
40
  export interface CustomerIdentify {
31
41
  customer: CustomerIdentifyCustomer;
42
+ discount: any;
32
43
  discounts: CustomerIdentifyDiscounts;
33
44
  points: any;
34
- discount: any;
45
+ rewards: CustomerIdentifyRewards;
35
46
  }
@@ -5,7 +5,7 @@ export interface Modal {
5
5
  }
6
6
  export declare type Decimal = `${number}.${number}`;
7
7
  export declare type Money = `${number}.${number}`;
8
- export declare type NegativeMoney = `-${number}.${number}`;
8
+ export declare type NegativeMoney = `-${number}.${number}` | '0.00';
9
9
  export declare type Percentage = `${number}.${number}%`;
10
10
  export declare type IpAddress = `${number}.${number}.${number}.${number}`;
11
11
  export declare type Url = `https://${string}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/types",
3
- "version": "0.4.24",
3
+ "version": "0.4.26",
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",