Interface IInventoryProcessor
Processes inventory requests for InventoryRecord.
Namespace: EPiServer.Commerce.Order
Assembly: EPiServer.Business.Commerce.dll
Version: 12.17.2Syntax
public interface IInventoryProcessor
Methods
AdjustInventoryOrRemoveLineItem(IShipment, OrderStatus, Action<ILineItem, ValidationIssue>)
Adjusts the inventory for shipment by reserving or completing reservation to the IInventoryService. Removes the line item if no available inventory.
Declaration
void AdjustInventoryOrRemoveLineItem(IShipment shipment, OrderStatus orderStatus, Action<ILineItem, ValidationIssue> onValidationError)
Parameters
Type | Name | Description |
---|---|---|
IShipment | shipment | The shipment. |
OrderStatus | orderStatus | The order status. |
System.Action<ILineItem, ValidationIssue> | onValidationError | A callback that is invoked if a validation issue is detected. |
UpdateInventoryOrRemoveLineItem(IShipment, Action<ILineItem, ValidationIssue>)
Validates and or updates the inventory for the shipment. Removes the line item if no available inventory.
Declaration
void UpdateInventoryOrRemoveLineItem(IShipment shipment, Action<ILineItem, ValidationIssue> onValidationError)
Parameters
Type | Name | Description |
---|---|---|
IShipment | shipment | The shipment. |
System.Action<ILineItem, ValidationIssue> | onValidationError | A callback that is invoked if a validation issue is detected. |