SPI  1.2111.2
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 
80 typedef uint32_t UnsignedNumericType;
81 
82 
83 
84 namespace Modularity {
85 
86  namespace SPI {
89  {
92  SPI_FAIL = -2,
93  SPI_INVALID = -3,
96  SPI_ABORTED = -6,
98  SPI_TIME_OUT = -8,
99  SPI_NO_INIT = -999
100  };
101 
104  {
105  SPI_READY = 0,
109  SPI_ERROR = -3
110  };
111 
114  {
121  };
122 
125  {
128  };
129 
132  {
137  };
138 
140  enum ServiceID
141  {
147  };
148 
150  enum DeviceId
151  {
153  };
154 
155 
158  {
159  MP3 = 0,
160  MPOS = 1,
161  XPI = 2
162  };
163 
166  {
167  X_REPORT = 0,
168  Z_REPORT = 1,
173  };
174 
177  {
182  };
183 
186  {
187  Curr_Shekel = 376,
188  Curr_Dollar = 840,
190  };
191 
194  struct ReceiptLine
195  {
196  string key;
197  string value;
198  };
199 
203  {
204  string brandName;
205  string acquireName;
206  string businessNumber;
207  string phoneNumber;
208  };
209 
212  struct SubRetailer
213  {
214  string RetailerId;
215  string RetailerName;
216  bool IsActivated;
217  bool StartWork;
218  };
219 
220 
221 
225  {
226  string AckNumber;
227  string Date;
228  };
229 
232  {
244  };
245 
248  {
294  };
295 
298  {
307  };
308 
311  {
314  };
315 
318  {
327  };
328 
331  {
335  };
336 
339  {
343  };
344 
347  {
350  };
351 
354  {
361  };
362 
365  {
369  };
370 
374  namespace Ashrait {
375 
378  {
379  SwipeData = 1,
380  Balance = 2,
387  };
388 
391  {
397  };
398 
401  {
402  ToNone = 0,
403  ToCPI = 1,
404  ToDollar = 2,
405  };
406 
408  enum Status
409  {
410  Ready = 0,
412  BatchNeeded = -2,
413  DBError = -3,
414  PinpadError = -4,
416  Unknown = -6,
419  };
420 
423  {
425  CNP_Phone = 2,
427  };
428 
431  {
434  TT_Unload = 2,
435  TT_Forced = 3,
437  TT_Cash = 7,
440  TT_Refund = 53,
441  TT_Charge = 55,
442  };
443 
445  enum IPayType
446  {
450  IPay_Club = 3,
451  IPay_NoIpay = 99,
452  };
453 
455  enum ECIType
456  {
460  };
461 
464  {
469  };
470 
472  enum Manpik
473  {
478  };
479 
481  enum Solek
482  {
484  Solek_Cal = 2,
487  };
488 
490  enum Mutag
491  {
492  Mutag_PL = 0,
498  Mutag_JCB = 6,
501  };
502 
505  {
512  PEM_RFU = 11,
514  PEM_Phone = 50,
519  PEM_Empty = 99,
520  };
521 
524  {
525  ABS = 1,
526  Pelecard = 2,
528  Tranzila = 4,
529  EZCard = 5,
530  Arkom = 6,
531  Nayax = 7,
532  };
533 
536  {
553  };
554 
557  {
567  };
568 
569  }
570 
574  namespace NayaxVend {
575 
578  {
582  };
583 
586  {
589  };
590 
592  enum CardType
593  {
603  };
604 
605  }
606  }
607 }
608 
609 
610 
611 
612 
613 
614 
615