Class StockStatus
- Namespace
- Dynamicweb.Ecommerce.Stocks
- Assembly
- Dynamicweb.Ecommerce.dll
Represents the stock status.
[Serializable]
public class StockStatus
- Inheritance
-
StockStatus
- Inherited Members
Properties
Definition
Gets or sets the definition.
public string Definition { get; set; }
Property Value
GroupId
Gets or sets the group id.
public string GroupId { get; set; }
Property Value
Icon
Gets or sets the icon.
public string Icon { get; set; }
Property Value
Id
Gets or sets the id.
public string Id { get; set; }
Property Value
NeverOutOfStock
Gets or sets value indicating whether the status is never out of stock.
public bool NeverOutOfStock { get; set; }
Property Value
Rate
Gets or sets the rate.
public double Rate { get; set; }
Property Value
Translations
Gets the translations.
public TranslationCollection<StockStatusTranslation> Translations { get; }
Property Value
Methods
Clone()
Clones the stock status.
public StockStatus Clone()
Returns
- StockStatus
New instance of the StockStatus.
GetExpectedDeliveryText(string)
Gets the stock status expected delivery text for a given language.
public string GetExpectedDeliveryText(string languageId)
Parameters
languageId
stringThe language ID.
Returns
- string
The translation value.
GetExpectedDeliveryValue(string)
Gets the stock status expected delivery value for a given language.
public string GetExpectedDeliveryValue(string languageId)
Parameters
languageId
stringThe language ID.
Returns
- string
The translation value.
GetText(string)
Gets the stock status text for a given language.
public string GetText(string languageId)
Parameters
languageId
stringThe language ID.
Returns
- string
The translation value.
SetExpectedDeliveryText(string, string)
Sets the stock status expected delivery text for a given language.
public void SetExpectedDeliveryText(string deliveryText, string languageId)
Parameters
SetExpectedDeliveryValue(string, string)
Sets the stock status expected delivery value for a given language.
public void SetExpectedDeliveryValue(string deliveryValue, string languageId)
Parameters
SetText(string, string)
Sets the stock status text for a given language.
public void SetText(string text, string languageId)