Class TravelPaymentDetailsController
java.lang.Object
de.hybris.platform.coretravelcommonsocc.controllers.TravelBaseController
de.hybris.platform.coretravelcommonsocc.controllers.TravelPaymentDetailsController
@Controller
@RequestMapping("/{baseSiteId}/users/{userId}/paymentdetails")
public class TravelPaymentDetailsController
extends TravelBaseController
Main Controller for PaymentDetails resource
-
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.ResponseEntity<PaymentDetailsWsDTO>getPaymentDetails(String paymentDetailsId) org.springframework.http.ResponseEntity<PaymentDetailsListWsDTO>protected CCPaymentInfoDatagetPaymentInfo(String paymentDetailsId) Get Saved payment infoorg.springframework.http.ResponseEntityremovePaymentDetails(String paymentDetailsId) org.springframework.http.ResponseEntityreplacePaymentDetails(String paymentDetailsId, PaymentDetailsWsDTO paymentDetails) org.springframework.http.ResponseEntityupdatePaymentDetails(String paymentDetailsId, PaymentDetailsWsDTO paymentDetails) Methods inherited from class de.hybris.platform.coretravelcommonsocc.controllers.TravelBaseController
getAbsoluteLocationURL, getDataMapper, getErrorCode, getErrorCodeResolver, handleAccessDeniedException, handleMissingRequestHeaderException, handleTravelModelNotFoundException, sanitize, validate, validate
-
Constructor Details
-
TravelPaymentDetailsController
public TravelPaymentDetailsController()
-
-
Method Details
-
getPaymentDetailsList
@Secured({"ROLE_CUSTOMERGROUP","ROLE_TRUSTED_CLIENT","ROLE_CUSTOMERMANAGERGROUP"}) @RequestMapping(method=GET) @ResponseBody public org.springframework.http.ResponseEntity<PaymentDetailsListWsDTO> getPaymentDetailsList() -
replacePaymentDetails
@Secured({"ROLE_CUSTOMERGROUP","ROLE_TRUSTED_CLIENT","ROLE_CUSTOMERMANAGERGROUP"}) @RequestMapping(value="/{paymentDetailsId}", method=PUT, consumes={"application/json","application/xml"}) @ResponseStatus(OK) public org.springframework.http.ResponseEntity replacePaymentDetails(@PathVariable String paymentDetailsId, @RequestBody PaymentDetailsWsDTO paymentDetails) -
updatePaymentDetails
@Secured({"ROLE_CUSTOMERGROUP","ROLE_TRUSTED_CLIENT","ROLE_CUSTOMERMANAGERGROUP"}) @RequestMapping(value="/{paymentDetailsId}", method=PATCH, consumes={"application/json","application/xml"}) @ResponseStatus(OK) public org.springframework.http.ResponseEntity updatePaymentDetails(@PathVariable String paymentDetailsId, @RequestBody PaymentDetailsWsDTO paymentDetails) -
removePaymentDetails
@Secured({"ROLE_CUSTOMERGROUP","ROLE_TRUSTED_CLIENT","ROLE_CUSTOMERMANAGERGROUP"}) @RequestMapping(value="/{paymentDetailsId}", method=DELETE) @ResponseStatus(OK) public org.springframework.http.ResponseEntity removePaymentDetails(@PathVariable String paymentDetailsId) -
getPaymentDetails
@Secured({"ROLE_CLIENT","ROLE_CUSTOMERGROUP","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @RequestMapping(value="/{paymentDetailsId}", method=GET) @ResponseBody public org.springframework.http.ResponseEntity<PaymentDetailsWsDTO> getPaymentDetails(@PathVariable String paymentDetailsId) -
getPaymentInfo
Get Saved payment info- Parameters:
paymentDetailsId- the paymentDetailsId- Returns:
- CCPaymentInfoData
-