Class PromotionActionProvider
Represents the fileter expression povider for creation custom reward.
Inheritance
Inherited Members
Namespace: Mediachase.Commerce.Marketing.Validators.Providers
Assembly: Mediachase.Commerce.Marketing.Validators.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 PromotionActionProvider : BaseRuleSetFilterExpressionProvider
Constructors
PromotionActionProvider()
Declaration
public PromotionActionProvider()
Properties
ActionsEntryDefs
Gets or sets the actions entry defs.
Declaration
protected IEnumerable<ElementDefs> ActionsEntryDefs { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<ElementDefs> | The actions entry defs. |
ActionsOrderDefs
Gets or sets the actions order defs.
Declaration
protected IEnumerable<ElementDefs> ActionsOrderDefs { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<ElementDefs> | The actions order defs. |
ActionsShipmentDefs
Gets or sets the actions shipment defs.
Declaration
protected IEnumerable<ElementDefs> ActionsShipmentDefs { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<ElementDefs> | The actions shipment defs. |
ConditionDecimalDefs
Gets or sets the condition decimal defs.
Declaration
protected ElementDefs ConditionDecimalDefs { get; }
Property Value
| Type | Description |
|---|---|
| ElementDefs | The condition decimal defs. |
ConditionFreeShipingDefs
Gets or sets the condition free shiping defs.
Declaration
protected ElementDefs ConditionFreeShipingDefs { get; }
Property Value
| Type | Description |
|---|---|
| ElementDefs | The condition free shiping defs. |
ConditionPercentDecimalDefs
Gets or sets the condition percent decimal defs.
Declaration
protected ElementDefs ConditionPercentDecimalDefs { get; }
Property Value
| Type | Description |
|---|---|
| ElementDefs | The condition percent decimal defs. |
ConditionSkuSelectDefs
Gets or sets the condition sku select defs.
Declaration
protected ElementDefs ConditionSkuSelectDefs { get; }
Property Value
| Type | Description |
|---|---|
| ElementDefs | The condition sku select defs. |
MethodAllEntryDefs
Gets or sets the method all entry defs.
Declaration
protected ElementDefs MethodAllEntryDefs { get; }
Property Value
| Type | Description |
|---|---|
| ElementDefs | The method all entry defs. |
MethodAllEntryPercentDefs
Gets or sets the method all entry percent defs.
Declaration
protected ElementDefs MethodAllEntryPercentDefs { get; }
Property Value
| Type | Description |
|---|---|
| ElementDefs | The method all entry percent defs. |
MethodEachEntryDefs
Gets or sets the method each entry defs.
Declaration
protected ElementDefs MethodEachEntryDefs { get; }
Property Value
| Type | Description |
|---|---|
| ElementDefs | The method each entry defs. |
MethodGiftDefs
Gets or sets the method gift defs.
Declaration
protected ElementDefs MethodGiftDefs { get; }
Property Value
| Type | Description |
|---|---|
| ElementDefs | The method gift defs. |
Methods
ConvertNodeToStringExpression(FilterExpressionNode)
Converts the node to string expression.
Declaration
protected override string ConvertNodeToStringExpression(FilterExpressionNode node)
Parameters
| Type | Name | Description |
|---|---|---|
| FilterExpressionNode | node | The node. |
Returns
| Type | Description |
|---|---|
| System.String |
Overrides
CreateFilterExpressionNode(ElementDefs)
Creates the filter expression node by him definitions
Declaration
protected override FilterExpressionNode CreateFilterExpressionNode(ElementDefs elementDef)
Parameters
| Type | Name | Description |
|---|---|---|
| ElementDefs | elementDef | The element def. |
Returns
| Type | Description |
|---|---|
| FilterExpressionNode |
Overrides
CreateFilterNodes()
Creates the filter nodes.
Declaration
protected override void CreateFilterNodes()
Overrides
CreateRuleActions(String, FilterExpressionNodeCollection)
Creates the rule actions.
Declaration
protected virtual IEnumerable<Rule> CreateRuleActions(string expressionKey, FilterExpressionNodeCollection filters)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | expressionKey | The expression key. |
| FilterExpressionNodeCollection | filters | The filters. |
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<System.Workflow.Activities.Rules.Rule> |
GetElementConditions(String, FilterExpressionNode)
Gets the element conditions.
Declaration
public override ConditionElementCollection GetElementConditions(string expressionPlace, FilterExpressionNode node)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | expressionPlace | The expression place. |
| FilterExpressionNode | node | The node. |
Returns
| Type | Description |
|---|---|
| ConditionElementCollection |
Overrides
GetElementMethods(String, FilterExpressionNode)
Gets the element methods.
Declaration
public override MethodElementCollection GetElementMethods(string expressionPlace, FilterExpressionNode node)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | expressionPlace | The expression place. |
| FilterExpressionNode | node | The node. |
Returns
| Type | Description |
|---|---|
| MethodElementCollection |
Overrides
GetNewElements(String, FilterExpressionNode)
Gets the new elements.
Declaration
public override FilterExpressionNodeCollection GetNewElements(string expressionPlace, FilterExpressionNode parent)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | expressionPlace | The expression place. |
| FilterExpressionNode | parent |
Returns
| Type | Description |
|---|---|
| FilterExpressionNodeCollection |
Overrides
LoadFilters(String, String)
Loads the filters.
Declaration
public override FilterExpressionNodeCollection LoadFilters(string expressionPlace, string expressionKey)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | expressionPlace | The expression place. |
| System.String | expressionKey | The expression key. |
Returns
| Type | Description |
|---|---|
| FilterExpressionNodeCollection |
Overrides
RegisterProviderElementDefinitions()
Registers the provider element definitions.
Declaration
protected override void RegisterProviderElementDefinitions()
Overrides
SaveFilters(String, String, FilterExpressionNodeCollection)
Saves the filters.
Declaration
public override void SaveFilters(string expressionPlace, string expressionKey, FilterExpressionNodeCollection filters)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | expressionPlace | The expression place. |
| System.String | expressionKey | The expression key. |
| FilterExpressionNodeCollection | filters | The filters. |