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 Details

    • findCouponForCouponCode

      Optional<AbstractCouponModel> findCouponForCouponCode(String couponCode)
      Find the coupon for the provided couponCode without 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

      Optional<AbstractCouponModel> findValidatedCouponForCouponCode(String couponCode)
      Find the coupon for the provided couponCode with 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.