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.
-
Field Summary
Fields inherited from class de.hybris.platform.coretravelcommonsocc.controllers.TravelBaseController
BASIC_FIELD_SET, DEFAULT_CURRENT_PAGE, DEFAULT_PAGE_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntityaddAdvancePassengerInformation(String orderId, String travellerId, AdvancePassengerInformation advancePassengerInfo) Add advance passenger information.voidcancelTransportReservation(String orderId) org.springframework.http.ResponseEntitycheckinTraveller(String orderId, String travellerId, String boundIdentifier) org.springframework.http.ResponseEntity<EvaluateCancelPriceInfoResponse>evaluateCancelTraveller(String orderId, String travellerId) org.springframework.http.ResponseEntitygetAdvancePassengerInformation(String orderId, String travellerId) org.springframework.http.ResponseEntitygetOrderTraveller(String orderId, String travellerId) org.springframework.http.ResponseEntitygetOrderTravellers(String orderId) Methods inherited from class de.hybris.platform.coretravelcommonsocc.controllers.TravelBaseController
getAbsoluteLocationURL, getDataMapper, getErrorCode, getErrorCodeResolver, handleAccessDeniedException, handleMissingRequestHeaderException, handleTravelModelNotFoundException, sanitize, validate, validate
-
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)
-