Class EntryPromotionProcessorBase<TEntryPromotion>
Responsible for evaluating if an entry promotion is valid for a specific IOrderForm.
Inheritance
System.Object
PromotionProcessorBase<TEntryPromotion>
EntryPromotionProcessorBase<TEntryPromotion>
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.Marketing
Assembly: EPiServer.Business.Commerce.dll
Version: 10.8.0Syntax
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 |
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. |