A representation of a survey account mapping before being completed. More...
#include <MappingSurvey.h>
Public Member Functions | |
MappingSurvey ()=default | |
MappingSurvey (banking::ReconciledBankAccount reconciled, pecunia::Money expectedBalance, ::QDate calculatedFrom, std::map< budgeting::BudgetItemIdentifier, std::set< BalanceChange > > used, std::map< budgeting::BudgetItemIdentifier, DistributedAmount > distributable, std::map< accounting::AccountCode, std::set< BalanceChange > > additional, std::optional< pecunia::Money > remainingExpenses) | |
Constructs a survey that fully constructs the object. | |
MappingSurvey (const MappingSurvey &other) | |
MappingSurvey (MappingSurvey &&other) noexcept | |
~MappingSurvey ()=default | |
const std::map< accounting::AccountCode, std::set< BalanceChange > > & | additional () const noexcept |
An accessor to any additional transactions involving the bank account but not a budget item, e.g. an opening balance, paying budget items using child accounts, etc. | |
const ::QDate & | calculatedFrom () const noexcept |
An accessor to the date the expected balance of the bank account is calculated from. | |
const std::map< budgeting::BudgetItemIdentifier, DistributedAmount > & | distributable () const noexcept |
An accessor to the predicted way the expected balance could be distributable throughout the budget. | |
const pecunia::Money & | expectedBalance () const noexcept |
An accessor to the balance of the bank account calculated from the budget information. N.B. this may, and often is, different that the reconciled balance from a bank statement. | |
MappingSurvey & | operator= (const MappingSurvey &other) |
MappingSurvey & | operator= (MappingSurvey &&other) noexcept |
const banking::ReconciledBankAccount & | reconciled () const noexcept |
An accessor to the bank account that is being mapped for reconciliation. | |
const std::optional< pecunia::Money > & | remainingExpenses () const noexcept |
An accessor to the remaining expenses to be spent in the current month. | |
const std::map< budgeting::BudgetItemIdentifier, std::set< BalanceChange > > & | used () const noexcept |
An accessor to all the budget item transactions that are not reconciled for the bank account. | |
A representation of a survey account mapping before being completed.
|
default |
drn::surveying::MappingSurvey::MappingSurvey | ( | banking::ReconciledBankAccount | reconciled, |
pecunia::Money | expectedBalance, | ||
::QDate | calculatedFrom, | ||
std::map< budgeting::BudgetItemIdentifier, std::set< BalanceChange > > | used, | ||
std::map< budgeting::BudgetItemIdentifier, DistributedAmount > | distributable, | ||
std::map< accounting::AccountCode, std::set< BalanceChange > > | additional, | ||
std::optional< pecunia::Money > | remainingExpenses ) |
Constructs a survey that fully constructs the object.
BankError | Thrown if the currency of the reconciled bank account does not match the currency of the expected balance. |
BankError | Thrown if an optional remaining expense is present and its currency does not match the reconciled bank account currency. |
reconciled | A reconciled bank account that represents the current state of the bank balance. |
expectedBalance | The amount expected to reconcile after incorporating various changes. |
calculatedFrom | The date from which the expected balance is calculated. |
used | A mapping of budget items to their associated balance changes. |
distributable | A mapping of budget items to amounts that can be further distributed for use in the future. |
additional | Additional changes mapped to specific account codes for consideration. |
remainingExpenses | When provided, is the amount of expenses that are expected in the current month. |
drn::surveying::MappingSurvey::MappingSurvey | ( | const MappingSurvey & | other | ) |
|
noexcept |
|
default |
|
nodiscardnoexcept |
An accessor to any additional transactions involving the bank account but not a budget item, e.g. an opening balance, paying budget items using child accounts, etc.
|
nodiscardnoexcept |
An accessor to the date the expected balance of the bank account is calculated from.
|
nodiscardnoexcept |
An accessor to the predicted way the expected balance could be distributable throughout the budget.
|
nodiscardnoexcept |
An accessor to the balance of the bank account calculated from the budget information. N.B. this may, and often is, different that the reconciled balance from a bank statement.
MappingSurvey & drn::surveying::MappingSurvey::operator= | ( | const MappingSurvey & | other | ) |
|
noexcept |
|
nodiscardnoexcept |
An accessor to the bank account that is being mapped for reconciliation.
|
nodiscardnoexcept |
An accessor to the remaining expenses to be spent in the current month.
|
nodiscardnoexcept |
An accessor to all the budget item transactions that are not reconciled for the bank account.