/**
* Autogenerated by Avro
*
* DO NOT EDIT DIRECTLY
*/
var payments_BatchTotalType = require("../payments/BatchTotalType");
/**
* @constructor
* @memberof payments
*/
var ServerTotalStats = function() {
this._class_ = ServerTotalStats;
this.employeeId = undefined;
this.employeeName = undefined;
this.sales = undefined;
this.refunds = undefined;
this.net = undefined;
this.giftCardLoads = undefined;
this.giftCardCashOuts = undefined;
this.tax = undefined;
this.tips = undefined;
};
/**
* Set the field value
* Employee corresponding to these stats
*
* @memberof payments.ServerTotalStats
* @param {String} employeeId
*/
ServerTotalStats.prototype.setEmployeeId = function(employeeId) {
this.employeeId = employeeId;
};
/**
* Get the field value
* Employee corresponding to these stats
* @memberof payments.ServerTotalStats
* @return {String}
*/
ServerTotalStats.prototype.getEmployeeId = function() {
return this.employeeId;
};
/**
* Set the field value
* @memberof payments.ServerTotalStats
* @param {String} employeeName
*/
ServerTotalStats.prototype.setEmployeeName = function(employeeName) {
this.employeeName = employeeName;
};
/**
* Get the field value
* @memberof payments.ServerTotalStats
* @return {String}
*/
ServerTotalStats.prototype.getEmployeeName = function() {
return this.employeeName;
};
/**
* Set the field value
* @memberof payments.ServerTotalStats
* @param {payments.BatchTotalType} sales
*/
ServerTotalStats.prototype.setSales = function(sales) {
this.sales = sales;
};
/**
* Get the field value
* @memberof payments.ServerTotalStats
* @return {payments.BatchTotalType}
*/
ServerTotalStats.prototype.getSales = function() {
return this.sales;
};
/**
* Set the field value
* @memberof payments.ServerTotalStats
* @param {payments.BatchTotalType} refunds
*/
ServerTotalStats.prototype.setRefunds = function(refunds) {
this.refunds = refunds;
};
/**
* Get the field value
* @memberof payments.ServerTotalStats
* @return {payments.BatchTotalType}
*/
ServerTotalStats.prototype.getRefunds = function() {
return this.refunds;
};
/**
* Set the field value
* @memberof payments.ServerTotalStats
* @param {payments.BatchTotalType} net
*/
ServerTotalStats.prototype.setNet = function(net) {
this.net = net;
};
/**
* Get the field value
* @memberof payments.ServerTotalStats
* @return {payments.BatchTotalType}
*/
ServerTotalStats.prototype.getNet = function() {
return this.net;
};
/**
* Set the field value
* @memberof payments.ServerTotalStats
* @param {payments.BatchTotalType} giftCardLoads
*/
ServerTotalStats.prototype.setGiftCardLoads = function(giftCardLoads) {
this.giftCardLoads = giftCardLoads;
};
/**
* Get the field value
* @memberof payments.ServerTotalStats
* @return {payments.BatchTotalType}
*/
ServerTotalStats.prototype.getGiftCardLoads = function() {
return this.giftCardLoads;
};
/**
* Set the field value
* @memberof payments.ServerTotalStats
* @param {payments.BatchTotalType} giftCardCashOuts
*/
ServerTotalStats.prototype.setGiftCardCashOuts = function(giftCardCashOuts) {
this.giftCardCashOuts = giftCardCashOuts;
};
/**
* Get the field value
* @memberof payments.ServerTotalStats
* @return {payments.BatchTotalType}
*/
ServerTotalStats.prototype.getGiftCardCashOuts = function() {
return this.giftCardCashOuts;
};
/**
* Set the field value
* @memberof payments.ServerTotalStats
* @param {payments.BatchTotalType} tax
*/
ServerTotalStats.prototype.setTax = function(tax) {
this.tax = tax;
};
/**
* Get the field value
* @memberof payments.ServerTotalStats
* @return {payments.BatchTotalType}
*/
ServerTotalStats.prototype.getTax = function() {
return this.tax;
};
/**
* Set the field value
* @memberof payments.ServerTotalStats
* @param {payments.BatchTotalType} tips
*/
ServerTotalStats.prototype.setTips = function(tips) {
this.tips = tips;
};
/**
* Get the field value
* @memberof payments.ServerTotalStats
* @return {payments.BatchTotalType}
*/
ServerTotalStats.prototype.getTips = function() {
return this.tips;
};
/**
* @memberof payments.ServerTotalStats
* @private
*/
ServerTotalStats.prototype.getMetaInfo = function(fieldName) {
var curclass = this._class_;
do {
var fieldMetaInfo = curclass._meta_.fields[fieldName];
if(fieldMetaInfo) {
return fieldMetaInfo;
}
if(curclass._meta_._superMeta_) {
curclass = curclass._meta_._superMeta_._class_;
} else {
curclass = null;
}
} while(curclass);
return null;
};
ServerTotalStats.prototype.toString = function() {
return JSON.stringify(this);
};
ServerTotalStats._meta_ = {fields: {}};
ServerTotalStats._meta_._class_ = ServerTotalStats;
ServerTotalStats._meta_.fields["employeeId"] = {};
ServerTotalStats._meta_.fields["employeeId"].type = String;
ServerTotalStats._meta_.fields["employeeName"] = {};
ServerTotalStats._meta_.fields["employeeName"].type = String;
ServerTotalStats._meta_.fields["sales"] = {};
ServerTotalStats._meta_.fields["sales"].type = payments_BatchTotalType;
ServerTotalStats._meta_.fields["refunds"] = {};
ServerTotalStats._meta_.fields["refunds"].type = payments_BatchTotalType;
ServerTotalStats._meta_.fields["net"] = {};
ServerTotalStats._meta_.fields["net"].type = payments_BatchTotalType;
ServerTotalStats._meta_.fields["giftCardLoads"] = {};
ServerTotalStats._meta_.fields["giftCardLoads"].type = payments_BatchTotalType;
ServerTotalStats._meta_.fields["giftCardCashOuts"] = {};
ServerTotalStats._meta_.fields["giftCardCashOuts"].type = payments_BatchTotalType;
ServerTotalStats._meta_.fields["tax"] = {};
ServerTotalStats._meta_.fields["tax"].type = payments_BatchTotalType;
ServerTotalStats._meta_.fields["tips"] = {};
ServerTotalStats._meta_.fields["tips"].type = payments_BatchTotalType;
//
// Expose the module.
//
if ('undefined' !== typeof module) {
module.exports = ServerTotalStats;
}