Class TransportOrdersController

java.lang.Object
de.hybris.platform.coretravelcommonsocc.controllers.TravelBaseController
de.hybris.platform.coretransportocc.controllers.TransportOrdersController

@Controller @RequestMapping("/{baseSiteId}/users/{userId}/orders/{orderId}") public class TransportOrdersController extends TravelBaseController
Web Service Transport orders Controller for services related to the order.
  • Constructor Details

    • TransportOrdersController

      public TransportOrdersController()
  • Method Details

    • getOrderTravellers

      @Secured({"ROLE_CLIENT","ROLE_GUEST","ROLE_CUSTOMERGROUP","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @RequestMapping(value="/travellers", method=GET) @ResponseStatus(OK) public org.springframework.http.ResponseEntity getOrderTravellers(@PathVariable(name="orderId") String orderId)
    • getOrderTraveller

      @Secured({"ROLE_CLIENT","ROLE_GUEST","ROLE_CUSTOMERGROUP","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @RequestMapping(value="/travellers/{travellerId}", method=GET) @ResponseStatus(OK) public org.springframework.http.ResponseEntity getOrderTraveller(@PathVariable(name="orderId") String orderId, @PathVariable String travellerId)
    • addAdvancePassengerInformation

      @Secured({"ROLE_CLIENT","ROLE_GUEST","ROLE_CUSTOMERGROUP","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @RequestMapping(value="/travellers/{travellerId}/advancePassengerInformation", method=PUT) public org.springframework.http.ResponseEntity addAdvancePassengerInformation(@Nonnull @PathVariable String orderId, @Nonnull @PathVariable String travellerId, @Nonnull @RequestBody AdvancePassengerInformation advancePassengerInfo)
      Add advance passenger information.
      Parameters:
      orderId - the id of the customer order.
      travellerId - the traveller id.
      advancePassengerInfo - the advance passenger information to the specified traveller associated to the booking.
      Returns:
      the response entity
    • getAdvancePassengerInformation

      @Secured({"ROLE_CLIENT","ROLE_GUEST","ROLE_CUSTOMERGROUP","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @RequestMapping(value="/travellers/{travellerId}/advancePassengerInformation", method=GET) @ResponseBody public org.springframework.http.ResponseEntity getAdvancePassengerInformation(@Nonnull @PathVariable String orderId, @Nonnull @PathVariable String travellerId)
    • checkinTraveller

      @Secured({"ROLE_CLIENT","ROLE_GUEST","ROLE_CUSTOMERGROUP","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @RequestMapping(value="/travellers/{travellerId}/checkin", method=POST) public org.springframework.http.ResponseEntity checkinTraveller(@Nonnull @PathVariable String orderId, @Nonnull @PathVariable String travellerId, @RequestParam String boundIdentifier)
    • cancelTransportReservation

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

      @Secured({"ROLE_CLIENT","ROLE_GUEST","ROLE_CUSTOMERGROUP","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @ResponseStatus(NO_CONTENT) @PostMapping("/travellers/{travellerId}/evaluateCancel") public org.springframework.http.ResponseEntity<EvaluateCancelPriceInfoResponse> evaluateCancelTraveller(@PathVariable String orderId, @PathVariable String travellerId)