Interface CancelPenaltiesDescriptionCreationStrategy
- All Known Implementing Classes:
DefaultCancelPenaltiesDescriptionCreationStrategy
public interface CancelPenaltiesDescriptionCreationStrategy
Abstract strategy to create and update the formatted description of the CancelPenaltyData for the
RoomStayData
-
Method Summary
Modifier and TypeMethodDescriptiongetCancelPenaltyDescription(CancelPenaltyModel cancelPenaltyModel, Date checkInDate) Creates the CancelPenalty description, calculating the deadline Date for the given checkInDatevoidupdateCancelPenaltiesDescription(RatePlanModel ratePlan, RoomStayData roomStay) Updates the formatted description of the cancel penalty
-
Method Details
-
updateCancelPenaltiesDescription
Updates the formatted description of the cancel penalty- Parameters:
ratePlan-roomStay-
-
getCancelPenaltyDescription
Creates the CancelPenalty description, calculating the deadline Date for the given checkInDate- Parameters:
cancelPenaltyModel-checkInDate-- Returns:
- the String representing the formatted description for the cancelPenalty
-