Interface FindCouponStrategy

    • Method Detail

      • findCouponForCouponCode

        java.util.Optional<AbstractCouponModel> findCouponForCouponCode​(java.lang.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

        java.util.Optional<AbstractCouponModel> findValidatedCouponForCouponCode​(java.lang.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.