SPI  1.2111.2
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 
54  SPILIBRARY_API Config(string COMPort);
55 
60  SPILIBRARY_API Config (const Config& TmpConfig);
61 
66  SPILIBRARY_API Config& operator= (const Config & NewConfig);
67 
75  SPILIBRARY_API SPI_RET_VAL SetCertificateFilesDirectory(string Path);
76 
85  SPILIBRARY_API SPI_RET_VAL SetProcessorIPAddress(string IPAddress);
86 
96  SPILIBRARY_API SPI_RET_VAL SetProcessorPortNumber(PortType Port);
97 
105  SPILIBRARY_API SPI_RET_VAL SetManufactureID(string ID);
106 
115  SPILIBRARY_API SPI_RET_VAL SetECRIdentifier(string ID);
116 
123  SPILIBRARY_API void EnableMiniSettelment();
124 
129  SPILIBRARY_API void DisableFullPanOnMerchentReceipt();
130 
131 
141 
148  SPILIBRARY_API void SetMutavByMutag(Modularity::SPI::Ashrait::Mutag mutag, std::string mutav);
149 
155  SPILIBRARY_API void SetProcessorEndpoint(std::string endpoint);
156 
161  SPILIBRARY_API string GetIP();
162 
167  SPILIBRARY_API string GetCOM();
168 
173  SPILIBRARY_API ExcUnitLocation GetEUL();
174 
179  SPILIBRARY_API SPI_STATUS GetStatus();
180 
184  SPILIBRARY_API void EnableNayaxXCR();
185 
189  SPILIBRARY_API void SetMasterSlaveMode(MasterSlaveMode mode);
190 
194  SPILIBRARY_API void UseTestCertificate();
195 
199  SPILIBRARY_API void EnableBalanceQueryLoyalty();
200 
201 
208  SPILIBRARY_API void ConfigPaymentAggregator(std::string Key, std::string Value);
209 
216  SPILIBRARY_API void SetCustomAttribute(const std::string& Key, std::string Value);
217 
223  SPILIBRARY_API string GetCustomAttribute(const std::string& Key);
224 
225 
226 
230  SPILIBRARY_API ~Config();
231 
236  private:
237 
238  APIHandle ConfigHandle;
239  };
240 
241  }
242 
243 }
244 
245 
246 
247 
248 
249 #endif
250 
251