/**
* Autogenerated by Avro
*
* DO NOT EDIT DIRECTLY
*/
var payments_Payment = require("../payments/Payment");
var order_Order = require("../order/Order");
var payments_Refund = require("../payments/Refund");
/**
* @constructor
* @memberof remotepay
*/
var PrintRefundPaymentReceiptMessage = function() {
this._class_ = PrintRefundPaymentReceiptMessage;
this.payment = undefined;
this.order = undefined;
this.refund = undefined;
};
/**
* Set the field value
* @memberof remotepay.PrintRefundPaymentReceiptMessage
* @param {payments.Payment} payment
*/
PrintRefundPaymentReceiptMessage.prototype.setPayment = function(payment) {
this.payment = payment;
};
/**
* Get the field value
* @memberof remotepay.PrintRefundPaymentReceiptMessage
* @return {payments.Payment}
*/
PrintRefundPaymentReceiptMessage.prototype.getPayment = function() {
return this.payment;
};
/**
* Set the field value
* @memberof remotepay.PrintRefundPaymentReceiptMessage
* @param {order.Order} order
*/
PrintRefundPaymentReceiptMessage.prototype.setOrder = function(order) {
this.order = order;
};
/**
* Get the field value
* @memberof remotepay.PrintRefundPaymentReceiptMessage
* @return {order.Order}
*/
PrintRefundPaymentReceiptMessage.prototype.getOrder = function() {
return this.order;
};
/**
* Set the field value
* @memberof remotepay.PrintRefundPaymentReceiptMessage
* @param {payments.Refund} refund
*/
PrintRefundPaymentReceiptMessage.prototype.setRefund = function(refund) {
this.refund = refund;
};
/**
* Get the field value
* @memberof remotepay.PrintRefundPaymentReceiptMessage
* @return {payments.Refund}
*/
PrintRefundPaymentReceiptMessage.prototype.getRefund = function() {
return this.refund;
};
/**
* @memberof remotepay.PrintRefundPaymentReceiptMessage
* @private
*/
PrintRefundPaymentReceiptMessage.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;
};
PrintRefundPaymentReceiptMessage.prototype.toString = function() {
return JSON.stringify(this);
};
PrintRefundPaymentReceiptMessage._meta_ = {fields: {}};
PrintRefundPaymentReceiptMessage._meta_._class_ = PrintRefundPaymentReceiptMessage;
PrintRefundPaymentReceiptMessage._meta_.fields["payment"] = {};
PrintRefundPaymentReceiptMessage._meta_.fields["payment"].type = payments_Payment;
PrintRefundPaymentReceiptMessage._meta_.fields["order"] = {};
PrintRefundPaymentReceiptMessage._meta_.fields["order"].type = order_Order;
PrintRefundPaymentReceiptMessage._meta_.fields["refund"] = {};
PrintRefundPaymentReceiptMessage._meta_.fields["refund"].type = payments_Refund;
//
// Expose the module.
//
if ('undefined' !== typeof module) {
module.exports = PrintRefundPaymentReceiptMessage;
}