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

Class DefaultPurchaseOrderFactory

This class is intended to be used internally by EPiServer. We do not support any backward compatibility on this.

Responsible for creating instances of purchase order components.

Inheritance
System.Object
DefaultPurchaseOrderFactory
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: Mediachase.Commerce.dll
Version: 12.17.2
Syntax
public class DefaultPurchaseOrderFactory : IPurchaseOrderFactory

Constructors

DefaultPurchaseOrderFactory(IReturnOrderNumberGenerator)

Initializes an instance of DefaultPurchaseOrderFactory.

Declaration
public DefaultPurchaseOrderFactory(IReturnOrderNumberGenerator returnOrderNumberGenerator)
Parameters
Type Name Description
IReturnOrderNumberGenerator returnOrderNumberGenerator

The return order number generator.

Methods

CreateExchangePayment()

Creates a payment for an exchange order.

Declaration
public virtual IPayment CreateExchangePayment()
Returns
Type Description
IPayment

An instance of IPayment.

CreateReturnLineItem(ILineItem, Decimal, String)

Creates a return line item.

Declaration
public virtual IReturnLineItem CreateReturnLineItem(ILineItem originalLineItem, decimal returnQuantity, string returnReason)
Parameters
Type Name Description
ILineItem originalLineItem

The original line item.

System.Decimal returnQuantity

The return quantity.

System.String returnReason

The return reason.

Returns
Type Description
IReturnLineItem

An instance of IReturnLineItem.

CreateReturnOrderForm(IPurchaseOrder)

Creates the return order form.

Declaration
public virtual IReturnOrderForm CreateReturnOrderForm(IPurchaseOrder purchaseOrder)
Parameters
Type Name Description
IPurchaseOrder purchaseOrder

The order group to create object for.

Returns
Type Description
IReturnOrderForm

An IReturnOrderForm.

CreateReturnShipment(IShipment)

Creates a IShipment for the return.

Declaration
public virtual IShipment CreateReturnShipment(IShipment originalShipment)
Parameters
Type Name Description
IShipment originalShipment

The original shipment.

Returns
Type Description
IShipment

An instance of IShipment.

Implements