35 lines
546 B
C
35 lines
546 B
C
|
//
|
||
|
// 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 {
|
||
|
class PaymentOperation : public Operation{
|
||
|
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
|