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 Details

    • updateCancelPenaltiesDescription

      void updateCancelPenaltiesDescription(RatePlanModel ratePlan, RoomStayData roomStay)
      Updates the formatted description of the cancel penalty
      Parameters:
      ratePlan -
      roomStay -
    • getCancelPenaltyDescription

      String getCancelPenaltyDescription(CancelPenaltyModel cancelPenaltyModel, Date checkInDate)
      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