Class InventoryRequester
This class is intended to be used internally by EPiServer. We do not support any backward compatibility on this. Please DO NOT use this in your project.
Processes inventory requests for InventoryRecord.
Inheritance
Inherited Members
Namespace: EPiServer.Commerce.Internal
Assembly: EPiServer.Business.Commerce.dll
Version: 12.17.2Syntax
public class InventoryRequester
Constructors
InventoryRequester(OperationKeySerializer, IInventoryService, LineItemQuantityValidator, IContentLoader, ReferenceConverter, IFulfillmentWarehouseProcessor)
Initializes a new instance of the InventoryRequester class.
Declaration
public InventoryRequester(OperationKeySerializer operationKeySerializer, IInventoryService inventoryService, LineItemQuantityValidator lineItemQuantityValidator, IContentLoader contentLoader, ReferenceConverter referenceConverter, IFulfillmentWarehouseProcessor fulfillmentWarehouseProcessor)
Parameters
| Type | Name | Description |
|---|---|---|
| OperationKeySerializer | operationKeySerializer | The operation key serializer. |
| IInventoryService | inventoryService | The inventory service. |
| LineItemQuantityValidator | lineItemQuantityValidator | The line item quantity validator. |
| EPiServer.IContentLoader | contentLoader | The content loader. |
| ReferenceConverter | referenceConverter | The reference converter. |
| IFulfillmentWarehouseProcessor | fulfillmentWarehouseProcessor | The fulfillment warehouse processor. |
Methods
CancelReservedQuantityForShipment(IShipmentInventory)
Completes the reserved quantity for shipment.
Declaration
public void CancelReservedQuantityForShipment(IShipmentInventory shipment)
Parameters
| Type | Name | Description |
|---|---|---|
| IShipmentInventory | shipment | The shipment. |
CompleteBackOrderItemsForShipment(IShipment)
Releases the items for shipment.
Declaration
public void CompleteBackOrderItemsForShipment(IShipment shipment)
Parameters
| Type | Name | Description |
|---|---|---|
| IShipment | shipment | The shipment. |
CompleteReservedQuantityForShipment(IShipmentInventory)
Completes the reserved quantity for shipment.
Declaration
public void CompleteReservedQuantityForShipment(IShipmentInventory shipment)
Parameters
| Type | Name | Description |
|---|---|---|
| IShipmentInventory | shipment | The shipment. |
CreateInventoryRequestItems(IShipmentInventory, ILineItem, InventoryRequestType)
Creates the inventory request items.
Declaration
public IEnumerable<InventoryRequestItem> CreateInventoryRequestItems(IShipmentInventory shipment, ILineItem lineItem, InventoryRequestType type)
Parameters
| Type | Name | Description |
|---|---|---|
| IShipmentInventory | shipment | The shipment. |
| ILineItem | lineItem | The line item. |
| InventoryRequestType | type | The type. |
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<InventoryRequestItem> |
GetInventoryRequestItems(ILineItemInventory, InventoryRecord, Decimal)
Gets the inventory request items.
Declaration
public IList<InventoryRequestItem> GetInventoryRequestItems(ILineItemInventory lineItem, InventoryRecord inventoryRecord, decimal delta)
Parameters
| Type | Name | Description |
|---|---|---|
| ILineItemInventory | lineItem | The line item. |
| InventoryRecord | inventoryRecord | The inventory record. |
| System.Decimal | delta | The delta. |
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IList<InventoryRequestItem> |
GetReservedQuantityForLineItem(IShipmentInventory, ILineItem)
Gets the reserved quantity.
Declaration
public decimal GetReservedQuantityForLineItem(IShipmentInventory shipment, ILineItem lineItem)
Parameters
| Type | Name | Description |
|---|---|---|
| IShipmentInventory | shipment | The shipment. |
| ILineItem | lineItem | The line item. |
Returns
| Type | Description |
|---|---|
| System.Decimal |
ReserveInventory(IShipment, Action<ILineItem, ValidationIssue>)
Reserves the inventory.
Declaration
public void ReserveInventory(IShipment shipment, Action<ILineItem, ValidationIssue> onValidationError)
Parameters
| Type | Name | Description |
|---|---|---|
| IShipment | shipment | The shipment. |
| System.Action<ILineItem, ValidationIssue> | onValidationError | The on validation error. |