Interface TravelCommercePriceFacade

All Known Implementing Classes:
DefaultNDCTravelCommercePriceFacade, DefaultTravelCommercePriceFacade

public interface TravelCommercePriceFacade
Facade implementation for prices.
  • Method Details

    • getPriceInformation

      de.hybris.platform.jalo.order.price.PriceInformation getPriceInformation(String productCode)
      This method gets the price for a product.
      Parameters:
      productCode - the product code
      Returns:
      PriceInformation price information
    • getPriceInformation

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

      de.hybris.platform.jalo.order.price.PriceInformation getPriceInformationByHierarchy(String productCode, String transportOfferingCode, String sectorCode, String routeCode)
      Method to get the price information for product code, search key and search value. The prices are searched in the order of transportoffering, sector, route and default price. The first available price will be returned.
      Parameters:
      productCode - the product code
      transportOfferingCode - the transport offering code
      sectorCode - the sector code
      routeCode - the route code
      Returns:
      PriceInformation price information by hierarchy
    • getPriceInformationByProductPriceBundleRule

      de.hybris.platform.jalo.order.price.PriceInformation getPriceInformationByProductPriceBundleRule(BundleTemplateModel bundleTemplate, String productCode)
      This method checks if any ChangeProductPriceBundleRule exist for the product, if found then it created PriceInformation based on the price set within the rule
      Parameters:
      bundleTemplate - the bundle template
      productCode - the product code
      Returns:
      PriceInformation price information by product price bundle rule
    • getPriceLevelInfo

      PriceLevel getPriceLevelInfo(String productCode, List<String> transportOfferings, String routeCode)
      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
      Returns:
      the price level info
    • 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, TravellerData travellerData)
      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
      travellerData - the traveller data
    • setPriceAndTaxSearchCriteriaInContext

      void setPriceAndTaxSearchCriteriaInContext(PriceLevel priceLevel, List<String> transportOfferingCodes)
      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
    • 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, TravellerData travellerData)
      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
      travellerData - the traveller data
    • 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
    • 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
    • getBookingFeesAndTaxes

      BigDecimal getBookingFeesAndTaxes()
      Method to get booking level fees and taxes
      Returns:
      booking fees and taxes
    • createPriceData

      PriceData createPriceData(double price)
      Method to create a price data for given price value
      Parameters:
      price - the price
      Returns:
      price data
    • createPriceData

      PriceData createPriceData(double price, int scale)
      Method to create a price data for given price value along with the scale
      Parameters:
      price - the price
      scale -
      Returns:
      price data
    • createPriceData

      PriceData createPriceData(double price, int scale, String currencyIsoCode)
      Method to create a price data for given price value along with the scale
      Parameters:
      price - the price
      scale -
      currencyIsoCode -
      Returns:
      price data
    • createPriceData

      PriceData createPriceData(double price, String currencyIsoCode)
      Method to create a price data for given price value along with the scale
      Parameters:
      price - the price
      currencyIsoCode - the currencyIsoCode
      Returns:
      price data
    • createPriceData

      PriceData createPriceData(PriceDataType priceType, BigDecimal value, String currencyIso)
      Creates a PriceData object with a formatted currency string based on the price type and currency ISO code.
      Parameters:
      priceType - The price type
      value - The price amount
      currencyIso - The currency ISO code
      Returns:
      the price data
    • createPriceData

      PriceData createPriceData(PriceDataType priceType, BigDecimal value, CurrencyModel currency)
      Creates a PriceData object with a formatted currency string based on the price type and currency.
      Parameters:
      priceType - The price type
      value - The price amount
      currency - The currency
      Returns:
      the price data
    • getPaidAmount

      PriceData getPaidAmount(AccommodationReservationData reservationData)
      Parameters:
      reservationData -
      Returns:
    • getDueAmount

      PriceData getDueAmount(AccommodationReservationData reservationData, PriceData amountPaid)
      Parameters:
      reservationData -
      amountPaid -
      Returns:
    • isNetPriceProduct

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

      PriceData createPriceData(BigDecimal price)
      Method to create a price data for given price value
      Parameters:
      price - the price
      Returns:
      price data