Interface FlashBuyDao

    • Method Detail

      • findFlashBuyCouponByPromotionCode

        java.util.Optional<FlashBuyCouponModel> findFlashBuyCouponByPromotionCode​(java.lang.String promotionCode)
        Finds FlashBuyCoupon by given promotion code
        Parameters:
        promotionCode - promotion code
        Returns:
        Optional Optional of FlashBuyCouponModel
      • findPromotionSourceRuleByProduct

        java.util.List<PromotionSourceRuleModel> findPromotionSourceRuleByProduct​(java.lang.String productCode)
        Finds promotion source rule by product
        Parameters:
        productCode - product code
        Returns:
        Promotion souce rule model
      • findProductByPromotion

        java.util.Optional<ProductModel> findProductByPromotion​(AbstractPromotionModel promotion)
        Finds product by given promotion
        Parameters:
        promotion - the given promotion
        Returns:
        Optional Optional of ProductModel
      • findProductForPromotionSourceRules

        java.util.List<ProductForPromotionSourceRuleModel> findProductForPromotionSourceRules​(PromotionSourceRuleModel rule)
        Finds ProductForPromotionRule by given promotion source rule
        Parameters:
        rule - the promotion source rule
        Returns:
        list of ProductForPromotionSourceRuleModel
      • findAllProductsByPromotionSourceRule

        java.util.List<ProductModel> findAllProductsByPromotionSourceRule​(PromotionSourceRuleModel rule)
        Finds all Products by given promotion source rule
        Parameters:
        rule - promotion source rule
        Returns:
        List list of ProductModel
      • findFlashBuyCouponByProduct

        java.util.List<FlashBuyCouponModel> findFlashBuyCouponByProduct​(ProductModel product)
        Finds flash buy coupon by product
        Parameters:
        product - product model
        Returns:
        List list of FlashBuyCouponModel