Interface TravelCommercePriceFacade
- All Known Implementing Classes:
DefaultNDCTravelCommercePriceFacade,DefaultTravelCommercePriceFacade
public interface TravelCommercePriceFacade
Facade implementation for prices.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddPropertyPriceLevelToCartEntry(PriceLevel priceLevel, String productCode, int entryNo) Method to add price level property to cart entrycreatePriceData(double price) Method to create a price data for given price valuecreatePriceData(double price, int scale) Method to create a price data for given price value along with the scalecreatePriceData(double price, int scale, String currencyIsoCode) Method to create a price data for given price value along with the scalecreatePriceData(double price, String currencyIsoCode) Method to create a price data for given price value along with the scalecreatePriceData(PriceDataType priceType, BigDecimal value, CurrencyModel currency) Creates a PriceData object with a formatted currency string based on the price type and currency.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.createPriceData(BigDecimal price) Method to create a price data for given price valueMethod to get booking level fees and taxesgetDueAmount(AccommodationReservationData reservationData, PriceData amountPaid) getPaidAmount(AccommodationReservationData reservationData) de.hybris.platform.jalo.order.price.PriceInformationgetPriceInformation(String productCode) This method gets the price for a product.de.hybris.platform.jalo.order.price.PriceInformationgetPriceInformation(String productCode, String searchKey, String searchValue) This method gets the price information for the given product code, search key and search value.de.hybris.platform.jalo.order.price.PriceInformationgetPriceInformationByHierarchy(String productCode, String transportOfferingCode, String sectorCode, String routeCode) Method to get the price information for product code, search key and search value.de.hybris.platform.jalo.order.price.PriceInformationgetPriceInformationByProductPriceBundleRule(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 rulegetPriceLevelInfo(String productCode, List<String> transportOfferings, String routeCode) 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.isNetPriceProduct(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) 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.voidsetPriceAndTaxSearchCriteriaInContext(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.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, TravellerData travellerData) Method to set values in Session Context.
-
Method Details
-
getPriceInformation
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 codesearchKey- the search keysearchValue- 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 codetransportOfferingCode- the transport offering codesectorCode- the sector coderouteCode- 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 templateproductCode- the product code- Returns:
- PriceInformation price information by product price bundle rule
-
getPriceLevelInfo
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 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 producttransportOfferingCode- the transport offering coderouteCode- 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 leveltransportOfferingCodes- the transport offering codestravellerData- 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 leveltransportOfferingCodes- the transport offering codes
-
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
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 codestravellerData- the traveller data
-
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
-
addPropertyPriceLevelToCartEntry
Method to add price level property to cart entry- Parameters:
priceLevel- the price levelproductCode- the product codeentryNo- the entry no
-
getBookingFeesAndTaxes
BigDecimal getBookingFeesAndTaxes()Method to get booking level fees and taxes- Returns:
- booking fees and taxes
-
createPriceData
Method to create a price data for given price value- Parameters:
price- the price- Returns:
- price data
-
createPriceData
Method to create a price data for given price value along with the scale- Parameters:
price- the pricescale-- Returns:
- price data
-
createPriceData
Method to create a price data for given price value along with the scale- Parameters:
price- the pricescale-currencyIsoCode-- Returns:
- price data
-
createPriceData
Method to create a price data for given price value along with the scale- Parameters:
price- the pricecurrencyIsoCode- the currencyIsoCode- Returns:
- price data
-
createPriceData
Creates a PriceData object with a formatted currency string based on the price type and currency ISO code.- Parameters:
priceType- The price typevalue- The price amountcurrencyIso- The currency ISO code- Returns:
- the price data
-
createPriceData
Creates a PriceData object with a formatted currency string based on the price type and currency.- Parameters:
priceType- The price typevalue- The price amountcurrency- The currency- Returns:
- the price data
-
getPaidAmount
- Parameters:
reservationData-- Returns:
-
getDueAmount
- Parameters:
reservationData-amountPaid-- Returns:
-
isNetPriceProduct
Return true if the product is net priced, false otherwise- Parameters:
product-- Returns:
-
createPriceData
Method to create a price data for given price value- Parameters:
price- the price- Returns:
- price data
-