Try our conversational search powered by Generative AI!

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
System.Object
DefaultReportingService
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Commerce.Reporting.Order.Internal
Assembly: EPiServer.Commerce.Reporting.dll
Version: 13.30.0
Syntax
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.

Implements