Interface CustomerCouponDao

All Known Implementing Classes:
DefaultCustomerCouponDao

public interface CustomerCouponDao
Looks up items related to customer coupon
  • Method Details

    • findCustomerCouponsByCustomer

      SearchPageData<CustomerCouponModel> findCustomerCouponsByCustomer(CustomerModel customer, PageableData pageableData)
      Finds paginated customer coupons
      Parameters:
      customer - the customer model
      pageableData - the data used for pagination
      Returns:
      the list of paginated CustomerCouponModel
    • findPromotionSourceRuleByCode

      Optional<PromotionSourceRuleModel> findPromotionSourceRuleByCode(String code)
      Finds promotion source rules by rule code
      Parameters:
      code - the rule code
      Returns:
      the optional of PromotionSourceRuleModel
    • findPromotionSourceRuleByProduct

      List<PromotionSourceRuleModel> findPromotionSourceRuleByProduct(String productCode)
      Finds promotion source rules by product code
      Parameters:
      productCode - the product code
      Returns:
      the list of PromotionSourceRuleModel
    • findExclPromotionSourceRuleByProduct

      List<PromotionSourceRuleModel> findExclPromotionSourceRuleByProduct(String productCode)
      Finds excluded promotion source rules by product code
      Parameters:
      productCode - the product code
      Returns:
      the list of PromotionSourceRuleModel
    • findPromotionSourceRuleByCategory

      List<PromotionSourceRuleModel> findPromotionSourceRuleByCategory(String categoryCode)
      Finds promotion source rules by category
      Parameters:
      categoryCode - the category code
      Returns:
      the list of PromotionSourceRuleModel
    • findExclPromotionSourceRuleByCategory

      List<PromotionSourceRuleModel> findExclPromotionSourceRuleByCategory(String categoryCode)
      Finds excluded promotion source rules by category
      Parameters:
      categoryCode - the category code
      Returns:
      the list of PromotionSourceRuleModel
    • findCustomerCouponByPromotionSourceRule

      List<CustomerCouponModel> findCustomerCouponByPromotionSourceRule(String code)
      Finds customer coupons by promotion source rule
      Parameters:
      code - the promotion source rule code
      Returns:
      the list of CustomerCouponModel
    • findProductForPromotionSourceRuleByPromotion

      List<ProductForPromotionSourceRuleModel> findProductForPromotionSourceRuleByPromotion(String code)
      Finds product for promotion source rules by code
      Parameters:
      code - the promotion source rule code
      Returns:
      the list of ProductForPromotionSourceRuleModel
    • findCategoryForPromotionSourceRuleByPromotion

      List<CatForPromotionSourceRuleModel> findCategoryForPromotionSourceRuleByPromotion(String code)
      Finds category for promotion source rules by promotion source rule
      Parameters:
      code - the promotion source rule code
      Returns:
      the list of CatForPromotionSourceRuleModel
    • findEffectiveCustomerCouponsByCustomer

      List<CustomerCouponModel> findEffectiveCustomerCouponsByCustomer(CustomerModel customer)
      Finds customer coupons for the customer
      Parameters:
      customer - the customer model
      Returns:
      the list of CustomerCouponModel
    • checkCustomerCouponAvailableForCustomer

      boolean checkCustomerCouponAvailableForCustomer(String couponCode, CustomerModel customer)
      Checks if the customer coupon is available for the customer
      Parameters:
      couponCode - the coupon code
      customer - the customer model
      Returns:
      true if the coupon is available for the customer and false otherwise
    • countAssignedCouponForCustomer

      int countAssignedCouponForCustomer(String couponCode, CustomerModel customer)
      Counts the assigned customer coupons for the customer by coupon code
      Parameters:
      couponCode - the coupon code
      customer - the customer model
      Returns:
      the total number of assigned coupons
    • findAssignableCoupons

      List<CustomerCouponModel> findAssignableCoupons(CustomerModel customer, String text)
      Finds assignable customer coupons for the customer by search text
      Parameters:
      customer - the customer model
      text - the text used for searching assignable customer coupons
      Returns:
      the list of CustomerCouponModel
    • findAssignedCouponsByCustomer

      List<CustomerCouponModel> findAssignedCouponsByCustomer(CustomerModel customer, String text)
      Finds assigned customer coupons by the customer and search text
      Parameters:
      customer - the customer model
      text - the text used for searching assigned customer coupons
      Returns:
      the list of CustomerCouponModel
    • findPaginatedCouponsByCustomer

      SearchPageData<CustomerCouponModel> findPaginatedCouponsByCustomer(CustomerModel customer, SearchPageData searchPageData)
      Finds paginated customer coupons by the customer and searchPageData
      Parameters:
      customer - the customer model
      searchPageData - the data used for pagination
      Returns:
      the paginated CustomerCouponModel