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
  • 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

      protected CCPaymentInfoData getPaymentInfo(String paymentDetailsId)
      Get Saved payment info
      Parameters:
      paymentDetailsId - the paymentDetailsId
      Returns:
      CCPaymentInfoData