Interface MyCouponBORepository

All Superinterfaces:
com.intershop.beehive.businessobject.capi.BusinessObjectRepository

public interface MyCouponBORepository extends com.intershop.beehive.businessobject.capi.BusinessObjectRepository
Repository for MyCouponBO.
  • Field Details

  • Method Details

    • createMyCouponBOByEmail

      MyCouponBO createMyCouponBOByEmail(String email)
      Creates a coupon by the given email if the email has already an active coupon, the active coupon will be returned.
      Parameters:
      email - - the email for the coupon
      Returns:
      a new MyCouponBO for the given email
    • countMyCouponsByEmail

      int countMyCouponsByEmail(String email)
      Counts all MyCouponBOs for the given email.
      Returns:
      the count of all MyCouponBO for a single email
    • getMyCouponBOByCode

      MyCouponBO getMyCouponBOByCode(String couponCode)
      Gets a MyCouponBO by a coupon code
      Parameters:
      couponCode - - the coupon code
      Returns:
      the MyCouponBO
    • getMyCouponBOByEmail

      Collection<MyCouponBO> getMyCouponBOByEmail(String email)
      Gets a MyCouponBO by a email
      Parameters:
      couponCode - - the coupon code
      Returns:
      list of MyCouponBO
    • getAllCouponBOs

      Collection<MyCouponBO> getAllCouponBOs()
      Generates a coupon code
      Returns:
      the generated coupon code