Class PaymentInfoController
- java.lang.Object
-
- de.hybris.platform.chinesepaymentoccaddon.controllers.PaymentInfoController
-
@Controller @RequestMapping("/{baseSiteId}/users/{userId}") public class PaymentInfoController extends java.lang.ObjectAPIs for Chinese Payment.
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringCART_OBJECTprotected static java.lang.StringORDER_OBJECTprotected static java.lang.StringPAYMENT_MODE_OBJECTprotected static java.lang.StringVOUCHER_EXPIRED_MESSAGE
-
Constructor Summary
Constructors Constructor Description PaymentInfoController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OrderWsDTOcreateChineseOrder(java.lang.String fields)ChinesePaymentRequestWsDTOcreateChinesePaymentRequest(java.lang.String orderCode, java.lang.String fields)protected java.lang.StringgenerateVoucherExpiredMessage(java.lang.String voucherCode)ErrorListWsDTOhandleExceptions(CartVoucherExpiredException exception)voidreplaceChinesePaymentInfo(java.lang.String paymentModeCode)protected voidvalidate(java.lang.Object object, java.lang.String objectName, org.springframework.validation.Validator validator)
-
-
-
Field Detail
-
PAYMENT_MODE_OBJECT
protected static final java.lang.String PAYMENT_MODE_OBJECT
- See Also:
- Constant Field Values
-
ORDER_OBJECT
protected static final java.lang.String ORDER_OBJECT
- See Also:
- Constant Field Values
-
CART_OBJECT
protected static final java.lang.String CART_OBJECT
- See Also:
- Constant Field Values
-
VOUCHER_EXPIRED_MESSAGE
protected static final java.lang.String VOUCHER_EXPIRED_MESSAGE
- See Also:
- Constant Field Values
-
-
Method Detail
-
replaceChinesePaymentInfo
@Secured({"ROLE_CUSTOMERGROUP","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT","ROLE_GUEST"}) @RequestMapping(value="/carts/{cartId}/chinesepaymentinfo", method=PUT) @ResponseStatus(OK) public void replaceChinesePaymentInfo(@RequestParam java.lang.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") java.lang.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") java.lang.String orderCode, @RequestParam(defaultValue="DEFAULT") java.lang.String fields)
-
handleExceptions
@ResponseStatus(BAD_REQUEST) @ResponseBody @ExceptionHandler(CartVoucherExpiredException.class) public ErrorListWsDTO handleExceptions(CartVoucherExpiredException exception)
-
generateVoucherExpiredMessage
protected java.lang.String generateVoucherExpiredMessage(java.lang.String voucherCode)
-
validate
protected void validate(java.lang.Object object, java.lang.String objectName, org.springframework.validation.Validator validator)
-
-