public interface CouponCodesGenerator
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
generateNextCouponCode(MultiCodeCouponModel coupon)
generate next coupon code in the batch
|
java.util.Map<java.lang.Integer,java.lang.Integer> |
getCodeLengthMapping()
returns the ratio of clear-text to cipher-text based on total length of the coupon code.
|
java.lang.String generateNextCouponCode(MultiCodeCouponModel coupon)
coupon - instance of MultiCodeCouponModel to generate coupons forjava.util.Map<java.lang.Integer,java.lang.Integer> getCodeLengthMapping()
key: coupon code length. value: clear-text length. implicit: cipher-text length = (key - value)
Copyright © 2018 SAP SE. All Rights Reserved.