Class CalculateDiscountsActivity

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.

Inheritance
System.Object
CalculateDiscountsActivity
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: 10.8.0
Syntax
public class CalculateDiscountsActivity : OrderGroupActivityBase

Constructors

CalculateDiscountsActivity()

Declaration
public CalculateDiscountsActivity()

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

true if [is gift line item] [the specified line item]; otherwise, false.