producteca-sdk
Advanced tools
Comparing version 7.5.0 to 7.5.1
@@ -74,4 +74,4 @@ (function() { | ||
ProductsApi.prototype.create = function(product) { | ||
return this.client.postAsync("/products", product); | ||
ProductsApi.prototype.create = function(product, opts) { | ||
return this.client.postAsync("/products", product, opts); | ||
}; | ||
@@ -78,0 +78,0 @@ |
@@ -27,2 +27,4 @@ (function() { | ||
this.getShipment = bind(this.getShipment, this); | ||
this.closeShipments = bind(this.closeShipments, this); | ||
this.close = bind(this.close, this); | ||
this.update = bind(this.update, this); | ||
@@ -104,2 +106,10 @@ this.create = bind(this.create, this); | ||
SalesOrdersApi.prototype.close = function(id) { | ||
return this.client.postAsync("/salesorders/" + id + "/close"); | ||
}; | ||
SalesOrdersApi.prototype.closeShipments = function(id) { | ||
return this.client.postAsync("/salesorders/" + id + "/shipments/close"); | ||
}; | ||
SalesOrdersApi.prototype.getShipment = function(salesOrderId, shipmentId) { | ||
@@ -106,0 +116,0 @@ return this.client.getAsync("/salesorders/" + salesOrderId + "/shipments/" + shipmentId); |
@@ -8,3 +8,3 @@ { | ||
}, | ||
"version": "7.5.0", | ||
"version": "7.5.1", | ||
"main": "build/sdk.js", | ||
@@ -11,0 +11,0 @@ "dependencies": { |
Sorry, the diff of this file is not supported yet
66413
829