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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCodeGenerationConfigurations(String fields, int currentPage, int pageSize, String sort) Request to get all code generation configuration registered in the systemprotected CodeGenerationConfigurationWsFacadeprotected DataMappergetMultiCodeCoupons(String fields, int currentPage, int pageSize, String sort) Request to get all multi-code coupons registered in the systemprotected CouponWsFacades<MultiCodeCouponWsDTO>getSingleCodeCoupons(String fields, int currentPage, int pageSize, String sort) Request to get all single-code coupons registered in the systemprotected CouponWsFacades<SingleCodeCouponWsDTO>protected WebPaginationUtils
-
Field Details
-
DEFAULT_FIELD_SET
- See Also:
-
DEFAULT_CURRENT_PAGE
- See Also:
-
DEFAULT_PAGE_SIZE
- See Also:
-
DEFAULT_SORT
- See Also:
-
-
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 BASICcurrentPage- number of the current pagepageSize- number of items in a pagesort- 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 BASICcurrentPage- number of the current pagepageSize- number of items in a pagesort- 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 BASICcurrentPage- number of the current pagepageSize- number of items in a pagesort- sorting the results ascending or descending- Returns:
- the list of code generation configuration
-
getDataMapper
-
getSingleCodeCouponWsFacades
-
getMultiCodeCouponWsFacades
-
getWebPaginationUtils
-
getCodeGenerationConfigurationWsFacade
-