SPI  1.2111.4
Secured Payment Interface
NayaxVendTransaction.h
Go to the documentation of this file.
1 
13 #ifndef __NAYAXVENDTRANSACTION_H__
14 #define __NAYAXVENDTRANSACTION_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:
37 
42  SPILIBRARY_API NayaxVendTransaction(string VendorUID);
43 
55  SPILIBRARY_API SPI_RET_VAL AddItem(AmountType Amount, string ItemCode, CounterType Quantity, NayaxVend::UnitOfMeasurement QuantityUnit);
56 
58 
59 
63 
68  SPILIBRARY_API bool WasSuccessful() const;
69 
74  SPILIBRARY_API string GetTransasctionId() const;
75 
80  SPILIBRARY_API string GetLast4Digits() const;
81 
86  SPILIBRARY_API NayaxVend::CardType GetCardType() const;
87 
92  SPILIBRARY_API string GetCardBIN() const;
93 
98  SPILIBRARY_API string GetCardBINHashed() const;
99 
104  SPILIBRARY_API NayaxVend::CardEntryType GetCardEntryMode() const;
105 
107 
108 
112  SPILIBRARY_API ~NayaxVendTransaction();
113 
118  private:
119  APIHandle NayaxVendHandle;
121  };
122  }
123 }
124 
125 #endif
SPILIBRARY_API string GetLast4Digits() const
Get card 4 last digits that used in transaction.
This namespace contains avilible API from Modularity Inc.
uint64_t AmountType
Definition: SPIDEF.h:47
SPILIBRARY_API ~NayaxVendTransaction()
Class desrstructor
This class contains all the input data and output data of AshraitEMV 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 NayaxVendTransaction(string VendorUID)
Class constructor. When this an item must be added using AddItem()
SPILIBRARY_API string GetTransasctionId() const
Get transaction identifier on Nayax DCS.
SPILIBRARY_API string GetCardBIN() const
Get card BIN.
usint CounterType
Definition: SPIDEF.h:77
This file conatins all defenitions which are used in SPI API.
APIHandle GetNayaxVendHandle() const
Handle get - reserved for internal useage.
This class contains all the input data and output data of Transactions. Those methods are common to a...
Definition: transaction.h:30
SPILIBRARY_API SPI_RET_VAL AddItem(AmountType Amount, string ItemCode, CounterType Quantity, NayaxVend::UnitOfMeasurement QuantityUnit)
Set transaction credit card deatils when no device is used.
void * APIHandle
Definition: SPIDEF.h:41
SPILIBRARY_API NayaxVend::CardEntryType GetCardEntryMode() const
Get card entry mode.
SPILIBRARY_API string GetCardBINHashed() const
Get card BIN hashed by MD5?
SPILIBRARY_API NayaxVend::CardType GetCardType() const
Get card type used for transaction.
SPILIBRARY_API bool WasSuccessful() const
A method that tells post transaction weather transaction succeded or not.
This file conatins all requiered methods for abstract SPI Transaction.