adding generate_coupon method to the ruby api