View Source Plausible.Billing (Plausible v0.0.1)

Summary

Functions

Link to this function

active_subscription_for(user_id)

View Source
@spec active_subscription_for(integer()) :: 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
Link to this function

has_active_subscription?(user_id)

View Source
@spec has_active_subscription?(integer()) :: boolean()
Link to this function

subscription_cancelled(params)

View Source
Link to this function

subscription_created(params)

View Source
Link to this function

subscription_is_active?(subscription)

View Source
Link to this function

subscription_payment_succeeded(params)

View Source
Link to this function

subscription_updated(params)

View Source