Class RatePlanUtils
java.lang.Object
de.hybris.platform.travelservices.utils.RatePlanUtils
This class provides utility methods to help execution of the functionlaity related to RatePlan item
-
Method Summary
Modifier and TypeMethodDescriptionstatic RoomRateProductModelgetRoomRateForRatePlan(RatePlanModel ratePlan, Date currentDate) Retrieves the first RoomRateProduct which is available for given date in a given RatePlanprotected static booleanisRoomRateAvailableOnDate(RoomRateProductModel roomRate, Date currentDate) Is room rate available on date boolean.protected static booleanisWithinRange(Date testDate, Date startDate, Date endDate) Is within range boolean.
-
Method Details
-
getRoomRateForRatePlan
Retrieves the first RoomRateProduct which is available for given date in a given RatePlan- Parameters:
ratePlan- the rate plancurrentDate- the current date- Returns:
- room rate product
-
isRoomRateAvailableOnDate
Is room rate available on date boolean.- Parameters:
roomRate- the room ratecurrentDate- the current date- Returns:
- the boolean
-
isWithinRange
Is within range boolean.- Parameters:
testDate- the test datestartDate- the start dateendDate- the end date- Returns:
- the boolean
-