SPI  1.1.52
Secured Payment Interface
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
SPIDEF.h
Go to the documentation of this file.
1 
13 #pragma once
14 
15 #include <iostream>
16 #include <string>
17 #include <cstring>
18 #include "types.def"
19 
20 #ifdef WIN32
21 #ifdef SPI_EXPORTS
22 #define SPILIBRARY_API __declspec(dllexport)
23 #elif SPI_NOEXPORTS
24 #define SPILIBRARY_API
25 #else
26 #define SPILIBRARY_API __declspec(dllimport)
27 #endif
28 #elif __GNUC__
29 #ifdef SPI_EXPORTS
30 #define SPILIBRARY_API __attribute__((visibility("default")))
31 #else
32 #define SPILIBRARY_API
33 #endif
34 #endif
35 
36 
37 
38 using std::string;
39 
41 typedef void* APIHandle;
42 
44 typedef usint PortType;
45 
47 typedef uint64_t AmountType;
48 
50 typedef int32_t PaymentType;
51 
53 typedef sint PPIDType;
54 
56 typedef sint ResultType;
57 
59 typedef uint64_t RateType;
60 
62 typedef int32_t PercentType;
63 
65 typedef int32_t MonthType;
66 
68 typedef ulint TimeOutType;
69 
71 typedef byte FrequencyType;
72 
74 typedef int32_t CurrencyISOType;
75 
77 typedef usint CounterType;
78 
79 namespace Modularity {
80 
81  namespace SPI {
84  {
87  SPI_FAIL = -2,
88  SPI_INVALID = -3,
91  SPI_ABORTED = -6,
93  SPI_TIME_OUT = -8,
94  SPI_NO_INIT = -999
95  };
96 
98  enum SPI_STATUS
99  {
100  SPI_READY = 0,
104  SPI_ERROR = -3
105  };
106 
109  {
113  };
114 
117  {
120  };
121 
124  {
129  };
130 
132  enum ServiceID
133  {
137  };
138 
141  {
142  MP3 = 0,
143  MPOS = 1,
144  XPI = 2
145  };
146 
149  {
150  X_REPORT = 0,
151  Z_REPORT = 1
152  };
153 
156  {
161  };
162 
165  {
166  Curr_Shekel = 376,
167  Curr_Dollar = 840,
169  };
170 
173  struct ReceiptLine
174  {
175  string key;
176  string value;
177  };
178 
181  {
193  };
194 
197  {
242  };
243 
246  {
255  };
256 
260  namespace Ashrait {
261 
264  {
265  SwipeData = 1,
266  Balance = 2,
271  };
272 
275  {
281  };
282 
285  {
286  ToNone = 0,
287  ToCPI = 1,
288  ToDollar = 2,
289  };
290 
292  enum Status
293  {
294  Ready = 0,
296  BatchNeeded = -2,
297  DBError = -3,
298  PinpadError = -4,
300  Unknown = -6,
303  };
304 
307  {
309  CNP_Phone = 2,
311  };
312 
315  {
318  TT_Unload = 2,
319  TT_Forced = 3,
321  TT_Cash = 7,
324  TT_Refund = 53,
325  TT_Charge = 55,
326  };
327 
329  enum IPayType
330  {
334  IPay_Club = 3,
335  IPay_NoIpay = 99,
336  };
337 
339  enum ECIType
340  {
344  };
345 
348  {
353  };
354 
356  enum Manpik
357  {
362  };
363 
365  enum Solek
366  {
368  Solek_Cal = 2,
370  };
371 
373  enum Mutag
374  {
375  Mutag_PL = 0,
381  Mutag_JCB = 6,
384  };
385 
388  {
395  PEM_RFU = 11,
397  PEM_Phone = 50,
402  PEM_Empty = 99,
403  };
404 
407  {
408  ABS = 1,
409  Pelecard = 2,
410  };
411 
414  {
431  };
432 
433  }
434  }
435 }
436 
437 
438 
439 
440 
441 
442 
443