Class DefaultOrderGroupTotalsCalculator
Calculates the total values from all the information on an order group.
Inheritance
System.Object
DefaultOrderGroupTotalsCalculator
Implements
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: 10.8.0Syntax
public class DefaultOrderGroupTotalsCalculator : IOrderGroupTotalsCalculator
Constructors
DefaultOrderGroupTotalsCalculator(IOrderGroupCalculator, ITaxCalculator, IShippingCalculator, ILineItemCalculator, IOrderFormCalculator, IMarketService)
Initializes a new instance of DefaultOrderGroupTotalsCalculator
Declaration
public DefaultOrderGroupTotalsCalculator(IOrderGroupCalculator orderGroupCalculator, ITaxCalculator taxCalculator, IShippingCalculator shippingCalculator, ILineItemCalculator lineItemCalculator, IOrderFormCalculator orderFormCalculator, IMarketService marketService)
Parameters
Type | Name | Description |
---|---|---|
IOrderGroupCalculator | orderGroupCalculator | |
ITaxCalculator | taxCalculator | |
IShippingCalculator | shippingCalculator | |
ILineItemCalculator | lineItemCalculator | |
IOrderFormCalculator | orderFormCalculator | |
IMarketService | marketService |
Methods
GetTotals(IOrderGroup)
Calculates all totals for IOrderForm, IShipment, and ILineItem. The result are presented in an OrderGroupTotals instance.
Declaration
public OrderGroupTotals GetTotals(IOrderGroup orderGroup)
Parameters
Type | Name | Description |
---|---|---|
IOrderGroup | orderGroup |
Returns
Type | Description |
---|---|
OrderGroupTotals | An instance of OrderGroupTotals with all calculated values |
Examples
UpdateProperties(IOrderGroup, OrderGroupTotals)
Updates properties on the IOrderGroup that need updated calculated totals.
Declaration
public virtual void UpdateProperties(IOrderGroup orderGroup, OrderGroupTotals orderGroupTotals)
Parameters
Type | Name | Description |
---|---|---|
IOrderGroup | orderGroup | The order group. |
OrderGroupTotals | orderGroupTotals | The order group totals. |