merchi_sdk_js 0.0.8-u → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -13,6 +13,7 @@ export function AutomaticPaymentRelationship() {
|
|
13
13
|
addPropertyTo(this, 'id');
|
14
14
|
addPropertyTo(this, 'creationDate');
|
15
15
|
addPropertyTo(this, 'stripeCustomerId');
|
16
|
+
addPropertyTo(this, 'allowPostPayment');
|
16
17
|
addPropertyTo(this, 'companyCustomer', Company);
|
17
18
|
addPropertyTo(this, 'companySupplier', Company);
|
18
19
|
|
package/src/domain.js
CHANGED
@@ -85,8 +85,6 @@ export function Domain() {
|
|
85
85
|
addPropertyTo(this, 'deploymentMessage');
|
86
86
|
addPropertyTo(this, 'deploymentKey');
|
87
87
|
|
88
|
-
addPropertyTo(this, 'scalablePressApiKey');
|
89
|
-
|
90
88
|
this.create = function (success, error, embed, as_domain) {
|
91
89
|
var data = serialise(this),
|
92
90
|
self = this;
|
package/src/draft_template.js
CHANGED
@@ -3,7 +3,6 @@ import { addPropertyTo, serialise, create, enumerateFiles,
|
|
3
3
|
import { Job } from './job.js';
|
4
4
|
import { Product } from './product.js';
|
5
5
|
import { MerchiFile } from './merchi_file.js';
|
6
|
-
import { VariationFieldsOption } from './variation_fields_option.js';
|
7
6
|
|
8
7
|
export function DraftTemplate() {
|
9
8
|
this.resource = '/draft_comments';
|
@@ -13,7 +12,6 @@ export function DraftTemplate() {
|
|
13
12
|
addPropertyTo(this, 'product', Product);
|
14
13
|
addPropertyTo(this, 'file', MerchiFile);
|
15
14
|
addPropertyTo(this, 'job', Job);
|
16
|
-
addPropertyTo(this, 'variationFieldOption', VariationFieldsOption);
|
17
15
|
addPropertyTo(this, 'date');
|
18
16
|
addPropertyTo(this, 'name');
|
19
17
|
addPropertyTo(this, 'description');
|
package/src/product.js
CHANGED
@@ -40,7 +40,6 @@ export function Product() {
|
|
40
40
|
addPropertyTo(this, 'productType');
|
41
41
|
addPropertyTo(this, 'description');
|
42
42
|
addPropertyTo(this, 'notes');
|
43
|
-
addPropertyTo(this, 'spProductId');
|
44
43
|
addPropertyTo(this, 'shopifyProductId');
|
45
44
|
addPropertyTo(this, 'minimum');
|
46
45
|
addPropertyTo(this, 'minimumPerGroup');
|
@@ -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() ?
|