Class CartAddressesController


@Controller @RequestMapping("/{baseSiteId}/users/{userId}/carts") public class CartAddressesController extends BaseCommerceController
  • 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()