budget/src/money/account.h

36 lines
575 B
C
Raw Normal View History

2022-08-04 18:22:48 -05:00
//
// Created by quentin on 8/4/22.
//
#ifndef BUDGET_ACCOUNT_H
#define BUDGET_ACCOUNT_H
2022-09-16 19:21:56 -05:00
#include "payment.h"
#include "earning.h"
#include "../data/dateMoney.h"
#include <list>
#include <string>
#include <vector>
class Account {
2022-08-04 18:22:48 -05:00
public:
2022-09-16 19:21:56 -05:00
Account(std::list<Payment> payments, std::list<Earning> earnings, std::string name);
2022-08-04 18:22:48 -05:00
Account();
int getValue();
std::vector<DateMoney> getTimeline();
2022-09-13 15:11:12 -05:00
[[nodiscard]] const std::string &getName() const;
2022-08-04 18:22:48 -05:00
private:
2022-09-16 19:21:56 -05:00
std::list<Payment> payments;
std::list<Earning> earnings;
std::string name;
2022-08-04 18:22:48 -05:00
};
#endif //BUDGET_ACCOUNT_H