producteca-sdk
Advanced tools
Comparing version 5.1.1 to 5.3.0
(function() { | ||
var Client, CouriersApi, jwt; | ||
var Client, CouriersApi, jwt, | ||
bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }; | ||
@@ -10,7 +11,13 @@ Client = require("./client"); | ||
function CouriersApi(arg) { | ||
var url; | ||
this.productecaToken = arg.productecaToken, this.jsonWebTokenSecret = arg.jsonWebTokenSecret, url = arg.url; | ||
this.client = new Client(url, {}); | ||
this.productecaToken = arg.productecaToken, this.jsonWebTokenSecret = arg.jsonWebTokenSecret, this.url = arg.url; | ||
this.getZplOf = bind(this.getZplOf, this); | ||
this.getDownloadLink = bind(this.getDownloadLink, this); | ||
this.getFullDownloadLink = bind(this.getFullDownloadLink, this); | ||
this.client = new Client(this.url, {}); | ||
} | ||
CouriersApi.prototype.getFullDownloadLink = function(salesOrder, shipment, type) { | ||
return "" + this.url + (this.getDownloadLink(salesOrder, shipment, type)); | ||
}; | ||
CouriersApi.prototype.getDownloadLink = function(arg, arg1, type) { | ||
@@ -17,0 +24,0 @@ var jwttoken, salesOrderId, shipmentId; |
@@ -25,2 +25,3 @@ (function() { | ||
this.getPricelists = bind(this.getPricelists, this); | ||
this.createWarehouseWithIntegration = bind(this.createWarehouseWithIntegration, this); | ||
this.createWarehouse = bind(this.createWarehouse, this); | ||
@@ -106,2 +107,6 @@ this.update = bind(this.update, this); | ||
ProductsApi.prototype.createWarehouseWithIntegration = function(warehouse) { | ||
return this.client.postAsync("/warehouses", warehouse); | ||
}; | ||
ProductsApi.prototype.getPricelists = function() { | ||
@@ -108,0 +113,0 @@ return this.client.getAsync("/pricelists"); |
@@ -8,3 +8,3 @@ { | ||
}, | ||
"version": "5.1.1", | ||
"version": "5.3.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
31333
758
19