Interface ReservationFacade

All Known Implementing Classes:
DefaultReservationFacade

public interface ReservationFacade
Exposes the services relevant to Reservation DTO.
  • Method Details

    • getReservationData

      ReservationData getReservationData(AbstractOrderModel abstractOrderModel)
      Populates the Reservation DTO from Abstract Order Model.
      Parameters:
      abstractOrderModel - - abstract order model to be converted
      Returns:
      reservation DTO
    • getCurrentReservationData

      ReservationData getCurrentReservationData()
      Populates the Reservation DTO from the current Session Cart.
      Returns:
      reservation DTO
    • getCurrentReservationSummary

      ReservationData getCurrentReservationSummary()
      Populates the ReservationData from the current session cart with data only needed for displaying the transport summary.
      Returns:
      current reservation summary
    • getAccommodationReservationData

      AccommodationReservationData getAccommodationReservationData(AbstractOrderModel abstractOrderModel)
      Gets the accommodation reservation data.
      Parameters:
      abstractOrderModel - the abstract order model
      Returns:
      the accommodation reservation data
    • getCurrentAccommodationReservation

      AccommodationReservationData getCurrentAccommodationReservation()
      Gets the current accommodation reservation data.
      Returns:
      the accommodation reservation data
    • getCurrentAccommodationReservationSummary

      AccommodationReservationData getCurrentAccommodationReservationSummary()
      Populates the AccommodationReservationData from the current session cart with data only needed for displaying the accommodation summary.
      Returns:
      current reservation summary
    • getAccommodationReservationSummary

      AccommodationReservationData getAccommodationReservationSummary(String orderCode)
      Populates the AccommodationReservationData from the order with data only needed for displaying the accommodation summary.
      Parameters:
      orderCode - the order code
      Returns:
      current reservation summary
    • getCurrentGlobalTravelReservationData

      GlobalTravelReservationData getCurrentGlobalTravelReservationData()
      gets current global travel reservation data
      Returns:
      current global travel reservation data
    • getGlobalTravelReservationData

      GlobalTravelReservationData getGlobalTravelReservationData(AbstractOrderModel abstractOrderModel)
      Gets the global travel reservation data.
      Parameters:
      abstractOrderModel - the abstract order model
      Returns:
      the global travel reservation data
    • retrieveGlobalReservationData

      GlobalTravelReservationData retrieveGlobalReservationData(String bookingReference)
      Retrieves and returns the GlobalTravelReservationData associated to the OrderModel with the provided bookingReference, null otherwise
      Parameters:
      bookingReference - a String representing bookingReference Number
      Returns:
      global travel reservation data
    • getCancelledGlobalTravelReservationData

      GlobalTravelReservationData getCancelledGlobalTravelReservationData(AbstractOrderModel abstractOrderModel)
      Gets the cancelled global travel reservation data.
      Parameters:
      abstractOrderModel - the order
      Returns:
      the cancelled global travel reservation data
    • getCurrentPackageTransportReservationSummary

      ReservationData getCurrentPackageTransportReservationSummary()
      Populates the ReservationData from the current session cart with data only needed for displaying the transport summary.
      Returns:
      current reservation summary
    • getBasicReservationData

      ReservationData getBasicReservationData(AbstractOrderModel abstractOrderModel)
      Populates the ReservationData from the provided abstractOrderModel without the pricing information
      Parameters:
      abstractOrderModel - the abstract order model
      Returns:
      reservation summary
    • getBookerEmailIDFromReservationData

      String getBookerEmailIDFromReservationData(GlobalTravelReservationData globalReservationData, String lastName, String passengerReference)
      Gets booker email id from reservation data.
      Parameters:
      globalReservationData - the global reservation data
      lastName - the last name
      passengerReference - the passenger reference
      Returns:
      the booker email id from reservation data
    • getBookingJourneyType

      String getBookingJourneyType(String orderCode)
      Returns the string representing the BookingJourneyType corresponding to the given orderCode.
      Parameters:
      orderCode - as the order code
      Returns:
      the string representing the BookingJourneyType corresponding to the given orderCode, null if not present.
    • getReservationDetailsForCurrentUser

      GlobalTravelReservationData getReservationDetailsForCurrentUser(String code)
      Returns the reservation details associated to the OrderModel for order code and current user.
      Parameters:
      code - order code
      Returns:
      the reservation details
    • getReservationDetails

      Gets reservation details for traveller reference.
      Parameters:
      orderId - the order id
      lastName - the last name
      travellerReference - the traveller reference
      Returns:
      the reservation details for traveller reference
      Throws:
      InvalidOrderStatusException - the invalid order status exception
      TravellerNotEligibleException - the traveller not eligible exception when passenger reference is not provided for additional security.
      ReservationDetailsDeniedException - the booking details not found exception due to invalid last name or passenger reference.
    • getBaseGlobalTravelReservationData

      GlobalTravelReservationData getBaseGlobalTravelReservationData(AbstractOrderModel abstractOrderModel)
      Retrieve the globalTravelReservationData from the OrderModel order.
      Parameters:
      abstractOrderModel - the order
      Returns:
      the globalTravelReservationData
    • getCurrentBaseGlobalTravelReservationData

      GlobalTravelReservationData getCurrentBaseGlobalTravelReservationData()
      gets current global travel reservation data
      Returns:
      current global travel reservation data