Skip to content

Commit

Permalink
Merge pull request #137 from getlago/subscription-plan
Browse files Browse the repository at this point in the history
feat(plan-override): Add plan to subscription response
  • Loading branch information
rsempe authored Oct 26, 2023
2 parents 1a06e5a + a8ba8de commit 9f1e4a5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions subscription.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ type Subscription struct {
NextPlanCode string `json:"next_plan_code"`
DowngradePlanDate string `json:"downgrade_plan_date"`

Plan *Plan `json:"plan,omitempty"`

CreatedAt *time.Time `json:"created_at"`
StartedAt *time.Time `json:"started_at"`
CanceledAt *time.Time `json:"canceled_at"`
Expand Down

0 comments on commit 9f1e4a5

Please sign in to comment.