#include <BankAccountCode.hpp>
Public Member Functions | |
BankAccountCode () | |
Default constructor for the BankAccountCode class. | |
BankAccountCode (banking::BankAccount bankAccount, accounting::AccountCode code, pecunia::Currency issuedIn) | |
Full constructor for a bank account. | |
const accounting::AccountCode & | account () const noexcept |
An accessor to the financial institution account. | |
const banking::BankName & | bank () const noexcept |
An accessor to the name of the financial institution. | |
const banking::AccountNumberBankType & | bankAccountType () const noexcept |
An accessor to the limited information about the bank account. | |
const pecunia::Currency & | issuedIn () const noexcept |
An accessor to the currency used in the financial institution's account. | |
std::strong_ordering | operator<=> (const BankAccountCode &other) const noexcept |
A three-way comparator based upon the financial institution's account and account currency. | |
const banking::BankAccountTypes & | supportedAccountType () const noexcept |
An accessor to the financial institution's account type. | |
Represents a bank account that allows showing account details, such as account number, balance currency, and account holder information.
drn::navigation::BankAccountCode::BankAccountCode | ( | ) |
Default constructor for the BankAccountCode class.
This constructor initializes an instance of the BankAccountCode class with default values. No specific bank account, account code, or currency is assigned when this constructor is used.
drn::navigation::BankAccountCode::BankAccountCode | ( | banking::BankAccount | bankAccount, |
accounting::AccountCode | code, | ||
pecunia::Currency | issuedIn ) |
Full constructor for a bank account.
Error | If the account number of the bank account does not match the account code. |
bankAccount | The bank account that is associated with the account code. |
code | The account code that is associated with the bank account. |
issuedIn | The currency in which the account is issued in. |
|
nodiscardnoexcept |
An accessor to the financial institution account.
|
nodiscardnoexcept |
An accessor to the name of the financial institution.
|
nodiscardnoexcept |
An accessor to the limited information about the bank account.
|
nodiscardnoexcept |
An accessor to the currency used in the financial institution's account.
|
nodiscardnoexcept |
A three-way comparator based upon the financial institution's account and account currency.
other | The other object to compare against. |
|
nodiscardnoexcept |
An accessor to the financial institution's account type.