Interface CouponCodeGenerationWsFacade
-
- All Known Implementing Classes:
DefaultCouponCodeGenerationWsFacade
public interface CouponCodeGenerationWsFacadeFacade for coupon code generation WS
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Optional<MediaModel>generateCouponCodes(java.lang.String couponId, int batchsize)Generatebatchsizecoupon codesjava.util.Collection<MediaModel>getCouponCodeBatches(java.lang.String couponId)Get the collection of generated coupon codes for a given multi-code couponbyte[]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)
Generatebatchsizecoupon codes- Parameters:
couponId- Coupon id of the multi-code couponbatchsize- 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 couponbatchCode- The string corresponding to media model code- Returns:
- a collection of Media with generated coupons
-
-