public class DefaultCustomerCouponRedemptionStrategy extends java.lang.Object implements CouponRedemptionStrategy<CustomerCouponModel>
| Constructor and Description |
|---|
DefaultCustomerCouponRedemptionStrategy() |
| Modifier and Type | Method and Description |
|---|---|
protected CustomerCouponDao |
getCustomerCouponDao() |
boolean |
isCouponRedeemable(CustomerCouponModel coupon,
UserModel user,
java.lang.String couponCode)
Check the whether coupon meets the conditions required in order to be redeemed.
|
boolean |
isRedeemable(CustomerCouponModel coupon,
AbstractOrderModel abstractOrder,
java.lang.String couponCode)
Check the whether coupon meets the conditions required in order to be redeemed.
|
void |
setCustomerCouponDao(CustomerCouponDao customerCouponDao) |
public DefaultCustomerCouponRedemptionStrategy()
public boolean isRedeemable(CustomerCouponModel coupon, AbstractOrderModel abstractOrder, java.lang.String couponCode)
CouponRedemptionStrategyisRedeemable in interface CouponRedemptionStrategy<CustomerCouponModel>coupon - AbstractCouponModel coupon to redeemabstractOrder - AbstractOrderModel to redeem couponcouponCode - the coupon code to checkpublic boolean isCouponRedeemable(CustomerCouponModel coupon, UserModel user, java.lang.String couponCode)
CouponRedemptionStrategyisCouponRedeemable in interface CouponRedemptionStrategy<CustomerCouponModel>coupon - AbstractCouponModel coupon to redeemuser - UserModel to redeem couponcouponCode - the coupon code to checkprotected CustomerCouponDao getCustomerCouponDao()
public void setCustomerCouponDao(CustomerCouponDao customerCouponDao)
Copyright © 2018 SAP SE. All Rights Reserved.