producteca-sdk
Advanced tools
Comparing version 0.0.26 to 0.0.28
@@ -43,2 +43,4 @@ (function() { | ||
this.getSalesOrders = __bind(this.getSalesOrders, this); | ||
this._createProducts = __bind(this._createProducts, this); | ||
this.getMultipleProducts = __bind(this.getMultipleProducts, this); | ||
this.getProducts = __bind(this.getProducts, this); | ||
@@ -57,5 +59,3 @@ this.getProduct = __bind(this.getProduct, this); | ||
return function(products) { | ||
return products.map(function(it) { | ||
return new Product(it); | ||
}); | ||
return _this._createProducts(products); | ||
}; | ||
@@ -65,2 +65,16 @@ })(this)); | ||
ProductecaApi.prototype.getMultipleProducts = function(ids) { | ||
return this["return"](this.client.getAsync("/products?ids=" + ids)).then((function(_this) { | ||
return function(products) { | ||
return _this._createProducts(products); | ||
}; | ||
})(this)); | ||
}; | ||
ProductecaApi.prototype._createProducts = function(products) { | ||
return products.map(function(it) { | ||
return new Product(it); | ||
}); | ||
}; | ||
ProductecaApi.prototype.getSalesOrders = function(filters) { | ||
@@ -115,3 +129,3 @@ var querystring; | ||
ProductecaApi.prototype.createShipment = function(salesOrderId, shipment) { | ||
return this["return"](this.asyncClient.postAsync("/salesorders/" + salesOrderId + "/shipments", shipment)); | ||
return this["return"](this.client.postAsync("/salesorders/" + salesOrderId + "/shipments", shipment)); | ||
}; | ||
@@ -118,0 +132,0 @@ |
@@ -8,3 +8,3 @@ { | ||
}, | ||
"version": "0.0.26", | ||
"version": "0.0.28", | ||
"main": "build/sdk.js", | ||
@@ -11,0 +11,0 @@ "dependencies": { |
# Producteca SDK |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
52117
899
0