Class CartDeliveryModesController
java.lang.Object
de.hybris.platform.ycommercewebservices.v2.controller.BaseController
de.hybris.platform.ycommercewebservices.v2.controller.BaseCommerceController
de.hybris.platform.ycommercewebservices.v2.controller.CartDeliveryModesController
@Controller
@RequestMapping("/{baseSiteId}/users/{userId}/carts")
public class CartDeliveryModesController
extends BaseCommerceController
-
Field Summary
Fields inherited from class de.hybris.platform.ycommercewebservices.v2.controller.BaseCommerceController
API_COMPATIBILITY_B2C_CHANNELS, ENTRYFields 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 -
Method Summary
Modifier and TypeMethodDescriptiongetCartDeliveryMode(String fields) getCartDeliveryModes(String fields) voidvoidreplaceCartDeliveryMode(String deliveryModeId) Methods inherited from class de.hybris.platform.ycommercewebservices.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.ycommercewebservices.v2.controller.BaseController
addPaginationField, getDataMapper, handleDuplicateUidException, handleErrorInternal, handleHttpMessageNotReadableException, handleModelNotFoundException, logParam, logParam, logValue, sanitize, setDataMapper, setTotalCountHeader, setTotalCountHeader, validate
-
Constructor Details
-
CartDeliveryModesController
public CartDeliveryModesController()
-
-
Method Details
-
getCartDeliveryMode
@Secured({"ROLE_CUSTOMERGROUP","ROLE_GUEST","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @GetMapping("/{cartId}/deliverymode") @ResponseBody public DeliveryModeWsDTO getCartDeliveryMode(@RequestParam(defaultValue="DEFAULT") String fields) -
replaceCartDeliveryMode
@Secured({"ROLE_CUSTOMERGROUP","ROLE_GUEST","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @PutMapping("/{cartId}/deliverymode") @ResponseStatus(OK) public void replaceCartDeliveryMode(@RequestParam(required=true) String deliveryModeId) throws UnsupportedDeliveryModeException - Throws:
UnsupportedDeliveryModeException
-
removeCartDeliveryMode
@Secured({"ROLE_CUSTOMERGROUP","ROLE_GUEST","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @DeleteMapping("/{cartId}/deliverymode") @ResponseStatus(OK) public void removeCartDeliveryMode() -
getCartDeliveryModes
@Secured({"ROLE_CUSTOMERGROUP","ROLE_GUEST","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @GetMapping("/{cartId}/deliverymodes") @ResponseBody public DeliveryModeListWsDTO getCartDeliveryModes(@RequestParam(defaultValue="DEFAULT") String fields)
-