DuxReiNummariae 1.0.0-alpha.23
Simple and powerful budgeting application
 
Loading...
Searching...
No Matches
drn::banking::BankAccount Struct Reference

Represents a simple bank account with basic operations. More...

#include <BankAccount.h>

Collaboration diagram for drn::banking::BankAccount:

Public Member Functions

std::strong_ordering operator<=> (const BankAccount &other) const =default
 

Public Attributes

AccountNumberBankType accountType_ {}
 Indicates the type and ledger number of bank account.
 
BankName name_ {}
 Represents the name of the associated financial institution for a bank account.
 

Detailed Description

Represents a simple bank account with basic operations.

This class allows users to manage a bank account by performing actions such as depositing funds, withdrawing funds, and checking the account balance. It is designed for scenarios where basic financial account management is required.

Use this class to maintain an account's financial state and interact with its balance through a set of straightforward operations. You can create an account, deposit or withdraw funds, and obtain the current account balance.

Member Function Documentation

◆ operator<=>()

std::strong_ordering drn::banking::BankAccount::operator<=> ( const BankAccount & other) const
default

Member Data Documentation

◆ accountType_

AccountNumberBankType drn::banking::BankAccount::accountType_ {}

Indicates the type and ledger number of bank account.

This variable specifies whether the account is, for example, a savings account, checking account, or other types as implemented in the system.

◆ name_

BankName drn::banking::BankAccount::name_ {}

Represents the name of the associated financial institution for a bank account.

This member variable serves as an identifier for the financial institution associated with the bank account. It ensures that each bank account is uniquely tied to its source institution, enabling clear and consistent usage in a variety of banking operations or financial reconciliations.

Use this member to store or retrieve the name of the financial institution when performing actions that require institution-specific identification, such as reconciliation, reporting, and interbank communication.