Class CustomerNumberCondition
- Namespace
- Dynamicweb.Ecommerce.Orders.Adjustments.Conditions
- Assembly
- Dynamicweb.Ecommerce.dll
A condition that checks if the customer number matches a specific value.
[Experimental("DWEX100001")]
[AddInLabel("Customer number")]
[AddInUseParameterSectioning(true)]
public sealed class CustomerNumberCondition : Condition
- Inheritance
-
CustomerNumberCondition
- Inherited Members
Properties
ContextType
The type of context the condition is applied to.
public override AdjustmentContextType ContextType { get; }
Property Value
CustomerNumber
The customer number to check against the AdjustmentContexts customer number.
[AddInParameterGroup("Condition")]
[AddInParameter("CustomerNumber")]
[AddInLabel("Customer number")]
[AddInParameterEditor(typeof(TextParameterEditor), "required=true")]
public string? CustomerNumber { get; set; }
Property Value
Methods
GetDisplayValue(string)
Returns the UI display format for the condition, visible in the overview screens where conditions are used.
public override string? GetDisplayValue(string parameterName)
Parameters
parameterNamestringThe name of the parameter.
Returns
IsSatisfied(AdjustmentContext)
Returns whether the condition is satisfied.
public override bool IsSatisfied(AdjustmentContext context)
Parameters
contextAdjustmentContextThe current context, either a OrderAdjustmentContext or ProductAdjustmentContext.