|
AppCore
|
#include <EWalletModule.h>


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. More... | |
| 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. More... | |
| virtual EIssueLogicDefines::ReturnValues | CreateWalletLogData (IssuedTicket *issuedTicket, EM::TicketIssueLogic::IssuedTicketSegment *issuedTicketSegment, std::vector< PurseLogData > &purseLogDataVector) |
| Function create and fill wallet log data. More... | |
| virtual EIssueLogicDefines::ReturnValues | CheckMinimalBalance (long walletBalance, long ticketPrice) |
| Check minimal balance before and after payment. More... | |
| 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 More... | |
| bool | GetModuleFamily (EIssueLogicDefines::ModuleFamily &moduleFamily) |
| return by reference module family More... | |
| INTERNAL EWalletModule::EWalletModule | ( | ETicketIssueLogic * | ticketIssueLogic, |
| ETicketIssueLogicDataStorage * | dataStorage, | ||
| std::string | moduleName = E_WALLET_MODULE_NAME |
||
| ) |
|
virtual |
|
virtual |
Check minimal balance before and after payment.
| walletBalance | - actual purse balance before operation |
| ticketPrice | - total decrement or increment tickets price calculated from ticket issued collection |

|
virtual |
Function create and fill wallet log data.


|
virtual |
Function inicialize wallet module.
Reimplemented from EM::TicketIssueLogic::ETicketIssueModule.

| EIssueLogicDefines::ReturnValues EWalletModule::IsAllowedPortableWallet | ( | bool & | portableWallet | ) |
|
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.

1.8.8