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 Summary
Modifier and TypeMethodDescriptionvoidaddPropertyPriceLevelToCartEntry(PriceLevel priceLevel, String productCode, int entryNo) Method to add price level property to cart entryde.hybris.platform.jalo.order.price.PriceInformationgetPriceInformation(ProductModel product, String searchKey, String searchValue) This method gets the price information for product code, search key and search value.getPriceLevelInfo(String productCode, List<String> transportOfferings, String routeCode, boolean isMultiSectorRoute) Method to find the price level info.getPriceLevelInfoByHierarchy(ProductModel product, String transportOfferingCode, String routeCode) Method to get the price level and value for product code, search key and search value.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.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.List<de.hybris.platform.jalo.order.price.TaxInformation>getProductTaxInformations(ProductModel product) Method to retrieve taxes for the productde.hybris.platform.jalo.order.price.PriceInformationgetProductWebPrice(ProductModel product, Map<String, String> searchCriteria) Method to retrieve price for the product and travel specific search criteriaisNetPricedProduct(ProductModel product) Return true if the product is net priced, false otherwisebooleanisPriceInformationAvailable(ProductModel product, String searchKey, String searchValue) Method to check if the price information is available for the given search criteriavoidsetPriceAndTaxSearchCriteriaInContext(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.voidsetPriceSearchCriteriaInContext(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.voidsetTaxSearchCriteriaInContext(List<String> transportOfferingCodes, String passengerType) Method to set values in Session Context.Methods inherited from interface de.hybris.platform.commerceservices.price.CommercePriceService
getFromPriceForProduct, getWebPriceForProduct
-
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 productsearchCriteria- 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 productsearchKey- the search keysearchValue- 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 codetransportOfferings- the transport offeringsrouteCode- the route codeisMultiSectorRoute- the is multi sector route- Returns:
- the price level info
-
isPriceInformationAvailable
Method to check if the price information is available for the given search criteria- Parameters:
product- the productsearchKey- the search keysearchValue- 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 producttransportOfferingCode- the transport offering coderouteCode- 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 leveltransportOfferingCodes- the transport offering codespassengerType- the passenger type
-
setPriceSearchCriteriaInContext
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
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 codespassengerType- the passenger type
-
addPropertyPriceLevelToCartEntry
Method to add price level property to cart entry- Parameters:
priceLevel- the price levelproductCode- the product codeentryNo- 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 modeltransportOfferingCode- the transport offering coderouteCode- the route code- Returns:
- price level info
-
isNetPricedProduct
Return true if the product is net priced, false otherwise- Parameters:
product-- Returns:
-