Class OrderGroupExtensions
Provides extensions for OrderGroup when for creating implementations of IOrderProvider<T>
Inheritance
Inherited Members
Namespace: EPiServer.Commerce.Order
Assembly: EPiServer.Business.Commerce.dll
Version: 12.17.2Syntax
public static class OrderGroupExtensions
Methods
CalculateTotals(OrderGroup, IOrderGroupCalculator, ReferenceConverter, IContentLoader, ICatalogSystem, IRelationRepository, LanguageResolver)
Calculates and updates the specified order group totals.
Declaration
public static void CalculateTotals(this OrderGroup orderGroup, IOrderGroupCalculator orderGroupCalculator, ReferenceConverter referenceConverter, IContentLoader contentLoader, ICatalogSystem catalogSystem, IRelationRepository relationRepository, LanguageResolver languageResolver)
Parameters
Type | Name | Description |
---|---|---|
OrderGroup | orderGroup | The order group. |
IOrderGroupCalculator | orderGroupCalculator | The order group calculator. |
ReferenceConverter | referenceConverter | The reference converter. |
EPiServer.IContentLoader | contentLoader | The content loader. |
ICatalogSystem | catalogSystem | The catalog system. |
IRelationRepository | relationRepository | The relation repository. |
EPiServer.Globalization.LanguageResolver | languageResolver | The language resolver. |
Save(OrderGroup, IOrderGroupCalculator, ReferenceConverter, IContentLoader, ICatalogSystem, IRelationRepository, LanguageResolver)
Saves the specified order group totals calculator.
Declaration
public static OrderReference Save(this OrderGroup orderGroup, IOrderGroupCalculator orderGroupCalculator, ReferenceConverter referenceConverter, IContentLoader contentLoader, ICatalogSystem catalogSystem, IRelationRepository relationRepository, LanguageResolver languageResolver)
Parameters
Type | Name | Description |
---|---|---|
OrderGroup | orderGroup | The order group. |
IOrderGroupCalculator | orderGroupCalculator | The order group calculator. |
ReferenceConverter | referenceConverter | The reference converter. |
EPiServer.IContentLoader | contentLoader | The content loader. |
ICatalogSystem | catalogSystem | The catalog system. |
IRelationRepository | relationRepository | The relation repository. |
EPiServer.Globalization.LanguageResolver | languageResolver | The language resolver. |
Returns
Type | Description |
---|---|
OrderReference |
Save(OrderGroup, IOrderGroupTotalsCalculator, ReferenceConverter, IContentLoader, ICatalogSystem, IRelationRepository)
Saves the specified order group totals calculator.
Declaration
[Obsolete("This method is no longer used, use overload with IOrderGroupCalculator instead. Will remain at least until May 2019.")]
public static OrderReference Save(this OrderGroup orderGroup, IOrderGroupTotalsCalculator orderGroupTotalsCalculator, ReferenceConverter referenceConverter, IContentLoader contentLoader, ICatalogSystem catalogSystem, IRelationRepository relationRepository)
Parameters
Type | Name | Description |
---|---|---|
OrderGroup | orderGroup | The order group. |
IOrderGroupTotalsCalculator | orderGroupTotalsCalculator | The order group totals calculator. |
ReferenceConverter | referenceConverter | The reference converter. |
EPiServer.IContentLoader | contentLoader | The content loader. |
ICatalogSystem | catalogSystem | The catalog system. |
IRelationRepository | relationRepository | The relation repository. |
Returns
Type | Description |
---|---|
OrderReference |
Save(OrderGroup, IOrderGroupTotalsCalculator, ReferenceConverter, IContentLoader, ICatalogSystem, IRelationRepository, LanguageResolver)
Saves the specified order group totals calculator.
Declaration
[Obsolete("This method is no longer used, use overload with IOrderGroupCalculator instead. Will remain at least until November 2018.")]
public static OrderReference Save(this OrderGroup orderGroup, IOrderGroupTotalsCalculator orderGroupTotalsCalculator, ReferenceConverter referenceConverter, IContentLoader contentLoader, ICatalogSystem catalogSystem, IRelationRepository relationRepository, LanguageResolver languageResolver)
Parameters
Type | Name | Description |
---|---|---|
OrderGroup | orderGroup | The order group. |
IOrderGroupTotalsCalculator | orderGroupTotalsCalculator | The order group totals calculator. |
ReferenceConverter | referenceConverter | The reference converter. |
EPiServer.IContentLoader | contentLoader | The content loader. |
ICatalogSystem | catalogSystem | The catalog system. |
IRelationRepository | relationRepository | The relation repository. |
EPiServer.Globalization.LanguageResolver | languageResolver | The language resolved. |
Returns
Type | Description |
---|---|
OrderReference |