SPI  1.2101.8
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  {
116  };
117 
120  {
123  };
124 
127  {
132  };
133 
135  enum ServiceID
136  {
141  };
142 
144  enum DeviceId
145  {
147  };
148 
149 
152  {
153  MP3 = 0,
154  MPOS = 1,
155  XPI = 2
156  };
157 
160  {
161  X_REPORT = 0,
162  Z_REPORT = 1,
167  };
168 
171  {
176  };
177 
180  {
181  Curr_Shekel = 376,
182  Curr_Dollar = 840,
184  };
185 
188  struct ReceiptLine
189  {
190  string key;
191  string value;
192  };
193 
197  {
198  string brandName;
199  string acquireName;
200  string businessNumber;
201  string phoneNumber;
202  };
203 
207  {
208  string AckNumber;
209  string Date;
210  };
211 
214  {
226  };
227 
230  {
275  };
276 
279  {
288  };
289 
292  {
295  };
296 
299  {
307  };
308 
311  {
315  };
316 
319  {
322  };
323 
326  {
330  };
331 
334  {
338  };
339 
343  namespace Ashrait {
344 
347  {
348  SwipeData = 1,
349  Balance = 2,
356  };
357 
360  {
366  };
367 
370  {
371  ToNone = 0,
372  ToCPI = 1,
373  ToDollar = 2,
374  };
375 
377  enum Status
378  {
379  Ready = 0,
381  BatchNeeded = -2,
382  DBError = -3,
383  PinpadError = -4,
385  Unknown = -6,
388  };
389 
392  {
394  CNP_Phone = 2,
396  };
397 
400  {
403  TT_Unload = 2,
404  TT_Forced = 3,
406  TT_Cash = 7,
409  TT_Refund = 53,
410  TT_Charge = 55,
411  };
412 
414  enum IPayType
415  {
419  IPay_Club = 3,
420  IPay_NoIpay = 99,
421  };
422 
424  enum ECIType
425  {
429  };
430 
433  {
438  };
439 
441  enum Manpik
442  {
447  };
448 
450  enum Solek
451  {
453  Solek_Cal = 2,
456  };
457 
459  enum Mutag
460  {
461  Mutag_PL = 0,
467  Mutag_JCB = 6,
470  };
471 
474  {
481  PEM_RFU = 11,
483  PEM_Phone = 50,
488  PEM_Empty = 99,
489  };
490 
493  {
494  ABS = 1,
495  Pelecard = 2,
497  Tranzila = 4,
498  EZCard = 5,
499  Arkom = 6,
500  };
501 
504  {
521  };
522 
525  {
535  };
536 
537  }
538 
542  namespace NayaxVend {
543 
546  {
550  };
551 
554  {
557  };
558 
560  enum CardType
561  {
571  };
572 
573  }
574  }
575 }
576 
577 
578 
579 
580 
581 
582 
583