World is now on Opti ID! Learn more

Class RedemptionDescriptionFactory

Factory for creating RedemptionDescriptions.

Inheritance
System.Object
RedemptionDescriptionFactory
Namespace: EPiServer.Commerce.Marketing
Assembly: EPiServer.Business.Commerce.dll
Version: 14.26.0
Syntax
public class RedemptionDescriptionFactory : Object

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.