/**
* Autogenerated by Avro
*
* DO NOT EDIT DIRECTLY
*/
/**
* @constructor
* @memberof payments
*/
var BatchTransactions = function() {
this._class_ = BatchTransactions;
this.paymentIds = undefined;
this.refundIds = undefined;
this.creditIds = undefined;
};
/**
* Set the field value
* List of payments in the batch
*
* @memberof payments.BatchTransactions
* @param {Array.<String>} paymentIds An array of
*/
BatchTransactions.prototype.setPaymentIds = function(paymentIds) {
this.paymentIds = paymentIds;
};
/**
* Get the field value
* List of payments in the batch
* @memberof payments.BatchTransactions
* @return {Array.<String>} An array of
*/
BatchTransactions.prototype.getPaymentIds = function() {
return this.paymentIds;
};
/**
* Set the field value
* List of refunds in the batch
*
* @memberof payments.BatchTransactions
* @param {Array.<String>} refundIds An array of
*/
BatchTransactions.prototype.setRefundIds = function(refundIds) {
this.refundIds = refundIds;
};
/**
* Get the field value
* List of refunds in the batch
* @memberof payments.BatchTransactions
* @return {Array.<String>} An array of
*/
BatchTransactions.prototype.getRefundIds = function() {
return this.refundIds;
};
/**
* Set the field value
* List of credits in the batch
*
* @memberof payments.BatchTransactions
* @param {Array.<String>} creditIds An array of
*/
BatchTransactions.prototype.setCreditIds = function(creditIds) {
this.creditIds = creditIds;
};
/**
* Get the field value
* List of credits in the batch
* @memberof payments.BatchTransactions
* @return {Array.<String>} An array of
*/
BatchTransactions.prototype.getCreditIds = function() {
return this.creditIds;
};
/**
* @memberof payments.BatchTransactions
* @private
*/
BatchTransactions.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;
};
BatchTransactions.prototype.toString = function() {
return JSON.stringify(this);
};
BatchTransactions._meta_ = {fields: {}};
BatchTransactions._meta_._class_ = BatchTransactions;
BatchTransactions._meta_.fields["paymentIds"] = {};
BatchTransactions._meta_.fields["paymentIds"].type = Array;
BatchTransactions._meta_.fields["refundIds"] = {};
BatchTransactions._meta_.fields["refundIds"].type = Array;
BatchTransactions._meta_.fields["creditIds"] = {};
BatchTransactions._meta_.fields["creditIds"].type = Array;
//
// Expose the module.
//
if ('undefined' !== typeof module) {
module.exports = BatchTransactions;
}