Source: payments/TerminalManagementEvent.js

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

var payments_TerminalManagementActionResult = require("../payments/TerminalManagementActionResult");
var payments_TerminalManagementPlanAction = require("../payments/TerminalManagementPlanAction");

/**
* @constructor
* @memberof payments
*/
var TerminalManagementEvent = function() {
  this._class_ = TerminalManagementEvent;
  this.result = undefined;
  this.additionalInfo = undefined;
  this.createdTime = undefined;
  this.action = undefined;
};


/**
* Set the field value
* result of the task
*
* @memberof payments.TerminalManagementEvent
* @param {payments.TerminalManagementActionResult} result 
*/
TerminalManagementEvent.prototype.setResult = function(result) {
  this.result = result;
};

/**
* Get the field value
* result of the task
* @memberof payments.TerminalManagementEvent
* @return {payments.TerminalManagementActionResult} 
*/
TerminalManagementEvent.prototype.getResult = function() {
  return this.result;
};

/**
* Set the field value
* additional info regarding the task outcome (e.g. error info)
*
* @memberof payments.TerminalManagementEvent
* @param {String} additionalInfo 
*/
TerminalManagementEvent.prototype.setAdditionalInfo = function(additionalInfo) {
  this.additionalInfo = additionalInfo;
};

/**
* Get the field value
* additional info regarding the task outcome (e.g. error info)
* @memberof payments.TerminalManagementEvent
* @return {String} 
*/
TerminalManagementEvent.prototype.getAdditionalInfo = function() {
  return this.additionalInfo;
};

/**
* Set the field value
* Timestamp indicating when the note was last updated.
*
* @memberof payments.TerminalManagementEvent
* @param {Number} createdTime must be a long integer
*/
TerminalManagementEvent.prototype.setCreatedTime = function(createdTime) {
  this.createdTime = createdTime;
};

/**
* Get the field value
* Timestamp indicating when the note was last updated.
* @memberof payments.TerminalManagementEvent
* @return {Number} must be a long integer
*/
TerminalManagementEvent.prototype.getCreatedTime = function() {
  return this.createdTime;
};

/**
* Set the field value
* The action this event relates to
*
* @memberof payments.TerminalManagementEvent
* @param {payments.TerminalManagementPlanAction} action 
*/
TerminalManagementEvent.prototype.setAction = function(action) {
  this.action = action;
};

/**
* Get the field value
* The action this event relates to
* @memberof payments.TerminalManagementEvent
* @return {payments.TerminalManagementPlanAction} 
*/
TerminalManagementEvent.prototype.getAction = function() {
  return this.action;
};

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

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

TerminalManagementEvent._meta_ =  {fields:  {}};
TerminalManagementEvent._meta_._class_ =  TerminalManagementEvent;
TerminalManagementEvent._meta_.fields["result"] = {};
TerminalManagementEvent._meta_.fields["result"].type = payments_TerminalManagementActionResult;
TerminalManagementEvent._meta_.fields["additionalInfo"] = {};
TerminalManagementEvent._meta_.fields["additionalInfo"].type = String;
TerminalManagementEvent._meta_.fields["createdTime"] = {};
TerminalManagementEvent._meta_.fields["createdTime"].type = Number;
TerminalManagementEvent._meta_.fields["action"] = {};
TerminalManagementEvent._meta_.fields["action"].type = payments_TerminalManagementPlanAction;

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