Comparing version 0.0.29 to 0.0.31
@@ -34,2 +34,3 @@ (function() { | ||
this.createOutputBean = __bind(this.createOutputBean, this); | ||
this.getPickingsAndChangeStatus = __bind(this.getPickingsAndChangeStatus, this); | ||
this.getStocks = __bind(this.getStocks, this); | ||
@@ -50,2 +51,5 @@ auth = (function(_this) { | ||
endpoint: "Jobs" | ||
}, | ||
getPickingsAndChangeStatus: { | ||
endpoint: "Jobs" | ||
} | ||
@@ -84,3 +88,19 @@ }, (function(_this) { | ||
AlmexApi.prototype.getPickingsAndChangeStatus = function() { | ||
return this._doRequest(this.requests.getPickingsAndChangeStatus).then((function(_this) { | ||
return function(xml) { | ||
var pickings; | ||
pickings = _this._getResult(xml, "changeOutcomeStatus"); | ||
return pickings.map(function(it) { | ||
return { | ||
order_id: it.idPedido[0], | ||
product_id: it.idSku[0], | ||
serial_number: it.serie[0] | ||
}; | ||
}); | ||
}; | ||
})(this)); | ||
}; | ||
/* | ||
@@ -87,0 +107,0 @@ Create an output bean. |
@@ -8,3 +8,3 @@ { | ||
}, | ||
"version": "0.0.29", | ||
"version": "0.0.31", | ||
"main": "build/almexApi.js", | ||
@@ -11,0 +11,0 @@ "dependencies": { |
Sorry, the diff of this file is not supported yet
34185
26
339