Interface IReportingService
Service to create report for IPurchaseOrder.
Namespace: EPiServer.Commerce.Reporting.Order
Assembly: EPiServer.Commerce.Reporting.dll
Version: 14.26.0Syntax
public interface IReportingService
Methods
ExportOrderDataAsCsv(DateTime, DateTime)
Exports the IPurchaseOrder data during a period of time.
Declaration
ContentReference ExportOrderDataAsCsv(DateTime fromDate, DateTime toDate)
Parameters
| Type | Name | Description |
|---|---|---|
| System.DateTime | fromDate | The start date to export. |
| System.DateTime | toDate | The end date to export. |
Returns
| Type | Description |
|---|---|
| EPiServer.Core.ContentReference | The ContentReference of the exported file. |
Remarks
The exported file is a zip file that contains a csv file of orders data and and it will be saved in blobs under CommerceReportings asset. The file path to the exported file can be get with Url Resolver and the returned ContentReference
ExportSubscriptionDataAsCsv(DateTime, DateTime)
Exports the IPaymentPlan data during a period of time.
Declaration
ContentReference ExportSubscriptionDataAsCsv(DateTime fromDate, DateTime toDate)
Parameters
| Type | Name | Description |
|---|---|---|
| System.DateTime | fromDate | The start date to export. |
| System.DateTime | toDate | The end date to export. |
Returns
| Type | Description |
|---|---|
| EPiServer.Core.ContentReference | The ContentReference of the exported file. |
Remarks
The exported file is a zip file that contains a csv file of subscriptions data and and it will be saved in blobs under CommerceReportings asset. The file path to the exported file can be get with Url Resolver and the returned ContentReference
GetAggregatedReportingData()
Gets aggregated data for sales by day report.
Declaration
IEnumerable<SalesByDayReportingModel> GetAggregatedReportingData()
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<SalesByDayReportingModel> | The collection of SalesByDayReportingModel. |