merchi_sdk_ts 1.0.21 → 1.0.22

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.
@@ -59,6 +59,18 @@ var Discount = /** @class */ (function (_super) {
59
59
  Discount.property(),
60
60
  __metadata("design:type", Number)
61
61
  ], Discount.prototype, "amount", void 0);
62
+ __decorate([
63
+ Discount.property(),
64
+ __metadata("design:type", Number)
65
+ ], Discount.prototype, "usageLimit", void 0);
66
+ __decorate([
67
+ Discount.property(),
68
+ __metadata("design:type", Boolean)
69
+ ], Discount.prototype, "isPercentage", void 0);
70
+ __decorate([
71
+ Discount.property(),
72
+ __metadata("design:type", String)
73
+ ], Discount.prototype, "code", void 0);
62
74
  __decorate([
63
75
  Discount.property({ type: DiscountGroup }),
64
76
  __metadata("design:type", Object)
@@ -59,10 +59,6 @@ var DiscountGroup = /** @class */ (function (_super) {
59
59
  DiscountGroup.property({ arrayType: 'Discount' }),
60
60
  __metadata("design:type", Array)
61
61
  ], DiscountGroup.prototype, "discounts", void 0);
62
- __decorate([
63
- DiscountGroup.property(),
64
- __metadata("design:type", String)
65
- ], DiscountGroup.prototype, "code", void 0);
66
62
  __decorate([
67
63
  DiscountGroup.property(),
68
64
  __metadata("design:type", String)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "merchi_sdk_ts",
3
- "version": "1.0.21",
3
+ "version": "1.0.22",
4
4
  "main": "dist/index.js",
5
5
  "type": "module",
6
6
  "repository": "git@github.com:merchisdk/merchi_sdk_ts.git",
@@ -18,6 +18,15 @@ export class Discount extends Entity {
18
18
  @Discount.property()
19
19
  public amount?: number;
20
20
 
21
+ @Discount.property()
22
+ public usageLimit?: number;
23
+
24
+ @Discount.property()
25
+ public isPercentage?: boolean;
26
+
27
+ @Discount.property()
28
+ public code?: string;
29
+
21
30
  @Discount.property({type: DiscountGroup})
22
31
  public discountGroup?: DiscountGroup | null;
23
32
 
@@ -29,9 +29,6 @@ export class DiscountGroup extends Entity {
29
29
  @DiscountGroup.property({arrayType: 'Discount'})
30
30
  public discounts?: Discount[];
31
31
 
32
- @DiscountGroup.property()
33
- public code?: string;
34
-
35
32
  @DiscountGroup.property()
36
33
  public name?: string;
37
34