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
Implements
Inherited Members
Namespace: EPiServer.Commerce.Order.Calculator
Assembly: EPiServer.Business.Commerce.dll
Version: 13.30.0Syntax
[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. |