Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Interface IInventoryProcessor

Processes inventory requests for InventoryRecord.

Namespace: EPiServer.Commerce.Order
Assembly: EPiServer.Business.Commerce.dll
Version: 14.26.0
Syntax
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.