Class AccommodationOrdersController


@Controller @RequestMapping("/{baseSiteId}/users/{userId}/orders") public class AccommodationOrdersController extends AccommodationBaseController
Web Service Controller for the Accommodation Orders resource.
  • Constructor Details

    • AccommodationOrdersController

      public AccommodationOrdersController()
  • Method Details

    • evaluateStayDatesChange

      @Secured({"ROLE_GUEST","ROLE_CUSTOMERGROUP","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @RequestMapping(value="/{orderId}/evaluateStayDatesChange", method=POST) @ResponseBody public org.springframework.http.ResponseEntity evaluateStayDatesChange(@PathVariable String orderId, @RequestParam String checkInDate, @RequestParam String checkOutDate)
    • cancelAccommodationReservation

      @Secured({"ROLE_CLIENT","ROLE_GUEST","ROLE_CUSTOMERGROUP","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @ResponseStatus(NO_CONTENT) @PostMapping("/{orderId}/reservations/accommodationReservation/cancel") public void cancelAccommodationReservation(@PathVariable String orderId)
    • writeReview

      @Secured({"ROLE_GUEST","ROLE_CUSTOMERGROUP","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @PostMapping("/{orderId}/roomStays/{roomStayRefNumber}/writeReview") @ResponseStatus(NO_CONTENT) public org.springframework.http.ResponseEntity writeReview(@PathVariable String orderId, @PathVariable("roomStayRefNumber") Integer roomStayRefNumber, @RequestBody @Nonnull CustomerReviewRequest customerReviewRequest, javax.servlet.http.HttpServletRequest httpServletRequest)
    • addRoomRequest

      @Secured({"ROLE_CLIENT","ROLE_GUEST","ROLE_CUSTOMERGROUP","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @ResponseStatus(CREATED) @PostMapping("/{orderId}/roomStays/{roomStayRefNumber}/requests") public void addRoomRequest(@PathVariable String orderId, @PathVariable("roomStayRefNumber") Integer roomStayRefNumber, @RequestBody @Nonnull RequestMessage requestMessage)
    • removeRoomRequests

      @Secured({"ROLE_CLIENT","ROLE_GUEST","ROLE_CUSTOMERGROUP","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @ResponseStatus(NO_CONTENT) @DeleteMapping("/{orderId}/roomStays/{roomStayRefNumber}/requests/{requestId}") public void removeRoomRequests(@PathVariable String orderId, @PathVariable("roomStayRefNumber") Integer roomStayRefNumber, @PathVariable("requestId") String requestId)
    • getRoomRequests

      @Secured({"ROLE_CLIENT","ROLE_GUEST","ROLE_CUSTOMERGROUP","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @RequestMapping(value="/{orderId}/roomStays/{roomStayRefNumber}/requests", method=GET) public org.springframework.http.ResponseEntity<RoomStayRequestList> getRoomRequests(@PathVariable String orderId, @PathVariable("roomStayRefNumber") Integer roomStayRefNumber)
    • createBookingActionRequest

      protected BookingActionRequestData createBookingActionRequest(String bookingReference, List<ActionTypeOption> requestActions)
      This method will create a booking action request data.
      Parameters:
      bookingReference - the booking reference
      requestActions - the request actions
      Returns:
      the booking action request data
    • populateReviewData

      protected ReviewData populateReviewData(AccommodationReservationData accommodationReservationData, CustomerReviewRequest customerReviewRequest, Integer roomStayRefNumber, String orderId, String accommodationCode)
      Populate review data review data.
      Parameters:
      accommodationReservationData - the accommodation reservation data
      customerReviewRequest - the customer review request
      roomStayRefNumber - the room stay ref number
      orderId - the order id
      accommodationCode - the accommodation code
      Returns:
      the review data