Class DefaultTravelCommercePriceService

java.lang.Object
de.hybris.platform.commerceservices.price.impl.DefaultCommercePriceService
de.hybris.platform.travelservices.price.impl.DefaultTravelCommercePriceService
All Implemented Interfaces:
de.hybris.platform.commerceservices.price.CommercePriceService, TravelCommercePriceService

public class DefaultTravelCommercePriceService extends de.hybris.platform.commerceservices.price.impl.DefaultCommercePriceService implements TravelCommercePriceService
Default implementation of TravelCommercePriceService
  • Constructor Details

    • DefaultTravelCommercePriceService

      public DefaultTravelCommercePriceService()
  • Method Details

    • getProductWebPrice

      public de.hybris.platform.jalo.order.price.PriceInformation getProductWebPrice(ProductModel product, Map<String,String> searchCriteria)
      Description copied from interface: TravelCommercePriceService
      Method to retrieve price for the product and travel specific search criteria
      Specified by:
      getProductWebPrice in interface TravelCommercePriceService
      Parameters:
      product - the product
      searchCriteria - the map that has travel specific search criteria
      Returns:
      PriceInformation product web price
    • getCurrentPriceFactory

      protected TravelPriceFactory getCurrentPriceFactory()
    • getProductTaxInformations

      public List<de.hybris.platform.jalo.order.price.TaxInformation> getProductTaxInformations(ProductModel product)
      Description copied from interface: TravelCommercePriceService
      Method to retrieve taxes for the product
      Specified by:
      getProductTaxInformations in interface TravelCommercePriceService
      Parameters:
      product - the product
      Returns:
      TaxInformation product tax informations
    • getPriceInformation

      public de.hybris.platform.jalo.order.price.PriceInformation getPriceInformation(ProductModel product, String searchKey, String searchValue)
      Description copied from interface: TravelCommercePriceService
      This method gets the price information for product code, search key and search value.
      Specified by:
      getPriceInformation in interface TravelCommercePriceService
      Parameters:
      product - the product
      searchKey - the search key
      searchValue - the search value
      Returns:
      PriceInformation price information
    • getPriceLevelInfo

      public PriceLevel getPriceLevelInfo(String productCode, List<String> transportOfferings, String routeCode, boolean isMultiSectorRoute)
      Description copied from interface: TravelCommercePriceService
      Method to find the price level info. The first available price information is used to build the map.
      Specified by:
      getPriceLevelInfo in interface TravelCommercePriceService
      Parameters:
      productCode - the product code
      transportOfferings - the transport offerings
      routeCode - the route code
      isMultiSectorRoute - the is multi sector route
      Returns:
      the price level info
    • getPriceLevelInfoForFareProduct

      public PriceLevel getPriceLevelInfoForFareProduct(ProductModel productModel, List<String> transportOfferings, String routeCode, boolean isMultiSectorRoute)
      Description copied from interface: TravelCommercePriceService
      Method to return price level info as a map, with price level as key and code as value. Null is returned if route level price is not set for multi sector route.
      Specified by:
      getPriceLevelInfoForFareProduct in interface TravelCommercePriceService
      Returns:
      price level info
    • getPriceLevelInfoForAncillary

      public PriceLevel getPriceLevelInfoForAncillary(ProductModel productModel, String transportOfferingCode, String routeCode)
      Method to return price level info as a map, with price level as key and code as value.
      Specified by:
      getPriceLevelInfoForAncillary in interface TravelCommercePriceService
      Parameters:
      productModel -
      transportOfferingCode -
      routeCode -
      Returns:
      price level info
    • isNetPricedProduct

      public Boolean isNetPricedProduct(ProductModel product)
      Description copied from interface: TravelCommercePriceService
      Return true if the product is net priced, false otherwise
      Specified by:
      isNetPricedProduct in interface TravelCommercePriceService
      Returns:
    • getPriceLevelInfoByHierarchy

      public PriceLevel getPriceLevelInfoByHierarchy(ProductModel product, String transportOfferingCode, String routeCode)
      Description copied from interface: TravelCommercePriceService
      Method to get the price level and value for product code, search key and search value. The price level is searched in the order of transportoffering, sector, route and default price. The first available price level will be returned.
      Specified by:
      getPriceLevelInfoByHierarchy in interface TravelCommercePriceService
      Parameters:
      product - the product
      transportOfferingCode - the transport offering code
      routeCode - the route code
      Returns:
      price level
    • isPriceInformationAvailable

      public boolean isPriceInformationAvailable(ProductModel product, String searchKey, String searchValue)
      Description copied from interface: TravelCommercePriceService
      Method to check if the price information is available for the given search criteria
      Specified by:
      isPriceInformationAvailable in interface TravelCommercePriceService
      Parameters:
      product - the product
      searchKey - the search key
      searchValue - the search value
      Returns:
      boolean boolean
    • setPriceAndTaxSearchCriteriaInContext

      public void setPriceAndTaxSearchCriteriaInContext(PriceLevel priceLevel, List<String> transportOfferingCodes, String passengerType)
      Description copied from interface: TravelCommercePriceService
      Method to set price and tax search criteria in session context These values will be used to retrieve prices during cart calculation when the product is added to cart.
      Specified by:
      setPriceAndTaxSearchCriteriaInContext in interface TravelCommercePriceService
      Parameters:
      priceLevel - the price level
      transportOfferingCodes - the transport offering codes
      passengerType - the passenger type
    • setPriceSearchCriteriaInContext

      public void setPriceSearchCriteriaInContext(PriceLevel priceLevel)
      Description copied from interface: TravelCommercePriceService
      Method to set price search criteria in session context These values will be used to retrieve prices during cart calculation when the product is added to cart.
      Specified by:
      setPriceSearchCriteriaInContext in interface TravelCommercePriceService
      Parameters:
      priceLevel - the price level
    • setTaxSearchCriteriaInContext

      public void setTaxSearchCriteriaInContext(List<String> transportOfferingCodes, String passengerType)
      Description copied from interface: TravelCommercePriceService
      Method to set values in Session Context. These values will be used to retrieve taxes during cart calculation when the product is added to cart.
      Specified by:
      setTaxSearchCriteriaInContext in interface TravelCommercePriceService
      Parameters:
      transportOfferingCodes - the transport offering codes
      passengerType - the passenger type
    • addPropertyPriceLevelToCartEntry

      public void addPropertyPriceLevelToCartEntry(PriceLevel priceLevel, String productCode, int entryNo)
      Description copied from interface: TravelCommercePriceService
      Method to add price level property to cart entry
      Specified by:
      addPropertyPriceLevelToCartEntry in interface TravelCommercePriceService
      Parameters:
      priceLevel - the price level
      productCode - the product code
      entryNo - the entry no
    • getProductService

      protected de.hybris.platform.product.ProductService getProductService()
    • setProductService

      public void setProductService(de.hybris.platform.product.ProductService productService)
    • getOfferGroupToOriginDestinationMapping

      protected Map<String,String> getOfferGroupToOriginDestinationMapping()
    • setOfferGroupToOriginDestinationMapping

      public void setOfferGroupToOriginDestinationMapping(Map<String,String> offerGroupToOriginDestinationMapping)
    • getModelService

      protected de.hybris.platform.servicelayer.model.ModelService getModelService()
      Gets model service.
      Returns:
      model service
    • setModelService

      public void setModelService(de.hybris.platform.servicelayer.model.ModelService modelService)
      Sets model service.
      Parameters:
      modelService - the model service
    • getTransportOfferingService

      protected TransportOfferingService getTransportOfferingService()
      Gets transport offering service.
      Returns:
      the transport offering service
    • setTransportOfferingService

      public void setTransportOfferingService(TransportOfferingService transportOfferingService)
      Sets transport offering service.
      Parameters:
      transportOfferingService - the transport offering service
    • getSessionService

      protected de.hybris.platform.servicelayer.session.SessionService getSessionService()
      Gets session service.
      Returns:
      the session service
    • setSessionService

      public void setSessionService(de.hybris.platform.servicelayer.session.SessionService sessionService)
      Sets session service.
      Parameters:
      sessionService - the session service
    • getTransportFacilityService

      protected TransportFacilityService getTransportFacilityService()
      Gets transport facility service.
      Returns:
      the transport facility service
    • setTransportFacilityService

      public void setTransportFacilityService(TransportFacilityService transportFacilityService)
      Sets transport facility service.
      Parameters:
      transportFacilityService - the transport facility service
    • getCartService

      protected de.hybris.platform.order.CartService getCartService()
      Gets cart service.
      Returns:
      the cart service
    • setCartService

      public void setCartService(de.hybris.platform.order.CartService cartService)
      Sets cart service.
      Parameters:
      cartService - the cart service
    • getTravelCommerceCartService

      protected TravelCommerceCartService getTravelCommerceCartService()
      Gets travel commerce cart service.
      Returns:
      the travel commerce cart service
    • setTravelCommerceCartService

      public void setTravelCommerceCartService(TravelCommerceCartService travelCommerceCartService)
      Sets travel commerce cart service.
      Parameters:
      travelCommerceCartService - the travel commerce cart service
    • getTravellerService

      protected TravellerService getTravellerService()
      Gets traveller service.
      Returns:
      the traveller service
    • setTravellerService

      public void setTravellerService(TravellerService travellerService)
      Sets traveller service.
      Parameters:
      travellerService - the traveller service
    • getTimeService

      protected de.hybris.platform.servicelayer.time.TimeService getTimeService()
      Gets time service.
      Returns:
      timeService time service
    • setTimeService

      public void setTimeService(de.hybris.platform.servicelayer.time.TimeService timeService)
      Sets time service.
      Parameters:
      timeService - the timeService to set
    • getTravelPDTRowDao

      protected TravelPDTRowDao getTravelPDTRowDao()
      Returns:
      the travelPDTRowDao
    • setTravelPDTRowDao

      public void setTravelPDTRowDao(TravelPDTRowDao travelPDTRowDao)
      Parameters:
      travelPDTRowDao - the travelPDTRowDao to set