Struct representing a bank account in the operating system.
More...
#include "OperatingSystemBankTypes.h"
|
int64 | AccountNumber |
| The unique account number associated with a bank account. It is of type int64. This variable is used in several classes and functions in the bank system, including:
|
|
FDateTime | CreationDate |
| The creation date of the bank account. This variable represents the date and time when the bank account was created. It is of type FDateTime.
|
|
float | RemainingFunds |
| The remaining funds available in the bank account. This variable represents the amount of funds that are still available in the bank account. It is of type float. The initial value is 100.0.
|
|
TSet< FOperatingSystemCreditCard > | CreditCards |
| A set of credit cards associated with a bank account. This set represents the collection of credit cards that are associated with a bank account. It is of type TSet<FOperatingSystemCreditCard>.
|
|
TArray< FOperatingSystemUserFundTransaction > | TransactionHistory |
| An array representing the transaction history of a bank account. This variable represents the transaction history of a bank account. It stores the details of each fund transaction made by the user, such as the description, remarks, amount, transaction ID, transaction type, date, and closing balance. It is of type TArray<FOperatingSystemUserFundTransaction>.
|
|
FOperatingSystemBankSetting | BankSetting |
| Represents the banking settings for a specific bank account in the operating system. This variable is used to store the banking settings for a specific bank account in the operating system. It includes information such as the account number, creation date, available funds, credit cards associated, and transaction history. The BankSetting variable is of type FOperatingSystemBankSetting.
|
|
Struct representing a bank account in the operating system.
◆ FOperatingSystemBankAccount()
FOperatingSystemBankAccount::FOperatingSystemBankAccount |
( |
| ) |
|
|
inline |
◆ CreateNewBankAccount()
Creates a new bank account with the given bank settings and credit card type.
This method creates a new bank account with the specified bank settings and credit card type. It checks if the provided bank settings and credit card type are valid before creating the new account. If either the bank settings or the credit card type is invalid, an empty bank account is returned.
- Parameters
-
- Returns
- The newly created bank account with the specified bank settings and credit card type. If either the bank settings or the credit card type is invalid, an empty bank account is returned.
◆ FindCreditCard() [1/2]
Find the credit card with the specified card name.
This method searches for a credit card with the given card name in the CreditCards collection. If the card name is None, nullptr is returned. If a matching credit card is found, a pointer to it is returned. If no matching credit card is found, nullptr is returned.
- Parameters
-
CardName | The name of the credit card to search for. Must be a valid FName object. |
- Returns
- A const pointer to the matching credit card, or nullptr if not found.
◆ FindCreditCard() [2/2]
Find the credit card with the specified card number.
This method searches for a credit card with the given card number in the CreditCards
collection. If the card number is not found, nullptr is returned. If a matching credit card is found, a const pointer to it is returned. Note that this method does not modify the CreditCards
collection.
- Parameters
-
CardNumber | The card number to search for. Must be of type int64. |
- Returns
- A const pointer to the matching credit card, or nullptr if not found.
◆ IsValid()
FORCEINLINE bool FOperatingSystemBankAccount::IsValid |
( |
| ) |
const |
|
inline |
Checks if the bank transaction is valid.
The IsValid method verifies if all the necessary conditions for a bank transaction to be considered valid are met. These conditions include:
- The account number is greater than the minimum account number defined in the operating system bank settings (ACC_MIN).
- The account number is less than the maximum account number defined in the operating system bank settings (ACC_MAX).
- The remaining funds are greater than or equal to zero.
- The credit cards list is not empty.
- The bank setting is valid.
- Returns
- True if the bank transaction is valid, False otherwise.
◆ AccountNumber
int64 FOperatingSystemBankAccount::AccountNumber |
◆ BankSetting
Represents the banking settings for a specific bank account in the operating system. This variable is used to store the banking settings for a specific bank account in the operating system. It includes information such as the account number, creation date, available funds, credit cards associated, and transaction history. The BankSetting variable is of type FOperatingSystemBankSetting.
◆ CreationDate
FDateTime FOperatingSystemBankAccount::CreationDate |
The creation date of the bank account. This variable represents the date and time when the bank account was created. It is of type FDateTime.
◆ CreditCards
A set of credit cards associated with a bank account. This set represents the collection of credit cards that are associated with a bank account. It is of type TSet<FOperatingSystemCreditCard>.
◆ RemainingFunds
float FOperatingSystemBankAccount::RemainingFunds |
◆ TransactionHistory
An array representing the transaction history of a bank account. This variable represents the transaction history of a bank account. It stores the details of each fund transaction made by the user, such as the description, remarks, amount, transaction ID, transaction type, date, and closing balance. It is of type TArray<FOperatingSystemUserFundTransaction>.
The documentation for this struct was generated from the following file: