java.lang.Object
de.hybris.platform.travelfacades.facades.accommodation.handlers.impl.AbstractRoomRatesHandler
de.hybris.platform.travelfacades.facades.accommodation.handlers.impl.DealRoomRatesHandler
All Implemented Interfaces:
AccommodationDetailsHandler

public class DealRoomRatesHandler extends AbstractRoomRatesHandler
This handler populates the AccommodationAvailabilityResponseData with the RoomRateData
  • Constructor Details

    • DealRoomRatesHandler

      public DealRoomRatesHandler()
  • 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
    • getRoomRates

      protected List<RoomRateData> getRoomRates(LocalDateTime date, String bundleTemplateId)
      Returns the list of RoomRateData created based on the list of RoomRateProductModel specified in the AccommodationBundleTemplateModel corresponding to the given bundleTemplateId
      Parameters:
      date - the date to be used to check the validity of the RoomRate
      bundleTemplateId - the bundleTemplateId
      Returns:
      a List
    • 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