producteca-sdk
Advanced tools
Comparing version 7.1.1 to 7.2.0
@@ -35,3 +35,3 @@ (function() { | ||
BrandsApi.prototype["delete"] = function(id) { | ||
return this.client.delAsync("/brands/" + id); | ||
return this.client.deleteAsync("/brands/" + id); | ||
}; | ||
@@ -38,0 +38,0 @@ |
@@ -17,3 +17,3 @@ (function() { | ||
this._doRequest = bind(this._doRequest, this); | ||
this.delAsync = bind(this.delAsync, this); | ||
this.deleteAsync = bind(this.deleteAsync, this); | ||
this.putAsync = bind(this.putAsync, this); | ||
@@ -47,3 +47,3 @@ this.postAsync = bind(this.postAsync, this); | ||
Client.prototype.delAsync = function(path) { | ||
Client.prototype.deleteAsync = function(path) { | ||
return this._doRequest({ | ||
@@ -50,0 +50,0 @@ verb: "DELETE", |
@@ -13,2 +13,3 @@ (function() { | ||
function ContactsApi() { | ||
this.getByIntegration = bind(this.getByIntegration, this); | ||
this.update = bind(this.update, this); | ||
@@ -27,2 +28,8 @@ this.create = bind(this.create, this); | ||
ContactsApi.prototype.getByIntegration = function(app, integrationId) { | ||
return this.client.getAsync("/contacts", { | ||
$filter: "profile/integrationId eq " + integrationId + "&profile/app eq " + app | ||
}); | ||
}; | ||
return ContactsApi; | ||
@@ -29,0 +36,0 @@ |
@@ -34,2 +34,4 @@ (function() { | ||
this.createVariations = bind(this.createVariations, this); | ||
this.updateIntegration = bind(this.updateIntegration, this); | ||
this.createIntegration = bind(this.createIntegration, this); | ||
this.create = bind(this.create, this); | ||
@@ -76,2 +78,14 @@ this.findByVariationSku = bind(this.findByVariationSku, this); | ||
ProductsApi.prototype.createIntegration = function(productId, integration) { | ||
var url; | ||
url = "/products/" + productId + "/integrations"; | ||
return this.client.postAsync(url, integration); | ||
}; | ||
ProductsApi.prototype.updateIntegration = function(productId, integration) { | ||
var url; | ||
url = "/products/" + productId + "/integrations"; | ||
return this.client.putAsync(url, integration); | ||
}; | ||
ProductsApi.prototype.createVariations = function(productId, variations) { | ||
@@ -78,0 +92,0 @@ var url; |
@@ -119,3 +119,3 @@ (function() { | ||
SalesOrdersApi.prototype.deleteShipment = function(salesOrderId, shipmentId) { | ||
return this.client.delAsync("/salesorders/" + salesOrderId + "/shipments/" + shipmentId); | ||
return this.client.deleteAsync("/salesorders/" + salesOrderId + "/shipments/" + shipmentId); | ||
}; | ||
@@ -132,3 +132,3 @@ | ||
SalesOrdersApi.prototype.deletePayment = function(salesOrderId, paymentId) { | ||
return this.client.delAsync("/salesorders/" + salesOrderId + "/payments/" + paymentId); | ||
return this.client.deleteAsync("/salesorders/" + salesOrderId + "/payments/" + paymentId); | ||
}; | ||
@@ -135,0 +135,0 @@ |
@@ -8,3 +8,3 @@ { | ||
}, | ||
"version": "7.1.1", | ||
"version": "7.2.0", | ||
"main": "build/sdk.js", | ||
@@ -11,0 +11,0 @@ "dependencies": { |
@@ -0,0 +0,0 @@ # 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
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
803
66026
20
1