Interface CouponCodeGenerationWsFacade

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.Optional<MediaModel> generateCouponCodes​(java.lang.String couponId, int batchsize)
      Generate batchsize coupon codes
      java.util.Collection<MediaModel> getCouponCodeBatches​(java.lang.String couponId)
      Get the collection of generated coupon codes for a given multi-code coupon
      byte[] getCouponCodes​(java.lang.String couponId, java.lang.String batchCode)
      Get the octet bytes array of generated coupon codes for a given multi-code coupon
    • Method Detail

      • generateCouponCodes

        java.util.Optional<MediaModel> generateCouponCodes​(java.lang.String couponId,
                                                           int batchsize)
        Generate batchsize coupon codes
        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

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

        byte[] getCouponCodes​(java.lang.String couponId,
                              java.lang.String batchCode)
        Get the octet bytes array of generated coupon codes for a given multi-code coupon
        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