Source: payments/AssociatedPayments.js

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

var payments_AssociatedPayment = require("../payments/AssociatedPayment");

/** A collection of AssoicatedPayment objects */
/**
* @constructor
* @memberof payments
*/
var AssociatedPayments = function() {
  this._class_ = AssociatedPayments;
  this.associatedPayments = undefined;
};


/**
* Set the field value
* @memberof payments.AssociatedPayments
* @param {Array.<payments.AssociatedPayment>} associatedPayments An array of 
*/
AssociatedPayments.prototype.setAssociatedPayments = function(associatedPayments) {
  this.associatedPayments = associatedPayments;
};

/**
* Get the field value
* @memberof payments.AssociatedPayments
* @return {Array.<payments.AssociatedPayment>} An array of 
*/
AssociatedPayments.prototype.getAssociatedPayments = function() {
  return this.associatedPayments;
};

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

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

AssociatedPayments._meta_ =  {fields:  {}};
AssociatedPayments._meta_._class_ =  AssociatedPayments;
AssociatedPayments._meta_.fields["associatedPayments"] = {};
AssociatedPayments._meta_.fields["associatedPayments"].type = Array;
AssociatedPayments._meta_.fields["associatedPayments"].elementType = payments_AssociatedPayment;

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