Try our conversational search powered by Generative AI!

Class EntryPromotionProcessorBase<TEntryPromotion>

Responsible for evaluating if an entry promotion is valid for a specific IOrderForm.

Implements
Namespace: EPiServer.Commerce.Marketing
Assembly: EPiServer.Business.Commerce.dll
Version: 10.8.0
Syntax
public abstract class EntryPromotionProcessorBase<TEntryPromotion> : PromotionProcessorBase<TEntryPromotion>, IPromotionProcessor where TEntryPromotion : EntryPromotion
Type Parameters
Name Description
TEntryPromotion

Constructors

EntryPromotionProcessorBase()

Declaration
protected EntryPromotionProcessorBase()

Methods

CreateRedemptionDescription(AffectedEntries)

Creates a RedemptionDescription using affected AffectedEntries.

Declaration
protected virtual RedemptionDescription CreateRedemptionDescription(AffectedEntries affectedEntries)
Parameters
Type Name Description
AffectedEntries affectedEntries

The affected entries.

Returns
Type Description
RedemptionDescription

RedemptionDescription with AffectedEntries.

GetMaxRedemptions(RedemptionLimitsData)

Get max redemptions

Declaration
protected virtual int GetMaxRedemptions(RedemptionLimitsData redemptions)
Parameters
Type Name Description
RedemptionLimitsData redemptions

Contains information regarding Redemption Limits on PromotionData.

Returns
Type Description
System.Int32

Max redemptions.

Implements