Skip to content

Commit

Permalink
Add name to the Coupon resource
Browse files Browse the repository at this point in the history
  • Loading branch information
remi-stripe committed Jun 16, 2018
1 parent d06235e commit 2a24116
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions coupon.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}
Expand All @@ -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"`
Expand Down

0 comments on commit 2a24116

Please sign in to comment.