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 Detail

      • 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

        java.lang.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 {@param orderEntryModel}, 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 {@param orderEntryModel}, 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
      • getStandAlonePriceForSpo

        @Deprecated(since="1903",
                    forRemoval=true)
        PriceRowModel getStandAlonePriceForSpo​(ProductModel productOfferingModel,
                                               TmaPriceContext priceContext)
        Deprecated, for removal: This API element is subject to removal in a future version.
        since 1903. Use instead getMinimumPrice(TmaPriceContext)
        Retrieves the applicable price of a simple {@param productOfferingModel} considering the configuration provided in the {@param priceContext} given or null if no such price is found.
        Parameters:
        productOfferingModel - product offering for which to retrieve the price
        priceContext - price context for which the configuration needs to be valid
        Returns:
        price of the provided {@param productOffering} and {@param priceContext}
      • filterPricesbyPriceContext

        java.util.Set<PriceRowModel> filterPricesbyPriceContext​(TmaPriceContext priceContext)
        Retrieves all instances of PriceRowModels and SubscriptionPricePlanModels for the {@param priceContextData} and {@param productModel} provided.
        Parameters:
        priceContext - priceContext to retrieve the configuration from
        Returns:
        PriceRowModels retrieved from the configuration provided by the {@param priceContextData}