View Source Plausible.Billing (Plausible v0.0.1)

Summary

Functions

Link to this function

active_subscription_for(user)

View Source
@spec active_subscription_for(Plausible.Auth.User.t()) ::
  Plausible.Billing.Subscription.t() | nil
Link to this function

cancelled_subscription_notice_dismiss_id(user)

View Source
Link to this function

change_plan(user, new_plan_id)

View Source
Link to this function

change_plan_preview(subscription, new_plan_id)

View Source
Link to this function

check_needs_to_upgrade(user)

View Source
@spec check_needs_to_upgrade(Plausible.Auth.User.t()) ::
  {:needs_to_upgrade, :no_trial | :no_active_subscription | :grace_period_ended}
  | :no_upgrade_needed
@spec format_price(Money.t()) :: String.t()
Link to this function

has_active_subscription?(user)

View Source
@spec has_active_subscription?(Plausible.Auth.User.t()) :: boolean()
Link to this function

subscription_cancelled(params)

View Source
Link to this function

subscription_created(params)

View Source
Link to this function

subscription_payment_succeeded(params)

View Source
Link to this function

subscription_updated(params)

View Source