/**
* Autogenerated by Avro
*
* DO NOT EDIT DIRECTLY
*/
var payments_CashAdvanceCustomerIdentification = require("../payments/CashAdvanceCustomerIdentification");
var base_Reference = require("../base/Reference");
/**
* @constructor
* @memberof payments
*/
var CashAdvanceExtra = function() {
this._class_ = CashAdvanceExtra;
this.cashAdvanceSerialNum = undefined;
this.cashAdvanceCustomerIdentification = undefined;
this.paymentRef = undefined;
};
/**
* Set the field value
* @memberof payments.CashAdvanceExtra
* @param {String} cashAdvanceSerialNum
*/
CashAdvanceExtra.prototype.setCashAdvanceSerialNum = function(cashAdvanceSerialNum) {
this.cashAdvanceSerialNum = cashAdvanceSerialNum;
};
/**
* Get the field value
* @memberof payments.CashAdvanceExtra
* @return {String}
*/
CashAdvanceExtra.prototype.getCashAdvanceSerialNum = function() {
return this.cashAdvanceSerialNum;
};
/**
* Set the field value
* @memberof payments.CashAdvanceExtra
* @param {payments.CashAdvanceCustomerIdentification} cashAdvanceCustomerIdentification
*/
CashAdvanceExtra.prototype.setCashAdvanceCustomerIdentification = function(cashAdvanceCustomerIdentification) {
this.cashAdvanceCustomerIdentification = cashAdvanceCustomerIdentification;
};
/**
* Get the field value
* @memberof payments.CashAdvanceExtra
* @return {payments.CashAdvanceCustomerIdentification}
*/
CashAdvanceExtra.prototype.getCashAdvanceCustomerIdentification = function() {
return this.cashAdvanceCustomerIdentification;
};
/**
* Set the field value
* The payment with which this cash advance extra is associated
*
* @memberof payments.CashAdvanceExtra
* @param {base.Reference} paymentRef
*/
CashAdvanceExtra.prototype.setPaymentRef = function(paymentRef) {
this.paymentRef = paymentRef;
};
/**
* Get the field value
* The payment with which this cash advance extra is associated
* @memberof payments.CashAdvanceExtra
* @return {base.Reference}
*/
CashAdvanceExtra.prototype.getPaymentRef = function() {
return this.paymentRef;
};
/**
* @memberof payments.CashAdvanceExtra
* @private
*/
CashAdvanceExtra.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;
};
CashAdvanceExtra.prototype.toString = function() {
return JSON.stringify(this);
};
CashAdvanceExtra._meta_ = {fields: {}};
CashAdvanceExtra._meta_._class_ = CashAdvanceExtra;
CashAdvanceExtra._meta_.fields["cashAdvanceSerialNum"] = {};
CashAdvanceExtra._meta_.fields["cashAdvanceSerialNum"].type = String;
CashAdvanceExtra._meta_.fields["cashAdvanceCustomerIdentification"] = {};
CashAdvanceExtra._meta_.fields["cashAdvanceCustomerIdentification"].type = payments_CashAdvanceCustomerIdentification;
CashAdvanceExtra._meta_.fields["paymentRef"] = {};
CashAdvanceExtra._meta_.fields["paymentRef"].type = base_Reference;
//
// Expose the module.
//
if ('undefined' !== typeof module) {
module.exports = CashAdvanceExtra;
}