Class DefaultTmaPriceFacade

java.lang.Object
de.hybris.platform.b2ctelcofacades.price.impl.DefaultTmaPriceFacade
All Implemented Interfaces:
TmaPriceFacade

public class DefaultTmaPriceFacade extends Object implements TmaPriceFacade
Default implementation for TmaPriceFacade
Since:
1903.
  • Constructor Details

    • DefaultTmaPriceFacade

      public DefaultTmaPriceFacade()
    • DefaultTmaPriceFacade

      public DefaultTmaPriceFacade(de.hybris.platform.servicelayer.dto.converter.Converter<PriceRowModel,PriceData> priceDataConverter)
  • Method Details

    • getMinimumPrice

      public PriceData getMinimumPrice(TmaPriceContext priceContext)
      Description copied from interface: TmaPriceFacade
      Retrieves the lowest price for the given, looking at both the stand alone price and price overrides of theTmaPriceContext.affectedProduct
      Specified by:
      getMinimumPrice in interface TmaPriceFacade
      Parameters:
      priceContext - price context for which to retrieve the price
      Returns:
      minimum price for the given
    • getBestApplicablePrice

      public PriceData getBestApplicablePrice(TmaPriceContext priceContext)
      Description copied from interface: TmaPriceFacade
      Retrieves the best applicable price for a given priceContext.
      Specified by:
      getBestApplicablePrice in interface TmaPriceFacade
      Parameters:
      priceContext - the price context for which we retrieve the price.
      Returns:
      best applicable price for the given
    • getListOfPriceComponents

      public <T extends TmaComponentProdOfferPriceData> List<T> getListOfPriceComponents(TmaProductOfferingPriceData productOfferingPrice, Class<T> componentPriceType)
      Determines the list of price components of type provided by navigating though the structure of the product offering price given. In case there is no price component of that type found in the structure of the product offering price given an empty list is returned.
      Specified by:
      getListOfPriceComponents in interface TmaPriceFacade
      Parameters:
      productOfferingPrice - the given POP
      componentPriceType - the type of the price components that has to be determined
      Returns:
      the list of price components of the type given
    • getProduct

      protected ProductModel getProduct(TmaPriceContext priceContext)
    • getPriceDataType

      public PriceDataType getPriceDataType(ProductModel product)
      Description copied from interface: TmaPriceFacade
      Returns the PriceDataType for the given.
      Specified by:
      getPriceDataType in interface TmaPriceFacade
      Parameters:
      product - product to retrieve the price data type for
      Returns:
      price data type for the product given
    • getCommercePriceService

      protected TmaCommercePriceService getCommercePriceService()
    • setCommercePriceService

      public void setCommercePriceService(TmaCommercePriceService commercePriceService)
    • getTmaPriceDataFactory

      protected TmaPriceDataFactory getTmaPriceDataFactory()
    • setTmaPriceDataFactory

      public void setTmaPriceDataFactory(TmaPriceDataFactory tmaPriceDataFactory)
    • getSubscriptionPricePlanConverter

      protected de.hybris.platform.servicelayer.dto.converter.Converter<PriceRowModel,SubscriptionPricePlanData> getSubscriptionPricePlanConverter()
    • setSubscriptionPricePlanConverter

      public void setSubscriptionPricePlanConverter(de.hybris.platform.servicelayer.dto.converter.Converter<PriceRowModel,SubscriptionPricePlanData> subscriptionPricePlanConverter)
    • getPriceDataConverter

      protected de.hybris.platform.servicelayer.dto.converter.Converter<PriceRowModel,PriceData> getPriceDataConverter()