SPI  1.2101.8
Secured Payment Interface
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
Config.h
Go to the documentation of this file.
1 
15 #ifndef __CONFIG__H__
16 #define __CONFIG__H__
17 
18 #include <stdio.h>
19 #include <string>
20 #include <cstring>
21 
22 #include "SPIDEF.h"
23 
24 
25 using std::string;
26 
27 namespace Modularity {
28 
29  namespace SPI {
33  class Config {
34 
35  public:
39  SPILIBRARY_API Config();
40 
46  SPILIBRARY_API Config(string IP, PortType RFU);
47 
52  SPILIBRARY_API Config(string COMPort);
53 
58  SPILIBRARY_API Config (const Config& TmpConfig);
59 
64  SPILIBRARY_API Config& operator= (const Config & NewConfig);
65 
73  SPILIBRARY_API SPI_RET_VAL SetCertificateFilesDirectory(string Path);
74 
83  SPILIBRARY_API SPI_RET_VAL SetProcessorIPAddress(string IPAddress);
84 
94  SPILIBRARY_API SPI_RET_VAL SetProcessorPortNumber(PortType Port);
95 
103  SPILIBRARY_API SPI_RET_VAL SetManufactureID(string ID);
104 
113  SPILIBRARY_API SPI_RET_VAL SetECRIdentifier(string ID);
114 
121  SPILIBRARY_API void EnableMiniSettelment();
122 
127  SPILIBRARY_API void DisableFullPanOnMerchentReceipt();
128 
129 
139 
146  SPILIBRARY_API void SetMutavByMutag(Modularity::SPI::Ashrait::Mutag mutag, std::string mutav);
147 
153  SPILIBRARY_API void SetProcessorEndpoint(std::string endpoint);
154 
159  SPILIBRARY_API string GetIP();
160 
165  SPILIBRARY_API string GetCOM();
166 
171  SPILIBRARY_API ExcUnitLocation GetEUL();
172 
177  SPILIBRARY_API SPI_STATUS GetStatus();
178 
182  SPILIBRARY_API void EnableNayaxXCR();
183 
187  SPILIBRARY_API void SetMasterSlaveMode(MasterSlaveMode mode);
188 
192  SPILIBRARY_API void UseTestCertificate();
193 
197  SPILIBRARY_API void EnableBalanceQueryLoyalty();
198 
199 
206  SPILIBRARY_API void ConfigPaymentAggregator(std::string Key, std::string Value);
207 
214  SPILIBRARY_API void SetCustomAttribute(const std::string& Key, std::string Value);
215 
216 
220  SPILIBRARY_API ~Config();
221 
226  private:
227 
228  APIHandle ConfigHandle;
229  };
230 
231  }
232 
233 }
234 
235 
236 
237 
238 
239 #endif
240 
241