merchi_sdk_ts 1.0.17 → 1.0.19

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,6 @@
1
1
  export var DiscountType;
2
2
  (function (DiscountType) {
3
3
  DiscountType[DiscountType["VOLUMETRIC"] = 0] = "VOLUMETRIC";
4
+ DiscountType[DiscountType["CODE"] = 1] = "CODE";
5
+ DiscountType[DiscountType["FREE_SHIPPING"] = 2] = "FREE_SHIPPING";
4
6
  })(DiscountType || (DiscountType = {}));
@@ -35,10 +35,26 @@ var DiscountGroup = /** @class */ (function (_super) {
35
35
  DiscountGroup.property({ type: Date }),
36
36
  __metadata("design:type", Object)
37
37
  ], DiscountGroup.prototype, "archived", void 0);
38
+ __decorate([
39
+ DiscountGroup.property({ type: Date }),
40
+ __metadata("design:type", Object)
41
+ ], DiscountGroup.prototype, "created", void 0);
42
+ __decorate([
43
+ DiscountGroup.property(),
44
+ __metadata("design:type", Object)
45
+ ], DiscountGroup.prototype, "domain", void 0);
38
46
  __decorate([
39
47
  DiscountGroup.property(),
40
48
  __metadata("design:type", Number)
41
49
  ], DiscountGroup.prototype, "id", void 0);
50
+ __decorate([
51
+ DiscountGroup.property({ type: Date }),
52
+ __metadata("design:type", Object)
53
+ ], DiscountGroup.prototype, "dateStart", void 0);
54
+ __decorate([
55
+ DiscountGroup.property({ type: Date }),
56
+ __metadata("design:type", Object)
57
+ ], DiscountGroup.prototype, "dateEnd", void 0);
42
58
  __decorate([
43
59
  DiscountGroup.property(),
44
60
  __metadata("design:type", Number)
@@ -137,6 +137,10 @@ var VariationField = /** @class */ (function (_super) {
137
137
  VariationField.property(),
138
138
  __metadata("design:type", String)
139
139
  ], VariationField.prototype, "name", void 0);
140
+ __decorate([
141
+ VariationField.property(),
142
+ __metadata("design:type", String)
143
+ ], VariationField.prototype, "instructions", void 0);
140
144
  __decorate([
141
145
  VariationField.property({ type: String }),
142
146
  __metadata("design:type", Object)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "merchi_sdk_ts",
3
- "version": "1.0.17",
3
+ "version": "1.0.19",
4
4
  "main": "dist/index.js",
5
5
  "type": "module",
6
6
  "repository": "git@github.com:merchisdk/merchi_sdk_ts.git",
@@ -1,3 +1,5 @@
1
1
  export enum DiscountType {
2
2
  VOLUMETRIC = 0,
3
+ CODE = 1,
4
+ FREE_SHIPPING = 2,
3
5
  }
@@ -1,4 +1,5 @@
1
1
  import { Entity } from '../entity.js';
2
+ import { Domain } from './domain.js';
2
3
  import { Product } from './product.js';
3
4
  import { Discount } from './discount.js';
4
5
 
@@ -10,9 +11,21 @@ export class DiscountGroup extends Entity {
10
11
  @DiscountGroup.property({type: Date})
11
12
  public archived?: Date | null;
12
13
 
14
+ @DiscountGroup.property({type: Date})
15
+ public created?: Date | null;
16
+
17
+ @DiscountGroup.property()
18
+ public domain?: Domain | null;
19
+
13
20
  @DiscountGroup.property()
14
21
  public id?: number;
15
22
 
23
+ @DiscountGroup.property({type: Date})
24
+ public dateStart?: Date | null;
25
+
26
+ @DiscountGroup.property({type: Date})
27
+ public dateEnd?: Date | null;
28
+
16
29
  @DiscountGroup.property()
17
30
  public discountType?: number;
18
31
 
@@ -29,6 +29,9 @@ export class VariationField extends Entity {
29
29
  @VariationField.property()
30
30
  public name?: string;
31
31
 
32
+ @VariationField.property()
33
+ public instructions?: string;
34
+
32
35
  @VariationField.property({type: String})
33
36
  public placeholder?: string | null;
34
37