Class DefaultCustomerCouponRedemptionStrategy
- java.lang.Object
-
- de.hybris.platform.customercouponservices.redemption.strategies.impl.DefaultCustomerCouponRedemptionStrategy
-
- All Implemented Interfaces:
CouponRedemptionStrategy<CustomerCouponModel>
public class DefaultCustomerCouponRedemptionStrategy extends java.lang.Object implements CouponRedemptionStrategy<CustomerCouponModel>
Checks if customer coupon is redeemable when placing an order
-
-
Constructor Summary
Constructors Constructor Description DefaultCustomerCouponRedemptionStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CustomerCouponDaogetCustomerCouponDao()booleanisCouponRedeemable(CustomerCouponModel coupon, UserModel user, java.lang.String couponCode)Check the whether coupon meets the conditions required in order to be redeemed.booleanisRedeemable(CustomerCouponModel coupon, AbstractOrderModel abstractOrder, java.lang.String couponCode)Check the whether coupon meets the conditions required in order to be redeemed.voidsetCustomerCouponDao(CustomerCouponDao customerCouponDao)
-
-
-
Method Detail
-
isRedeemable
public boolean isRedeemable(CustomerCouponModel coupon, AbstractOrderModel abstractOrder, java.lang.String couponCode)
Description copied from interface:CouponRedemptionStrategyCheck the whether coupon meets the conditions required in order to be redeemed.- Specified by:
isRedeemablein interfaceCouponRedemptionStrategy<CustomerCouponModel>- Parameters:
coupon-AbstractCouponModelcoupon to redeemabstractOrder-AbstractOrderModelto redeem couponcouponCode- the coupon code to check- Returns:
- boolean true if coupon could be redeem at cart/order or false if it cannot be redeemed.
-
isCouponRedeemable
public boolean isCouponRedeemable(CustomerCouponModel coupon, UserModel user, java.lang.String couponCode)
Description copied from interface:CouponRedemptionStrategyCheck the whether coupon meets the conditions required in order to be redeemed.- Specified by:
isCouponRedeemablein interfaceCouponRedemptionStrategy<CustomerCouponModel>- Parameters:
coupon-AbstractCouponModelcoupon to redeemuser-UserModelto redeem couponcouponCode- the coupon code to check- Returns:
- boolean true if coupon could be redeem at cart/order or false if it cannot be redeemed.
-
getCustomerCouponDao
protected CustomerCouponDao getCustomerCouponDao()
-
setCustomerCouponDao
public void setCustomerCouponDao(CustomerCouponDao customerCouponDao)
-
-