Money.Subscription.current_interval_start_date
You're seeing just the function
current_interval_start_date
, go back to Money.Subscription module for more information.
Link to this function
current_interval_start_date(subscription_or_changeset, options \\ [])
View SourceSpecs
current_interval_start_date( t() | {Money.Subscription.Change.t(), Money.Subscription.Plan.t()} | map(), Keyword.t() ) :: Date.t()
Returns the first date of the current interval of a plan.
Arguments
:subscription_or_changeset
is anyMoney.Subscription.t
or a{Change.t, Plan.t}
tuple:options
is a keyword list of options
Options
:today
is aDate.t
that represents today. The default isDate.utc_today
Returns
- The
Date.t
that is the first date of the current interval