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.
- package/dist/constants/discount_types.js +2 -0
- package/dist/entities/discount_group.js +16 -0
- package/dist/entities/variation_field.js +4 -0
- package/package.json +1 -1
- package/src/constants/discount_types.ts +2 -0
- package/src/entities/discount_group.ts +13 -0
- package/src/entities/variation_field.ts +3 -0
|
@@ -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,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
|
|