London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

Class DefaultReturnPurchaseOrderCalculator

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 return order calculator.

Inheritance
System.Object
DefaultReturnPurchaseOrderCalculator
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.Calculator
Assembly: EPiServer.Business.Commerce.dll
Version: 13.30.0
Syntax
[Obsolete("This class is no longer used, use IReturnOrderFormCalculator to get total of return order form instead. Will remain at least until May 2019.")]
public class DefaultReturnPurchaseOrderCalculator : IReturnPurchaseOrderCalculator

Constructors

DefaultReturnPurchaseOrderCalculator(IReturnOrderFormCalculator, IOrderGroupCalculator, IShippingCalculator, IPromotionEngine, IMarketService)

Creates a new instance of DefaultReturnPurchaseOrderCalculator

Declaration
public DefaultReturnPurchaseOrderCalculator(IReturnOrderFormCalculator returnOrderFormCalculator, IOrderGroupCalculator orderGroupCalculator, IShippingCalculator shippingCalculator, IPromotionEngine promotionEngine, IMarketService marketService)
Parameters
Type Name Description
IReturnOrderFormCalculator returnOrderFormCalculator

The return order form calculator.

IOrderGroupCalculator orderGroupCalculator

The order group calculator.

IShippingCalculator shippingCalculator

The shipping calculator.

IPromotionEngine promotionEngine

The promotion engine.

IMarketService marketService

The market service.

Methods

CalculateReturnTotal(IPurchaseOrder, IReturnOrderForm, Boolean)

Calculates the return total of an IReturnOrderForm.

Declaration
public virtual 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
public virtual 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.

Implements