Class CartPaymentsController
- java.lang.Object
-
- de.hybris.platform.ycommercewebservices.v2.controller.BaseController
-
- de.hybris.platform.ycommercewebservices.v2.controller.BaseCommerceController
-
- de.hybris.platform.ycommercewebservices.v2.controller.CartPaymentsController
-
@Controller @RequestMapping("/{baseSiteId}/users/{userId}/carts") public class CartPaymentsController extends BaseCommerceController
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.ycommercewebservices.v2.controller.BaseCommerceController
API_COMPATIBILITY_B2C_CHANNELS, ENTRY
-
Fields inherited from class de.hybris.platform.ycommercewebservices.v2.controller.BaseController
BASIC_FIELD_SET, DEFAULT_CURRENT_PAGE, DEFAULT_FIELD_SET, DEFAULT_PAGE_SIZE, HEADER_TOTAL_COUNT, INVALID_REQUEST_BODY_ERROR_MESSAGE
-
-
Constructor Summary
Constructors Constructor Description CartPaymentsController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PaymentDetailsWsDTOcreateCartPaymentDetails(PaymentDetailsWsDTO paymentDetails, java.lang.String fields)voidreplaceCartPaymentDetails(java.lang.String paymentDetailsId)protected voidvalidatePayment(PaymentDetailsWsDTO paymentDetails)-
Methods inherited from class de.hybris.platform.ycommercewebservices.v2.controller.BaseCommerceController
addPaymentDetailsInternal, applyVoucherForCartInternal, createAddressInternal, createAddressInternal, getAddressDTOValidator, getAddressValidator, getCartFacade, getCartVoucherValidator, getCcPaymentInfoValidator, getCheckoutFacade, getDeliveryAddressValidator, getHttpRequestAddressDataPopulator, getHttpRequestPaymentInfoPopulator, getPaymentDetailsDTOValidator, getSessionCart, getUserFacade, getVoucherFacade, setAddressDTOValidator, setAddressValidator, setCartDeliveryAddressInternal, setCartDeliveryModeInternal, setCartFacade, setCcPaymentInfoValidator, setCheckoutFacade, setDeliveryAddressValidator, setHttpRequestAddressDataPopulator, setHttpRequestPaymentInfoPopulator, setPaymentDetailsDTOValidator, setPaymentDetailsInternal, setUserFacade, setVoucherFacade, validateCartForPlaceOrder, validateStatusesEnumValue
-
Methods inherited from class de.hybris.platform.ycommercewebservices.v2.controller.BaseController
addPaginationField, getDataMapper, handleDuplicateUidException, handleErrorInternal, handleHttpMessageNotReadableException, handleModelNotFoundException, logParam, logParam, logValue, sanitize, setDataMapper, setTotalCountHeader, setTotalCountHeader, validate
-
-
-
-
Method Detail
-
createCartPaymentDetails
@Secured({"ROLE_CUSTOMERGROUP","ROLE_GUEST","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @PostMapping(value="/{cartId}/paymentdetails", consumes={"application/json","application/xml"}) @ResponseStatus(CREATED) @ResponseBody public PaymentDetailsWsDTO createCartPaymentDetails(@RequestBody PaymentDetailsWsDTO paymentDetails, @RequestParam(defaultValue="DEFAULT") java.lang.String fields) throws InvalidPaymentInfoException, NoCheckoutCartException, UnsupportedRequestException
-
replaceCartPaymentDetails
@Secured({"ROLE_CUSTOMERGROUP","ROLE_GUEST","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @PutMapping("/{cartId}/paymentdetails") @ResponseStatus(OK) public void replaceCartPaymentDetails(@RequestParam java.lang.String paymentDetailsId) throws InvalidPaymentInfoException- Throws:
InvalidPaymentInfoException
-
validatePayment
protected void validatePayment(PaymentDetailsWsDTO paymentDetails) throws NoCheckoutCartException
- Throws:
NoCheckoutCartException
-
-