Source: customers/EmailAddress.js

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

var base_Reference = require("../base/Reference");

/**
* @constructor
* @memberof customers
*/
var EmailAddress = function() {
  this._class_ = EmailAddress;
  this.id = undefined;
  this.emailAddress = undefined;
  this.verifiedTime = undefined;
  this.customer = undefined;
};


/**
* Set the field value
* @memberof customers.EmailAddress
* @param {String} id 
*/
EmailAddress.prototype.setId = function(id) {
  this.id = id;
};

/**
* Get the field value
* @memberof customers.EmailAddress
* @return {String} 
*/
EmailAddress.prototype.getId = function() {
  return this.id;
};

/**
* Set the field value
* @memberof customers.EmailAddress
* @param {String} emailAddress 
*/
EmailAddress.prototype.setEmailAddress = function(emailAddress) {
  this.emailAddress = emailAddress;
};

/**
* Get the field value
* @memberof customers.EmailAddress
* @return {String} 
*/
EmailAddress.prototype.getEmailAddress = function() {
  return this.emailAddress;
};

/**
* Set the field value
* @memberof customers.EmailAddress
* @param {Number} verifiedTime must be a long integer
*/
EmailAddress.prototype.setVerifiedTime = function(verifiedTime) {
  this.verifiedTime = verifiedTime;
};

/**
* Get the field value
* @memberof customers.EmailAddress
* @return {Number} must be a long integer
*/
EmailAddress.prototype.getVerifiedTime = function() {
  return this.verifiedTime;
};

/**
* Set the field value
* Customer who this email address belongs to.
*
* @memberof customers.EmailAddress
* @param {base.Reference} customer 
*/
EmailAddress.prototype.setCustomer = function(customer) {
  this.customer = customer;
};

/**
* Get the field value
* Customer who this email address belongs to.
* @memberof customers.EmailAddress
* @return {base.Reference} 
*/
EmailAddress.prototype.getCustomer = function() {
  return this.customer;
};

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

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

EmailAddress._meta_ =  {fields:  {}};
EmailAddress._meta_._class_ =  EmailAddress;
EmailAddress._meta_.fields["id"] = {};
EmailAddress._meta_.fields["id"].type = String;
EmailAddress._meta_.fields["emailAddress"] = {};
EmailAddress._meta_.fields["emailAddress"].type = String;
EmailAddress._meta_.fields["verifiedTime"] = {};
EmailAddress._meta_.fields["verifiedTime"].type = Number;
EmailAddress._meta_.fields["customer"] = {};
EmailAddress._meta_.fields["customer"].type = base_Reference;

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