Interface IOrderGroupTotalsCalculator

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

Namespace: EPiServer.Commerce.Order
Assembly: Mediachase.Commerce.dll
Version: 10.8.0
Syntax
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
Returns
Type Description
OrderGroupTotals

An instance of OrderGroupTotals with all calculated values

Examples

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.