Skip to content

Commit

Permalink
add is_free to plan
Browse files Browse the repository at this point in the history
  • Loading branch information
aeliox committed Dec 18, 2024
1 parent 782e016 commit 7e140dd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions commerce.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ type CreatePlanParams struct {
Amount int64 `json:"amount"`
IsRecurring bool `json:"is_recurring"`
IsProrated bool `json:"is_prorated"`
IsFree bool `json:"is_free"`
Period string `json:"period"`
Interval int `json:"interval"`
AvatarURL string `json:"avatar_url"`
Expand All @@ -195,6 +196,7 @@ type UpdatePlanParams struct {
IsRecurring *bool `json:"is_recurring,omitempty"`
Description *string `json:"description,omitempty"`
IsProrated *bool `json:"is_prorated,omitempty"`
IsFree bool `json:"is_free"`
Period *string `json:"period,omitempty"`
Interval *int `json:"interval,omitempty"`
AvatarURL *string `json:"avatar_url,omitempty"`
Expand All @@ -213,6 +215,8 @@ type CommercePlan struct {
Amount int64 `json:"amount"`
IsRecurring bool `json:"is_recurring"`
IsProrated bool `json:"is_prorated"`
IsFree bool `json:"is_free"`
IsDefault bool `json:"is_default"`
Period string `json:"period"`
Interval int `json:"interval"`
AvatarURL string `json:"avatar_url"`
Expand Down

0 comments on commit 7e140dd

Please sign in to comment.