Money.Subscription.current_plan

You're seeing just the function current_plan, go back to Money.Subscription module for more information.
Link to this function

current_plan(subscription, options \\ [])

View Source

Specs

current_plan(t() | map(), Keyword.t()) :: Money.Subscription.Plan.t() | nil

Retrieve the plan that is currently in affect.

The plan in affect is not necessarily the first plan in the list. We may have upgraded plans to be in affect at some later time.

Arguments

  • subscription is a Money.Subscription.t or any map that provides the field :plans

Returns

  • The Money.Subscription.Plan.t that is the plan currently in affect or nil