![]() |
SPI
1.2403.0
Secured Payment Interface
|
This class contains all the input data and output data of Cibus transactions, including the methods inherited from class Transaction. All data in this class is reachable through various methods which define the behaivor of the operation. More...
#include <CibusTransaction.h>
Public Member Functions | |
| virtual SPILIBRARY_API std::string | GetTransactionResultMessage () const |
| Get transaction result message. Messages are in English. | |
| SPILIBRARY_API | ~CibusTransaction () |
| Class desrstructor. | |
| APIHandle | GetCibusHandle () const |
| Handle get - reserved for internal useage. | |
Cibus Pre Transaction Information | |
Those methods can be called before Cibus transaction is executed. | |
| SPILIBRARY_API | CibusTransaction (string VendorUID, AmountType Amount) |
| Class constructor. This type of transaction will result CibusTranType eq CibusTranType_AddOrder. | |
| SPILIBRARY_API | CibusTransaction (string VendorUID, Cibus::CibusTranType TranType) |
| Class constructor. Must specify transaction type. | |
| SPILIBRARY_API void | SetCardData (string CardData) |
| Set Card Data, can be obtained from Company Card, Cibus One Time code, Card number. | |
| SPILIBRARY_API void | SetCompanyCode (string CompanyCode) |
| Set Company Code when transaction is done explicitly with company card. | |
| SPILIBRARY_API void | SetOriginalOrderId (string OriginalOrderId) |
| Set Original order id when CibusTranType is CancelOrder. | |
| SPILIBRARY_API void | SetAdditionalInfo (string AdditionalInfo) |
| Set AdditionalInfo. This is echo parameter. retreived by GetAdditionalInfo() and saved to DB on successful transaction. | |
| SPILIBRARY_API void | SetAcquirer (Cibus::CibusAcquirer Acquirer) |
| Set Cibus Acquirer according to values in Cibus::CibusAcquirer. If not set default is CibusAcquirer_Cibus;. | |
Post Transaction Information | |
Those methods can be called after transaction is executed. | |
| SPILIBRARY_API bool | WasApproved () const |
| A method that tells post transaction weather transaction succeded or not. | |
| SPILIBRARY_API Cibus::CibusCardType | GetCardType () const |
| Get the card type used for the transaction. | |
| SPILIBRARY_API Cibus::CibusCardEntryType | GetCardEntryType () const |
| Get the card type used for the transaction. | |
| SPILIBRARY_API Cibus::CibusTranType | GetTranType () const |
| Get transaction type. | |
| SPILIBRARY_API Cibus::CibusAcquirer | GetAcquirer () const |
| Get transaction acquirer - this value is not set by the service. | |
| SPILIBRARY_API string | GetOrderId () const |
| Get Order Id from Cibus. | |
| SPILIBRARY_API AmountType | GetBudgetBalance () const |
| Get Buget Balance from Cibus. | |
| SPILIBRARY_API string | GetCompanyName () const |
| Get Company Name that Cibus card belnogs to. | |
| SPILIBRARY_API string | GetPosId () const |
| Get PosId of resturant. | |
| SPILIBRARY_API string | GetAdditionalInfo () const |
| Get AdditionalInfo set from SetAdditionalInfo() | |
Public Member Functions inherited from Modularity::SPI::Transaction | |
| APIHandle | GetTransactionHandle () const |
| Reserved for internal useage. | |
| SPILIBRARY_API | Transaction (AmountType Amount, CurrencyType Currency, string VendorUID) |
| Transaction constructor. Can't be used explicitly as Transaction is pure virtual. | |
| virtual SPILIBRARY_API | ~Transaction ()=0 |
| Class destructor. | |
| SPILIBRARY_API PPIDType | GetPinPadId () const |
| Get device identification number used to make the transaction. | |
| SPILIBRARY_API void | SetPinPadId (PPIDType PinPadID) |
| Set device identification number used to make the transaction. | |
| SPILIBRARY_API void | SetVendorUID (string Vuid) |
| Set VUID during Loyalty phase. This method will override the current Vuid from the Constructor and will assert uniqueness only during Loyalty phase. The method doesn't apply the new Vuid immediately. The new value will be applied only after legal call to service method as mentioned above. It's highly recomanded to assert your new vuid with GetVendorUID() to make sure the new Vuid was applied. Supported services: Ashrait. | |
| SPILIBRARY_API string | GetVendorUID () const |
| Get vendor unique ID as initialized at derived class constructor. | |
| SPILIBRARY_API AmountType | GetAmount () const |
| Get Transaction original amount as initialized at derived class constructor. | |
| SPILIBRARY_API CurrencyType | GetCurrency () const |
| Get currency enumerator as initialized at derived class constructor. | |
| SPILIBRARY_API ResultType | GetTransactionResultCode () const |
| Get transaction result code. If called before transaction was ended, a speical code -999 (Transaction in progress) is returned. Each code has a message. You may see Result Codes Messages for reference. | |
This class contains all the input data and output data of Cibus transactions, including the methods inherited from class Transaction. All data in this class is reachable through various methods which define the behaivor of the operation.
Definition at line 32 of file CibusTransaction.h.
| SPILIBRARY_API Modularity::SPI::CibusTransaction::CibusTransaction | ( | string | VendorUID, |
| AmountType | Amount | ||
| ) |
Class constructor. This type of transaction will result CibusTranType eq CibusTranType_AddOrder.
| [in] | VendorUID | is an identifier string generated by the ECR. Can't be empty string. |
| [in] | Amount | is the amount with currency configured in the Machine. |
| SPILIBRARY_API Modularity::SPI::CibusTransaction::CibusTransaction | ( | string | VendorUID, |
| Cibus::CibusTranType | TranType | ||
| ) |
Class constructor. Must specify transaction type.
| [in] | VendorUID | is an identifier string generated by the ECR. Can't be empty string. |
| [in] | TranType | is type of transaction to do with Cibus. |
| SPILIBRARY_API Cibus::CibusAcquirer Modularity::SPI::CibusTransaction::GetAcquirer | ( | ) | const |
Get transaction acquirer - this value is not set by the service.
| SPILIBRARY_API string Modularity::SPI::CibusTransaction::GetAdditionalInfo | ( | ) | const |
Get AdditionalInfo set from SetAdditionalInfo()
| SPILIBRARY_API AmountType Modularity::SPI::CibusTransaction::GetBudgetBalance | ( | ) | const |
Get Buget Balance from Cibus.
| SPILIBRARY_API Cibus::CibusCardEntryType Modularity::SPI::CibusTransaction::GetCardEntryType | ( | ) | const |
Get the card type used for the transaction.
| SPILIBRARY_API Cibus::CibusCardType Modularity::SPI::CibusTransaction::GetCardType | ( | ) | const |
Get the card type used for the transaction.
| SPILIBRARY_API string Modularity::SPI::CibusTransaction::GetCompanyName | ( | ) | const |
Get Company Name that Cibus card belnogs to.
| SPILIBRARY_API string Modularity::SPI::CibusTransaction::GetOrderId | ( | ) | const |
Get Order Id from Cibus.
| SPILIBRARY_API string Modularity::SPI::CibusTransaction::GetPosId | ( | ) | const |
Get PosId of resturant.
|
virtual |
Get transaction result message. Messages are in English.
Reimplemented from Modularity::SPI::Transaction.
| SPILIBRARY_API Cibus::CibusTranType Modularity::SPI::CibusTransaction::GetTranType | ( | ) | const |
Get transaction type.
| SPILIBRARY_API void Modularity::SPI::CibusTransaction::SetAcquirer | ( | Cibus::CibusAcquirer | Acquirer | ) |
Set Cibus Acquirer according to values in Cibus::CibusAcquirer. If not set default is CibusAcquirer_Cibus;.
| [in] | Acquirer | as enum |
| SPILIBRARY_API void Modularity::SPI::CibusTransaction::SetAdditionalInfo | ( | string | AdditionalInfo | ) |
Set AdditionalInfo. This is echo parameter. retreived by GetAdditionalInfo() and saved to DB on successful transaction.
| [in] | AdditionalInfo | as string |
| SPILIBRARY_API void Modularity::SPI::CibusTransaction::SetCardData | ( | string | CardData | ) |
Set Card Data, can be obtained from Company Card, Cibus One Time code, Card number.
| [in] | CardData | as string. Can't be empty string. |
| SPILIBRARY_API void Modularity::SPI::CibusTransaction::SetCompanyCode | ( | string | CompanyCode | ) |
Set Company Code when transaction is done explicitly with company card.
| [in] | CompanyCode | as string. Can't be empty string. |
| SPILIBRARY_API void Modularity::SPI::CibusTransaction::SetOriginalOrderId | ( | string | OriginalOrderId | ) |
Set Original order id when CibusTranType is CancelOrder.
| [in] | OriginalOrderId | as string. Can't be empty string. |
| SPILIBRARY_API bool Modularity::SPI::CibusTransaction::WasApproved | ( | ) | const |
A method that tells post transaction weather transaction succeded or not.
1.8.2