Class CouponservicesV2Controller


  • @Controller
    @RequestMapping("/couponservices/v2")
    public class CouponservicesV2Controller
    extends java.lang.Object
    Coupon services controller with 2nd API version
    • Constructor Detail

      • CouponservicesV2Controller

        public CouponservicesV2Controller()
    • Method Detail

      • getSingleCodeCoupons

        @RequestMapping(value="/singlecodecoupon/list",
                        method=GET)
        @ResponseBody
        public SingleCodeCouponsSearchPageWsDTO getSingleCodeCoupons​(@RequestParam(required=false,defaultValue="DEFAULT")
                                                                     java.lang.String fields,
                                                                     @RequestParam(required=false,defaultValue="0")
                                                                     int currentPage,
                                                                     @RequestParam(required=false,defaultValue="100")
                                                                     int pageSize,
                                                                     @RequestParam(required=false,defaultValue="name:asc")
                                                                     java.lang.String sort)
        Request to get all single-code coupons registered in the system
        Parameters:
        fields - defaulted to DEFAULT but can be FULL or BASIC
        currentPage - number of the current page
        pageSize - number of items in a page
        sort - sorting the results fields and sorting strategy
        Returns:
        the list of single-code coupons
      • getMultiCodeCoupons

        @RequestMapping(value="/multicodecoupon/list",
                        method=GET)
        @ResponseBody
        public MultiCodeCouponsSearchPageWsDTO getMultiCodeCoupons​(@RequestParam(required=false,defaultValue="DEFAULT")
                                                                   java.lang.String fields,
                                                                   @RequestParam(required=false,defaultValue="0")
                                                                   int currentPage,
                                                                   @RequestParam(required=false,defaultValue="100")
                                                                   int pageSize,
                                                                   @RequestParam(required=false,defaultValue="name:asc")
                                                                   java.lang.String sort)
        Request to get all multi-code coupons registered in the system
        Parameters:
        fields - defaulted to DEFAULT but can be FULL or BASIC
        currentPage - number of the current page
        pageSize - number of items in a page
        sort - sorting the results ascending or descending
        Returns:
        the list of multi-code coupons
      • getCodeGenerationConfigurations

        @RequestMapping(value="/codegenerationconfiguration/list",
                        method=GET)
        @ResponseBody
        public CodeGenerationConfigurationsSearchPageWsDTO getCodeGenerationConfigurations​(@RequestParam(required=false,defaultValue="DEFAULT")
                                                                                           java.lang.String fields,
                                                                                           @RequestParam(required=false,defaultValue="0")
                                                                                           int currentPage,
                                                                                           @RequestParam(required=false,defaultValue="100")
                                                                                           int pageSize,
                                                                                           @RequestParam(required=false,defaultValue="name:asc")
                                                                                           java.lang.String sort)
        Request to get all code generation configuration registered in the system
        Parameters:
        fields - defaulted to DEFAULT but can be FULL or BASIC
        currentPage - number of the current page
        pageSize - number of items in a page
        sort - sorting the results ascending or descending
        Returns:
        the list of code generation configuration
      • getDataMapper

        protected DataMapper getDataMapper()