Class CouponCodesController

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

@Controller @RequestMapping("/couponcodes") public class CouponCodesController extends Object
Coupon codes REST API controller
  • Constructor Details

    • CouponCodesController

      public CouponCodesController()
  • Method Details

    • getGeneratedCouponCodes

      @RequestMapping(value="/{couponId}/{mediaCode}", method=GET, produces="application/json") @ResponseBody public org.springframework.http.ResponseEntity<org.springframework.core.io.InputStreamResource> getGeneratedCouponCodes(@PathVariable("couponId") String couponId, @PathVariable("mediaCode") String mediaCode)
      Request to get generated coupon codes for a multi-code coupon with given couponId and mediaCode corresponding to the code batch
      Parameters:
      couponId - the couponId of the requested coupon
      mediaCode - the identifier of the requested code batch
      Returns:
      Stream of Media data with the requested coupon codes
    • getCouponCodeGenerationWsFacade

      protected CouponCodeGenerationWsFacade getCouponCodeGenerationWsFacade()