updated get coupon api bycreating new coupon class