Class DefaultReportingService
This class is intended to be used internally by EPiServer. We do not support any backward compatibility on this.
Default implementation of IReportingService.
Inheritance
Implements
Inherited Members
Namespace: EPiServer.Commerce.Reporting.Order.Internal
Assembly: EPiServer.Commerce.Reporting.dll
Version: 13.30.0Syntax
public class DefaultReportingService : IReportingService
Constructors
DefaultReportingService(IBlobFactory, IContentRepository, IUrlSegmentGenerator, ReportingDataLoader)
Initializes a new instance of the DefaultReportingService class.
Declaration
public DefaultReportingService(IBlobFactory blobFactory, IContentRepository contentRepository, IUrlSegmentGenerator urlSegmentGenerator, ReportingDataLoader reportingDataLoader)
Parameters
Type | Name | Description |
---|---|---|
EPiServer.Framework.Blobs.IBlobFactory | blobFactory | The blob factory. |
EPiServer.IContentRepository | contentRepository | The content repository. |
EPiServer.Web.IUrlSegmentGenerator | urlSegmentGenerator | The URL segment generator. |
ReportingDataLoader | reportingDataLoader | The reporting data loader. |
Methods
ExportOrderDataAsCsv(DateTime, DateTime)
Exports the IPurchaseOrder data during a period of time.
Declaration
public virtual 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
public 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
public virtual IEnumerable<SalesByDayReportingModel> GetAggregatedReportingData()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<SalesByDayReportingModel> | The collection of SalesByDayReportingModel. |