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
TFillable ViewModel
- Inheritance
-
ViewSettingsBaseCurrencyBase<T>
- Derived
- Inherited Members
Constructors
ViewSettingsBaseCurrencyBase()
protected ViewSettingsBaseCurrencyBase()
ViewSettingsBaseCurrencyBase(string)
Creates a configuration for constructing product viewmodels.
protected ViewSettingsBaseCurrencyBase(string languageId)
Parameters
languageIdstringId of language
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
languageIdstringId of language
currencyCodestringCurrencyCode
countryCodestringCountry code2
shopIdstringShop ID.
userIdintUser 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)
Creates a configuration for constructing product viewmodels.
public ViewSettingsBaseCurrencyBase(string languageId, string currencyCode, string countryCode, string shopId, int userId, bool showPricesWithVat, DateTime? time, long stockLocationId)
Parameters
languageIdstringcurrencyCodestringcountryCodestringshopIdstringuserIdintshowPricesWithVatbooltimeDateTime?stockLocationIdlong
ViewSettingsBaseCurrencyBase(string, string, string, string, int, bool, DateTime?, long, bool)
Creates a configuration for constructing product viewmodels.
public ViewSettingsBaseCurrencyBase(string languageId, string currencyCode, string countryCode, string shopId, int userId, bool showPricesWithVat, DateTime? time, long stockLocationId, bool reverseChargeForVat)
Parameters
languageIdstringcurrencyCodestringcountryCodestringshopIdstringuserIdintshowPricesWithVatbooltimeDateTime?stockLocationIdlongreverseChargeForVatbool
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
ReverseChargeForVat
Gets or sets a value indicating whether the VAT is reverse charged.
public bool ReverseChargeForVat { get; set; }
Property Value
ShopId
Shop id used in creation of product viewmodel.
public string ShopId { get; set; }
Property Value
- string
Shop ID.
ShowPricesWithVat
Gets or sets a value that indicates if the price (display price) property of priceviewmodel should include vat or not
public bool ShowPricesWithVat { get; set; }
Property Value
- bool
User id
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