Class DefaultCancelPenaltiesDescriptionCreationStrategy
java.lang.Object
de.hybris.platform.travelfacades.facades.accommodation.strategies.impl.DefaultCancelPenaltiesDescriptionCreationStrategy
- All Implemented Interfaces:
CancelPenaltiesDescriptionCreationStrategy
public class DefaultCancelPenaltiesDescriptionCreationStrategy
extends Object
implements CancelPenaltiesDescriptionCreationStrategy
Implementation of
CancelPenaltiesDescriptionCreationStrategy interface, to create and update the formatted
description of the CancelPenaltyData-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringcreateCancelPenaltyDescription(CancelPenaltyModel cancelPenaltyModel, Date checkInDate) Creates the CancelPenalty description, calculating the deadline Date for the given checkInDategetCancelPenaltyDescription(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
-
Constructor Details
-
DefaultCancelPenaltiesDescriptionCreationStrategy
public DefaultCancelPenaltiesDescriptionCreationStrategy()
-
-
Method Details
-
updateCancelPenaltiesDescription
Description copied from interface:CancelPenaltiesDescriptionCreationStrategyUpdates the formatted description of the cancel penalty- Specified by:
updateCancelPenaltiesDescriptionin interfaceCancelPenaltiesDescriptionCreationStrategy
-
getCancelPenaltyDescription
Description copied from interface:CancelPenaltiesDescriptionCreationStrategyCreates the CancelPenalty description, calculating the deadline Date for the given checkInDate- Specified by:
getCancelPenaltyDescriptionin interfaceCancelPenaltiesDescriptionCreationStrategy- Returns:
- the String representing the formatted description for the cancelPenalty
-
createCancelPenaltyDescription
protected String createCancelPenaltyDescription(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
-