From 2a24116cd8996bce5d701cec864165dac38838af Mon Sep 17 00:00:00 2001 From: Remi Jannel Date: Sat, 16 Jun 2018 14:07:28 -0700 Subject: [PATCH] Add name to the Coupon resource --- coupon.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/coupon.go b/coupon.go index 4e7ea50a26..cb8690bf15 100644 --- a/coupon.go +++ b/coupon.go @@ -21,6 +21,7 @@ type CouponParams struct { DurationInMonths *int64 `form:"duration_in_months"` ID *string `form:"id"` MaxRedemptions *int64 `form:"max_redemptions"` + Name *string `form:"name"` PercentOff *int64 `form:"percent_off"` RedeemBy *int64 `form:"redeem_by"` } @@ -46,6 +47,7 @@ type Coupon struct { Livemode bool `json:"livemode"` MaxRedemptions int64 `json:"max_redemptions"` Metadata map[string]string `json:"metadata"` + Name string `json:"name"` PercentOff int64 `json:"percent_off"` RedeemBy int64 `json:"redeem_by"` TimesRedeemed int64 `json:"times_redeemed"`