Class IPurchaseOrderExtensions
Extension methods for IPurchaseOrder.
Inheritance
Inherited Members
Namespace: EPiServer.Commerce.Order
Assembly: EPiServer.Business.Commerce.dll
Version: 12.17.2Syntax
public static class IPurchaseOrderExtensions
Methods
CanBeCancelled(IPurchaseOrder)
Determines whether an IPurchaseOrder can be cancelled.
Declaration
public static bool CanBeCancelled(this IPurchaseOrder purchaseOrder)
Parameters
Type | Name | Description |
---|---|---|
IPurchaseOrder | purchaseOrder | The purchase order. |
Returns
Type | Description |
---|---|
System.Boolean |
|
CanBePutOnHold(IPurchaseOrder)
Determines whether an IPurchaseOrder can be put on hold.
Declaration
public static bool CanBePutOnHold(this IPurchaseOrder purchaseOrder)
Parameters
Type | Name | Description |
---|---|---|
IPurchaseOrder | purchaseOrder | The purchase order. |
Returns
Type | Description |
---|---|
System.Boolean |
|
CanCancelShipment(IPurchaseOrder, IShipment)
Determines whether an IShipment can be cancelled.
Declaration
public static bool CanCancelShipment(this IPurchaseOrder order, IShipment shipment)
Parameters
Type | Name | Description |
---|---|---|
IPurchaseOrder | order | The order containing the shipment. |
IShipment | shipment | The shipment. |
Returns
Type | Description |
---|---|
System.Boolean |
|
CanCompleteShipment(IPurchaseOrder, IShipment)
Determines whether an IShipment can be completed.
Declaration
public static bool CanCompleteShipment(this IPurchaseOrder order, IShipment shipment)
Parameters
Type | Name | Description |
---|---|---|
IPurchaseOrder | order | The order containing the shipment. |
IShipment | shipment | The shipment. |
Returns
Type | Description |
---|---|
System.Boolean |
|
CanReleaseShipment(IPurchaseOrder, IShipment)
Determines whether an IShipment can be released.
Declaration
public static bool CanReleaseShipment(this IPurchaseOrder order, IShipment shipment)
Parameters
Type | Name | Description |
---|---|---|
IPurchaseOrder | order | The order containing the shipment. |
IShipment | shipment | The shipment. |
Returns
Type | Description |
---|---|
System.Boolean |
|
CanReturnShipment(IPurchaseOrder, IShipment)
Determines whether an IShipment can be returned.
Declaration
public static bool CanReturnShipment(this IPurchaseOrder order, IShipment shipment)
Parameters
Type | Name | Description |
---|---|---|
IPurchaseOrder | order | The order containing the shipment. |
IShipment | shipment | The shipment. |
Returns
Type | Description |
---|---|
System.Boolean |
|
GetActiveReturnForms(IPurchaseOrder)
Gets the active return forms.
Declaration
public static IEnumerable<IReturnOrderForm> GetActiveReturnForms(this IPurchaseOrder order)
Parameters
Type | Name | Description |
---|---|---|
IPurchaseOrder | order | The order containing the return form. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IReturnOrderForm> | An System.Collections.Generic.IEnumerable<T>. |
GetAvailableForReturnLineItems(IPurchaseOrder, IShipment)
Get line items available for return for an IShipment.
Declaration
public static IEnumerable<ILineItem> GetAvailableForReturnLineItems(this IPurchaseOrder order, IShipment shipment)
Parameters
Type | Name | Description |
---|---|---|
IPurchaseOrder | order | The order containing the shipment. |
IShipment | shipment | The shipment. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<ILineItem> |
HasAwaitingReturnCompletable(IPurchaseOrder)
Determines whether an IPurchaseOrder has any awaiting completion return form.
Declaration
public static bool HasAwaitingReturnCompletable(this IPurchaseOrder purchaseOrder)
Parameters
Type | Name | Description |
---|---|---|
IPurchaseOrder | purchaseOrder | The purchase order. |
Returns
Type | Description |
---|---|
System.Boolean |
|
HasAwaitingStockReturns(IPurchaseOrder)
Determines whether an IPurchaseOrder has any waiting stock return form.
Declaration
public static bool HasAwaitingStockReturns(this IPurchaseOrder purchaseOrder)
Parameters
Type | Name | Description |
---|---|---|
IPurchaseOrder | purchaseOrder | The purchase order. |
Returns
Type | Description |
---|---|
System.Boolean |
|
IsPaid(IPurchaseOrder)
Determines whether an IPurchaseOrder is paid.
Declaration
public static bool IsPaid(this IPurchaseOrder purchaseOrder)
Parameters
Type | Name | Description |
---|---|---|
IPurchaseOrder | purchaseOrder | The purchase order. |
Returns
Type | Description |
---|---|
System.Boolean |
|
IsPaid(IPurchaseOrder, IOrderGroupCalculator, IReturnOrderFormCalculator, IMarketService)
Determines whether an IPurchaseOrder is paid.
Declaration
public static bool IsPaid(this IPurchaseOrder purchaseOrder, IOrderGroupCalculator orderGroupCalculator, IReturnOrderFormCalculator returnOrderFormCalculator, IMarketService marketService)
Parameters
Type | Name | Description |
---|---|---|
IPurchaseOrder | purchaseOrder | The purchase order. |
IOrderGroupCalculator | orderGroupCalculator | The order group calculator. |
IReturnOrderFormCalculator | returnOrderFormCalculator | The return order form calculator. |
IMarketService | marketService | The market service. |
Returns
Type | Description |
---|---|
System.Boolean |
|