Source: payments/VasPayload.js

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

var payments_VasPayloadElement = require("../payments/VasPayloadElement");

/**
* @constructor
* @memberof payments
*/
var VasPayload = function() {
  this._class_ = VasPayload;
  this.payloadElements = undefined;
};


/**
* Set the field value
* List of vas data elements returned during tx
*
* @memberof payments.VasPayload
* @param {Array.<payments.VasPayloadElement>} payloadElements An array of 
*/
VasPayload.prototype.setPayloadElements = function(payloadElements) {
  this.payloadElements = payloadElements;
};

/**
* Get the field value
* List of vas data elements returned during tx
* @memberof payments.VasPayload
* @return {Array.<payments.VasPayloadElement>} An array of 
*/
VasPayload.prototype.getPayloadElements = function() {
  return this.payloadElements;
};

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

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

VasPayload._meta_ =  {fields:  {}};
VasPayload._meta_._class_ =  VasPayload;
VasPayload._meta_.fields["payloadElements"] = {};
VasPayload._meta_.fields["payloadElements"].type = Array;
VasPayload._meta_.fields["payloadElements"].elementType = payments_VasPayloadElement;

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