Class Inventory
Inheritance
Implements
Inherited Members
Namespace: EPiServer.Commerce.SpecializedProperties
Assembly: EPiServer.Business.Commerce.dll
Version: 10.8.0Syntax
public class Inventory : ICloneable
  Constructors
Inventory()
Initializes a new instance of Inventory class.
Declaration
public Inventory()
  Inventory(IWarehouseInventory)
Initializes a new instance of Inventory class.
Declaration
[Obsolete("Use constructor with Mediachase.Commerce.InventoryService.InventoryRecord instead. Will remain at least until October 2017.")]
public Inventory(IWarehouseInventory warehouseInventory)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IWarehouseInventory | warehouseInventory | the warehouse inventory value to convert from  | 
      
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 | 
AllowBackorder
Represents whether to allow backorders.
Declaration
[Obsolete("Use BackorderQuantity and BackorderAvailabilityDate to check for backorder availability instead. Will remain until at least October 2017.")]
public bool AllowBackorder { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
AllowPreorder
Represents whether to allow pre-orders.
Declaration
[Obsolete("Use PreorderQuantity and PreorderAvailabilityDate to check for preorder availability instead. Will remain until at least October 2017.")]
public bool AllowPreorder { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
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 unique warehouse 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 | 
InventoryStatus
Represents the inventory's status.
Declaration
[Obsolete("Use IsTracked. Will remain until at least October 2017.")]
public InventoryStatus InventoryStatus { get; set; }
  Property Value
| Type | Description | 
|---|---|
| InventoryStatus | 
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 | 
ReservedQuantity
Represents the inventory's reserved quantity.
Declaration
[Obsolete("Use AdditionalQuantity. Will remain until at least October 2017.")]
public decimal ReservedQuantity { 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 | 
ToWarehouseInventory(CatalogKey)
Converts to a IWarehouseInventory object.
Declaration
[Obsolete("Use method ToInventoryRecord. Will remain until at least October 2017.")]
public virtual IWarehouseInventory ToWarehouseInventory(CatalogKey entryKey)
  Parameters
| Type | Name | Description | 
|---|---|---|
| CatalogKey | entryKey | The entry key to use on converted objects.  | 
      
Returns
| Type | Description | 
|---|---|
| IWarehouseInventory | The converted object.  |