theendsoaper
Version:
Access Untill Tills with SOAP from Node.js and parse the results as objects, some extra useful functions in as well.
44 lines (40 loc) • 1.24 kB
JavaScript
module.exports = class BuildExtras {
buildExtrasBasic(username, password, token) {
this.username = username;
this.password = password;
this.token = token;
return this;
}
buildExtrasTable(username, password, tableNumber, tablePart, token) {
this.username = username;
this.password = password;
this.tableNumber = tableNumber;
this.tablePart = tablePart;
this.token = token;
return this;
}
buildExtrasDate(username, password, from, till, token) {
this.username = username;
this.password = password;
this.from = from;
this.till = till;
this.token = token;
return this;
}
buildExtrasDateToken(username, password, from, till, token) {
this.username = username;
this.password = password;
this.from = from;
this.till = till;
this.token = token;
return this;
}
drinkOrder(username, password, uid, drinks, token) {
this.username = username;
this.password = password;
this.uid = uid;
this.drinks = drinks;
this.token = token;
return this;
}
}