Class CartAddressesController
java.lang.Object
de.hybris.platform.ycommercewebservices.v2.controller.BaseController
de.hybris.platform.ycommercewebservices.v2.controller.BaseCommerceController
de.hybris.platform.ycommercewebservices.v2.controller.CartAddressesController
@Controller
@RequestMapping("/{baseSiteId}/users/{userId}/carts")
public class CartAddressesController
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 TypeMethodDescriptioncreateCartDeliveryAddress(AddressWsDTO address, String fields) voidvoidreplaceCartDeliveryAddress(String addressId) 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
-
CartAddressesController
public CartAddressesController()
-
-
Method Details
-
createCartDeliveryAddress
@Secured({"ROLE_CUSTOMERGROUP","ROLE_CUSTOMERMANAGERGROUP","ROLE_GUEST","ROLE_TRUSTED_CLIENT"}) @PostMapping(value="/{cartId}/addresses/delivery", consumes={"application/json","application/xml"}) @ResponseStatus(CREATED) @ResponseBody public AddressWsDTO createCartDeliveryAddress(@RequestBody AddressWsDTO address, @RequestParam(defaultValue="DEFAULT") String fields) -
replaceCartDeliveryAddress
@Secured({"ROLE_CUSTOMERGROUP","ROLE_GUEST","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @PutMapping("/{cartId}/addresses/delivery") @ResponseStatus(OK) @SiteChannelRestriction(allowedSiteChannelsProperty="api.compatibility.b2c.channels") public void replaceCartDeliveryAddress(@RequestParam String addressId) -
removeCartDeliveryAddress
@Secured({"ROLE_CUSTOMERGROUP","ROLE_GUEST","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @DeleteMapping("/{cartId}/addresses/delivery") @ResponseStatus(OK) public void removeCartDeliveryAddress()
-