2022-08-04 18:22:48 -05:00
|
|
|
//
|
|
|
|
// Created by quentin on 8/4/22.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef BUDGET_ACCOUNT_H
|
|
|
|
#define BUDGET_ACCOUNT_H
|
|
|
|
|
|
|
|
|
2022-08-12 15:26:25 -05:00
|
|
|
#include "transaction.h"
|
|
|
|
#include "earning.h"
|
2022-08-13 12:00:05 -05:00
|
|
|
#include "../data/dateMoney.h"
|
2022-08-12 15:26:25 -05:00
|
|
|
#include <list>
|
|
|
|
#include <string>
|
2022-08-13 12:00:05 -05:00
|
|
|
#include <vector>
|
2022-08-12 15:26:25 -05:00
|
|
|
|
|
|
|
class Account {
|
2022-08-04 18:22:48 -05:00
|
|
|
public:
|
2022-08-12 15:26:25 -05:00
|
|
|
Account(std::list<Transaction> transactions, std::list<Earning> earnings, bool withdrawable,
|
|
|
|
std::string name);
|
2022-08-04 18:22:48 -05:00
|
|
|
|
2022-08-12 15:26:25 -05:00
|
|
|
Account();
|
2022-08-13 12:00:05 -05:00
|
|
|
|
|
|
|
int getValue();
|
|
|
|
std::vector<DateMoney> getTimeline();
|
|
|
|
|
2022-08-12 15:26:25 -05:00
|
|
|
|
2022-08-04 18:22:48 -05:00
|
|
|
private:
|
2022-08-12 15:26:25 -05:00
|
|
|
std::list<Transaction> transactions;
|
|
|
|
std::list<Earning> earnings;
|
|
|
|
bool withdrawable;
|
|
|
|
std::string name;
|
2022-08-04 18:22:48 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif //BUDGET_ACCOUNT_H
|