Table of Contents

Class StockStatus

Namespace
Dynamicweb.Ecommerce.Stocks
Assembly
Dynamicweb.Ecommerce.dll
Represents the stock status.
[Serializable]
public class StockStatus
Inheritance
StockStatus
Inherited Members

Constructors

StockStatus()

Initializes a new instance of the class.
public StockStatus()

StockStatus(string)

Initializes a new instance of the class.
[Obsolete("Use Services.StockService.GetStockStatus(String) instead.")]
public StockStatus(string id)

Parameters

id string
The id.

Properties

Definition

Gets or sets the definition.
public string Definition { get; set; }

Property Value

string

ExpectedDeliveryText

Gets or sets the expected delivery text.
[Obsolete("Use GetExpectedDeliveryText and SetExpectedDeliveryText instead.")]
public string ExpectedDeliveryText { get; set; }

Property Value

string

ExpectedDeliveryValue

Gets or sets the expected delivery value.
[Obsolete("Use GetExpectedDeliveryValue and SetExpectedDeliveryValue instead.")]
public string ExpectedDeliveryValue { get; set; }

Property Value

string

GroupId

Gets or sets the group id.
public string GroupId { get; set; }

Property Value

string

Icon

Gets or sets the icon.
public string Icon { get; set; }

Property Value

string

Id

Gets or sets the id.
public string Id { get; set; }

Property Value

string

LanguageId

Gets or sets the language id.
[Obsolete("Use Translations instead.")]
public string LanguageId { get; set; }

Property Value

string

Rate

Gets or sets the rate.
public double Rate { get; set; }

Property Value

double

StockStatusLanguageValueId

Gets or sets the stock status language value id.
[Obsolete("Use Id property of the needed StockStatusTranslation object instead.")]
public string StockStatusLanguageValueId { get; set; }

Property Value

string

StockStatusLineId

Gets or sets the stock status line id.
[Obsolete("Use Id instead.")]
public string StockStatusLineId { get; set; }

Property Value

string

Text

Gets or sets the text.
[Obsolete("Use GetText and SetText instead.")]
public string Text { get; set; }

Property Value

string

Translations

Gets the translations.
public TranslationCollection<StockStatusTranslation> Translations { get; }

Property Value

TranslationCollection<StockStatusTranslation>

Methods

Clone()

Clones the stock status.
public StockStatus Clone()

Returns

StockStatus
New instance of the StockStatus.

Copy()

Copies the stock status.
[Obsolete("Use Clone() instead.")]
public StockStatus Copy()

Returns

StockStatus
New instance of the StockStatus.

Delete()

Deletes the stock status.
[Obsolete("Use Services.StockService.DeleteStockStatus(StockStatus) instead.")]
public void Delete()

Remarks

Only default language has delete button. If stock status is removed same status on other languages has to be removed first.

GetExpectedDeliveryText(string)

Gets the stock status expected delivery text for a given language.
public string GetExpectedDeliveryText(string languageId)

Parameters

languageId string
The 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 string
The language ID.

Returns

string
The translation value.

GetStockStatuses(string, bool, string)

Gets the stock statuses.
[Obsolete("Use Services.StockService.GetStockStatuses(String, Boolean, String) instead.")]
public static StockStatusCollection GetStockStatuses(string statusGroupID, bool orderBy = false, string language = "")

Parameters

statusGroupID string
The group id.
orderBy bool
The sort direction.
language string
The language.

Returns

StockStatusCollection
The collection of the stock statuses.

GetText(string)

Gets the stock status text for a given language.
public string GetText(string languageId)

Parameters

languageId string
The language ID.

Returns

string
The translation value.

Lock()

Locks the stock status (Readonly mode).
[Obsolete("This method is no longer used.")]
public void Lock()

Save(string)

Saves the stock status.
[Obsolete("Use Services.StockService.SaveStockStatus(StockStatus, String) instead.")]
public void Save(string id)

Parameters

id string
The id.

SetExpectedDeliveryText(string, string)

Sets the stock status expected delivery text for a given language.
public void SetExpectedDeliveryText(string deliveryText, string languageId)

Parameters

deliveryText string
The translation value to set.
languageId string
The language ID.

SetExpectedDeliveryValue(string, string)

Sets the stock status expected delivery value for a given language.
public void SetExpectedDeliveryValue(string deliveryValue, string languageId)

Parameters

deliveryValue string
The translation value to set.
languageId string
The language ID.

SetText(string, string)

Sets the stock status text for a given language.
public void SetText(string text, string languageId)

Parameters

text string
The translation value to set.
languageId string
The language ID.
To top