SPI  1.2012.0
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 
145  {
146  MP3 = 0,
147  MPOS = 1,
148  XPI = 2
149  };
150 
153  {
154  X_REPORT = 0,
155  Z_REPORT = 1,
160  };
161 
164  {
169  };
170 
173  {
174  Curr_Shekel = 376,
175  Curr_Dollar = 840,
177  };
178 
181  struct ReceiptLine
182  {
183  string key;
184  string value;
185  };
186 
190  {
191  string brandName;
192  string acquireName;
193  string businessNumber;
194  string phoneNumber;
195  };
196 
200  {
201  string AckNumber;
202  string Date;
203  };
204 
207  {
219  };
220 
223  {
268  };
269 
272  {
281  };
282 
285  {
288  };
289 
292  {
300  };
301 
304  {
308  };
309 
312  {
315  };
316 
319  {
323  };
324 
327  {
331  };
332 
336  namespace Ashrait {
337 
340  {
341  SwipeData = 1,
342  Balance = 2,
349  };
350 
353  {
359  };
360 
363  {
364  ToNone = 0,
365  ToCPI = 1,
366  ToDollar = 2,
367  };
368 
370  enum Status
371  {
372  Ready = 0,
374  BatchNeeded = -2,
375  DBError = -3,
376  PinpadError = -4,
378  Unknown = -6,
381  };
382 
385  {
387  CNP_Phone = 2,
389  };
390 
393  {
396  TT_Unload = 2,
397  TT_Forced = 3,
399  TT_Cash = 7,
402  TT_Refund = 53,
403  TT_Charge = 55,
404  };
405 
407  enum IPayType
408  {
412  IPay_Club = 3,
413  IPay_NoIpay = 99,
414  };
415 
417  enum ECIType
418  {
422  };
423 
426  {
431  };
432 
434  enum Manpik
435  {
440  };
441 
443  enum Solek
444  {
446  Solek_Cal = 2,
448  };
449 
451  enum Mutag
452  {
453  Mutag_PL = 0,
459  Mutag_JCB = 6,
462  };
463 
466  {
473  PEM_RFU = 11,
475  PEM_Phone = 50,
480  PEM_Empty = 99,
481  };
482 
485  {
486  ABS = 1,
487  Pelecard = 2,
489  Tranzila = 4,
490  EZCard = 5,
491  };
492 
495  {
512  };
513 
516  {
526  };
527 
528  }
529 
533  namespace NayaxVend {
534 
537  {
541  };
542 
545  {
548  };
549 
551  enum CardType
552  {
562  };
563 
564  }
565  }
566 }
567 
568 
569 
570 
571 
572 
573 
574