producteca-sdk
Advanced tools
Comparing version 8.7.0 to 8.8.0
@@ -112,9 +112,9 @@ (function() { | ||
ProductsApi.prototype.createIntegration = function(productId, integration) { | ||
ProductsApi.prototype.createIntegration = function(productId, integration, opts) { | ||
var url; | ||
url = "/products/" + productId + "/integrations"; | ||
return this.client.postAsync(url, integration); | ||
return this.client.postAsync(url, integration, opts); | ||
}; | ||
ProductsApi.prototype.updateIntegration = function(productId, integration, appId) { | ||
ProductsApi.prototype.updateIntegration = function(productId, integration, appId, opts) { | ||
var headers, url; | ||
@@ -127,8 +127,8 @@ url = "/products/" + productId + "/integrations"; | ||
} | ||
return this.client.putAsync(url, integration, { | ||
return this.client.putAsync(url, integration, _.merge({ | ||
headers: headers | ||
}); | ||
}, opts)); | ||
}; | ||
ProductsApi.prototype.deleteIntegration = function(productId, integrationId, arg) { | ||
ProductsApi.prototype.deleteIntegration = function(productId, integrationId, arg, opts) { | ||
var ignoreParentIntegrationId, url; | ||
@@ -138,12 +138,12 @@ ignoreParentIntegrationId = (arg != null ? arg : {}).ignoreParentIntegrationId; | ||
if (ignoreParentIntegrationId == null) { | ||
ignoreParentIntegrationId = false; | ||
ignoreParentIntegrationId = true; | ||
} | ||
return this.client.deleteAsync(url, { | ||
return this.client.deleteAsync(url, _.merge({ | ||
qs: { | ||
ignoreParentIntegrationId: ignoreParentIntegrationId | ||
} | ||
}); | ||
}, opts)); | ||
}; | ||
ProductsApi.prototype.createVariations = function(productId, variations, appId) { | ||
ProductsApi.prototype.createVariations = function(productId, variations, appId, opts) { | ||
var headers, url; | ||
@@ -156,40 +156,40 @@ url = "/products/" + productId + "/variations"; | ||
} | ||
return this.client.postAsync(url, variations, { | ||
return this.client.postAsync(url, variations, _.merge({ | ||
headers: headers | ||
}); | ||
}, opts)); | ||
}; | ||
ProductsApi.prototype.deleteVariations = function(productId, variationIds) { | ||
ProductsApi.prototype.deleteVariations = function(productId, variationIds, opts) { | ||
var ids, url; | ||
url = "/products/" + productId + "/variations"; | ||
ids = variationIds.join(","); | ||
return this.client.deleteAsync(url, { | ||
return this.client.deleteAsync(url, _.merge({ | ||
qs: { | ||
ids: ids | ||
} | ||
}); | ||
}, opts)); | ||
}; | ||
ProductsApi.prototype.updateVariation = function(productId, variations) { | ||
ProductsApi.prototype.updateVariation = function(productId, variations, opts) { | ||
var url; | ||
url = "/products/" + productId + "/variations"; | ||
return this.client.putAsync(url, variations); | ||
return this.client.putAsync(url, variations, opts); | ||
}; | ||
ProductsApi.prototype.updateVariationStocks = function(productId, adjustments) { | ||
ProductsApi.prototype.updateVariationStocks = function(productId, adjustments, opts) { | ||
var url; | ||
url = "/products/" + productId + "/stocks"; | ||
return this.client.putAsync(url, adjustments); | ||
return this.client.putAsync(url, adjustments, opts); | ||
}; | ||
ProductsApi.prototype.addVariationPictures = function(productId, pictures) { | ||
ProductsApi.prototype.addVariationPictures = function(productId, pictures, opts) { | ||
var url; | ||
url = "/products/" + productId + "/pictures"; | ||
return this.client.postAsync(url, pictures); | ||
return this.client.postAsync(url, pictures, opts); | ||
}; | ||
ProductsApi.prototype.updateVariationPictures = function(productId, pictures) { | ||
ProductsApi.prototype.updateVariationPictures = function(productId, pictures, opts) { | ||
var url; | ||
url = "/products/" + productId + "/pictures"; | ||
return this.client.putAsync(url, pictures); | ||
return this.client.putAsync(url, pictures, opts); | ||
}; | ||
@@ -203,26 +203,26 @@ | ||
ProductsApi.prototype.updatePrices = function(id, update) { | ||
return this.client.putAsync("/products/" + id + "/prices", update); | ||
ProductsApi.prototype.updatePrices = function(id, update, opts) { | ||
return this.client.putAsync("/products/" + id + "/prices", update, opts); | ||
}; | ||
ProductsApi.prototype.updateAttributes = function(id, update) { | ||
return this.client.putAsync("/products/" + id + "/attributes", update); | ||
ProductsApi.prototype.updateAttributes = function(id, update, opts) { | ||
return this.client.putAsync("/products/" + id + "/attributes", update, opts); | ||
}; | ||
ProductsApi.prototype.updateMetadata = function(id, update) { | ||
return this.client.putAsync("/products/" + id + "/metadata", update); | ||
ProductsApi.prototype.updateMetadata = function(id, update, opts) { | ||
return this.client.putAsync("/products/" + id + "/metadata", update, opts); | ||
}; | ||
ProductsApi.prototype.update = function(id, update) { | ||
return this.client.putAsync("/products/" + id, update); | ||
ProductsApi.prototype.update = function(id, update, opts) { | ||
return this.client.putAsync("/products/" + id, update, opts); | ||
}; | ||
ProductsApi.prototype.createWarehouse = function(name) { | ||
ProductsApi.prototype.createWarehouse = function(name, opts) { | ||
return this.client.postAsync("/warehouses", { | ||
name: name | ||
}); | ||
}, opts); | ||
}; | ||
ProductsApi.prototype.createWarehouseWithIntegration = function(warehouse) { | ||
return this.client.postAsync("/warehouses", warehouse); | ||
ProductsApi.prototype.createWarehouseWithIntegration = function(warehouse, opts) { | ||
return this.client.postAsync("/warehouses", warehouse, opts); | ||
}; | ||
@@ -229,0 +229,0 @@ |
@@ -88,24 +88,24 @@ (function() { | ||
SalesOrdersApi.prototype.create = function(salesOrder) { | ||
return this.client.postAsync("/salesorders", salesOrder); | ||
SalesOrdersApi.prototype.create = function(salesOrder, opts) { | ||
return this.client.postAsync("/salesorders", salesOrder, opts); | ||
}; | ||
SalesOrdersApi.prototype.update = function(id, update) { | ||
return this.client.putAsync("/salesorders/" + id, update); | ||
SalesOrdersApi.prototype.update = function(id, update, opts) { | ||
return this.client.putAsync("/salesorders/" + id, update, opts); | ||
}; | ||
SalesOrdersApi.prototype.updateInvoiceIntegration = function(id, invoiceIntegration) { | ||
return this.client.putAsync("/salesorders/" + id + "/invoiceIntegration", invoiceIntegration); | ||
SalesOrdersApi.prototype.updateInvoiceIntegration = function(id, invoiceIntegration, opts) { | ||
return this.client.putAsync("/salesorders/" + id + "/invoiceIntegration", invoiceIntegration, opts); | ||
}; | ||
SalesOrdersApi.prototype.cancel = function(ids) { | ||
return this.client.postAsync("/salesorders/cancel?ids=" + (ids.join())); | ||
SalesOrdersApi.prototype.cancel = function(ids, opts) { | ||
return this.client.postAsync("/salesorders/cancel?ids=" + (ids.join()), void 0, opts); | ||
}; | ||
SalesOrdersApi.prototype.close = function(id) { | ||
return this.client.postAsync("/salesorders/" + id + "/close"); | ||
SalesOrdersApi.prototype.close = function(id, opts) { | ||
return this.client.postAsync("/salesorders/" + id + "/close", void 0, opts); | ||
}; | ||
SalesOrdersApi.prototype.closeShipments = function(id) { | ||
return this.client.postAsync("/salesorders/" + id + "/shipments/close"); | ||
SalesOrdersApi.prototype.closeShipments = function(id, opts) { | ||
return this.client.postAsync("/salesorders/" + id + "/shipments/close", void 0, opts); | ||
}; | ||
@@ -121,28 +121,28 @@ | ||
SalesOrdersApi.prototype.createShipment = function(salesOrderId, shipment) { | ||
return this.client.postAsync("/salesorders/" + salesOrderId + "/shipments", shipment); | ||
SalesOrdersApi.prototype.createShipment = function(salesOrderId, shipment, opts) { | ||
return this.client.postAsync("/salesorders/" + salesOrderId + "/shipments", shipment, opts); | ||
}; | ||
SalesOrdersApi.prototype.updateShipment = function(salesOrderId, shipmentId, shipmentUpdate) { | ||
return this.client.putAsync("/salesorders/" + salesOrderId + "/shipments/" + shipmentId, shipmentUpdate); | ||
SalesOrdersApi.prototype.updateShipment = function(salesOrderId, shipmentId, shipmentUpdate, opts) { | ||
return this.client.putAsync("/salesorders/" + salesOrderId + "/shipments/" + shipmentId, shipmentUpdate, opts); | ||
}; | ||
SalesOrdersApi.prototype.deleteShipment = function(salesOrderId, shipmentId) { | ||
return this.client.deleteAsync("/salesorders/" + salesOrderId + "/shipments/" + shipmentId); | ||
SalesOrdersApi.prototype.deleteShipment = function(salesOrderId, shipmentId, opts) { | ||
return this.client.deleteAsync("/salesorders/" + salesOrderId + "/shipments/" + shipmentId, opts); | ||
}; | ||
SalesOrdersApi.prototype.createPayment = function(salesOrderId, payment) { | ||
return this.client.postAsync("/salesorders/" + salesOrderId + "/payments", payment); | ||
SalesOrdersApi.prototype.createPayment = function(salesOrderId, payment, opts) { | ||
return this.client.postAsync("/salesorders/" + salesOrderId + "/payments", payment, opts); | ||
}; | ||
SalesOrdersApi.prototype.updatePayment = function(salesOrderId, paymentId, paymentUpdate) { | ||
return this.client.putAsync("/salesorders/" + salesOrderId + "/payments/" + paymentId, paymentUpdate); | ||
SalesOrdersApi.prototype.updatePayment = function(salesOrderId, paymentId, paymentUpdate, opts) { | ||
return this.client.putAsync("/salesorders/" + salesOrderId + "/payments/" + paymentId, paymentUpdate, opts); | ||
}; | ||
SalesOrdersApi.prototype.deletePayment = function(salesOrderId, paymentId) { | ||
return this.client.deleteAsync("/salesorders/" + salesOrderId + "/payments/" + paymentId); | ||
SalesOrdersApi.prototype.deletePayment = function(salesOrderId, paymentId, opts) { | ||
return this.client.deleteAsync("/salesorders/" + salesOrderId + "/payments/" + paymentId, void 0, opts); | ||
}; | ||
SalesOrdersApi.prototype.salesOrderCreated = function(salesOrderId) { | ||
return this.client.postAsync("/salesorders/" + salesOrderId + "/created"); | ||
SalesOrdersApi.prototype.salesOrderCreated = function(salesOrderId, opts) { | ||
return this.client.postAsync("/salesorders/" + salesOrderId + "/created", void 0, opts); | ||
}; | ||
@@ -149,0 +149,0 @@ |
@@ -8,3 +8,3 @@ { | ||
}, | ||
"version": "8.7.0", | ||
"version": "8.8.0", | ||
"main": "build/sdk.js", | ||
@@ -11,0 +11,0 @@ "dependencies": { |
Sorry, the diff of this file is not supported yet
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
84520
23
1