SPI  1.2111.4
Secured Payment Interface
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 #include <vector>
21 
22 using std::string;
23 
24 namespace Modularity {
25 
26  namespace SPI {
30  class Report
31  {
32  APIHandle ReportHandle;
33  public:
34 
39  SPILIBRARY_API Report(ReportType Type);
40 
41 
42 
47  SPILIBRARY_API string GetDate() const;
48 
58  SPILIBRARY_API SPI_RET_VAL GetPrintableString(std::string & OutputResult) const;
59 
67  SPILIBRARY_API SPI_RET_VAL SetZReportFormat(ZReportFormat Format) ;
68 
76  SPILIBRARY_API SPI_RET_VAL GetZReportString(std::string & OutputResult) const;
77 
82  SPILIBRARY_API std::string GetACKNumber() const;
83 
91  SPILIBRARY_API SPI_RET_VAL GetTotal(AmountType & OutputAmount, CounterType & OutputCounter) const;
92 
100  SPILIBRARY_API SPI_RET_VAL GetTotalRefunds(AmountType & OutputAmount, CounterType & OutputCounter) const;
101 
109  SPILIBRARY_API SPI_RET_VAL GetTotalCancellations(AmountType & OutputAmount, CounterType & OutputCounter) const ;
110 
120  SPILIBRARY_API SPI_RET_VAL GetTotalBySolek(Ashrait::Solek Solek, std::string & OutputSolekName, AmountType & OutputAmount, CounterType & OutputCounter) const;
121 
131  SPILIBRARY_API SPI_RET_VAL GetTotalRefundBySolek(Ashrait::Solek Solek,std::string & OutputSolekName, AmountType & OutputAmount, CounterType & OutputCounter) const;
132 
133 
141  SPILIBRARY_API SPI_RET_VAL GetTotalUsd(AmountType & OutputAmount, CounterType & OutputCounter) const;
142 
150  SPILIBRARY_API SPI_RET_VAL GetTotalRefundsUsd(AmountType & OutputAmount, CounterType & OutputCounter) const;
151 
159  SPILIBRARY_API SPI_RET_VAL GetTotalCancellationsUsd(AmountType & OutputAmount, CounterType & OutputCounter) const;
160 
170  SPILIBRARY_API SPI_RET_VAL GetTotalBySolekUsd(Ashrait::Solek Solek, std::string & OutputSolekName, AmountType & OutputAmount, CounterType & OutputCounter) const;
171 
181  SPILIBRARY_API SPI_RET_VAL GetTotalRefundBySolekUsd(Ashrait::Solek Solek, std::string & OutputSolekName, AmountType & OutputAmount, CounterType & OutputCounter) const;
182 
187  SPILIBRARY_API string GetAccumlateStartDate() const;
188 
193  SPILIBRARY_API SPI_RET_VAL ResetAccumlateReport() const;
194 
195 
200  SPILIBRARY_API std::vector<AcquiredBrandInfo> GetAcquiredBrandsInformation() const;
201 
202 
208  SPILIBRARY_API SPI_RET_VAL ResetEntityVersion();
209 
216  SPILIBRARY_API SPI_RET_VAL SetUIDSuffix(std::string UidSuffix);
217 
218 
224  SPILIBRARY_API std::vector<std::string> GetQueriedTransactions() const;
225 
232  SPILIBRARY_API std::vector<EndOfDayReportInfo> GetQueriedReports() const;
233 
242  SPILIBRARY_API SPI_RET_VAL SetACKNumber(std::string ACKNumber);
243 
247 
254  SPILIBRARY_API Report* SetSubRetailerFor(string SubRetailer);
255 
261  SPILIBRARY_API std::vector<std::string> GetQueriedSubRetailers() const;
262 
268  SPILIBRARY_API void SetSubRetailer(string SubRetailer);
269 
274  SPILIBRARY_API void SetSilent();
275 
276 
278 
282  APIHandle GetReportHandle() const;
283  };
284 
285  }
286 
287 }
288 
289 #endif
SPILIBRARY_API SPI_RET_VAL ResetEntityVersion()
Reset AshraitEMV entity version to get full set of parameters from SHVA.
SPILIBRARY_API SPI_RET_VAL GetTotalCancellationsUsd(AmountType &OutputAmount, CounterType &OutputCounter) const
Get total amount of all cancel transaction in USD Supported only with ACCM_REPORT and X_REPORT...
SPILIBRARY_API Report(ReportType Type)
Report constructor.
This namespace contains avilible API from Modularity Inc.
SPILIBRARY_API std::vector< AcquiredBrandInfo > GetAcquiredBrandsInformation() const
Reset the accumlated report queried.
SPILIBRARY_API SPI_RET_VAL GetTotalRefundBySolek(Ashrait::Solek Solek, std::string &OutputSolekName, AmountType &OutputAmount, CounterType &OutputCounter) const
Get total amount of all refund transaction by Solek Supported only with ACCM_REPORT and X_REPORT...
uint64_t AmountType
Definition: SPIDEF.h:47
SPILIBRARY_API SPI_RET_VAL GetPrintableString(std::string &OutputResult) const
Get printable string of the report created. This string come in ASCII from the service processor duri...
SPILIBRARY_API SPI_RET_VAL SetZReportFormat(ZReportFormat Format)
Set the format of the ZReport. The call to this method is elective. Deafult format called by the manu...
SPILIBRARY_API SPI_RET_VAL GetTotal(AmountType &OutputAmount, CounterType &OutputCounter) const
Get total amount of all regular transaction (not refund) Supported only with ACCM_REPORT and X_REPORT...
This class contains all the requiered operations for Reports.
Definition: Report.h:30
SPILIBRARY_API string GetAccumlateStartDate() const
Get date and time report started to accumlate.
A struct that reprensts information about sub retailer in RavSapak mode.
Definition: SPIDEF.h:213
SPILIBRARY_API SPI_RET_VAL SetACKNumber(std::string ACKNumber)
Set ACK Number to query that End Of Day report on AshraitService. Should be used with ReportType::QUE...
SPILIBRARY_API SPI_RET_VAL GetZReportString(std::string &OutputResult) const
Get the ZReport created by EndOfDay() or DoReport() as configured in SetZReportFormat(). This method is the new alternative to GetPrintableString()
SPILIBRARY_API SPI_RET_VAL GetTotalUsd(AmountType &OutputAmount, CounterType &OutputCounter) const
Get total amount of all regular transaction (not refund) in USD Supported only with ACCM_REPORT and X...
SPILIBRARY_API SPI_RET_VAL GetTotalRefundsUsd(AmountType &OutputAmount, CounterType &OutputCounter) const
Get total amount of all refund transaction in USD Supported only with ACCM_REPORT and X_REPORT...
SPILIBRARY_API SPI_RET_VAL GetTotalRefunds(AmountType &OutputAmount, CounterType &OutputCounter) const
Get total amount of all refund transaction Supported only with ACCM_REPORT and X_REPORT.
SPILIBRARY_API void SetSilent()
Silent execution on remote service. This operation is valid only for MINI_SETTLEMENT_REPORT.
SPILIBRARY_API SPI_RET_VAL ResetAccumlateReport() const
Reset the accumlated report queried.
SPILIBRARY_API Report * SetSubRetailerFor(string SubRetailer)
Set sub retailer for the next method execution on the object. The string setted is only relevant for ...
SPILIBRARY_API SPI_RET_VAL GetTotalCancellations(AmountType &OutputAmount, CounterType &OutputCounter) const
Get total amount of all cancel transaction Supported only with ACCM_REPORT and X_REPORT.
SPILIBRARY_API SPI_RET_VAL SetUIDSuffix(std::string UidSuffix)
Set 4 last digits of AshraitEMV Transaction UID.
SPILIBRARY_API string GetDate() const
Get date and time report was created.
APIHandle GetReportHandle() const
Reserved for internal useage.
usint CounterType
Definition: SPIDEF.h:77
SPILIBRARY_API std::vector< std::string > GetQueriedSubRetailers() const
Get all subretailers Queried. Supports only AshraitEMV.
This file conatins all defenitions which are used in SPI API.
SPILIBRARY_API SPI_RET_VAL GetTotalBySolekUsd(Ashrait::Solek Solek, std::string &OutputSolekName, AmountType &OutputAmount, CounterType &OutputCounter) const
Get total amount of all regular transaction (not refund) by Solek in USD Supported only with ACCM_REP...
SPILIBRARY_API void SetSubRetailer(string SubRetailer)
Set sub retailer for the report execution. This operation is valid only for MINI_SETTLEMENT_REPORT.
SPILIBRARY_API SPI_RET_VAL GetTotalRefundBySolekUsd(Ashrait::Solek Solek, std::string &OutputSolekName, AmountType &OutputAmount, CounterType &OutputCounter) const
Get total amount of all refund transaction by Solek in USD Supported only with ACCM_REPORT and X_REPO...
SPILIBRARY_API std::string GetACKNumber() const
Get ACK (batch) number from the processor.
SPILIBRARY_API std::vector< std::string > GetQueriedTransactions() const
Get transactions Queried. Supports only AshraitEMV.
void * APIHandle
Definition: SPIDEF.h:41
SPILIBRARY_API std::vector< EndOfDayReportInfo > GetQueriedReports() const
Get all End Of Day reports on AshraitService. Should be used with ReportType::QUERY_REPORTS This meth...
SPILIBRARY_API SPI_RET_VAL GetTotalBySolek(Ashrait::Solek Solek, std::string &OutputSolekName, AmountType &OutputAmount, CounterType &OutputCounter) const
Get total amount of all regular transaction (not refund) by Solek Supported only with ACCM_REPORT and...