Money.Subscription.plan_pending-question-mark

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

plan_pending?(map, options \\ [])

View Source

Specs

plan_pending?(t(), Keyword.t()) :: boolean()

Returns a boolean indicating if there is a pending plan.

A pending plan is one where the subscription has changed plans but the plan is not yet in effect. There can only be one pending plan.

Arguments

  • :subscription is any Money.Subscription.t

  • :options is a keyword list of options

Options

  • :today is a Date.t that represents the effective date used to determine is there is a pending plan. The default is Date.utc_today/1.

Returns

  • Either true or false