Interface CouponCodeGenerationWsFacade

All Known Implementing Classes:
DefaultCouponCodeGenerationWsFacade

public interface CouponCodeGenerationWsFacade
Facade for coupon code generation WS
  • Method Details

    • generateCouponCodes

      Optional<MediaModel> generateCouponCodes(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

      Collection<MediaModel> getCouponCodeBatches(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(String couponId, 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