Class RedemptionDescriptionFactory
Factory for creating RedemptionDescriptions.
Inheritance
System.Object
RedemptionDescriptionFactory
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: 13.30.0Syntax
public class RedemptionDescriptionFactory
Constructors
RedemptionDescriptionFactory()
Declaration
public RedemptionDescriptionFactory()
Methods
GetRedemptionDescriptions(PromotionData, PromotionProcessorContext, IEnumerable<String>, Decimal, Decimal)
Gets all RedemptionDescriptions affected by a given promotion.
Declaration
public IEnumerable<RedemptionDescription> GetRedemptionDescriptions(PromotionData promotionData, PromotionProcessorContext context, IEnumerable<string> applicableCodes, decimal maxQuantity, decimal batchSize)
Parameters
Type | Name | Description |
---|---|---|
PromotionData | promotionData | The promotion used to evaluate the product codes. |
PromotionProcessorContext | context | The context for the promotion processor evaluation. |
System.Collections.Generic.IEnumerable<System.String> | applicableCodes | A collection of product codes to be checked against a promotion. |
System.Decimal | maxQuantity | The maximum number of items that the promotion can be applied to. |
System.Decimal | batchSize | The number of items to process. If the promotion has a required quantity, it is used here, otherwise it's int.MaxValue. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<RedemptionDescription> | A list of applicable RedemptionDescriptions. |