Class InventoryResponseItem
Represents one item in a response from the inventory system.
Inheritance
Inherited Members
Namespace: Mediachase.Commerce.InventoryService
Assembly: Mediachase.Commerce.dll
Version: 12.17.2Syntax
public class InventoryResponseItem
Constructors
InventoryResponseItem()
Creates a new instance of InventoryResponseItem.
Declaration
public InventoryResponseItem()
InventoryResponseItem(InventoryRequestItem, InventoryResponseType, InventoryResponseTypeInfo, String, String, Boolean, Decimal, Decimal, Decimal, Decimal, Decimal, Decimal, DateTime, DateTime, DateTime)
Creates a new instance of InventoryResponseItem with the specified values.
Declaration
public InventoryResponseItem(InventoryRequestItem requestItem, InventoryResponseType responseType, InventoryResponseTypeInfo responseTypeInfo, string warehouseCode, string operationKey, bool isTracked, decimal purchaseAvailableQuantity, decimal preorderAvailableQuantity, decimal backorderAvailableQuantity, decimal purchaseRequestedQuantity, decimal preorderRequestedQuantity, decimal backorderRequestedQuantity, DateTime purchaseAvailableUtc, DateTime preorderAvailableUtc, DateTime backorderAvailableUtc)
Parameters
| Type | Name | Description |
|---|---|---|
| InventoryRequestItem | requestItem | The value for RequestItem. |
| InventoryResponseType | responseType | The value for ResponseType. |
| InventoryResponseTypeInfo | responseTypeInfo | The value for ResponseTypeInfo. |
| System.String | warehouseCode | The value for WarehouseCode. |
| System.String | operationKey | The value for OperationKey. |
| 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. |
InventoryResponseItem(InventoryResponseItem)
Creates a new instance of InventoryResponseItem as a deep copy of another InventoryResponseItem.
Declaration
public InventoryResponseItem(InventoryResponseItem other)
Parameters
| Type | Name | Description |
|---|---|---|
| InventoryResponseItem | other | The InventoryResponseItem to copy. |
Properties
BackorderAvailableQuantity
Gets or sets the backorder available quantity for the requested item, after any changes from the transaction that produced this response.
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 or sets the backorder available quantity for the requested item, after any changes from the transaction that produced this response.
Declaration
public virtual decimal BackorderRequestedQuantity { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Decimal |
IsTracked
Gets or sets a value indicating if inventory values are tracked for this item.
Declaration
public virtual bool IsTracked { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
OperationKey
Gets or sets the opaque operation key.
Declaration
public virtual string OperationKey { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
PreorderAvailableQuantity
Gets or sets the preorder available quantity for the requested item, after any changes from the transaction that produced this response.
Declaration
public virtual decimal PreorderAvailableQuantity { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Decimal |
PreorderAvailableUtc
Gets or sets the preorder availability date for the requested item, in UTC.
Declaration
public virtual DateTime PreorderAvailableUtc { get; set; }
Property Value
| Type | Description |
|---|---|
| System.DateTime |
PreorderRequestedQuantity
Gets or sets the purchase requested quantitiy for the requested item, after any changes from the transaction that produced this response.
Declaration
public virtual decimal PreorderRequestedQuantity { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Decimal |
PurchaseAvailableQuantity
Gets or sets the purchase available quantity for the requested item, after any changes from the transaction that produced this response.
Declaration
public virtual decimal PurchaseAvailableQuantity { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Decimal |
PurchaseAvailableUtc
Gets or sets the purchase availability date for the requested item, in UTC.
Declaration
public virtual DateTime PurchaseAvailableUtc { get; set; }
Property Value
| Type | Description |
|---|---|
| System.DateTime |
PurchaseRequestedQuantity
Gets or sets the purchase requested quantitiy for the requested item, after any changes from the transaction that produced this response.
Declaration
public virtual decimal PurchaseRequestedQuantity { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Decimal |
RequestItem
Gets or sets the request data.
Declaration
public virtual InventoryRequestItem RequestItem { get; set; }
Property Value
| Type | Description |
|---|---|
| InventoryRequestItem |
ResponseType
Gets or sets the response type.
Declaration
public virtual InventoryResponseType ResponseType { get; set; }
Property Value
| Type | Description |
|---|---|
| InventoryResponseType |
ResponseTypeInfo
Gets or sets the response subtype.
Declaration
public virtual InventoryResponseTypeInfo ResponseTypeInfo { get; set; }
Property Value
| Type | Description |
|---|---|
| InventoryResponseTypeInfo |
WarehouseCode
Gets or sets the fulfillment warehouse determined by the inventory system.
Declaration
public virtual string WarehouseCode { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Methods
ToInventoryRecord()
Creates a new instance of InventoryRecord from the values in this response item, unless RequestItem is null. The values of AdditionalQuantity and ReorderMinQuantity will be set to zero.
Declaration
public InventoryRecord ToInventoryRecord()
Returns
| Type | Description |
|---|---|
| InventoryRecord | A new InventoryRecord with values from this InventoryResponseItem, or null if RequestItem is null. |