Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Class OrderPerPromotionDataReporter

Reports order per promotion statistics data.

Inheritance
System.Object
OrderPerPromotionDataReporter
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 OrderPerPromotionDataReporter

Constructors

OrderPerPromotionDataReporter(IContentLoader, CampaignInfoExtractor, OrderPerPromotionDataAccess, MarketingStatisticRepository)

Initializes a new instance of OrderPerPromotionDataReporter

Declaration
public OrderPerPromotionDataReporter(IContentLoader contentLoader, CampaignInfoExtractor campaignInfoExtractor, OrderPerPromotionDataAccess orderPerPromotionDataAccess, MarketingStatisticRepository marketingStatisticRepository)
Parameters
Type Name Description
EPiServer.IContentLoader contentLoader

The content loader.

CampaignInfoExtractor campaignInfoExtractor

The campaign information extractor.

OrderPerPromotionDataAccess orderPerPromotionDataAccess

Provides access to database.

MarketingStatisticRepository marketingStatisticRepository

The marketing statistic repository.

Methods

ReportStatistics(Boolean)

Reports statistics for order per promotion.

Declaration
public void ReportStatistics(bool reportForInactive)
Parameters
Type Name Description
System.Boolean reportForInactive

True if this will run for inactive campaigns/promotions as well.

SaveOrderPerPromotionDataData(SalesCampaign, Boolean)

Saves collected data of order to data warehouse.

Declaration
public void SaveOrderPerPromotionDataData(SalesCampaign salesCampaign, bool reportForInactive)
Parameters
Type Name Description
SalesCampaign salesCampaign

The sale campaign.

System.Boolean reportForInactive

If true, reports data for inactive campaigns.