Class Inventory
Inheritance
Implements
Inherited Members
Namespace: EPiServer.Commerce.SpecializedProperties
Assembly: EPiServer.Business.Commerce.dll
Version: 13.30.0Syntax
public class Inventory : ICloneable
Constructors
Inventory()
Initializes a new instance of Inventory class.
Declaration
public Inventory()
Inventory(InventoryRecord)
Initializes a new instance of the Inventory class.
Declaration
public Inventory(InventoryRecord inventoryRecord)
Parameters
Type | Name | Description |
---|---|---|
InventoryRecord | inventoryRecord | The inventory record. |
Properties
AdditionalQuantity
Gets or sets the additional quantity.
Declaration
public decimal AdditionalQuantity { get; set; }
Property Value
Type | Description |
---|---|
System.Decimal |
BackorderAvailabilityDate
Represents the availability date for the inventory's backorders.
Declaration
public DateTime? BackorderAvailabilityDate { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTime> |
BackorderQuantity
Represents the inventory's backorder quantity.
Declaration
public decimal BackorderQuantity { get; set; }
Property Value
Type | Description |
---|---|
System.Decimal |
CatalogEntryCode
Represents the catalog entry code.
Declaration
public string CatalogEntryCode { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ContentLink
Gets or sets Entry Content Link used on price overview variation.
Declaration
public ContentReference ContentLink { get; set; }
Property Value
Type | Description |
---|---|
EPiServer.Core.ContentReference |
InStockQuantity
Represents the inventory's in-stock quantity.
Declaration
public decimal InStockQuantity { get; set; }
Property Value
Type | Description |
---|---|
System.Decimal |
IsTracked
Represents the inventory's status.
Declaration
public bool IsTracked { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
PreorderAvailabilityDate
Represents the availability date for the inventory's pre-orders.
Declaration
public DateTime? PreorderAvailabilityDate { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTime> |
PreorderQuantity
Represents the inventory's pre-order quantity.
Declaration
public decimal PreorderQuantity { get; set; }
Property Value
Type | Description |
---|---|
System.Decimal |
PurchaseAvailabilityDate
Represents the availability date for the inventory's in stock quantity.
Declaration
public DateTime PurchaseAvailabilityDate { get; set; }
Property Value
Type | Description |
---|---|
System.DateTime |
ReorderMinQuantity
Represents the inventory's minimum re-order quantity.
Declaration
public decimal ReorderMinQuantity { get; set; }
Property Value
Type | Description |
---|---|
System.Decimal |
WarehouseCode
Represents the unique warehouse code.
Declaration
public string WarehouseCode { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
Clone()
Creates a new object that is a copy of the current instance.
Declaration
public object Clone()
Returns
Type | Description |
---|---|
System.Object | A new object that is a copy of this instance. |
ToInventoryRecord(String)
To the inventory record.
Declaration
public virtual InventoryRecord ToInventoryRecord(string catalogEntryCode)
Parameters
Type | Name | Description |
---|---|---|
System.String | catalogEntryCode | The catalog entry code. |
Returns
Type | Description |
---|---|
InventoryRecord |