Interface TravelCommercePriceService

All Superinterfaces:
de.hybris.platform.commerceservices.price.CommercePriceService
All Known Implementing Classes:
DefaultTravelCommercePriceService

public interface TravelCommercePriceService extends de.hybris.platform.commerceservices.price.CommercePriceService
Extends the CommercePriceService to retrieve the applicable pricing model for a product and travel specific search criteria
Spring Bean ID:
travelCommercePriceService
  • Method Details

    • getProductWebPrice

      de.hybris.platform.jalo.order.price.PriceInformation getProductWebPrice(ProductModel product, Map<String,String> searchCriteria)
      Method to retrieve price for the product and travel specific search criteria
      Parameters:
      product - the product
      searchCriteria - the map that has travel specific search criteria
      Returns:
      PriceInformation product web price
    • getProductTaxInformations

      List<de.hybris.platform.jalo.order.price.TaxInformation> getProductTaxInformations(ProductModel product)
      Method to retrieve taxes for the product
      Parameters:
      product - the product
      Returns:
      TaxInformation product tax informations
    • getPriceInformation

      de.hybris.platform.jalo.order.price.PriceInformation getPriceInformation(ProductModel product, String searchKey, String searchValue)
      This method gets the price information for product code, search key and search value.
      Parameters:
      product - the product
      searchKey - the search key
      searchValue - the search value
      Returns:
      PriceInformation price information
    • getPriceLevelInfo

      PriceLevel getPriceLevelInfo(String productCode, List<String> transportOfferings, String routeCode, boolean isMultiSectorRoute)
      Method to find the price level info. The first available price information is used to build the map.
      Parameters:
      productCode - the product code
      transportOfferings - the transport offerings
      routeCode - the route code
      isMultiSectorRoute - the is multi sector route
      Returns:
      the price level info
    • isPriceInformationAvailable

      boolean isPriceInformationAvailable(ProductModel product, String searchKey, String searchValue)
      Method to check if the price information is available for the given search criteria
      Parameters:
      product - the product
      searchKey - the search key
      searchValue - the search value
      Returns:
      boolean boolean
    • getPriceLevelInfoByHierarchy

      PriceLevel getPriceLevelInfoByHierarchy(ProductModel product, String transportOfferingCode, String routeCode)
      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.
      Parameters:
      product - the product
      transportOfferingCode - the transport offering code
      routeCode - the route code
      Returns:
      price level
    • setPriceAndTaxSearchCriteriaInContext

      void setPriceAndTaxSearchCriteriaInContext(PriceLevel priceLevel, List<String> transportOfferingCodes, String passengerType)
      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.
      Parameters:
      priceLevel - the price level
      transportOfferingCodes - the transport offering codes
      passengerType - the passenger type
    • setPriceSearchCriteriaInContext

      void setPriceSearchCriteriaInContext(PriceLevel priceLevel)
      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.
      Parameters:
      priceLevel - the price level
    • setTaxSearchCriteriaInContext

      void setTaxSearchCriteriaInContext(List<String> transportOfferingCodes, String passengerType)
      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.
      Parameters:
      transportOfferingCodes - the transport offering codes
      passengerType - the passenger type
    • addPropertyPriceLevelToCartEntry

      void addPropertyPriceLevelToCartEntry(PriceLevel priceLevel, String productCode, int entryNo)
      Method to add price level property to cart entry
      Parameters:
      priceLevel - the price level
      productCode - the product code
      entryNo - the entry no
    • getPriceLevelInfoForFareProduct

      PriceLevel getPriceLevelInfoForFareProduct(ProductModel productModel, List<String> transportOfferings, String routeCode, boolean isMultiSectorRoute)
      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.
      Parameters:
      productModel -
      transportOfferings -
      routeCode -
      isMultiSectorRoute -
      Returns:
      price level info
    • getPriceLevelInfoForAncillary

      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.
      Parameters:
      productModel - the product model
      transportOfferingCode - the transport offering code
      routeCode - the route code
      Returns:
      price level info
    • isNetPricedProduct

      Boolean isNetPricedProduct(ProductModel product)
      Return true if the product is net priced, false otherwise
      Parameters:
      product -
      Returns: