Class InventoryRequester
Processes inventory requests for InventoryRecord.
Inheritance
Inherited Members
Namespace: EPiServer.Commerce.Internal
Assembly: EPiServer.Business.Commerce.dll
Version: 9.24.1Syntax
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(Shipment)
Completes the reserved quantity for shipment.
Declaration
public void CancelReservedQuantityForShipment(Shipment shipment)
Parameters
| Type | Name | Description |
|---|---|---|
| Shipment | shipment | The shipment. |
CompleteBackOrderItemsForShipment(Shipment)
Releases the items for shipment.
Declaration
public void CompleteBackOrderItemsForShipment(Shipment shipment)
Parameters
| Type | Name | Description |
|---|---|---|
| Shipment | shipment | The shipment. |
CompleteReservedQuantityForShipment(Shipment)
Completes the reserved quantity for shipment.
Declaration
public void CompleteReservedQuantityForShipment(Shipment shipment)
Parameters
| Type | Name | Description |
|---|---|---|
| Shipment | shipment | The shipment. |
CreateInventoryRequestItems(Shipment, Int32, InventoryRequestType)
Creates the inventory request items.
Declaration
public IEnumerable<InventoryRequestItem> CreateInventoryRequestItems(Shipment shipment, int lineItemIndex, InventoryRequestType type)
Parameters
| Type | Name | Description |
|---|---|---|
| Shipment | shipment | The shipment. |
| System.Int32 | lineItemIndex | Index of the line item. |
| InventoryRequestType | type | The type. |
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<InventoryRequestItem> |
GetInventoryRequestItems(LineItem, InventoryRecord, Decimal)
Gets the inventory request items.
Declaration
public IList<InventoryRequestItem> GetInventoryRequestItems(LineItem lineItem, InventoryRecord inventoryRecord, decimal delta)
Parameters
| Type | Name | Description |
|---|---|---|
| LineItem | lineItem | The line item. |
| InventoryRecord | inventoryRecord | The inventory record. |
| System.Decimal | delta | The delta. |
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IList<InventoryRequestItem> |
GetReservedQuantityForLineItem(Shipment, Int32)
Gets the reserved quantity.
Declaration
public decimal GetReservedQuantityForLineItem(Shipment shipment, int lineItemIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| Shipment | shipment | The shipment. |
| System.Int32 | lineItemIndex | Index of the line item. |
Returns
| Type | Description |
|---|---|
| System.Decimal |
ReserveInventory(Shipment, Action<ILineItem, ValidationIssue>)
Reserves the inventory.
Declaration
public void ReserveInventory(Shipment shipment, Action<ILineItem, ValidationIssue> onValidationError)
Parameters
| Type | Name | Description |
|---|---|---|
| Shipment | shipment | The shipment. |
| System.Action<ILineItem, ValidationIssue> | onValidationError | The on validation error. |