Fix typos and missing type annotations in coupon_codes