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, 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 CartDeliveryModesController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeliveryModeWsDTOgetCartDeliveryMode(java.lang.String fields)DeliveryModeListWsDTOgetCartDeliveryModes(java.lang.String fields)voidremoveCartDeliveryMode()voidreplaceCartDeliveryMode(java.lang.String deliveryModeId)-
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
-
getCartDeliveryMode
@Secured({"ROLE_CUSTOMERGROUP","ROLE_GUEST","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @GetMapping("/{cartId}/deliverymode") @ResponseBody public DeliveryModeWsDTO getCartDeliveryMode(@RequestParam(defaultValue="DEFAULT") java.lang.String fields)
-
replaceCartDeliveryMode
@Secured({"ROLE_CUSTOMERGROUP","ROLE_GUEST","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @PutMapping("/{cartId}/deliverymode") @ResponseStatus(OK) public void replaceCartDeliveryMode(@RequestParam(required=true) java.lang.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") java.lang.String fields)
-
-