Class ViewSettingsBaseCurrencyBase<T>
- Namespace
- Dynamicweb.Ecommerce.ProductCatalog
- Assembly
- Dynamicweb.Ecommerce.dll
Base configuration for views that require a language and a currency code to be contructed.
public abstract class ViewSettingsBaseCurrencyBase<T> : ViewSettingsLanguageBase<T> where T : FillableViewModelBase, new()
Type Parameters
T- Fillable ViewModel
- Inheritance
-
ViewSettingsBaseCurrencyBase<T>
- Inherited Members
Constructors
ViewSettingsBaseCurrencyBase()
protected ViewSettingsBaseCurrencyBase()
ViewSettingsBaseCurrencyBase(string)
Creates a configuration for constructing product viewmodels.
protected ViewSettingsBaseCurrencyBase(string languageId)
Parameters
languageIdstring- Id of language
ViewSettingsBaseCurrencyBase(string, string, string)
Creates a configuration for constructing product viewmodels.
[Obsolete("Use other constructor", true)]
public ViewSettingsBaseCurrencyBase(string languageId, string currencyCode, string countryCode)
Parameters
ViewSettingsBaseCurrencyBase(string, string, string, string)
Creates a configuration for constructing product viewmodels.
[Obsolete("Use other constructor", true)]
public ViewSettingsBaseCurrencyBase(string languageId, string currencyCode, string countryCode, string shopId)
Parameters
languageIdstring- Id of language
currencyCodestring- CurrencyCode
countryCodestring- Country code2
shopIdstring- Shop ID.
ViewSettingsBaseCurrencyBase(string, string, string, string, int)
Creates a configuration for constructing product viewmodels.
public ViewSettingsBaseCurrencyBase(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
ViewSettingsBaseCurrencyBase(string, string, string, string, int, bool)
Creates a configuration for constructing product viewmodels.
public ViewSettingsBaseCurrencyBase(string languageId, string currencyCode, string countryCode, string shopId, int userId, bool showPricesWithVat)
Parameters
languageIdstringcurrencyCodestringcountryCodestringshopIdstringuserIdintshowPricesWithVatbool
ViewSettingsBaseCurrencyBase(string, string, string, string, int, bool, DateTime?)
Creates a configuration for constructing product viewmodels.
public ViewSettingsBaseCurrencyBase(string languageId, string currencyCode, string countryCode, string shopId, int userId, bool showPricesWithVat, DateTime? time)
Parameters
languageIdstringcurrencyCodestringcountryCodestringshopIdstringuserIdintshowPricesWithVatbooltimeDateTime?
ViewSettingsBaseCurrencyBase(string, string, string, string, int, bool, DateTime?, long)
public ViewSettingsBaseCurrencyBase(string languageId, string currencyCode, string countryCode, string shopId, int userId, bool showPricesWithVat, DateTime? time, long stockLocationId)
Parameters
languageIdstringcurrencyCodestringcountryCodestringshopIdstringuserIdintshowPricesWithVatbooltimeDateTime?stockLocationIdlong
Properties
CountryCode
Country code2 that is to be used for vat on any price-calculations.
public string CountryCode { get; set; }
Property Value
- string
- Country code2
CurrencyCode
Currency code used in creation of product viewmodel.
Default: Currency marked as default.
public string CurrencyCode { get; set; }
Property Value
- string
- currencyCode
OrderDate
[Obsolete("Use time property", true)]
public DateTime? OrderDate { get; set; }
Property Value
ShopId
Shop id used in creation of product viewmodel.
public string ShopId { get; set; }
Property Value
- string
- Shop ID.
ShowPricesWithVat
Indicates if the price (display price) property of priceviewmodel should include vat or not.
public bool ShowPricesWithVat { get; set; }
Property Value
StockLocationId
Stocklocationid used for price lookups in price matrix for a given stocklocation
public long StockLocationId { get; set; }
Property Value
Time
public DateTime? Time { get; set; }
Property Value
UserId
User id that is to be used on any price-calculations. Will be overriden with information from the WebAPIs that support UserToken Authorization.
public int UserId { get; set; }
Property Value
- int
- User id
Methods
EnsureContext<TS>(ViewSettingsBase<TS>)
public override void EnsureContext<TS>(ViewSettingsBase<TS> settings) where TS : FillableViewModelBase, new()
Parameters
settingsViewSettingsBase<TS>
Type Parameters
TS