Interface TmaPriceContextService
- All Known Implementing Classes:
DefaultTmaPriceContextService
public interface TmaPriceContextService
Service responsible for the creation of the
TmaPriceContext.- Since:
- 2007
-
Method Summary
Modifier and TypeMethodDescriptioncreatePriceContext(CommerceCartParameter parameter) Creates aTmaPriceContextbased on the attributes values set on the CommerceCartParameter.Creates aTmaPriceContextbased on the attributes values set on the order entry.createPriceContext(AbstractOrderEntryModel entry, TmaBundledProductOfferingModel bundledProductOffering) Deprecated.since 2105.
-
Method Details
-
createPriceContext
Creates aTmaPriceContextbased on the attributes values set on the CommerceCartParameter. If a bundle product offering exists on the CommerceCartParameter then a bundle product offering price context is created, otherwise a simple price context is created- Parameters:
parameter- CommerceCartParameter for which the context is created- Returns:
- newly created
TmaPriceContextwith the configured parameters
-
createPriceContext
Creates aTmaPriceContextbased on the attributes values set on the order entry. If a bundle product offering exists on the order entry then a bundle product offering price context is created, otherwise a simple price context is created. For components part of a Fixed Bundled Product Offering, a simple price context is created.- Parameters:
entry- order entry for which the context is created- Returns:
- newly created
TmaPriceContextwith the configured parameters
-
createPriceContext
@Deprecated(since="2105") TmaPriceContext createPriceContext(AbstractOrderEntryModel entry, TmaBundledProductOfferingModel bundledProductOffering) Deprecated.since 2105. Use insteadcreatePriceContext(AbstractOrderEntryModel)Creates aTmaPriceContextbased on the attributes values set on the order entry. If a bundle product offering exists on the order entry then a bundle product offering price context is created, otherwise a simple price context is created- Parameters:
entry- order entry for which the context is createdbundledProductOffering- bundled product offering used for context creation- Returns:
- newly created
TmaPriceContextwith the configured parameters
-