Skip to content

Commit

Permalink
Merge pull request #572 from stripe/remi-add-plan-active
Browse files Browse the repository at this point in the history
Add active to the Plan resource
  • Loading branch information
brandur-stripe authored Jun 6, 2018
2 parents 1dfa4f0 + 6fa8990 commit a485d70
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plan.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ const (
// Plan is the resource representing a Stripe plan.
// For more details see https://stripe.com/docs/api#plans.
type Plan struct {
Active bool `json:"active"`
AggregateUsage string `json:"aggregate_usage"`
Amount int64 `json:"amount"`
BillingScheme PlanBillingScheme `json:"billing_scheme"`
Expand Down Expand Up @@ -91,6 +92,7 @@ type PlanList struct {
// For more details see https://stripe.com/docs/api#list_plans.
type PlanListParams struct {
ListParams `form:"*"`
Active *bool `form:"active"`
Created *int64 `form:"created"`
CreatedRange *RangeQueryParams `form:"created"`
}
Expand All @@ -99,6 +101,7 @@ type PlanListParams struct {
// For more details see https://stripe.com/docs/api#create_plan and https://stripe.com/docs/api#update_plan.
type PlanParams struct {
Params `form:"*"`
Active *bool `form:"active"`
AggregateUsage *string `form:"aggregate_usage"`
Amount *int64 `form:"amount"`
BillingScheme *string `form:"billing_scheme"`
Expand Down

0 comments on commit a485d70

Please sign in to comment.