Improved method to get coupons now with timeRanges and validDays