SPI
1.2012.0
Secured Payment Interface
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
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
138
SPILIBRARY_API
void
SetProcessorID
(
Modularity::SPI::Ashrait::ProcessorId
Id);
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
211
SPILIBRARY_API
~Config
();
212
216
APIHandle
GetConfigHandle
();
217
private
:
218
219
APIHandle
ConfigHandle;
220
};
221
222
}
223
224
}
225
226
227
228
229
230
#endif
231
232
Generated by
1.8.2