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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateChineseOrder(String fields) createChinesePaymentRequest(String orderCode, String fields) protected StringgenerateVoucherExpiredMessage(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)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)voidreplaceChinesePaymentInfo(String paymentModeCode) protected void
-
Field Details
-
PAYMENT_MODE_OBJECT
- See Also:
-
ORDER_OBJECT
- See Also:
-
CART_OBJECT
- See Also:
-
VOUCHER_EXPIRED_MESSAGE
- See Also:
-
-
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
-