@brighterly/lib-core-types 0.8.2 → 0.8.4

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.
@@ -9,7 +9,7 @@ export declare enum OrderRefundReason {
9
9
  OTHER = "OTHER"
10
10
  }
11
11
  export declare enum DiscountMethod {
12
- CANCELLATIONS = "CANCELLATIONS",
12
+ CANCELLATION = "CANCELLATION",
13
13
  PROMO_CODE = "PROMO_CODE",
14
14
  CUSTOMER_OFFER = "CUSTOMER_OFFER",
15
15
  CREDITS = "CREDITS",
@@ -11,7 +11,7 @@ export var OrderRefundReason;
11
11
  })(OrderRefundReason || (OrderRefundReason = {}));
12
12
  export var DiscountMethod;
13
13
  (function (DiscountMethod) {
14
- DiscountMethod["CANCELLATIONS"] = "CANCELLATIONS";
14
+ DiscountMethod["CANCELLATION"] = "CANCELLATION";
15
15
  DiscountMethod["PROMO_CODE"] = "PROMO_CODE";
16
16
  DiscountMethod["CUSTOMER_OFFER"] = "CUSTOMER_OFFER";
17
17
  DiscountMethod["CREDITS"] = "CREDITS";
@@ -1,3 +1,4 @@
1
+ import type { Offer } from '../plans/interfaces.ts';
1
2
  import type { Subscription } from '../subscription/interfaces';
2
3
  import type { DisciplineInfo } from '../discipline/interfaces';
3
4
  import type { DiscountMethod, OrderSource, OrderStatus, OrderType, ProductCategory, ProductStatus } from './enums';
@@ -30,6 +31,7 @@ export interface Order {
30
31
  items: OrderItem[];
31
32
  subscription: Subscription | null;
32
33
  invoice_url: string | null;
34
+ customer_offer?: Offer | null;
33
35
  }
34
36
  export interface Lessons {
35
37
  math: number;
@@ -37,7 +37,7 @@ export declare enum PauseReason {
37
37
  UnusedLessons = "UNUSED_LESSONS"
38
38
  }
39
39
  export declare enum DiscountMethod {
40
- Cancellations = "CANCELLATIONS",
40
+ Cancellation = "CANCELLATION",
41
41
  PromoCode = "PROMO_CODE",
42
42
  CustomerOffer = "CUSTOMER_OFFER",
43
43
  Credits = "CREDITS",
@@ -43,7 +43,7 @@ export var PauseReason;
43
43
  })(PauseReason || (PauseReason = {}));
44
44
  export var DiscountMethod;
45
45
  (function (DiscountMethod) {
46
- DiscountMethod["Cancellations"] = "CANCELLATIONS";
46
+ DiscountMethod["Cancellation"] = "CANCELLATION";
47
47
  DiscountMethod["PromoCode"] = "PROMO_CODE";
48
48
  DiscountMethod["CustomerOffer"] = "CUSTOMER_OFFER";
49
49
  DiscountMethod["Credits"] = "CREDITS";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brighterly/lib-core-types",
3
- "version": "0.8.2",
3
+ "version": "0.8.4",
4
4
  "description": "Official Brighterly lib-core-types",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",