Class ReservationTotalFareHandler

java.lang.Object
de.hybris.platform.travelfacades.reservation.handlers.impl.ReservationTotalFareHandler
All Implemented Interfaces:
ReservationHandler
Direct Known Subclasses:
ReservationTotalPriceHandler

public class ReservationTotalFareHandler extends Object implements ReservationHandler
This handler is responsible for retrieving totals from abstract order and attaching them to reservation
  • Constructor Details

    • ReservationTotalFareHandler

      public ReservationTotalFareHandler()
  • Method Details

    • handle

      public void handle(AbstractOrderModel abstractOrderModel, ReservationData reservationData)
      Description copied from interface: ReservationHandler
      Handle method.
      Specified by:
      handle in interface ReservationHandler
      Parameters:
      abstractOrderModel - the abstract order model
      reservationData - the reservation data
    • populateDiscounts

      protected void populateDiscounts(AbstractOrderModel abstractOrderModel, TotalFareData totalFare)
      Method to populate the discount objects and total discount value.
      Parameters:
      abstractOrderModel - the abstract order model
      totalFare - the total fare
    • populateGlobalExtras

      protected void populateGlobalExtras(AbstractOrderModel abstractOrderModel, TotalFareData totalFare)
      Method to populate the globalExtras objects and total value.
      Parameters:
      abstractOrderModel - the abstract order model
      totalFare - the total fare
    • populateFees

      protected void populateFees(AbstractOrderModel abstractOrderModel, TotalFareData totalFare)
      Method to populate the fees objects and total fees.
      Parameters:
      abstractOrderModel - the abstract order model
      totalFare - the total fare
    • createFeeData

      protected FeeData createFeeData(AbstractOrderEntryModel entryModel)
      Method to create Fee Data objects.
      Parameters:
      entryModel - the entry model
      Returns:
      FeeData object.
    • createDiscountData

      protected List<DiscountData> createDiscountData(List<de.hybris.platform.util.DiscountValue> discountValues)
      Method to convert the Discount Values to Discount Data objects.
      Parameters:
      discountValues - the discount values
      Returns:
      list of DiscountData objects.
    • createTaxData

      protected List<TaxData> createTaxData(List<de.hybris.platform.util.TaxValue> taxValues)
      Method to convert the Tax Values to Tax Data objects.
      Parameters:
      taxValues - the tax values
      Returns:
      list of TaxData objects.
    • createPriceData

      @Deprecated protected PriceData createPriceData(double priceValue, String currencyIsoCode)
      Deprecated.
      Deprecated since version 3.0.
      Method to create a new PriceData Object using PriceDataFactory
      Parameters:
      priceValue - the price value
      currencyIsoCode - the currency iso code
      Returns:
      PriceData price data
    • calculateTotalToPay

      protected PriceData calculateTotalToPay(AbstractOrderModel abstractOrderModel)
      Calculates difference between old total and amended total to know how much user should pay (or how much they should be refunded)
      Parameters:
      abstractOrderModel - the abstract order model
      Returns:
      price to pay (or to be refunded)
    • getPriceDataFactory

      @Deprecated protected de.hybris.platform.commercefacades.product.PriceDataFactory getPriceDataFactory()
      Deprecated.
      Deprecated since version 3.0.
      Gets price data factory.
      Returns:
      the priceDataFactory
    • setPriceDataFactory

      @Deprecated public void setPriceDataFactory(de.hybris.platform.commercefacades.product.PriceDataFactory priceDataFactory)
      Deprecated.
      Deprecated since version 3.0.
      Sets price data factory.
      Parameters:
      priceDataFactory - the priceDataFactory to set
    • getCommonI18NService

      @Deprecated protected de.hybris.platform.servicelayer.i18n.CommonI18NService getCommonI18NService()
      Deprecated.
      Deprecated since version 3.0.
      Gets common i 18 n service.
      Returns:
      the commonI18NService
    • setCommonI18NService

      @Deprecated public void setCommonI18NService(de.hybris.platform.servicelayer.i18n.CommonI18NService commonI18NService)
      Deprecated.
      Deprecated since version 3.0.
      Sets common i 18 n service.
      Parameters:
      commonI18NService - the commonI18NService to set
    • getBaseStoreService

      @Deprecated protected de.hybris.platform.store.services.BaseStoreService getBaseStoreService()
      Deprecated.
      Deprecated since version 3.0.
      Gets base store service.
      Returns:
      the baseStoreService
    • setBaseStoreService

      @Deprecated public void setBaseStoreService(de.hybris.platform.store.services.BaseStoreService baseStoreService)
      Deprecated.
      Deprecated since version 3.0.
      Sets base store service.
      Parameters:
      baseStoreService - the baseStoreService to set
    • getTravelCommercePriceFacade

      protected TravelCommercePriceFacade getTravelCommercePriceFacade()
      Gets travel commerce price facade.
      Returns:
      the travelCommercePriceFacade
    • setTravelCommercePriceFacade

      public void setTravelCommercePriceFacade(TravelCommercePriceFacade travelCommercePriceFacade)
      Sets travel commerce price facade.
      Parameters:
      travelCommercePriceFacade - the travelCommercePriceFacade to set
    • getTravelCartFacade

      protected TravelCartFacade getTravelCartFacade()
      Returns:
      the travelCartFacade
    • setTravelCartFacade

      public void setTravelCartFacade(TravelCartFacade travelCartFacade)
      Parameters:
      travelCartFacade - the travelCartFacade to set
    • getOrderTotalPaidForOrderEntryTypeCalculationStrategy

      protected OrderTotalPaidForOrderEntryTypeCalculationStrategy getOrderTotalPaidForOrderEntryTypeCalculationStrategy()
      Gets order total paid for order entry type calculation strategy.
      Returns:
      the order total paid for order entry type calculation strategy
    • setOrderTotalPaidForOrderEntryTypeCalculationStrategy

      public void setOrderTotalPaidForOrderEntryTypeCalculationStrategy(OrderTotalPaidForOrderEntryTypeCalculationStrategy orderTotalPaidForOrderEntryTypeCalculationStrategy)
      Sets order total paid for order entry type calculation strategy.
      Parameters:
      orderTotalPaidForOrderEntryTypeCalculationStrategy - the order total paid for order entry type calculation strategy