Initial commit
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
#ifndef CREATE_REFUND_REQUEST_H
|
||||
#define CREATE_REFUND_REQUEST_H
|
||||
|
||||
#include <QDateTime>
|
||||
|
||||
class CreateRefundRequest {
|
||||
private:
|
||||
QDateTime refundAt_; // Refund date and time
|
||||
double refundAmount_; // Refund amount
|
||||
qint32 ticketId_; // Ticket ID
|
||||
|
||||
public:
|
||||
// Constructors
|
||||
explicit CreateRefundRequest() = default;
|
||||
explicit CreateRefundRequest(const QDateTime &refundAt, double refundAmount,
|
||||
qint32 ticketId)
|
||||
: refundAt_(refundAt), refundAmount_(refundAmount), ticketId_(ticketId) {}
|
||||
|
||||
// Setters (inline methods)
|
||||
inline void setRefundAt(const QDateTime &refundAt) { refundAt_ = refundAt; }
|
||||
inline void setRefundAmount(double refundAmount) {
|
||||
refundAmount_ = refundAmount;
|
||||
}
|
||||
inline void setTicketId(qint32 ticketId) { ticketId_ = ticketId; }
|
||||
|
||||
// Getters (inline methods)
|
||||
inline QDateTime refundAt() const { return refundAt_; }
|
||||
inline double refundAmount() const { return refundAmount_; }
|
||||
inline qint32 ticketId() const { return ticketId_; }
|
||||
};
|
||||
|
||||
#endif // CREATE_REFUND_REQUEST_H
|
||||
Reference in New Issue
Block a user