merchi_sdk_js 0.0.11 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/src/discount_group.js +8 -1
- package/src/variation_field.js +1 -0
package/package.json
CHANGED
package/src/discount_group.js
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
import { generateUUID } from './uuid.js';
|
2
2
|
import { addPropertyTo } from './model.js';
|
3
|
+
import { Domain } from './domain.js';
|
4
|
+
import { Product } from './product.js';
|
3
5
|
|
4
6
|
|
5
7
|
export function DiscountGroup() {
|
@@ -8,8 +10,13 @@ export function DiscountGroup() {
|
|
8
10
|
this.temporaryId = generateUUID();
|
9
11
|
|
10
12
|
addPropertyTo(this, 'id');
|
13
|
+
addPropertyTo(this, 'created');
|
14
|
+
addPropertyTo(this, 'dateStart');
|
15
|
+
addPropertyTo(this, 'dateEnd');
|
16
|
+
addPropertyTo(this, 'created');
|
11
17
|
addPropertyTo(this, 'discountType');
|
12
18
|
addPropertyTo(this, 'discounts');
|
13
19
|
addPropertyTo(this, 'name');
|
14
|
-
addPropertyTo(this, '
|
20
|
+
addPropertyTo(this, 'domain', Domain);
|
21
|
+
addPropertyTo(this, 'product', Product);
|
15
22
|
}
|
package/src/variation_field.js
CHANGED
@@ -15,6 +15,7 @@ export function VariationField() {
|
|
15
15
|
addPropertyTo(this, 'id');
|
16
16
|
addPropertyTo(this, 'fieldType');
|
17
17
|
addPropertyTo(this, 'name');
|
18
|
+
addPropertyTo(this, 'instructions');
|
18
19
|
addPropertyTo(this, 'position');
|
19
20
|
addPropertyTo(this, 'placeholder');
|
20
21
|
addPropertyTo(this, 'defaultValue');
|