Source: customers/PhoneNumber.js

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

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

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


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

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

/**
* Set the field value
* @memberof customers.PhoneNumber
* @param {String} phoneNumber 
*/
PhoneNumber.prototype.setPhoneNumber = function(phoneNumber) {
  this.phoneNumber = phoneNumber;
};

/**
* Get the field value
* @memberof customers.PhoneNumber
* @return {String} 
*/
PhoneNumber.prototype.getPhoneNumber = function() {
  return this.phoneNumber;
};

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

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

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

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

PhoneNumber._meta_ =  {fields:  {}};
PhoneNumber._meta_._class_ =  PhoneNumber;
PhoneNumber._meta_.fields["id"] = {};
PhoneNumber._meta_.fields["id"].type = String;
PhoneNumber._meta_.fields["phoneNumber"] = {};
PhoneNumber._meta_.fields["phoneNumber"].type = String;
PhoneNumber._meta_.fields["customer"] = {};
PhoneNumber._meta_.fields["customer"].type = base_Reference;

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