merchi_sdk_js 0.0.12 → 0.0.14
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 +9 -1
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,14 @@ 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, 'code');
|
21
|
+
addPropertyTo(this, 'domain', Domain);
|
22
|
+
addPropertyTo(this, 'product', Product);
|
15
23
|
}
|