public interface CouponCodeClearTextGenerationStrategy
| Modifier and Type | Method and Description |
|---|---|
String |
generateClearText(MultiCodeCouponModel coupon,
int length)
returns the generated clear-text part of the coupon code with the given length
|
long |
getCouponCodeNumberForClearText(MultiCodeCouponModel coupon,
String clearText)
returns the original coupon code number the given clearText was based on.
|
String generateClearText(MultiCodeCouponModel coupon, int length) throws CouponCodeGenerationException
CouponCodeGenerationExceptionlong getCouponCodeNumberForClearText(MultiCodeCouponModel coupon, String clearText)
generateClearText(MultiCodeCouponModel, int) method)SystemException - if the coupon code number cannot be computed (e.g. if the clearText contains characters not in the
coupon's alphabet)Copyright © 2017 SAP SE. All Rights Reserved.