merchi_sdk_js 0.15.0 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/job.js +2 -0
- package/src/model.js +10 -0
- package/src/product.js +0 -2
package/package.json
CHANGED
package/src/job.js
CHANGED
|
@@ -72,6 +72,8 @@ export function Job() {
|
|
|
72
72
|
addPropertyTo(this, 'clientBrowser');
|
|
73
73
|
addPropertyTo(this, 'clientDevice');
|
|
74
74
|
addPropertyTo(this, 'clientOs');
|
|
75
|
+
addPropertyTo(this, 'clientIp');
|
|
76
|
+
addPropertyTo(this, 'clientOrigin');
|
|
75
77
|
addPropertyTo(this, 'clientEmail', EmailAddress);
|
|
76
78
|
addPropertyTo(this, 'clientPhone', PhoneNumber);
|
|
77
79
|
addPropertyTo(this, 'clientCompany', Company);
|
package/src/model.js
CHANGED
|
@@ -496,6 +496,10 @@ export function getList(resource, success, error, parameters, withUpdates) {
|
|
|
496
496
|
request.query().add('company_supplier_id',
|
|
497
497
|
parameters.companySupplierId);
|
|
498
498
|
}
|
|
499
|
+
if (notEmpty(parameters.senderCompanyId)) {
|
|
500
|
+
request.query().add('sender_company_id',
|
|
501
|
+
parameters.senderCompanyId);
|
|
502
|
+
}
|
|
499
503
|
if (notEmpty(parameters.section)) {
|
|
500
504
|
request.query().add('section', parameters.section);
|
|
501
505
|
}
|
|
@@ -549,6 +553,12 @@ export function getList(resource, success, error, parameters, withUpdates) {
|
|
|
549
553
|
if (notEmpty(parameters.orClientId)) {
|
|
550
554
|
request.query().add('or_client_id', parameters.orClientId);
|
|
551
555
|
}
|
|
556
|
+
if (notEmpty(parameters.orClientCompanyId)) {
|
|
557
|
+
var orClientCompanyId = Array.isArray(parameters.orClientCompanyId)
|
|
558
|
+
? parameters.orClientCompanyId.join(',')
|
|
559
|
+
: parameters.orClientCompanyId;
|
|
560
|
+
request.query().add('or_client_company_id', orClientCompanyId);
|
|
561
|
+
}
|
|
552
562
|
if (notEmpty(parameters.shopifyOnly)) {
|
|
553
563
|
request.query().add('shopify_only',
|
|
554
564
|
parameters.shopifyOnly);
|
package/src/product.js
CHANGED
|
@@ -49,8 +49,6 @@ export function Product() {
|
|
|
49
49
|
addPropertyTo(this, 'minimum');
|
|
50
50
|
addPropertyTo(this, 'defaultQuantity')
|
|
51
51
|
addPropertyTo(this, 'minimumPrice')
|
|
52
|
-
addPropertyTo(this, 'setupPrice');
|
|
53
|
-
addPropertyTo(this, 'setupPerGroup');
|
|
54
52
|
addPropertyTo(this, 'minimumPerGroup');
|
|
55
53
|
addPropertyTo(this, 'deliveryDaysNormal');
|
|
56
54
|
addPropertyTo(this, 'unitPrice');
|