Source: payments/TerminalManagementErrorAction.js

/**
 * Autogenerated by Avro
 * 
 * DO NOT EDIT DIRECTLY
 */

var payments_TerminalManagementErrorActionType = require("../payments/TerminalManagementErrorActionType");
var payments_TerminalManagementActionResult = require("../payments/TerminalManagementActionResult");

/**
* @constructor
* @memberof payments
*/
var TerminalManagementErrorAction = function() {
  this._class_ = TerminalManagementErrorAction;
  this.results = undefined;
  this.action = undefined;
};


/**
* Set the field value
* List of error actions to apply the action
*
* @memberof payments.TerminalManagementErrorAction
* @param {Array.<payments.TerminalManagementActionResult>} results An array of 
*/
TerminalManagementErrorAction.prototype.setResults = function(results) {
  this.results = results;
};

/**
* Get the field value
* List of error actions to apply the action
* @memberof payments.TerminalManagementErrorAction
* @return {Array.<payments.TerminalManagementActionResult>} An array of 
*/
TerminalManagementErrorAction.prototype.getResults = function() {
  return this.results;
};

/**
* Set the field value
* action to take
*
* @memberof payments.TerminalManagementErrorAction
* @param {payments.TerminalManagementErrorActionType} action 
*/
TerminalManagementErrorAction.prototype.setAction = function(action) {
  this.action = action;
};

/**
* Get the field value
* action to take
* @memberof payments.TerminalManagementErrorAction
* @return {payments.TerminalManagementErrorActionType} 
*/
TerminalManagementErrorAction.prototype.getAction = function() {
  return this.action;
};

/**
* @memberof payments.TerminalManagementErrorAction
* @private
*/
TerminalManagementErrorAction.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;
};

TerminalManagementErrorAction.prototype.toString = function() {
  return JSON.stringify(this);
};

TerminalManagementErrorAction._meta_ =  {fields:  {}};
TerminalManagementErrorAction._meta_._class_ =  TerminalManagementErrorAction;
TerminalManagementErrorAction._meta_.fields["results"] = {};
TerminalManagementErrorAction._meta_.fields["results"].type = Array;
TerminalManagementErrorAction._meta_.fields["results"].elementType = payments_TerminalManagementActionResult;
TerminalManagementErrorAction._meta_.fields["action"] = {};
TerminalManagementErrorAction._meta_.fields["action"].type = payments_TerminalManagementErrorActionType;

//
// Expose the module.
//
if ('undefined' !== typeof module) {
module.exports = TerminalManagementErrorAction;
}