budget/src/optHandlers/PaymentOperation.h

35 lines
547 B
C
Raw Normal View History

2023-01-17 13:39:00 -06:00
//
// Created by quentin on 1/17/23.
//
#ifndef BUDGET_PAYMENTOPERATION_H
#define BUDGET_PAYMENTOPERATION_H
#include <string>
#include <ctime>
#include "operation.h"
namespace Budget::OptHandlers {
2023-01-17 13:47:36 -06:00
class PaymentOperation : public Operation {
2023-01-17 13:39:00 -06:00
public:
void commit() override;
explicit PaymentOperation();
struct Flags : public Operation::Flags {
long double value;
std::string description;
std::string receipt;
long long date = std::time(nullptr);
};
Flags flags;
};
}
#endif //BUDGET_PAYMENTOPERATION_H