Try our conversational search powered by Generative AI!

Interface IOrderGroupTotalsCalculator

Calculates the total values from all the information on an order group.

Namespace: EPiServer.Commerce.Order
Assembly: Mediachase.Commerce.dll
Version: 12.17.2
Syntax
[Obsolete("This interface is no longer used. The GetTotals method is superseded by IOrderGroupCalculator.GetOrderGroupTotal. There is no replacement for the UpdateProperties method. Will remain at least until May 2019.")]
public interface IOrderGroupTotalsCalculator

Methods

GetTotals(IOrderGroup)

Calculates all totals for IOrderForm, IShipment, and ILineItem. The result are presented in an OrderGroupTotals instance.

Declaration
OrderGroupTotals GetTotals(IOrderGroup orderGroup)
Parameters
Type Name Description
IOrderGroup orderGroup

The order group.

Returns
Type Description
OrderGroupTotals

An instance of OrderGroupTotals with all calculated values

UpdateProperties(IOrderGroup, OrderGroupTotals)

Updates properties that need updated calculated totals.

Declaration
void UpdateProperties(IOrderGroup orderGroup, OrderGroupTotals orderGroupTotals)
Parameters
Type Name Description
IOrderGroup orderGroup

The order group.

OrderGroupTotals orderGroupTotals

The order group totals.