coupons: Allow to specify an end date, course_id and max nb uses