Interface IRenderableDiscount
- Namespace
- Dynamicweb.Ecommerce.Orders.Adjustments
- Assembly
- Dynamicweb.Ecommerce.dll
[Experimental("DWEX100001")]
public interface IRenderableDiscount
Methods
GetFillableProperty<T>(string, DiscountViewModelSettings, ProductAdjustmentContext)
Returns a function that has the result for the property given. If the propertyName is not a property the discount implementing this interface has, it should return null.
Func<T>? GetFillableProperty<T>(string propertyName, DiscountViewModelSettings settings, ProductAdjustmentContext context)
Parameters
propertyNamestringThe name of the parameter from DiscountViewModel.
settingsDiscountViewModelSettingsThe settings for the DiscountViewModel.
contextProductAdjustmentContextThe current context for the discount.
Returns
- Func<T>
A function which results in a type for the propertyName.
Type Parameters
TThe type of the propertyName in DiscountViewModel.