38 lines
1.2 KiB
C++
38 lines
1.2 KiB
C++
|
|
#ifndef UPDATE_REFUND_REQUEST_H
|
||
|
|
#define UPDATE_REFUND_REQUEST_H
|
||
|
|
|
||
|
|
#include <QDateTime>
|
||
|
|
|
||
|
|
class UpdateRefundRequest {
|
||
|
|
private:
|
||
|
|
QDateTime refundAt_; // Refund date and time
|
||
|
|
double refundAmount_; // Refund amount
|
||
|
|
qint32 refundId_; // Refund ID
|
||
|
|
qint32 ticketId_; // Ticket ID
|
||
|
|
|
||
|
|
public:
|
||
|
|
// Constructors
|
||
|
|
explicit UpdateRefundRequest() = default;
|
||
|
|
explicit UpdateRefundRequest(const QDateTime &refundAt, double refundAmount,
|
||
|
|
qint32 refundId, qint32 ticketId)
|
||
|
|
: refundAmount_(refundAmount), refundAt_(refundAt), refundId_(refundId),
|
||
|
|
ticketId_(ticketId) {}
|
||
|
|
|
||
|
|
// Setters (inline methods)
|
||
|
|
inline void setRefundAmount(double refundAmount) {
|
||
|
|
refundAmount_ = refundAmount;
|
||
|
|
}
|
||
|
|
inline void setRefundAt(const QDateTime &refundAt) { refundAt_ = refundAt; }
|
||
|
|
inline void setRefundId(qint32 refundId) { refundId_ = refundId; }
|
||
|
|
inline void setTicketId(qint32 ticketId) { ticketId_ = ticketId; }
|
||
|
|
|
||
|
|
// Getters (inline methods)
|
||
|
|
inline QDateTime refundAt() const { return refundAt_; }
|
||
|
|
inline double refundAmount() const { return refundAmount_; }
|
||
|
|
inline qint32 refundId() const { return refundId_; }
|
||
|
|
inline qint32 ticketId() const { return ticketId_; }
|
||
|
|
};
|
||
|
|
|
||
|
|
#endif // UPDATE_REFUND_REQUEST_H
|
||
|
|
|