SPI  1.2111.4
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 "transaction.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 
57  SPILIBRARY_API NayaxEngineTransaction(string VendorUID, AmountType Amount, UnsignedNumericType APMCode);
58 
65  SPILIBRARY_API void SetItemsQuantity(CounterType Quantity);
66 
68 
69 
73 
79  SPILIBRARY_API string GetQRCodeData() const;
80 
85  SPILIBRARY_API bool TokenReceived() const;
86 
87 
88 
90 
94 
99  SPILIBRARY_API bool WasSuccessful() const;
100 
105  SPILIBRARY_API string GetTransasctionId() const;
106 
107 
119  SPILIBRARY_API std::vector<ReceiptLine> GetMerchentRecipt() const;
120 
125  SPILIBRARY_API string GetFullName() const;
126 
131  SPILIBRARY_API string GetCurrencyCode() const;
133 
134 
138  SPILIBRARY_API ~NayaxEngineTransaction();
139 
144  private:
145  APIHandle NayaxEngineHandle;
147  };
148  }
149 }
150 
151 #endif
SPILIBRARY_API std::vector< ReceiptLine > GetMerchentRecipt() const
Get a list of (key,value). Vending application prints the list provided from this function by it&#39;s or...
This namespace contains avilible API from Modularity Inc.
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.
SPILIBRARY_API string GetCurrencyCode() const
Get Currency code used for for transaction.
APIHandle GetNayaxEngineHandle() const
Handle get - reserved for internal useage.
SPILIBRARY_API string GetTransasctionId() const
Get transaction identifier on Nayax DCS.
SPILIBRARY_API ~NayaxEngineTransaction()
Class desrstructor
usint CounterType
Definition: SPIDEF.h:77
This file conatins all defenitions which are used in SPI API.
This class contains all the input data and output data of Transactions. Those methods are common to a...
Definition: transaction.h:30
uint32_t UnsignedNumericType
Definition: SPIDEF.h:80
void * APIHandle
Definition: SPIDEF.h:41
This file conatins all requiered methods for abstract SPI Transaction.
This class contains all the input data and output data of NayaxEngineTransaction 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 bool WasSuccessful() const
A method that tells post transaction weather transaction succeded or not.