Source: base/PendingPaymentEntry.js

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


/**
* @constructor
* @memberof base
*/
var PendingPaymentEntry = function() {
  this._class_ = PendingPaymentEntry;
  this.amount = undefined;
  this.paymentId = undefined;
  this.externalPaymentId = undefined;
  this.tipAmount = undefined;
};


/**
* Set the field value
* Total amount paid
*
* @memberof base.PendingPaymentEntry
* @param {Number} amount must be a long integer
*/
PendingPaymentEntry.prototype.setAmount = function(amount) {
  this.amount = amount;
};

/**
* Get the field value
* Total amount paid
* @memberof base.PendingPaymentEntry
* @return {Number} must be a long integer
*/
PendingPaymentEntry.prototype.getAmount = function() {
  return this.amount;
};

/**
* Set the field value
* Unique identifier for a payment
*
* @memberof base.PendingPaymentEntry
* @param {String} paymentId 
*/
PendingPaymentEntry.prototype.setPaymentId = function(paymentId) {
  this.paymentId = paymentId;
};

/**
* Get the field value
* Unique identifier for a payment
* @memberof base.PendingPaymentEntry
* @return {String} 
*/
PendingPaymentEntry.prototype.getPaymentId = function() {
  return this.paymentId;
};

/**
* Set the field value
* An id that will be persisted with transactions.
*
* @memberof base.PendingPaymentEntry
* @param {String} externalPaymentId 
*/
PendingPaymentEntry.prototype.setExternalPaymentId = function(externalPaymentId) {
  this.externalPaymentId = externalPaymentId;
};

/**
* Get the field value
* An id that will be persisted with transactions.
* @memberof base.PendingPaymentEntry
* @return {String} 
*/
PendingPaymentEntry.prototype.getExternalPaymentId = function() {
  return this.externalPaymentId;
};

/**
* Set the field value
* Included tip
*
* @memberof base.PendingPaymentEntry
* @param {Number|Null} tipAmount must be a long integer, 
*/
PendingPaymentEntry.prototype.setTipAmount = function(tipAmount) {
  this.tipAmount = tipAmount;
};

/**
* Get the field value
* Included tip
* @memberof base.PendingPaymentEntry
* @return {Number|Null} must be a long integer, 
*/
PendingPaymentEntry.prototype.getTipAmount = function() {
  return this.tipAmount;
};

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

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

PendingPaymentEntry._meta_ =  {fields:  {}};
PendingPaymentEntry._meta_._class_ =  PendingPaymentEntry;
PendingPaymentEntry._meta_.fields["amount"] = {};
PendingPaymentEntry._meta_.fields["amount"].type = Number;
PendingPaymentEntry._meta_.fields["paymentId"] = {};
PendingPaymentEntry._meta_.fields["paymentId"].type = String;
PendingPaymentEntry._meta_.fields["externalPaymentId"] = {};
PendingPaymentEntry._meta_.fields["externalPaymentId"].type = String;
PendingPaymentEntry._meta_.fields["tipAmount"] = {};
PendingPaymentEntry._meta_.fields["tipAmount"].type = Number;

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