Class PackageFareBundlesPriceDifferenceHandler
java.lang.Object
de.hybris.platform.travelfacades.facades.packages.handlers.impl.PackageFareBundlesPriceDifferenceHandler
- All Implemented Interfaces:
PackageResponseHandler
public class PackageFareBundlesPriceDifferenceHandler
extends Object
implements PackageResponseHandler
Compares the price of bundles to the selected ones for given OD and calculates a differential price such as +20, -10
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected de.hybris.platform.commercefacades.product.PriceDataFactoryGets price data factory.voidhandle(PackageRequestData packageRequestData, PackageResponseData packageResponseData) Handle method.voidsetPriceDataFactory(de.hybris.platform.commercefacades.product.PriceDataFactory priceDataFactory) Sets price data factory.protected voidupdateFormattedValue(PriceData priceData) Updates the formattedValue property of the givenPriceDatato display a PLUS SIGN for non negative values
-
Constructor Details
-
PackageFareBundlesPriceDifferenceHandler
public PackageFareBundlesPriceDifferenceHandler()
-
-
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
-
getPriceDataFactory
protected de.hybris.platform.commercefacades.product.PriceDataFactory getPriceDataFactory()Gets price data factory.- Returns:
- the price data factory
-
setPriceDataFactory
public void setPriceDataFactory(de.hybris.platform.commercefacades.product.PriceDataFactory priceDataFactory) Sets price data factory.- Parameters:
priceDataFactory- the price data factory
-