Class PaymentInfoController
java.lang.Object
de.hybris.platform.chinesepaymentoccaddon.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) handleExceptions(CartVoucherExpiredException exception) 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 PaymentAuthorizationException, 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
@ResponseStatus(BAD_REQUEST) @ResponseBody @ExceptionHandler(CartVoucherExpiredException.class) public ErrorListWsDTO handleExceptions(CartVoucherExpiredException exception) -
generateVoucherExpiredMessage
-
validate
-