@open-tender/types 0.3.10 → 0.3.11

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 { OrderType } from '../../global';
1
+ import { Money, OrderType } from '../../global';
2
2
  export interface LoyaltyCredit {
3
3
  current: string;
4
4
  total: string;
@@ -27,11 +27,6 @@ export interface LoyaltySpend {
27
27
  total: string;
28
28
  type: string;
29
29
  }
30
- export interface LoyaltyStatus {
31
- days: number;
32
- progress: string;
33
- tier: any;
34
- }
35
30
  export interface LoyaltyThreshold {
36
31
  name: string;
37
32
  points: number;
@@ -53,12 +48,17 @@ export interface LoyaltyDiscount {
53
48
  }
54
49
  export interface LoyaltyTier {
55
50
  description: string;
51
+ discount: LoyaltyDiscount | null;
56
52
  hex_code: string;
53
+ is_current_tier: true;
57
54
  name: string;
58
55
  threshold: string;
59
- discount: LoyaltyDiscount;
60
- points: any;
61
- value: any;
56
+ tier_no: number;
57
+ }
58
+ export interface LoyaltyStatus {
59
+ days: number;
60
+ progress: Money;
61
+ tier: LoyaltyTier;
62
62
  }
63
63
  export declare type LoyaltyTiers = LoyaltyTier[];
64
64
  export interface LoyaltyProgram {
@@ -1,4 +1,4 @@
1
- import { OrderType } from '../../global';
1
+ import { Money, OrderType } from '../../global';
2
2
  export interface LoyaltyCredit {
3
3
  current: string;
4
4
  total: string;
@@ -27,11 +27,6 @@ export interface LoyaltySpend {
27
27
  total: string;
28
28
  type: string;
29
29
  }
30
- export interface LoyaltyStatus {
31
- days: number;
32
- progress: string;
33
- tier: any;
34
- }
35
30
  export interface LoyaltyThreshold {
36
31
  name: string;
37
32
  points: number;
@@ -53,12 +48,17 @@ export interface LoyaltyDiscount {
53
48
  }
54
49
  export interface LoyaltyTier {
55
50
  description: string;
51
+ discount: LoyaltyDiscount | null;
56
52
  hex_code: string;
53
+ is_current_tier: true;
57
54
  name: string;
58
55
  threshold: string;
59
- discount: LoyaltyDiscount;
60
- points: any;
61
- value: any;
56
+ tier_no: number;
57
+ }
58
+ export interface LoyaltyStatus {
59
+ days: number;
60
+ progress: Money;
61
+ tier: LoyaltyTier;
62
62
  }
63
63
  export declare type LoyaltyTiers = LoyaltyTier[];
64
64
  export interface LoyaltyProgram {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/types",
3
- "version": "0.3.10",
3
+ "version": "0.3.11",
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",