Class PackageRoomStaysPriceDifferenceHandler
java.lang.Object
de.hybris.platform.travelfacades.facades.packages.handlers.impl.PackageRoomStaysPriceDifferenceHandler
- All Implemented Interfaces:
PackageResponseHandler
public class PackageRoomStaysPriceDifferenceHandler
extends Object
implements PackageResponseHandler
Populates the priceDifference property of the
RatePlanData for each RoomStayData, calculated as the
difference between the roomStayData ActualRate and the ActualRate of the ratePlan of the corresponding
ReservedRoomStayData.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected TravelCommercePriceFacadevoidhandle(PackageRequestData packageRequestData, PackageResponseData packageResponseData) Handle method.voidsetTravelCommercePriceFacade(TravelCommercePriceFacade travelCommercePriceFacade) protected voidupdateFormattedValue(PriceData priceData) Updates the formattedValue property of the givenPriceDatato display a PLUS SIGN for non negative values
-
Constructor Details
-
PackageRoomStaysPriceDifferenceHandler
public PackageRoomStaysPriceDifferenceHandler()
-
-
Method Details
-
handle
Description copied from interface:PackageResponseHandlerHandle method.- Specified by:
handlein interfacePackageResponseHandler- Parameters:
packageRequestData- as the packageRequestDatapackageResponseData- as the packageResponseData
-
updateFormattedValue
Updates the formattedValue property of the givenPriceDatato display a PLUS SIGN for non negative values- Parameters:
priceData- as the priceData to update
-
getTravelCommercePriceFacade
- Returns:
- the travelCommercePriceFacade
-
setTravelCommercePriceFacade
- Parameters:
travelCommercePriceFacade- the travelCommercePriceFacade to set
-