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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "merchi_sdk_js",
3
- "version": "0.0.12",
3
+ "version": "0.0.14",
4
4
  "type": "module",
5
5
  "main": "src/merchi.js",
6
6
  "module": "src/merchi.js",
@@ -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, 'product');
20
+ addPropertyTo(this, 'code');
21
+ addPropertyTo(this, 'domain', Domain);
22
+ addPropertyTo(this, 'product', Product);
15
23
  }