merchi_sdk_js 0.0.28 → 0.0.30

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.30",
4
4
  "type": "module",
5
5
  "main": "src/merchi.js",
6
6
  "module": "src/merchi.js",
package/src/product.js CHANGED
@@ -13,6 +13,7 @@ import { DomainTag } from './domain_tag.js';
13
13
  import { DiscountGroup } from './discount_group.js';
14
14
  import { Domain } from './domain.js';
15
15
  import { Inventory } from './inventory.js';
16
+ import { InventoryGroup } from './inventory_group.js';
16
17
  import { ShipmentMethod } from './shipment_method.js';
17
18
  import { VariationField } from './variation_field.js';
18
19
  import { VariationsGroup } from './variations_group.js';
@@ -76,6 +77,7 @@ export function Product() {
76
77
  addPropertyTo(this, 'suppliedByDomains', SupplyDomain);
77
78
  addPropertyTo(this, 'autoAssignProductionOnAction');
78
79
  addPropertyTo(this, 'supplyDomains', SupplyDomain);
80
+ addPropertyTo(this, 'inventoryGroup', InventoryGroup);
79
81
  addPropertyTo(this, 'images', MerchiFile);
80
82
  addPropertyTo(this, 'featureImage', MerchiFile);
81
83
  addPropertyTo(this, 'publicFiles', MerchiFile);
@@ -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');