merchi_sdk_js 0.0.11-s → 0.0.12

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-s",
3
+ "version": "0.0.12",
4
4
  "type": "module",
5
5
  "main": "src/merchi.js",
6
6
  "module": "src/merchi.js",
@@ -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');
@@ -3,7 +3,6 @@ import { addPropertyTo } from './model.js';
3
3
  import { DiscountGroup } from './discount_group.js';
4
4
  import { MerchiFile } from './merchi_file.js';
5
5
  import { VariationField } from './variation_field.js';
6
- import { DraftTemplate } from './draft_template.js';
7
6
 
8
7
  export function VariationFieldsOption() {
9
8
  this.resource = '/variationFieldOptions';
@@ -21,9 +20,7 @@ export function VariationFieldsOption() {
21
20
  addPropertyTo(this, 'variationUnitCost');
22
21
  addPropertyTo(this, 'variationUnitCostDiscountGroup', DiscountGroup);
23
22
  addPropertyTo(this, 'linkedFile', MerchiFile);
24
- addPropertyTo(this, 'variationField', VariationField);
25
- addPropertyTo(this, 'draftTemplates', DraftTemplate);
26
-
23
+ addPropertyTo(this, 'variationField', VariationField)
27
24
 
28
25
  this.totalCost = function (quantity) {
29
26
  var total = this.variationCost() ?