November Happy Hour will be moved to Thursday December 5th.

Class DefaultPurchaseOrderProcessor

This class is intended to be used internally by EPiServer. We do not support any backward compatibility on this. Please DO NOT use this in your project.

Default implementation of IPurchaseOrderProcessor to handle operations on IPurchaseOrder.

Inheritance
System.Object
DefaultPurchaseOrderProcessor
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.Order.Internal
Assembly: EPiServer.Business.Commerce.dll
Version: 13.30.0
Syntax
public class DefaultPurchaseOrderProcessor : IPurchaseOrderProcessor

Constructors

DefaultPurchaseOrderProcessor(ILineItemValidator, IInventoryProcessor, IPromotionEngine)

Initializes a new instance of the DefaultPurchaseOrderProcessor class.

Declaration
public DefaultPurchaseOrderProcessor(ILineItemValidator lineItemValidator, IInventoryProcessor inventoryProcessor, IPromotionEngine promotionEngine)
Parameters
Type Name Description
ILineItemValidator lineItemValidator

The line item validator.

IInventoryProcessor inventoryProcessor

The inventory processor.

IPromotionEngine promotionEngine

The promotion engine.

Methods

CancelOrder(IPurchaseOrder)

Cancels an IPurchaseOrder. After processed, the IPurchaseOrder status is set to Cancelled.

Declaration
public virtual OrderProcessingResult CancelOrder(IPurchaseOrder purchaseOrder)
Parameters
Type Name Description
IPurchaseOrder purchaseOrder

The purchase order.

Returns
Type Description
OrderProcessingResult

The order processing result.

HoldOrder(IPurchaseOrder)

Holds an IPurchaseOrder.

Declaration
public virtual OrderProcessingResult HoldOrder(IPurchaseOrder purchaseOrder)
Parameters
Type Name Description
IPurchaseOrder purchaseOrder

The purchase order.

Returns
Type Description
OrderProcessingResult

The order processing result.

ProcessOrder(IPurchaseOrder)

Processes an IPurchaseOrder. After processed, the IPurchaseOrder status is set to InProgress.

Declaration
public virtual OrderProcessingResult ProcessOrder(IPurchaseOrder purchaseOrder)
Parameters
Type Name Description
IPurchaseOrder purchaseOrder

The purchase order.

Returns
Type Description
OrderProcessingResult

The order processing result.

ReleaseOrder(IPurchaseOrder)

Releases an on-hold IPurchaseOrder. After processed, the IPurchaseOrder status is set to InProgress.

Declaration
public virtual OrderProcessingResult ReleaseOrder(IPurchaseOrder purchaseOrder)
Parameters
Type Name Description
IPurchaseOrder purchaseOrder

The purchase order.

Returns
Type Description
OrderProcessingResult

The order processing result.

ValidateOrderStatus(OrderStatus, OrderStatus)

Validates the order status transition.

Declaration
protected virtual void ValidateOrderStatus(OrderStatus oldStatus, OrderStatus newStatus)
Parameters
Type Name Description
OrderStatus oldStatus

The old status.

OrderStatus newStatus

The new status.

Implements