SPI  1.2404.0
Secured Payment Interface
NayaxEngineTransaction.h
Go to the documentation of this file.
1 
13 #ifndef __NAYAXENGINETRANSACTION_H__
14 #define __NAYAXENGINETRANSACTION_H__
15 
16 #include <iostream>
17 #include <string>
18 #include <cstring>
19 #include <vector>
20 
21 #include "SPIDEF.h"
22 #include "EmvTransaction.h"
23 
24 using std::string;
25 
26 namespace Modularity {
27  namespace SPI {
33  public:
34 
38 
44  SPILIBRARY_API NayaxEngineTransaction(string VendorUID, AmountType Amount);
45 
47 
48 
52 
65  SPILIBRARY_API NayaxEngineTransaction(string VendorUID, AmountType Amount, UnsignedNumericType APMCode);
66 
73  SPILIBRARY_API void SetItemsQuantity(CounterType Quantity);
74 
80  SPILIBRARY_API void SetAsRefund(string OriginalTransactionId);
81 
87  SPILIBRARY_API void SetAsDeferredAuthorization();
88 
94  SPILIBRARY_API void SetCardData(string CardData);
95 
101  SPILIBRARY_API void SetCibusCompanyCode(UnsignedNumericType CompanyCode);
102 
108  SPILIBRARY_API void SetSparkId(string& sparkId);
109 
110 
112 
113 
117 
123  SPILIBRARY_API string GetQRCodeData() const;
124 
129  SPILIBRARY_API bool TokenReceived() const;
130 
131 
132 
134 
138 
143  SPILIBRARY_API bool WasSuccessful() const;
144 
150 
151 
152 
157  SPILIBRARY_API string GetTransasctionId() const;
158 
159 
164  SPILIBRARY_API string GetDTID() const;
165 
170  SPILIBRARY_API string GetFullName() const;
171 
176  SPILIBRARY_API string GetCurrencyCode() const;
177 
182  SPILIBRARY_API bool IsPending() const;
184 
185 
189  SPILIBRARY_API ~NayaxEngineTransaction();
190 
195  private:
196  APIHandle NayaxEngineHandle;
198  };
199  }
200 }
201 
202 #endif
SPILIBRARY_API void SetCardData(string CardData)
Set card data for APM transactions.
This namespace contains avilible API from Modularity Inc.
SPILIBRARY_API string GetDTID() const
Get Device Transaction identifier. This Id is generated on the device.
SPILIBRARY_API NayaxEngineTransaction(string VendorUID, AmountType Amount)
Class constructor. When this an item must be added using AddItem()
uint64_t AmountType
Definition: SPIDEF.h:47
SPILIBRARY_API string GetQRCodeData() const
Get QR that represent the transaction on the device. QR should be displayed to the customer...
SPILIBRARY_API bool TokenReceived() const
Get indication if token received from broker for QR transaction.
SPILIBRARY_API void SetItemsQuantity(CounterType Quantity)
Set number of items in the sale.
SPILIBRARY_API string GetFullName() const
Get Monyx user full name.
This class contains all the input data and output data of EmvTransaction 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.
SPILIBRARY_API string GetCurrencyCode() const
Get Currency code used for for transaction.
SPILIBRARY_API bool IsPending() const
Wether DeferredAuth Transaction is in pending state and need to be dispatched.
APIHandle GetNayaxEngineHandle() const
Handle get - reserved for internal useage.
SPILIBRARY_API NayaxEngine::NayaxEngineTransactionType GetTransactionType() const
Get transaction type.
SPILIBRARY_API void SetAsDeferredAuthorization()
Set transaction type as refund.
SPILIBRARY_API string GetTransasctionId() const
Get transaction identifier on Nayax DCS.
SPILIBRARY_API void SetSparkId(string &sparkId)
Set spark id.
This file conatins all requiered methods for Ashrait Transaction.
SPILIBRARY_API ~NayaxEngineTransaction()
Class desrstructor
SPILIBRARY_API void SetCibusCompanyCode(UnsignedNumericType CompanyCode)
Set CompanyCode for APM Cibus (Not related to Cibus service)
usint CounterType
Definition: SPIDEF.h:77
This file conatins all defenitions which are used in SPI API.
uint32_t UnsignedNumericType
Definition: SPIDEF.h:80
SPILIBRARY_API void SetAsRefund(string OriginalTransactionId)
Set transaction type as refund.
void * APIHandle
Definition: SPIDEF.h:41
This class contains all the input data and output data of NayaxEngineTransaction transactions, including the methods inherited from class EmvTransaction. All data in this class is reachable through various methods which define the behaivor of the operation.
SPILIBRARY_API bool WasSuccessful() const
A method that tells post transaction weather transaction succeded or not.