Source: payments/PaymentAttribute.js

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


/**
* @constructor
* @memberof payments
*/
var PaymentAttribute = function() {
  this._class_ = PaymentAttribute;
  this.type = undefined;
  this.value = undefined;
};


/**
* Set the field value
* @memberof payments.PaymentAttribute
* @param {String} type 
*/
PaymentAttribute.prototype.setType = function(type) {
  this.type = type;
};

/**
* Get the field value
* @memberof payments.PaymentAttribute
* @return {String} 
*/
PaymentAttribute.prototype.getType = function() {
  return this.type;
};

/**
* Set the field value
* @memberof payments.PaymentAttribute
* @param {String} value 
*/
PaymentAttribute.prototype.setValue = function(value) {
  this.value = value;
};

/**
* Get the field value
* @memberof payments.PaymentAttribute
* @return {String} 
*/
PaymentAttribute.prototype.getValue = function() {
  return this.value;
};

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

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

PaymentAttribute._meta_ =  {fields:  {}};
PaymentAttribute._meta_._class_ =  PaymentAttribute;
PaymentAttribute._meta_.fields["type"] = {};
PaymentAttribute._meta_.fields["type"].type = String;
PaymentAttribute._meta_.fields["value"] = {};
PaymentAttribute._meta_.fields["value"].type = String;

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