Class CouponservicesV2Controller

java.lang.Object
de.hybris.platform.couponwebservices.controllers.CouponservicesV2Controller

@Controller @RequestMapping("/couponservices/v2") public class CouponservicesV2Controller extends Object
Coupon services controller with 2nd API version
  • Field Details

  • Constructor Details

    • CouponservicesV2Controller

      public CouponservicesV2Controller()
  • Method Details

    • getSingleCodeCoupons

      @GetMapping(value="/singlecodecoupon/list", produces="application/json") @ResponseBody public SingleCodeCouponsSearchPageWsDTO getSingleCodeCoupons(@RequestParam(required=false,defaultValue="DEFAULT") String fields, @RequestParam(required=false,defaultValue="0") int currentPage, @RequestParam(required=false,defaultValue="100") int pageSize, @RequestParam(required=false,defaultValue="name:asc") 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

      @GetMapping(value="/multicodecoupon/list", produces="application/json") @ResponseBody public MultiCodeCouponsSearchPageWsDTO getMultiCodeCoupons(@RequestParam(required=false,defaultValue="DEFAULT") String fields, @RequestParam(required=false,defaultValue="0") int currentPage, @RequestParam(required=false,defaultValue="100") int pageSize, @RequestParam(required=false,defaultValue="name:asc") 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

      @GetMapping(value="/codegenerationconfiguration/list", produces={"application/json","application/xml"}) @ResponseBody public CodeGenerationConfigurationsSearchPageWsDTO getCodeGenerationConfigurations(@RequestParam(required=false,defaultValue="DEFAULT") String fields, @RequestParam(required=false,defaultValue="0") int currentPage, @RequestParam(required=false,defaultValue="100") int pageSize, @RequestParam(required=false,defaultValue="name:asc") 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()
    • getSingleCodeCouponWsFacades

      protected CouponWsFacades<SingleCodeCouponWsDTO> getSingleCodeCouponWsFacades()
    • getMultiCodeCouponWsFacades

      protected CouponWsFacades<MultiCodeCouponWsDTO> getMultiCodeCouponWsFacades()
    • getWebPaginationUtils

      protected WebPaginationUtils getWebPaginationUtils()
    • getCodeGenerationConfigurationWsFacade

      protected CodeGenerationConfigurationWsFacade getCodeGenerationConfigurationWsFacade()