Class DefaultCouponCodeGenerationWsFacade

    • Constructor Detail

      • DefaultCouponCodeGenerationWsFacade

        public DefaultCouponCodeGenerationWsFacade()
    • Method Detail

      • generateCouponCodes

        public java.util.Optional<MediaModel> generateCouponCodes​(java.lang.String couponId,
                                                                  int batchsize)
        Description copied from interface: CouponCodeGenerationWsFacade
        Generate batchsize coupon codes
        Specified by:
        generateCouponCodes in interface CouponCodeGenerationWsFacade
        Parameters:
        couponId - Coupon id of the multi-code coupon
        batchsize - the size of the generated coupon batch
        Returns:
        The (optional) reference to MediaModel instance with generated coupons
      • getCouponCodeBatches

        public java.util.Collection<MediaModel> getCouponCodeBatches​(java.lang.String couponId)
        Description copied from interface: CouponCodeGenerationWsFacade
        Get the collection of generated coupon codes for a given multi-code coupon
        Specified by:
        getCouponCodeBatches in interface CouponCodeGenerationWsFacade
        Parameters:
        couponId - Coupon id of the multi-code coupon
        Returns:
        a collection of Media with generated coupons
      • getCouponCodes

        public byte[] getCouponCodes​(java.lang.String couponId,
                                     java.lang.String batchCode)
        Description copied from interface: CouponCodeGenerationWsFacade
        Get the octet bytes array of generated coupon codes for a given multi-code coupon
        Specified by:
        getCouponCodes in interface CouponCodeGenerationWsFacade
        Parameters:
        couponId - Coupon id of the multi-code coupon
        batchCode - The string corresponding to media model code
        Returns:
        a collection of Media with generated coupons
      • setCouponCodeGenerationService

        public void setCouponCodeGenerationService​(CouponCodeGenerationService couponCodeGenerationService)
      • getCouponDao

        protected CouponDao getCouponDao()
      • setCouponDao

        public void setCouponDao​(CouponDao couponDao)
      • getMediaService

        protected MediaService getMediaService()
      • setMediaService

        public void setMediaService​(MediaService mediaService)
      • setCouponWsUtils

        public void setCouponWsUtils​(CouponWsUtils couponWsUtils)