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 Details

    • PackageFareBundlesPriceDifferenceHandler

      public PackageFareBundlesPriceDifferenceHandler()
  • Method Details

    • handle

      public void handle(PackageRequestData packageRequestData, PackageResponseData packageResponseData)
      Description copied from interface: PackageResponseHandler
      Handle method.
      Specified by:
      handle in interface PackageResponseHandler
      Parameters:
      packageRequestData - as the packageRequestData
      packageResponseData - as the packageResponseData
    • updateFormattedValue

      protected void updateFormattedValue(PriceData priceData)
      Updates the formattedValue property of the given PriceData to 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