Class DefaultShoppingBookingFacade

java.lang.Object
de.hybris.platform.travelfacades.facades.impl.DefaultBookingFacade
de.hybris.platform.shoppingfacades.facades.impl.DefaultShoppingBookingFacade
All Implemented Interfaces:
ShoppingBookingFacade, BookingFacade

public class DefaultShoppingBookingFacade extends DefaultBookingFacade implements ShoppingBookingFacade
The Shopping Booking facade to evaluate if cancel booking is allowed for a booking.
  • Constructor Details

    • DefaultShoppingBookingFacade

      public DefaultShoppingBookingFacade()
  • Method Details

    • evaluateBookingCancellation

      public EvaluateCancelBookingResponseData evaluateBookingCancellation(String orderCode, String userId) throws BookingCancelException
      Description copied from interface: ShoppingBookingFacade
      Evaluates if it is possible to cancel the booking for an airline booking. Checks if 1) the order exists and the user has the rights to cancel the booking. 2) the action is allowed by validating the booking actions. 3) the cancel booking is possible by verifying the consignments, if the order has been already delivered and if there is some invalid payment.
      Specified by:
      evaluateBookingCancellation in interface ShoppingBookingFacade
      Parameters:
      orderCode - the orderId
      userId - the userId
      Returns:
      The EvaluateCancelBookingResponseData containing all the breakdowns for the total to refund and penalties for both airline and accommodation reservation.
      Throws:
      BookingCancelException - if the additional security data is true in the order but the orderId is a orderGuid, or if there are invalid booking actions.
    • isAccommodationBooking

      protected boolean isAccommodationBooking(AbstractOrderModel abstractOrderModel)
      Check if order has accommodation entries
      Parameters:
      abstractOrderModel -
      Returns:
    • getShoppingTravelCartFacade

      protected ShoppingTravelCartFacade getShoppingTravelCartFacade()
      Get Shopping travel cart facade
      Returns:
    • setShoppingTravelCartFacade

      public void setShoppingTravelCartFacade(ShoppingTravelCartFacade shoppingTravelCartFacade)
      Set Shopping travel cart facade
      Parameters:
      shoppingTravelCartFacade -