Class InventoryExtensions

Inheritance
System.Object
InventoryExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Mediachase.Commerce.Inventory
Assembly: EPiServer.Business.Commerce.dll
Version: 10.8.0
Syntax
public static class InventoryExtensions

Methods

CanBackorder(IWarehouseInventory, DateTime)

Determines whether the specified inventory of an entry is available for backorder.

Declaration
[Obsolete("Use overload with InventoryRecord. Will remain at least until October 2017.")]
public static bool CanBackorder(this IWarehouseInventory warehouseInventory, DateTime requestDate)
Parameters
Type Name Description
IWarehouseInventory warehouseInventory

The warehouse inventory.

System.DateTime requestDate

The request date.

Returns
Type Description
System.Boolean

true if the specified inventory of a catalog entry is available for backorder; otherwise, false.

CanBackorder(InventoryRecord, DateTime)

Determines whether the specified inventory of an entry is available for backorder.

Declaration
public static bool CanBackorder(this InventoryRecord inventoryRecord, DateTime requestDate)
Parameters
Type Name Description
InventoryRecord inventoryRecord

The warehouse inventory.

System.DateTime requestDate

The request date.

Returns
Type Description
System.Boolean

true if the specified inventory of a catalog entry is available for backorder; otherwise, false.

CanPreorder(IWarehouseInventory, DateTime)

Determines whether the specified inventory of a catalog entry is available for preorder.

Declaration
[Obsolete("Use overload with InventoryRecord. Will remain at least until October 2017.")]
public static bool CanPreorder(this IWarehouseInventory warehouseInventory, DateTime requestDate)
Parameters
Type Name Description
IWarehouseInventory warehouseInventory

The warehouse inventory.

System.DateTime requestDate

The request date.

Returns
Type Description
System.Boolean

true if the specified inventory of a catalog entry is available for preorder; otherwise, false.

CanPreorder(InventoryRecord, DateTime)

Determines whether the specified inventory of a catalog entry is available for preorder.

Declaration
public static bool CanPreorder(this InventoryRecord inventoryRecord, DateTime requestDate)
Parameters
Type Name Description
InventoryRecord inventoryRecord

The warehouse inventory.

System.DateTime requestDate

The request date.

Returns
Type Description
System.Boolean

true if the specified inventory of a catalog entry is available for preorder; otherwise, false.