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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "merchi_sdk_js",
3
- "version": "0.0.11",
3
+ "version": "0.0.13",
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,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, 'product');
20
+ addPropertyTo(this, 'domain', Domain);
21
+ addPropertyTo(this, 'product', Product);
15
22
  }
@@ -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');