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
This class extends the
ReservationTotalFareHandler in order to calculate the total prices without the storefront.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected BigDecimalcalculateTotalToPay(ReservationData reservationData) Calculate total to pay fromReservationData.protected BookingServiceGets booking service.voidhandle(AbstractOrderModel abstractOrderModel, ReservationData reservationData) This method calculates all the prices for the reservationData.voidsetBookingService(BookingService bookingService) Sets booking service.Methods inherited from class de.hybris.platform.travelfacades.reservation.handlers.impl.ReservationTotalFareHandler
calculateTotalToPay, createDiscountData, createFeeData, createPriceData, createTaxData, getBaseStoreService, getCommonI18NService, getOrderTotalPaidForOrderEntryTypeCalculationStrategy, getPriceDataFactory, getTravelCartFacade, getTravelCommercePriceFacade, populateDiscounts, populateFees, populateGlobalExtras, setBaseStoreService, setCommonI18NService, setOrderTotalPaidForOrderEntryTypeCalculationStrategy, setPriceDataFactory, setTravelCartFacade, setTravelCommercePriceFacade
-
Constructor Details
-
ReservationTotalPriceHandler
public ReservationTotalPriceHandler()
-
-
Method Details
-
handle
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:
handlein interfaceReservationHandler- Overrides:
handlein classReservationTotalFareHandler- Parameters:
abstractOrderModel- the orderreservationData- the reservationData
-
calculateTotalToPay
Calculate total to pay fromReservationData.- Parameters:
reservationData- the reservation data- Returns:
-
getBookingService
Gets booking service.- Returns:
- the booking service
-
setBookingService
Sets booking service.- Parameters:
bookingService- the booking service
-