SPI  1.1.28
Secured Payment Interface
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
Report.h
Go to the documentation of this file.
1 
13 #ifndef __REPORT__H_
14 #define __REPORT__H_
15 
16 
17 #include "SPIDEF.h"
18 #include "types.def"
19 #include <string>
20 
21 using std::string;
22 
23 namespace Modularity {
24 
25  namespace SPI {
29  class Report
30  {
31  APIHandle ReportHandle;
32  public:
33 
38  SPILIBRARY_API Report(ReportType Type);
39 
44  SPILIBRARY_API string GetDate() const;
45 
55  SPILIBRARY_API SPI_RET_VAL GetPrintableString(std::string & OutputResult) const;
56 
64  SPILIBRARY_API SPI_RET_VAL SetZReportFormat(ZReportFormat Format) ;
65 
73  SPILIBRARY_API SPI_RET_VAL GetZReportString(std::string & OutputResult) const;
74 
79  SPILIBRARY_API std::string GetACKNumber() const;
80 
89  SPILIBRARY_API SPI_RET_VAL GetTotal(AmountType & OutputAmount, CounterType & OutputCounter) const;
90 
99  SPILIBRARY_API SPI_RET_VAL GetTotalRefunds(AmountType & OutputAmount, CounterType & OutputCounter) const;
100 
109  SPILIBRARY_API SPI_RET_VAL GetTotalCancellations(AmountType & OutputAmount, CounterType & OutputCounter) const ;
110 
121  SPILIBRARY_API SPI_RET_VAL GetTotalBySolek(Ashrait::Solek Solek, std::string & OutputSolekName, AmountType & OutputAmount, CounterType & OutputCounter) const;
122 
133  SPILIBRARY_API SPI_RET_VAL GetTotalRefundBySolek(Ashrait::Solek Solek,std::string & OutputSolekName, AmountType & OutputAmount, CounterType & OutputCounter) const;
134 
138  APIHandle GetReportHandle() const;
139  };
140 
141  }
142 
143 }
144 
145 #endif