Class InventoryRecord
Represents inventory status for a single catalog entry at a single warehouse.
Implements
Inherited Members
Namespace: Mediachase.Commerce.InventoryService
Assembly: Mediachase.Commerce.dll
Version: 13.30.0Syntax
public class InventoryRecord : InventoryKey, IReadOnly<InventoryKey>, IReadOnly<InventoryRecord>, IReadOnly
Constructors
InventoryRecord()
Creates a new instance of InventoryRecord with default values.
Declaration
public InventoryRecord()
InventoryRecord(InventoryRecord)
Creates a new instance of InventoryRecord as a deep copy of
other
.
Declaration
public InventoryRecord(InventoryRecord other)
Parameters
Type | Name | Description |
---|---|---|
InventoryRecord | other | The InventoryRecord to copy. |
InventoryRecord(String, String, Boolean, Decimal, Decimal, Decimal, Decimal, Decimal, Decimal, DateTime, DateTime, DateTime, Decimal, Decimal)
Creates a new instance of InventoryRecord with the specified values.
Declaration
public InventoryRecord(string catalogEntryCode, string warehouseCode, bool isTracked, decimal purchaseAvailableQuantity, decimal preorderAvailableQuantity, decimal backorderAvailableQuantity, decimal purchaseRequestedQuantity, decimal preorderRequestedQuantity, decimal backorderRequestedQuantity, DateTime purchaseAvailableUtc, DateTime preorderAvailableUtc, DateTime backorderAvailableUtc, decimal additionalQuantity, decimal reorderMinQuantity)
Parameters
Type | Name | Description |
---|---|---|
System.String | catalogEntryCode | The value for CatalogEntryCode. |
System.String | warehouseCode | The value for WarehouseCode. |
System.Boolean | isTracked | The value for IsTracked. |
System.Decimal | purchaseAvailableQuantity | The value for PurchaseAvailableQuantity. |
System.Decimal | preorderAvailableQuantity | The value for PreorderAvailableQuantity. |
System.Decimal | backorderAvailableQuantity | The value for BackorderAvailableQuantity. |
System.Decimal | purchaseRequestedQuantity | The value for PurchaseRequestedQuantity. |
System.Decimal | preorderRequestedQuantity | The value for PreorderRequestedQuantity. |
System.Decimal | backorderRequestedQuantity | The value for BackorderRequestedQuantity. |
System.DateTime | purchaseAvailableUtc | The value for PurchaseAvailableUtc. |
System.DateTime | preorderAvailableUtc | The value for PreorderAvailableUtc. |
System.DateTime | backorderAvailableUtc | The value for BackorderAvailableUtc. |
System.Decimal | additionalQuantity | The value for AdditionalQuantity. |
System.Decimal | reorderMinQuantity | The value for ReorderMinQuantity. |
Fields
RecordComparer
Declaration
public static readonly IEqualityComparer<InventoryRecord> RecordComparer
Field Value
Type | Description |
---|---|
System.Collections.Generic.IEqualityComparer<InventoryRecord> |
Properties
AdditionalQuantity
Gets a quantity representing additional quantity at the warehouse that is not available for any transactions. This value is not used in business logic, and exists only to support backwards compatibility with the reserved quantity field.
Declaration
public virtual decimal AdditionalQuantity { get; set; }
Property Value
Type | Description |
---|---|
System.Decimal |
BackorderAvailableQuantity
Gets the quantity of items available for backorder.
Declaration
public virtual decimal BackorderAvailableQuantity { get; set; }
Property Value
Type | Description |
---|---|
System.Decimal |
BackorderAvailableUtc
Gets the backorder availability date for the item and warehouse, in UTC.
Declaration
public virtual DateTime BackorderAvailableUtc { get; set; }
Property Value
Type | Description |
---|---|
System.DateTime |
BackorderRequestedQuantity
Gets the quantity of items requested for backorder and not yet completed.
Declaration
public virtual decimal BackorderRequestedQuantity { get; set; }
Property Value
Type | Description |
---|---|
System.Decimal |
IsTracked
Gets a value indicating if inventory values are tracked for this item.
Declaration
public virtual bool IsTracked { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
PreorderAvailableQuantity
Gets the quantity of items available for preorder.
Declaration
public virtual decimal PreorderAvailableQuantity { get; set; }
Property Value
Type | Description |
---|---|
System.Decimal |
PreorderAvailableUtc
Gets the preorder availability date for the item and warehouse, in UTC.
Declaration
public virtual DateTime PreorderAvailableUtc { get; set; }
Property Value
Type | Description |
---|---|
System.DateTime |
PreorderRequestedQuantity
Gets the quantity of items requested for preorder and not yet completed.
Declaration
public virtual decimal PreorderRequestedQuantity { get; set; }
Property Value
Type | Description |
---|---|
System.Decimal |
PurchaseAvailableQuantity
Gets the quantity of items available for purchase.
Declaration
public virtual decimal PurchaseAvailableQuantity { get; set; }
Property Value
Type | Description |
---|---|
System.Decimal |
PurchaseAvailableUtc
Gets the purchase availability date for the item and warehouse, in UTC.
Declaration
public virtual DateTime PurchaseAvailableUtc { get; set; }
Property Value
Type | Description |
---|---|
System.DateTime |
PurchaseRequestedQuantity
Gets the quantity of items requested for purchase and not yet completed.
Declaration
public virtual decimal PurchaseRequestedQuantity { get; set; }
Property Value
Type | Description |
---|---|
System.Decimal |
ReorderMinQuantity
Gets the reorder minimum quantity. This value is not used in business logic, and exists only for backwards compatibility.
Declaration
public virtual decimal ReorderMinQuantity { get; set; }
Property Value
Type | Description |
---|---|
System.Decimal |
Methods
CreateWritableClone()
Creates a writable copy of the current object.
Declaration
public InventoryRecord CreateWritableClone()
Returns
Type | Description |
---|---|
InventoryRecord | A writable copy of the current object. |
Remarks
The cloning is a deep-copy.