Class SpendAmountGetItemDiscountProcessor
The processor responsible for evaluating if a promotion of type SpendAmountGetItemDiscount will be applied to items from multiple content references.
Inheritance
System.Object
SpendAmountGetItemDiscountProcessor
Implements
Inherited Members
EntryPromotionProcessorBase<SpendAmountGetItemDiscount>.CreateRedemptionDescription(AffectedEntries)
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.Promotions
Assembly: EPiServer.Business.Commerce.dll
Version: 12.17.2Syntax
public class SpendAmountGetItemDiscountProcessor : GetItemDiscountProcessorBase<SpendAmountGetItemDiscount>, IPromotionProcessor
Constructors
SpendAmountGetItemDiscountProcessor(CollectionTargetEvaluator, FulfillmentEvaluator, LocalizationService)
Creates an instance of a SpendAmountGetItemDiscountProcessor.
Declaration
[Obsolete("This constructor is obsolete. Use the constructor with RedemptionDescriptionFactory instead. This will remain until at least October 2018.")]
public SpendAmountGetItemDiscountProcessor(CollectionTargetEvaluator targetEvaluator, FulfillmentEvaluator fulfillmentEvaluator, LocalizationService localizationService)
Parameters
Type | Name | Description |
---|---|---|
CollectionTargetEvaluator | targetEvaluator | The service that is used to evaluate the fulfillment status of the promotion. |
FulfillmentEvaluator | fulfillmentEvaluator | The service that is used to evaluate the fulfillment status of the promotion. |
EPiServer.Framework.Localization.LocalizationService | localizationService | The localization service. |
SpendAmountGetItemDiscountProcessor(CollectionTargetEvaluator, FulfillmentEvaluator, LocalizationService, RedemptionDescriptionFactory)
Creates an instance of a SpendAmountGetItemDiscountProcessor.
Declaration
public SpendAmountGetItemDiscountProcessor(CollectionTargetEvaluator targetEvaluator, FulfillmentEvaluator fulfillmentEvaluator, LocalizationService localizationService, RedemptionDescriptionFactory redemptionDescriptionFactory)
Parameters
Type | Name | Description |
---|---|---|
CollectionTargetEvaluator | targetEvaluator | The service that is used to evaluate the fulfillment status of the promotion. |
FulfillmentEvaluator | fulfillmentEvaluator | The service that is used to evaluate the fulfillment status of the promotion. |
EPiServer.Framework.Localization.LocalizationService | localizationService | The localization service. |
RedemptionDescriptionFactory | redemptionDescriptionFactory | Factory for creating RedemptionDescriptions. |
Methods
CanBeFulfilled(SpendAmountGetItemDiscount, PromotionProcessorContext)
Declaration
protected override bool CanBeFulfilled(SpendAmountGetItemDiscount promotionData, PromotionProcessorContext context)
Parameters
Type | Name | Description |
---|---|---|
SpendAmountGetItemDiscount | promotionData | |
PromotionProcessorContext | context |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
EPiServer.Commerce.Marketing.Promotions.GetItemDiscountProcessorBase<EPiServer.Commerce.Marketing.Promotions.SpendAmountGetItemDiscount>.CanBeFulfilled(EPiServer.Commerce.Marketing.Promotions.SpendAmountGetItemDiscount, EPiServer.Commerce.Marketing.PromotionProcessorContext)
GetFulfillmentStatus(SpendAmountGetItemDiscount, PromotionProcessorContext)
Declaration
protected override FulfillmentStatus GetFulfillmentStatus(SpendAmountGetItemDiscount promotionData, PromotionProcessorContext context)
Parameters
Type | Name | Description |
---|---|---|
SpendAmountGetItemDiscount | promotionData | |
PromotionProcessorContext | context |
Returns
Type | Description |
---|---|
FulfillmentStatus |
Overrides
EPiServer.Commerce.Marketing.Promotions.GetItemDiscountProcessorBase<EPiServer.Commerce.Marketing.Promotions.SpendAmountGetItemDiscount>.GetFulfillmentStatus(EPiServer.Commerce.Marketing.Promotions.SpendAmountGetItemDiscount, EPiServer.Commerce.Marketing.PromotionProcessorContext)
GetPromotionItems(SpendAmountGetItemDiscount)
Declaration
protected override PromotionItems GetPromotionItems(SpendAmountGetItemDiscount promotionData)
Parameters
Type | Name | Description |
---|---|---|
SpendAmountGetItemDiscount | promotionData |
Returns
Type | Description |
---|---|
PromotionItems |
Overrides
EPiServer.Commerce.Marketing.PromotionProcessorBase<EPiServer.Commerce.Marketing.Promotions.SpendAmountGetItemDiscount>.GetPromotionItems(EPiServer.Commerce.Marketing.Promotions.SpendAmountGetItemDiscount)