Class RatePlanUtils

java.lang.Object
de.hybris.platform.travelservices.utils.RatePlanUtils

public final class RatePlanUtils extends Object
This class provides utility methods to help execution of the functionlaity related to RatePlan item
  • Method Details

    • getRoomRateForRatePlan

      public static RoomRateProductModel getRoomRateForRatePlan(RatePlanModel ratePlan, Date currentDate)
      Retrieves the first RoomRateProduct which is available for given date in a given RatePlan
      Parameters:
      ratePlan - the rate plan
      currentDate - the current date
      Returns:
      room rate product
    • isRoomRateAvailableOnDate

      protected static boolean isRoomRateAvailableOnDate(RoomRateProductModel roomRate, Date currentDate)
      Is room rate available on date boolean.
      Parameters:
      roomRate - the room rate
      currentDate - the current date
      Returns:
      the boolean
    • isWithinRange

      protected static boolean isWithinRange(Date testDate, Date startDate, Date endDate)
      Is within range boolean.
      Parameters:
      testDate - the test date
      startDate - the start date
      endDate - the end date
      Returns:
      the boolean