Class LegacyCalculateDiscountsActivity
This is an activity that calculates and applies discounts to a particular order group. This can be used out of the box or as a basis for a different promotion engine.
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: Mediachase.Commerce.Workflow.Activities
Assembly: Mediachase.Commerce.Workflow.dll
Version: 12.17.2Syntax
[Obsolete("Use promotion system in EPiServer.Commerce.Marketing instead. Will be removed in a future major release, but not earlier than August 2018.")]
public class LegacyCalculateDiscountsActivity : OrderGroupActivityBase
Constructors
LegacyCalculateDiscountsActivity()
Declaration
public LegacyCalculateDiscountsActivity()
Methods
Execute(ActivityExecutionContext)
Executes the specified execution context.
Declaration
protected override ActivityExecutionStatus Execute(ActivityExecutionContext executionContext)
Parameters
Type | Name | Description |
---|---|---|
ActivityExecutionContext | executionContext | The execution context. |
Returns
Type | Description |
---|---|
ActivityExecutionStatus |
Overrides
GetGiftPromotionName(PromotionItemRecord)
Gets the name of the gift promotion.
Declaration
public string GetGiftPromotionName(PromotionItemRecord promoRecord)
Parameters
Type | Name | Description |
---|---|---|
PromotionItemRecord | promoRecord | The promo record. |
Returns
Type | Description |
---|---|
System.String |
IsGiftLineItem(LineItem)
Determines whether [is gift line item] [the specified line item].
Declaration
public bool IsGiftLineItem(LineItem lineItem)
Parameters
Type | Name | Description |
---|---|---|
LineItem | lineItem | The line item. |
Returns
Type | Description |
---|---|
System.Boolean |
|