Class OrderLineViewModelSettings
- Namespace
- Dynamicweb.Ecommerce.Frontend
- Assembly
- Dynamicweb.Ecommerce.dll
public class OrderLineViewModelSettings : ViewSettingsBaseCurrencyBase<OrderLineViewModel>
- Inheritance
-
OrderLineViewModelSettings
- Inherited Members
Constructors
OrderLineViewModelSettings()
Empty constructor for webapi
public OrderLineViewModelSettings()
OrderLineViewModelSettings(string, string, string, string, int)
Creates a configuration for constructing price viewmodels.
public OrderLineViewModelSettings(string languageId, string currencyCode, string countryCode, string shopId, int userId)
Parameters
languageIdstring- Id of language
currencyCodestring- CurrencyCode
countryCodestring- Country code2
shopIdstring- Shop id
userIdint- User id
OrderLineViewModelSettings(string, string, string, string, int, bool)
Creates a configuration for constructing price viewmodels.
public OrderLineViewModelSettings(string languageId, string currencyCode, string countryCode, string shopId, int userId, bool showPricesWithVat)
Parameters
languageIdstring- Id of language
currencyCodestring- CurrencyCode
countryCodestring- Country code2
shopIdstring- Shop id
userIdint- User id
showPricesWithVatbool- should prices be shown with or without VAT
OrderLineViewModelSettings(string, string, string, string, int, bool, DateTime?, long)
Creates a configuration for constructing price viewmodels.
public OrderLineViewModelSettings(string languageId, string currencyCode, string countryCode, string shopId, int userId, bool showPricesWithVat, DateTime? time, long stockLocationId)
Parameters
languageIdstringcurrencyCodestringcountryCodestringshopIdstringuserIdintshowPricesWithVatbooltimeDateTime?stockLocationIdlong
Properties
GroupInfoSettings
The group info settings
public GroupInfoViewModelSettings GroupInfoSettings { get; set; }
Property Value
OrderLineFieldSettings
The order line field settings
public FieldValueViewModelSetting OrderLineFieldSettings { get; set; }
Property Value
PriceSettings
Configures how the price view should be configured, if price is filled.
public PriceViewModelSettings PriceSettings { get; set; }
Property Value
- PriceViewModelSettings
- configurationOfPriceViewModel
Methods
EnsureFilledPropertiesExist()
If filled properties are empty, this method will add ALL valid property names.
public override void EnsureFilledPropertiesExist()