Class CartPaymentsController
java.lang.Object
de.hybris.platform.commercewebservices.core.v2.controller.BaseController
de.hybris.platform.commercewebservices.core.v2.controller.BaseCommerceController
de.hybris.platform.commercewebservices.core.v2.controller.CartPaymentsController
@Controller
@RequestMapping("/{baseSiteId}/users/{userId}/carts")
public class CartPaymentsController
extends BaseCommerceController
-
Field Summary
Fields inherited from class de.hybris.platform.commercewebservices.core.v2.controller.BaseCommerceController
API_COMPATIBILITY_B2C_CHANNELS, ENTRYFields inherited from class de.hybris.platform.commercewebservices.core.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 -
Method Summary
Modifier and TypeMethodDescriptioncreateCartPaymentDetails(PaymentDetailsWsDTO paymentDetails, String fields) voidreplaceCartPaymentDetails(String paymentDetailsId) protected voidvalidatePayment(PaymentDetailsWsDTO paymentDetails) Methods inherited from class de.hybris.platform.commercewebservices.core.v2.controller.BaseCommerceController
addPaymentDetailsInternal, applyVoucherForCartInternal, 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, validateStatusesEnumValueMethods inherited from class de.hybris.platform.commercewebservices.core.v2.controller.BaseController
addPaginationField, getDataMapper, handleDuplicateUidException, handleErrorInternal, handleHttpMessageNotReadableException, handleModelNotFoundException, logParam, logParam, logValue, sanitize, setDataMapper, setTotalCountHeader, setTotalCountHeader, validate
-
Constructor Details
-
CartPaymentsController
public CartPaymentsController()
-
-
Method Details
-
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") 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 String paymentDetailsId) throws InvalidPaymentInfoException - Throws:
InvalidPaymentInfoException
-
validatePayment
- Throws:
NoCheckoutCartException
-