Interface ReservationService

All Known Implementing Classes:
DefaultReservationService

public interface ReservationService
Reservation Service which calls the OAA reservation service to update a reservation to an order, after the order is confirmed.
  • Method Details

    • updateReservation

      ReservationResponse updateReservation(AbstractOrderModel abstractOrderModel, String reservationStatus)
      Calls the REST service to update the temporary reservation. This only updates the Status and the Order ID of the temporary reservation in the Backend, other changes which where done in the order are not changed in the reservation - new Item, changed items etc.
      Parameters:
      abstractOrderModel - The order to be used as CartModel or OrderModel during CAR Reservation.
      reservationStatus - reservationStatus used for CAR Reservation Status
      Returns:
      reservationResponse
    • deleteReservation

      void deleteReservation(AbstractOrderModel abstractOrderModel)
      Deletes entire reservation in CAR.
      Parameters:
      abstractOrderModel - The order to be used as CartModel or OrderModel during CAR Reservation.
    • deleteReservationItem

      void deleteReservationItem(AbstractOrderModel abstractOrderModel, AbstractOrderEntryModel abstractOrderEntryModel)
      Deletes reservation entry in CAR.
      Parameters:
      abstractOrderModel - The order to be used as CartModel or OrderModel during CAR Reservation.
      abstractOrderEntryModel - The order entry to be used as CartModel or OrderModel during CAR Reservation.