Class CartPromotionsController


  • @Controller
    @RequestMapping("/{baseSiteId}/users/{userId}/carts")
    public class CartPromotionsController
    extends BaseCommerceController
    • Constructor Detail

      • CartPromotionsController

        public CartPromotionsController()
    • Method Detail

      • getCartPromotions

        @Secured({"ROLE_CUSTOMERGROUP","ROLE_CLIENT","ROLE_GUEST","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"})
        @GetMapping("/{cartId}/promotions")
        @ResponseBody
        public PromotionResultListWsDTO getCartPromotions​(@RequestParam(defaultValue="DEFAULT")
                                                          java.lang.String fields)
      • getCartPromotion

        @Secured({"ROLE_CUSTOMERGROUP","ROLE_CLIENT","ROLE_GUEST","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"})
        @GetMapping("/{cartId}/promotions/{promotionId}")
        @ResponseBody
        public PromotionResultListWsDTO getCartPromotion​(@PathVariable
                                                         java.lang.String promotionId,
                                                         @RequestParam(defaultValue="DEFAULT")
                                                         java.lang.String fields)
      • getCartVouchers

        @Secured({"ROLE_CLIENT","ROLE_CUSTOMERGROUP","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT","ROLE_GUEST"})
        @GetMapping("/{cartId}/vouchers")
        @ResponseBody
        public VoucherListWsDTO getCartVouchers​(@RequestParam(defaultValue="DEFAULT")
                                                java.lang.String fields)