merchi_sdk_js 0.0.31 → 0.0.33
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/src/job.js +2 -2
- package/src/product.js +1 -1
package/package.json
CHANGED
package/src/job.js
CHANGED
@@ -583,13 +583,13 @@ export function Job() {
|
|
583
583
|
return assignment ? assignment.isUserSupplier(user) : false;
|
584
584
|
}
|
585
585
|
|
586
|
-
this.
|
586
|
+
this.deduct = function (success, error) {
|
587
587
|
var request = new Request(),
|
588
588
|
data = serialise(this)[0],
|
589
589
|
query = new Dictionary(),
|
590
590
|
self = this;
|
591
591
|
query.add('embed', JSON.stringify({inventory: {}}));
|
592
|
-
request.resource('/jobs/' + this.id() + '/
|
592
|
+
request.resource('/jobs/' + this.id() + '/inventories_subtract/');
|
593
593
|
request.method('POST');
|
594
594
|
request.data().merge(data);
|
595
595
|
request.query().merge(query);
|
package/src/product.js
CHANGED
@@ -77,7 +77,7 @@ export function Product() {
|
|
77
77
|
addPropertyTo(this, 'suppliedByDomains', SupplyDomain);
|
78
78
|
addPropertyTo(this, 'autoAssignProductionOnAction');
|
79
79
|
addPropertyTo(this, 'supplyDomains', SupplyDomain);
|
80
|
-
addPropertyTo(this, '
|
80
|
+
addPropertyTo(this, 'inventoryGroups', InventoryGroup);
|
81
81
|
addPropertyTo(this, 'images', MerchiFile);
|
82
82
|
addPropertyTo(this, 'featureImage', MerchiFile);
|
83
83
|
addPropertyTo(this, 'publicFiles', MerchiFile);
|