/**
* Autogenerated by Avro
*
* DO NOT EDIT DIRECTLY
*/
/**
* @constructor
* @memberof payments
*/
var BatchRequest = function() {
this._class_ = BatchRequest;
this.devices = undefined;
};
/**
* Set the field value
* @memberof payments.BatchRequest
* @param {Array.<String>} devices An array of
*/
BatchRequest.prototype.setDevices = function(devices) {
this.devices = devices;
};
/**
* Get the field value
* @memberof payments.BatchRequest
* @return {Array.<String>} An array of
*/
BatchRequest.prototype.getDevices = function() {
return this.devices;
};
/**
* @memberof payments.BatchRequest
* @private
*/
BatchRequest.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;
};
BatchRequest.prototype.toString = function() {
return JSON.stringify(this);
};
BatchRequest._meta_ = {fields: {}};
BatchRequest._meta_._class_ = BatchRequest;
BatchRequest._meta_.fields["devices"] = {};
BatchRequest._meta_.fields["devices"].type = Array;
//
// Expose the module.
//
if ('undefined' !== typeof module) {
module.exports = BatchRequest;
}