Class PaymentInfoController

java.lang.Object
de.hybris.platform.chinesepaymentocc.controllers.PaymentInfoController

@Controller @RequestMapping("/{baseSiteId}/users/{userId}") public class PaymentInfoController extends Object
APIs for Chinese Payment.
  • Field Details

  • Constructor Details

    • PaymentInfoController

      public PaymentInfoController()
  • Method Details

    • replaceChinesePaymentInfo

      @Secured({"ROLE_CUSTOMERGROUP","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT","ROLE_GUEST"}) @RequestMapping(value="/carts/{cartId}/chinesepaymentinfo", method=PUT) @ResponseStatus(OK) public void replaceChinesePaymentInfo(@RequestParam String paymentModeCode)
    • createChineseOrder

      @Secured({"ROLE_CUSTOMERGROUP","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT","ROLE_GUEST"}) @RequestMapping(value="/carts/{cartId}/createchineseorder", method=POST) @ResponseBody public OrderWsDTO createChineseOrder(@RequestParam(defaultValue="DEFAULT") String fields) throws BusinessException
      Throws:
      BusinessException
    • createChinesePaymentRequest

      @Secured({"ROLE_CLIENT","ROLE_TRUSTED_CLIENT","ROLE_CUSTOMERGROUP","ROLE_CUSTOMERMANAGERGROUP"}) @RequestMapping(value="/orders/{orderCode}/payment/request", method=POST) @ResponseBody public ChinesePaymentRequestWsDTO createChinesePaymentRequest(@PathVariable("orderCode") String orderCode, @RequestParam(defaultValue="DEFAULT") String fields)
    • handleExceptions

      @Deprecated(since="2105", forRemoval=true) @ResponseStatus(BAD_REQUEST) @ResponseBody public ErrorListWsDTO handleExceptions(CartVoucherExpiredException exception)
      Deprecated, for removal: This API element is subject to removal in a future version.
      (deprecated since 2105, in order to avoid leaking of exception messages by configuring exceptions)
    • generateVoucherExpiredMessage

      @Deprecated(since="2105", forRemoval=true) protected String generateVoucherExpiredMessage(String voucherCode)
      Deprecated, for removal: This API element is subject to removal in a future version.
      (deprecated since 2105, the exception message is composed in exception class)
    • validate

      protected void validate(Object object, String objectName, org.springframework.validation.Validator validator)