Interface FindCouponStrategy
- All Known Implementing Classes:
AbstractFindCouponStrategy,DefaultFindCustomerCouponStrategy,DefaultFindMultiCodeCouponStrategy,DefaultFindSingleCodeCouponStrategy
public interface FindCouponStrategy
The FindCouponStrategy interface provides a simple method to retrieve a coupon based on a given coupon code.
-
Method Summary
Modifier and TypeMethodDescriptionfindCouponForCouponCode(String couponCode) Find the coupon for the providedcouponCodewithout any validaton.findValidatedCouponForCouponCode(String couponCode) Find the coupon for the providedcouponCodewith the validation of the coupon throws CouponServiceException if the coupon Code is not active or not within the date range.
-
Method Details
-
findCouponForCouponCode
Find the coupon for the providedcouponCodewithout any validaton.- Parameters:
couponCode- the coupon code (i.e. as entered in a storefront etc)- Returns:
- AbstractCouponModel if a coupon model is found for the given coupon code.
-
findValidatedCouponForCouponCode
Find the coupon for the providedcouponCodewith the validation of the coupon throws CouponServiceException if the coupon Code is not active or not within the date range.- Parameters:
couponCode- the coupon code (i.e. as entered in a storefront etc)- Returns:
- AbstractCouponModel if a coupon model is found for the given coupon code.
-