Class DefaultCalculatePaymentTypeForChangeDatesStrategy

java.lang.Object
de.hybris.platform.travelfacades.booking.action.strategies.impl.DefaultCalculatePaymentTypeForChangeDatesStrategy
All Implemented Interfaces:
CalculatePaymentTypeForChangeDatesStrategy

public class DefaultCalculatePaymentTypeForChangeDatesStrategy extends Object implements CalculatePaymentTypeForChangeDatesStrategy
Implementation for {@link= CalculatePaymentTypeForChangeDatesStrategy}
  • Constructor Details

    • DefaultCalculatePaymentTypeForChangeDatesStrategy

      public DefaultCalculatePaymentTypeForChangeDatesStrategy()
  • Method Details

    • calculate

      public Map<String,String> calculate(AccommodationReservationData accommodationReservationData, AccommodationAvailabilityResponseData accommodationAvailabilityResponse)
      Description copied from interface: CalculatePaymentTypeForChangeDatesStrategy
      Provides the payment information for The change date functionality. It provides amount paid already paid for order, new amount to be paid/refund(if any) , the payment action required(REFUND,PAYABLE or SAME).
      Specified by:
      calculate in interface CalculatePaymentTypeForChangeDatesStrategy
      Returns:
    • getTotalToRefundForChangeDates

      protected BigDecimal getTotalToRefundForChangeDates(String orderCode, AccommodationAvailabilityResponseData accommodationAvailabilityResponse)
    • getPriceDataFactory

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

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

      protected BookingService getBookingService()
      Returns:
      the bookingService
    • setBookingService

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

      protected Map<String,CalculateTotalPriceForChangeDatesStrategy> getCalculateTotalPriceForChangeDatesStrategyMap()
      Returns:
      the calculateTotalPriceForChangeDatesStrategyMap
    • setCalculateTotalPriceForChangeDatesStrategyMap

      public void setCalculateTotalPriceForChangeDatesStrategyMap(Map<String,CalculateTotalPriceForChangeDatesStrategy> calculateTotalPriceForChangeDatesStrategyMap)
      Parameters:
      calculateTotalPriceForChangeDatesStrategyMap - the calculateTotalPriceForChangeDatesStrategyMap to set
    • getTravelCommercePriceFacade

      protected TravelCommercePriceFacade getTravelCommercePriceFacade()
      Returns:
      the travelCommercePriceFacade
    • setTravelCommercePriceFacade

      public void setTravelCommercePriceFacade(TravelCommercePriceFacade travelCommercePriceFacade)
      Parameters:
      travelCommercePriceFacade - the travelCommercePriceFacade to set