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

Interface IPurchaseOrderFactory

NOTE: This is a pre-release API that is UNSTABLE and might not satisfy the compatibility requirements as denoted by its associated normal version.

Responsible for creating instances of purchase order components.

Namespace: EPiServer.Commerce.Order
Assembly: Mediachase.Commerce.dll
Version: 12.17.2
Syntax
public interface IPurchaseOrderFactory

Methods

CreateExchangePayment()

Creates a payment for an exchange order.

Declaration
IPayment CreateExchangePayment()
Returns
Type Description
IPayment

An instance of IPayment.

CreateReturnLineItem(ILineItem, Decimal, String)

Creates a return line item.

Declaration
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 for a purchase order.

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

The purchase order to create object for.

Returns
Type Description
IReturnOrderForm

An instance of IReturnOrderForm.

CreateReturnShipment(IShipment)

Creates a IShipment for the return.

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

The original shipment.

Returns
Type Description
IShipment

An instance of IShipment.