Source: customers/IdentityDocument.js

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

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

/**
* @constructor
* @memberof customers
*/
var IdentityDocument = function() {
  this._class_ = IdentityDocument;
  this.id = undefined;
  this.type = undefined;
  this.number = undefined;
  this.createdTime = undefined;
  this.modifiedTime = undefined;
  this.deletedTime = undefined;
  this.payment = undefined;
};


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

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

/**
* Set the field value
* Type of personal identification: National Document, Passport, etc
*
* @memberof customers.IdentityDocument
* @param {String} type 
*/
IdentityDocument.prototype.setType = function(type) {
  this.type = type;
};

/**
* Get the field value
* Type of personal identification: National Document, Passport, etc
* @memberof customers.IdentityDocument
* @return {String} 
*/
IdentityDocument.prototype.getType = function() {
  return this.type;
};

/**
* Set the field value
* The identification number
*
* @memberof customers.IdentityDocument
* @param {String} number 
*/
IdentityDocument.prototype.setNumber = function(number) {
  this.number = number;
};

/**
* Get the field value
* The identification number
* @memberof customers.IdentityDocument
* @return {String} 
*/
IdentityDocument.prototype.getNumber = function() {
  return this.number;
};

/**
* Set the field value
* Created timestamp.
*
* @memberof customers.IdentityDocument
* @param {Number} createdTime must be a long integer
*/
IdentityDocument.prototype.setCreatedTime = function(createdTime) {
  this.createdTime = createdTime;
};

/**
* Get the field value
* Created timestamp.
* @memberof customers.IdentityDocument
* @return {Number} must be a long integer
*/
IdentityDocument.prototype.getCreatedTime = function() {
  return this.createdTime;
};

/**
* Set the field value
* Modified timestamp.
*
* @memberof customers.IdentityDocument
* @param {Number} modifiedTime must be a long integer
*/
IdentityDocument.prototype.setModifiedTime = function(modifiedTime) {
  this.modifiedTime = modifiedTime;
};

/**
* Get the field value
* Modified timestamp.
* @memberof customers.IdentityDocument
* @return {Number} must be a long integer
*/
IdentityDocument.prototype.getModifiedTime = function() {
  return this.modifiedTime;
};

/**
* Set the field value
* Deleted timestamp.
*
* @memberof customers.IdentityDocument
* @param {Number} deletedTime must be a long integer
*/
IdentityDocument.prototype.setDeletedTime = function(deletedTime) {
  this.deletedTime = deletedTime;
};

/**
* Get the field value
* Deleted timestamp.
* @memberof customers.IdentityDocument
* @return {Number} must be a long integer
*/
IdentityDocument.prototype.getDeletedTime = function() {
  return this.deletedTime;
};

/**
* Set the field value
* @memberof customers.IdentityDocument
* @param {base.Reference} payment 
*/
IdentityDocument.prototype.setPayment = function(payment) {
  this.payment = payment;
};

/**
* Get the field value
* @memberof customers.IdentityDocument
* @return {base.Reference} 
*/
IdentityDocument.prototype.getPayment = function() {
  return this.payment;
};

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

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

IdentityDocument._meta_ =  {fields:  {}};
IdentityDocument._meta_._class_ =  IdentityDocument;
IdentityDocument._meta_.fields["id"] = {};
IdentityDocument._meta_.fields["id"].type = String;
IdentityDocument._meta_.fields["type"] = {};
IdentityDocument._meta_.fields["type"].type = String;
IdentityDocument._meta_.fields["number"] = {};
IdentityDocument._meta_.fields["number"].type = String;
IdentityDocument._meta_.fields["createdTime"] = {};
IdentityDocument._meta_.fields["createdTime"].type = Number;
IdentityDocument._meta_.fields["modifiedTime"] = {};
IdentityDocument._meta_.fields["modifiedTime"].type = Number;
IdentityDocument._meta_.fields["deletedTime"] = {};
IdentityDocument._meta_.fields["deletedTime"].type = Number;
IdentityDocument._meta_.fields["payment"] = {};
IdentityDocument._meta_.fields["payment"].type = base_Reference;

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