Class LineItemQuantityValidator
Processes inventory requests for InventoryRecord.
Inheritance
System.Object
LineItemQuantityValidator
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Commerce.Internal
Assembly: EPiServer.Business.Commerce.dll
Version: 9.24.1Syntax
public class LineItemQuantityValidator
Constructors
LineItemQuantityValidator()
Declaration
public LineItemQuantityValidator()
Methods
GetLineItemQuantity(ILineItem, IShipment, IStockPlacement, InventoryRecord, Action<ILineItem, ValidationIssue>)
Gets the line item quantity.
Declaration
public decimal GetLineItemQuantity(ILineItem lineItem, IShipment shipment, IStockPlacement stock, InventoryRecord inventoryRecord, Action<ILineItem, ValidationIssue> onValidationError)
Parameters
| Type | Name | Description |
|---|---|---|
| ILineItem | lineItem | The line item. |
| IShipment | shipment | The shipment. |
| IStockPlacement | stock | The stock. |
| InventoryRecord | inventoryRecord | The inventory record. |
| System.Action<ILineItem, ValidationIssue> | onValidationError | The on validation error. |
Returns
| Type | Description |
|---|---|
| System.Decimal | The quantity. |