AppCore
Loading...
Searching...
No Matches
Public Member Functions | List of all members
EM::TicketIssueLogic::EWalletModule Class Reference

#include <EWalletModule.h>

Inheritance diagram for EM::TicketIssueLogic::EWalletModule:
Inheritance graph
[legend]
Collaboration diagram for EM::TicketIssueLogic::EWalletModule:
Collaboration graph
[legend]

Public Member Functions

 EWalletModule (ETicketIssueLogic *ticketIssueLogic, ETicketIssueLogicDataStorage *dataStorage, std::string moduleName=E_WALLET_MODULE_NAME)
 
virtual ~EWalletModule ()
 
virtual EIssueLogicDefines::ReturnValues Init ()
 Function inicialize wallet module.
 
virtual EIssueLogicDefines::ReturnValues UpdateWallet ()
 Function calculate total ticket price from issued ticket collection, check minimal balance before and after operation and increment or decrement from wallet this value.
 
virtual EIssueLogicDefines::ReturnValues CreateWalletLogData (IssuedTicket *issuedTicket, EM::TicketIssueLogic::IssuedTicketSegment *issuedTicketSegment, std::vector< PurseLogData > &purseLogDataVector)
 Function create and fill wallet log data.
 
virtual EIssueLogicDefines::ReturnValues CheckMinimalBalance (long walletBalance, long ticketPrice)
 Check minimal balance before and after payment.
 
EIssueLogicDefines::ReturnValues IsAllowedPortableWallet (bool &portableWallet)
 
- Public Member Functions inherited from EM::TicketIssueLogic::ETicketIssueModule
 ETicketIssueModule (const std::string &name, EIssueLogicDefines::ModuleFamily moduleFamily)
 
virtual ~ETicketIssueModule ()
 
bool GetName (std::string &moduleName)
 unique module identificator
 
bool GetModuleFamily (EIssueLogicDefines::ModuleFamily &moduleFamily)
 return by reference module family
 

Constructor & Destructor Documentation

◆ EWalletModule()

INTERNAL EWalletModule::EWalletModule ( ETicketIssueLogic ticketIssueLogic,
ETicketIssueLogicDataStorage dataStorage,
std::string  moduleName = E_WALLET_MODULE_NAME 
)

◆ ~EWalletModule()

EWalletModule::~EWalletModule ( )
virtual

Member Function Documentation

◆ CheckMinimalBalance()

EIssueLogicDefines::ReturnValues EWalletModule::CheckMinimalBalance ( long  walletBalance,
long  ticketPrice 
)
virtual

Check minimal balance before and after payment.

Parameters
walletBalance- actual purse balance before operation
ticketPrice- total decrement or increment tickets price calculated from ticket issued collection
Returns
ErrorIssueTicketCaseLow - caselow BadInputData - bad input data Ok - all ok
Examples
/var/jenkins_home/git/VehicleSystem_IntegrationTesting/AppCore/src/appcore/ticketissuelogic/modules/EWalletModule.h.
Here is the caller graph for this function:

◆ CreateWalletLogData()

EIssueLogicDefines::ReturnValues EWalletModule::CreateWalletLogData ( IssuedTicket issuedTicket,
EM::TicketIssueLogic::IssuedTicketSegment issuedTicketSegment,
std::vector< PurseLogData > &  purseLogDataVector 
)
virtual

Function create and fill wallet log data.

Returns
Ok - all ok
other - see enumerator in EIssueLogicDefines::ReturnValues
Examples
/var/jenkins_home/git/VehicleSystem_IntegrationTesting/AppCore/src/appcore/ticketissuelogic/modules/EWalletModule.h.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Init()

EIssueLogicDefines::ReturnValues EWalletModule::Init ( )
virtual

Function inicialize wallet module.

Returns
ErrorIssueTicket - process error Ok - all ok

Reimplemented from EM::TicketIssueLogic::ETicketIssueModule.

Examples
/var/jenkins_home/git/VehicleSystem_IntegrationTesting/AppCore/src/appcore/ticketissuelogic/modules/EWalletModule.h.
Here is the call graph for this function:

◆ IsAllowedPortableWallet()

EIssueLogicDefines::ReturnValues EWalletModule::IsAllowedPortableWallet ( bool &  portableWallet)

◆ UpdateWallet()

EIssueLogicDefines::ReturnValues EWalletModule::UpdateWallet ( )
virtual

Function calculate total ticket price from issued ticket collection, check minimal balance before and after operation and increment or decrement from wallet this value.

Returns
ErrorIssueTicket - process error Ok - all ok
See also
CheckMinimalBalance - check minimal and maximal balance after operation
Examples
/var/jenkins_home/git/VehicleSystem_IntegrationTesting/AppCore/src/appcore/ticketissuelogic/modules/EWalletModule.h.
Here is the call graph for this function:

The documentation for this class was generated from the following files: