merchi_sdk_js 0.15.0 → 0.16.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "merchi_sdk_js",
3
- "version": "0.15.0",
3
+ "version": "0.16.0",
4
4
  "type": "module",
5
5
  "main": "src/merchi.js",
6
6
  "module": "src/merchi.js",
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
@@ -549,6 +549,12 @@ export function getList(resource, success, error, parameters, withUpdates) {
549
549
  if (notEmpty(parameters.orClientId)) {
550
550
  request.query().add('or_client_id', parameters.orClientId);
551
551
  }
552
+ if (notEmpty(parameters.orClientCompanyId)) {
553
+ var orClientCompanyId = Array.isArray(parameters.orClientCompanyId)
554
+ ? parameters.orClientCompanyId.join(',')
555
+ : parameters.orClientCompanyId;
556
+ request.query().add('or_client_company_id', orClientCompanyId);
557
+ }
552
558
  if (notEmpty(parameters.shopifyOnly)) {
553
559
  request.query().add('shopify_only',
554
560
  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');