Class DealAccommodationPriceHandler
java.lang.Object
de.hybris.platform.travelfacades.facades.accommodation.handlers.impl.AbstractAccommodationPriceHandler
de.hybris.platform.travelfacades.facades.accommodation.handlers.impl.DealAccommodationPriceHandler
- All Implemented Interfaces:
AccommodationDetailsHandler
Concrete implementation of
AccommodationDetailsHandler handling accommodation prices-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected de.hybris.platform.configurablebundleservices.bundle.BundleTemplateServiceprotected de.hybris.platform.product.PriceServiceprotected de.hybris.platform.product.ProductServicevoidhandle(AccommodationAvailabilityRequestData availabilityRequestData, AccommodationAvailabilityResponseData accommodationAvailabilityResponseData) Handle method.protected voidpopulatePricesForRoomRateAndBundleTemplate(RoomRateData roomRate, BundleTemplateModel bundleTemplate, String currencyIso) Populates the roomRates prices based on the priceRow of the RoomRateProductModel and the ChangeProductPriceBundleRule for the given bundle.voidsetBundleTemplateService(de.hybris.platform.configurablebundleservices.bundle.BundleTemplateService bundleTemplateService) voidsetPriceService(de.hybris.platform.product.PriceService priceService) voidsetProductService(de.hybris.platform.product.ProductService productService) Methods inherited from class de.hybris.platform.travelfacades.facades.accommodation.handlers.impl.AbstractAccommodationPriceHandler
calculateGrossTaxValueForRoomRate, calculateNetTaxValueForRoomRate, createTaxData, getBaseStoreService, getCommonI18NService, getCurrentCurrency, getPriceDataFactory, getPriceValue, getTaxes, getTaxes, getTaxesValue, getTravelCommercePriceFacade, isNetPrice, setBaseStoreService, setCommonI18NService, setPriceDataFactory, setTravelCommercePriceFacade
-
Constructor Details
-
DealAccommodationPriceHandler
public DealAccommodationPriceHandler()
-
-
Method Details
-
handle
public void handle(AccommodationAvailabilityRequestData availabilityRequestData, AccommodationAvailabilityResponseData accommodationAvailabilityResponseData) Description copied from interface:AccommodationDetailsHandlerHandle method.- Parameters:
availabilityRequestData- the availability request dataaccommodationAvailabilityResponseData- the accommodation availability response data
-
populatePricesForRoomRateAndBundleTemplate
protected void populatePricesForRoomRateAndBundleTemplate(RoomRateData roomRate, BundleTemplateModel bundleTemplate, String currencyIso) Populates the roomRates prices based on the priceRow of the RoomRateProductModel and the ChangeProductPriceBundleRule for the given bundle. The actualRate is set as the price of the product included in the bundle; the wasRate is set as the price of the product if not included in the bundle; the discount is set as the difference between the wasRate and the actualRate.- Parameters:
roomRate- as the roomRatebundleTemplate- as the bundleTemplatecurrencyIso- as the currencyIso
-
getBundleTemplateService
protected de.hybris.platform.configurablebundleservices.bundle.BundleTemplateService getBundleTemplateService()- Returns:
- the bundleTemplateService
-
setBundleTemplateService
public void setBundleTemplateService(de.hybris.platform.configurablebundleservices.bundle.BundleTemplateService bundleTemplateService) - Parameters:
bundleTemplateService- the bundleTemplateService to set
-
getPriceService
protected de.hybris.platform.product.PriceService getPriceService()- Returns:
- the priceService
-
setPriceService
public void setPriceService(de.hybris.platform.product.PriceService priceService) - Parameters:
priceService- the priceService to set
-
getProductService
protected de.hybris.platform.product.ProductService getProductService()- Returns:
- the productService
-
setProductService
public void setProductService(de.hybris.platform.product.ProductService productService) - Parameters:
productService- the productService to set
-