Class ReservationTotalPriceHandler

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

public class ReservationTotalPriceHandler extends ReservationTotalFareHandler
This class extends the ReservationTotalFareHandler in order to calculate the total prices without the storefront.
  • Constructor Details

    • ReservationTotalPriceHandler

      public ReservationTotalPriceHandler()
  • Method Details

    • handle

      public void handle(AbstractOrderModel abstractOrderModel, ReservationData reservationData)
      This method calculates all the prices for the reservationData. The totalToPay and TotalToRefund are calculated by overriding the logic implemented for a journey done through the storefront.
      Specified by:
      handle in interface ReservationHandler
      Overrides:
      handle in class ReservationTotalFareHandler
      Parameters:
      abstractOrderModel - the order
      reservationData - the reservationData
    • calculateTotalToPay

      protected BigDecimal calculateTotalToPay(ReservationData reservationData)
      Calculate total to pay from ReservationData.
      Parameters:
      reservationData - the reservation data
      Returns:
    • getBookingService

      protected BookingService getBookingService()
      Gets booking service.
      Returns:
      the booking service
    • setBookingService

      public void setBookingService(BookingService bookingService)
      Sets booking service.
      Parameters:
      bookingService - the booking service