SPI  1.2111.4
Secured Payment Interface
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,
174  };
175 
178  {
183  };
184 
187  {
188  Curr_Shekel = 376,
189  Curr_Dollar = 840,
191  };
192 
195  struct ReceiptLine
196  {
197  string key;
198  string value;
199  };
200 
204  {
205  string brandName;
206  string acquireName;
207  string businessNumber;
208  string phoneNumber;
209  };
210 
213  struct SubRetailer
214  {
215  string RetailerId;
216  string RetailerName;
217  bool IsActivated;
218  bool StartWork;
219  };
220 
221 
222 
226  {
227  string AckNumber;
228  string Date;
229  };
230 
233  {
245  };
246 
249  {
295  };
296 
299  {
308  };
309 
312  {
315  };
316 
319  {
328  };
329 
332  {
336  };
337 
340  {
344  };
345 
348  {
351  };
352 
355  {
362  };
363 
366  {
370  };
371 
375  namespace Ashrait {
376 
379  {
380  SwipeData = 1,
381  Balance = 2,
388  };
389 
392  {
398  };
399 
402  {
403  ToNone = 0,
404  ToCPI = 1,
405  ToDollar = 2,
406  };
407 
409  enum Status
410  {
411  Ready = 0,
413  BatchNeeded = -2,
414  DBError = -3,
415  PinpadError = -4,
417  Unknown = -6,
420  };
421 
424  {
426  CNP_Phone = 2,
428  };
429 
432  {
435  TT_Unload = 2,
436  TT_Forced = 3,
438  TT_Cash = 7,
441  TT_Refund = 53,
442  TT_Charge = 55,
443  };
444 
446  enum IPayType
447  {
451  IPay_Club = 3,
452  IPay_NoIpay = 99,
453  };
454 
456  enum ECIType
457  {
461  };
462 
465  {
470  };
471 
473  enum Manpik
474  {
479  };
480 
482  enum Solek
483  {
485  Solek_Cal = 2,
488  };
489 
491  enum Mutag
492  {
493  Mutag_PL = 0,
499  Mutag_JCB = 6,
502  };
503 
506  {
513  PEM_RFU = 11,
515  PEM_Phone = 50,
520  PEM_Empty = 99,
521  };
522 
525  {
526  ABS = 1,
527  Pelecard = 2,
529  Tranzila = 4,
530  EZCard = 5,
531  Arkom = 6,
532  Nayax = 7,
533  };
534 
537  {
554  };
555 
558  {
568  };
569 
570  }
571 
575  namespace NayaxVend {
576 
579  {
583  };
584 
587  {
590  };
591 
593  enum CardType
594  {
604  };
605 
606  }
607  }
608 }
609 
610 
611 
612 
613 
614 
615 
616 
This namespace contains avilible API from Modularity Inc.
uint64_t AmountType
Definition: SPIDEF.h:47
ulint TimeOutType
Definition: SPIDEF.h:68
byte FrequencyType
Definition: SPIDEF.h:71
A struct which reprensts a line in receipt.
Definition: SPIDEF.h:195
A struct that reprensts information about sub retailer in RavSapak mode.
Definition: SPIDEF.h:213
ExtendedPeriodicStatus
Definition: SPIDEF.h:248
int32_t CurrencyISOType
Definition: SPIDEF.h:74
usint PortType
Definition: SPIDEF.h:44
int32_t MonthType
Definition: SPIDEF.h:65
A struct that reprensts information end of day report.
Definition: SPIDEF.h:225
sint PPIDType
Definition: SPIDEF.h:53
sint ResultType
Definition: SPIDEF.h:56
int32_t PercentType
Definition: SPIDEF.h:62
usint CounterType
Definition: SPIDEF.h:77
int32_t PaymentType
Definition: SPIDEF.h:50
uint32_t UnsignedNumericType
Definition: SPIDEF.h:80
void * APIHandle
Definition: SPIDEF.h:41
A struct that reprensts information about an acquire for a brand.
Definition: SPIDEF.h:203
uint64_t RateType
Definition: SPIDEF.h:59