merchi_sdk_js 0.0.28 → 0.0.29

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.28",
3
+ "version": "0.0.29",
4
4
  "type": "module",
5
5
  "main": "src/merchi.js",
6
6
  "module": "src/merchi.js",
@@ -3,6 +3,7 @@ import { fieldTypes } from './field_types.js';
3
3
  import { addPropertyTo } from './model.js';
4
4
  import { isUndefinedOrNull, clone } from './helpers.js';
5
5
  import { DiscountGroup } from './discount_group.js';
6
+ import { InventoryGroup } from './inventory_group.js';
6
7
  import { VariationFieldsOption } from './variation_fields_option.js';
7
8
  import { Variation } from './variation.js';
8
9
  import { VariationOption } from './variation_option.js';
@@ -21,6 +22,7 @@ export function VariationField() {
21
22
  addPropertyTo(this, 'defaultValue');
22
23
  addPropertyTo(this, 'required');
23
24
  addPropertyTo(this, 'independent');
25
+ addPropertyTo(this, 'inventoryGroup', InventoryGroup);
24
26
  addPropertyTo(this, 'variationCost');
25
27
  addPropertyTo(this, 'variationCostDiscountGroup', DiscountGroup);
26
28
  addPropertyTo(this, 'variationUnitCost');