Interface TmaPriceContextService

All Known Implementing Classes:
DefaultTmaPriceContextService

public interface TmaPriceContextService
Service responsible for the creation of the TmaPriceContext.
Since:
2007
  • Method Details

    • createPriceContext

      TmaPriceContext createPriceContext(CommerceCartParameter parameter)
      Creates a TmaPriceContext based 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 TmaPriceContext with the configured parameters
    • createPriceContext

      TmaPriceContext createPriceContext(AbstractOrderEntryModel entry)
      Creates a TmaPriceContext based 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 TmaPriceContext with the configured parameters
    • createPriceContext

      @Deprecated(since="2105") TmaPriceContext createPriceContext(AbstractOrderEntryModel entry, TmaBundledProductOfferingModel bundledProductOffering)
      Deprecated.
      Creates a TmaPriceContext based 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 created
      bundledProductOffering - bundled product offering used for context creation
      Returns:
      newly created TmaPriceContext with the configured parameters