Class DefaultCalculateTotalPriceWithGuaranteeForChangeDatesStrategy

java.lang.Object
de.hybris.platform.travelservices.strategies.impl.DefaultCalculateTotalPriceWithGuaranteeForChangeDatesStrategy
All Implemented Interfaces:
CalculateTotalPriceForChangeDatesStrategy

public class DefaultCalculateTotalPriceWithGuaranteeForChangeDatesStrategy extends Object implements CalculateTotalPriceForChangeDatesStrategy
Strategy class to calculate the total amount to be paid for AccommodationAvailabilityResponseData.
  • Constructor Details

    • DefaultCalculateTotalPriceWithGuaranteeForChangeDatesStrategy

      public DefaultCalculateTotalPriceWithGuaranteeForChangeDatesStrategy()
  • Method Details

    • calculate

      public BigDecimal calculate(AccommodationAvailabilityResponseData accommodationAvailabilityResponse, String orderCode)
      Description copied from interface: CalculateTotalPriceForChangeDatesStrategy
      Retrieves the total price of accommodation booking
      Specified by:
      calculate in interface CalculateTotalPriceForChangeDatesStrategy
      Parameters:
      accommodationAvailabilityResponse - the accommodation availability response
      orderCode - the order code
      Returns:
      big decimal
    • getNonRoomRateModelPrice

      protected BigDecimal getNonRoomRateModelPrice(AccommodationOrderEntryGroupModel accommodationOrderEntryGroupModel)
    • getBookingService

      protected BookingService getBookingService()
      Returns:
      the bookingService
    • setBookingService

      public void setBookingService(BookingService bookingService)
      Parameters:
      bookingService - the bookingService to set
    • getRatePlanService

      protected RatePlanService getRatePlanService()
      Returns:
      the ratePlanService
    • setRatePlanService

      public void setRatePlanService(RatePlanService ratePlanService)
      Parameters:
      ratePlanService - the ratePlanService to set
    • getTimeService

      protected de.hybris.platform.servicelayer.time.TimeService getTimeService()
      Returns:
      the timeService
    • setTimeService

      public void setTimeService(de.hybris.platform.servicelayer.time.TimeService timeService)
      Parameters:
      timeService - the timeService to set