Try our conversational search powered by Generative AI!

Interface IReturnPurchaseOrderCalculator

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

The calculator calculates return totals on an IPurchaseOrder.

Namespace: EPiServer.Commerce.Order
Assembly: Mediachase.Commerce.dll
Version: 12.17.2
Syntax
[Obsolete("This interface is no longer used, use IReturnOrderFormCalculator to get total of return order form instead. Will remain at least until May 2019.")]
public interface IReturnPurchaseOrderCalculator

Methods

CalculateReturnTotal(IPurchaseOrder, IReturnOrderForm, Boolean)

Calculates the return total of an IReturnOrderForm.

Declaration
Money CalculateReturnTotal(IPurchaseOrder purchaseOrder, IReturnOrderForm returnOrderForm, bool isCompletingReturnForm)
Parameters
Type Name Description
IPurchaseOrder purchaseOrder

The origin purchase order where the return form belongs to.

IReturnOrderForm returnOrderForm

The return order form.

System.Boolean isCompletingReturnForm

The flag indicating whether the return form is being completed.

Returns
Type Description
Money

The return total for an IReturnOrderForm.

GetInvalidatedPromotions(IPurchaseOrder, IReturnOrderForm, Boolean)

Get promotions which are no longer applicable to an IPurchaseOrder because an IReturnOrderForm was added to the order.

Declaration
IEnumerable<PromotionInformation> GetInvalidatedPromotions(IPurchaseOrder purchaseOrder, IReturnOrderForm returnOrderForm, bool isCompletingReturnForm)
Parameters
Type Name Description
IPurchaseOrder purchaseOrder

The origin purchase order where the return form belongs to.

IReturnOrderForm returnOrderForm

The return order form.

System.Boolean isCompletingReturnForm

The flag indicating whether the return form is being completed.

Returns
Type Description
System.Collections.Generic.IEnumerable<PromotionInformation>

The invalidated promotions of the IPurchaseOrder.