Interface CouponCodeGenerationWsFacade
- All Known Implementing Classes:
DefaultCouponCodeGenerationWsFacade
public interface CouponCodeGenerationWsFacade
Facade for coupon code generation WS
-
Method Summary
Modifier and TypeMethodDescriptiongenerateCouponCodes(String couponId, int batchsize) Generatebatchsizecoupon codesgetCouponCodeBatches(String couponId) Get the collection of generated coupon codes for a given multi-code couponbyte[]getCouponCodes(String couponId, String batchCode) Get the octet bytes array of generated coupon codes for a given multi-code coupon
-
Method Details
-
generateCouponCodes
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
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
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
-