Class CartDeliveryModesController


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