London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

Interface IInventoryProcessor

Processes inventory requests for InventoryRecord.

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