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

public class DealAccommodationPriceHandler extends AbstractAccommodationPriceHandler
Concrete implementation of AccommodationDetailsHandler handling accommodation prices
  • Constructor Details

    • DealAccommodationPriceHandler

      public DealAccommodationPriceHandler()
  • Method Details

    • handle

      public void handle(AccommodationAvailabilityRequestData availabilityRequestData, AccommodationAvailabilityResponseData accommodationAvailabilityResponseData)
      Description copied from interface: AccommodationDetailsHandler
      Handle method.
      Parameters:
      availabilityRequestData - the availability request data
      accommodationAvailabilityResponseData - 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 roomRate
      bundleTemplate - as the bundleTemplate
      currencyIso - 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