theendsoaper
Version:
Access Untill Tills with SOAP from Node.js and parse the results as objects, some extra useful functions in as well.
15 lines (14 loc) • 413 B
JavaScript
const Item = require('./active-tables-item');
module.exports = class Order {
constructor(order){
var list = [];
if(order['item'].length === undefined){
list.push(new Item(order['item']));
} else {
for(var item in order['item']){
list.push(new Item(order['item'][item]));
}
}
this.orders = list;
}
}