Interface TmaCommercePriceService

All Superinterfaces:
de.hybris.platform.commerceservices.price.CommercePriceService, de.hybris.platform.subscriptionservices.price.SubscriptionCommercePriceService
All Known Implementing Classes:
DefaultTmaCommercePriceService

public interface TmaCommercePriceService extends de.hybris.platform.subscriptionservices.price.SubscriptionCommercePriceService
Price service for retrieving applicable prices considering a TmaPriceContext. Dependency to SubscriptionCommercePriceService has been marked as deprecated in 1903.
Since:
6.7
  • Method Details

    • getMinimumPrice

      @Deprecated(since="2007") PriceRowModel getMinimumPrice(TmaPriceContext priceContext)
      Deprecated.
      since 2007. Replaced with getBestApplicablePrice(de.hybris.platform.b2ctelcoservices.pricing.context.TmaPriceContext)
      Retrieves the minimum PriceRowModel which may be applicable for the given context, be it either the standalone price of the offering or a price override.
      Parameters:
      priceContext - priceContext to retrieve the configuration from
      Returns:
      minimum PriceRowModel applicable for the given context
    • getBestApplicablePrice

      PriceRowModel getBestApplicablePrice(TmaPriceContext priceContext)
      Retrieves the best PriceRowModel applicable for the given context, be it either the standalone price of the offering or a price override.
      Parameters:
      priceContext - priceContext to retrieve the configuration from
      Returns:
      best PriceRowModel applicable for the given context
    • getMinimumPriceValue

      Double getMinimumPriceValue(TmaPriceContext priceContext)
      Retrieves the value of the minimum price which may be applicable for the given context, be it either the standalone price of the offering or a price override. The priorities for retrieving the value are the following:
      • if the price has recurring charges, return the first recurring charge
      • if the price has a value, return the value
      • if the price has one time charges, return the first one time charge
      Parameters:
      priceContext - price context to retrieve the price value from
      Returns:
      price value considering the priorities mentioned above
    • getMinimumPrice

      @Deprecated(since="2007") PriceRowModel getMinimumPrice(AbstractOrderEntryModel orderEntryModel)
      Deprecated.
      since 2007. Replaced with getBestApplicablePrice(de.hybris.platform.core.model.order.AbstractOrderEntryModel)
      Retrieves the minimum PriceRowModel which may be applicable for the given , considering the context in which the offering has been bought (either standalone or as part of a bundle).
      Parameters:
      orderEntryModel - the order entry for which the price will be computed
      Returns:
      minimum PriceRowModel applicable for the given order entry
    • getBestApplicablePrice

      PriceRowModel getBestApplicablePrice(AbstractOrderEntryModel orderEntryModel)
      Retrieves the best PriceRowModel applicable for the given , considering the context in which the offering has been bought (either standalone or as part of a bundle).
      Parameters:
      orderEntryModel - the order entry for which the price will be computed
      Returns:
      best PriceRowModel applicable for the given order entry
    • filterPricesbyPriceContext

      Set<PriceRowModel> filterPricesbyPriceContext(TmaPriceContext priceContext)
      Retrieves all instances of PriceRowModels and SubscriptionPricePlanModels for the and provided.
      Parameters:
      priceContext - priceContext to retrieve the configuration from
      Returns:
      PriceRowModels retrieved from the configuration provided by the