Operating System Simulator Plugin  3.5.1
Unreal Engine plugin that simulates an Operating System Environment
Loading...
Searching...
No Matches
FOperatingSystemUserFundTransaction Struct Reference

Struct representing a user fund transaction in the operating system. More...

#include "OperatingSystemBankTypes.h"

Public Member Functions

FORCEINLINE bool IsValid () const
 
 FOperatingSystemUserFundTransaction ()
 
 FOperatingSystemUserFundTransaction (const FText &Description, const FText &Title, const float &Amount, const float &ClosingBalance)
 Constructs a user fund transaction. It contains various properties related to the transaction, such as description, remarks, amount, transaction ID, transaction type, date, and closing balance.
 

Public Attributes

FText Description
 

Protected Attributes

FText Remarks
 
float Amount
 
FString TransactionID
 
EOperatingSystemBankTransactionType TransactionType
 
FDateTime Date
 
float ClosingBalance
 

Detailed Description

Struct representing a user fund transaction in the operating system.

Constructor & Destructor Documentation

◆ FOperatingSystemUserFundTransaction() [1/2]

FOperatingSystemUserFundTransaction::FOperatingSystemUserFundTransaction ( )
inline

Default constructor

◆ FOperatingSystemUserFundTransaction() [2/2]

FOperatingSystemUserFundTransaction::FOperatingSystemUserFundTransaction ( const FText & Description,
const FText & Title,
const float & Amount,
const float & ClosingBalance )
inlineexplicit

Constructs a user fund transaction. It contains various properties related to the transaction, such as description, remarks, amount, transaction ID, transaction type, date, and closing balance.

Member Function Documentation

◆ IsValid()

FORCEINLINE bool FOperatingSystemUserFundTransaction::IsValid ( ) const
inline

Check if the transaction is valid.

A transaction is considered valid if:

  • The amount is greater than zero.
  • The transaction ID is not empty.
  • The transaction type is not set to Unknown.
  • The date is a valid date and time.
  • The closing balance is greater than or equal to zero.
Returns
True if the transaction is valid, false otherwise.
Here is the caller graph for this function:

Member Data Documentation

◆ Amount

float FOperatingSystemUserFundTransaction::Amount
protected

Transferred amount.

◆ ClosingBalance

float FOperatingSystemUserFundTransaction::ClosingBalance
protected

Balance after transaction.

◆ Date

FDateTime FOperatingSystemUserFundTransaction::Date
protected

UTC date at which the transaction was made.

◆ Description

FText FOperatingSystemUserFundTransaction::Description

Auto generated description.

◆ Remarks

FText FOperatingSystemUserFundTransaction::Remarks
protected

Can be sent to name or received from name.

◆ TransactionID

FString FOperatingSystemUserFundTransaction::TransactionID
protected

Unique ID of the transaction.

◆ TransactionType

EOperatingSystemBankTransactionType FOperatingSystemUserFundTransaction::TransactionType
protected

Type of transaction.


The documentation for this struct was generated from the following file: