13 #ifndef __TRAMSACTION__H_ 14 #define __TRAMSACTION__H_ This namespace contains avilible API from Modularity Inc.
SPILIBRARY_API ResultType GetTransactionResultCode() const
Get transaction result code. If called before transaction was ended, a speical code -999 (Transaction...
virtual SPILIBRARY_API std::string GetTransactionResultMessage() const
Get transaction result message. All messages are in Hebrew and encoded in UTF-8 If called before tran...
SPILIBRARY_API void SetPinPadId(PPIDType PinPadID)
Set device identification number used to make the transaction.
SPILIBRARY_API string GetVendorUID() const
Get vendor unique ID as initialized at derived class constructor.
APIHandle GetTransactionHandle() const
Reserved for internal useage.
This file conatins all defenitions which are used in SPI API.
SPILIBRARY_API CurrencyType GetCurrency() const
Get currency enumerator as initialized at derived class constructor.
This class contains all the input data and output data of Transactions. Those methods are common to a...
SPILIBRARY_API PPIDType GetPinPadId() const
Get device identification number used to make the transaction.
virtual SPILIBRARY_API ~Transaction()=0
Class destructor.
SPILIBRARY_API void SetVendorUID(string Vuid)
Set VUID during Loyalty phase. This method will override the current Vuid from the Constructor and wi...
SPILIBRARY_API Transaction(AmountType Amount, CurrencyType Currency, string VendorUID)
Transaction constructor. Can't be used explicitly as Transaction is pure virtual. ...
SPILIBRARY_API AmountType GetAmount() const
Get Transaction original amount as initialized at derived class constructor.