public class CouponWsUtils extends Object
| Constructor and Description |
|---|
CouponWsUtils() |
| Modifier and Type | Method and Description |
|---|---|
void |
assertValidMultiCodeCoupon(AbstractCouponModel couponModel,
String couponId)
Given the couponModel and couponId string, checks for instance of MultiCode Coupon, otherwise throws exception
|
void |
assertValidSingleCodeCoupon(AbstractCouponModel couponModel,
String couponId)
Given the couponModel and couponId string, checks for instance of SingleCode Coupon, otherwise throws exception
|
AbstractCouponModel |
getCouponById(String couponId)
Given the couponId string, checks for instance of Coupon, otherwise throws exception
|
protected CouponDao |
getCouponDao() |
Function<Date,String> |
getDateToStringMapper()
|
Function<String,Date> |
getStringToDateMapper()
|
MultiCodeCouponModel |
getValidMultiCodeCoupon(String couponId)
Given the couponId string, checks for instance of MultiCode Coupon, otherwise throws exception
|
void |
setCouponDao(CouponDao couponDao) |
public void assertValidSingleCodeCoupon(AbstractCouponModel couponModel, String couponId)
couponModel - couponId - public void assertValidMultiCodeCoupon(AbstractCouponModel couponModel, String couponId)
couponModel - couponId - public MultiCodeCouponModel getValidMultiCodeCoupon(String couponId)
couponId - a string to be used to find MultiCode couponpublic AbstractCouponModel getCouponById(String couponId)
couponId - a string to be used to find Couponprotected CouponDao getCouponDao()
public void setCouponDao(CouponDao couponDao)
Copyright © 2017 SAP SE. All Rights Reserved.