Class DefaultCustomerCouponRedemptionStrategy
java.lang.Object
de.hybris.platform.customercouponservices.redemption.strategies.impl.DefaultCustomerCouponRedemptionStrategy
- All Implemented Interfaces:
CouponRedemptionStrategy<CustomerCouponModel>
public class DefaultCustomerCouponRedemptionStrategy
extends Object
implements CouponRedemptionStrategy<CustomerCouponModel>
Checks if customer coupon is redeemable when placing an order
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CustomerCouponDaobooleanisCouponRedeemable(CustomerCouponModel coupon, UserModel user, String couponCode) Check the whether coupon meets the conditions required in order to be redeemed.booleanisRedeemable(CustomerCouponModel coupon, AbstractOrderModel abstractOrder, String couponCode) Check the whether coupon meets the conditions required in order to be redeemed.voidsetCustomerCouponDao(CustomerCouponDao customerCouponDao)
-
Constructor Details
-
DefaultCustomerCouponRedemptionStrategy
public DefaultCustomerCouponRedemptionStrategy()
-
-
Method Details
-
isRedeemable
public boolean isRedeemable(CustomerCouponModel coupon, AbstractOrderModel abstractOrder, 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
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
-
setCustomerCouponDao
-