SPI  1.1.58
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 
259  {
262  };
263 
266  {
268  };
269 
273  namespace Ashrait {
274 
277  {
278  SwipeData = 1,
279  Balance = 2,
284  };
285 
288  {
294  };
295 
298  {
299  ToNone = 0,
300  ToCPI = 1,
301  ToDollar = 2,
302  };
303 
305  enum Status
306  {
307  Ready = 0,
309  BatchNeeded = -2,
310  DBError = -3,
311  PinpadError = -4,
313  Unknown = -6,
316  };
317 
320  {
322  CNP_Phone = 2,
324  };
325 
328  {
331  TT_Unload = 2,
332  TT_Forced = 3,
334  TT_Cash = 7,
337  TT_Refund = 53,
338  TT_Charge = 55,
339  };
340 
342  enum IPayType
343  {
347  IPay_Club = 3,
348  IPay_NoIpay = 99,
349  };
350 
352  enum ECIType
353  {
357  };
358 
361  {
366  };
367 
369  enum Manpik
370  {
375  };
376 
378  enum Solek
379  {
381  Solek_Cal = 2,
383  };
384 
386  enum Mutag
387  {
388  Mutag_PL = 0,
394  Mutag_JCB = 6,
397  };
398 
401  {
408  PEM_RFU = 11,
410  PEM_Phone = 50,
415  PEM_Empty = 99,
416  };
417 
420  {
421  ABS = 1,
422  Pelecard = 2,
423  };
424 
427  {
444  };
445 
446  }
447  }
448 }
449 
450 
451 
452 
453 
454 
455 
456