View Source Plausible.Billing (Plausible v0.0.1)

Link to this section Summary

Link to this section 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

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

has_active_subscription?(user_id)

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

last_two_billing_cycles(user, today \\ Timex.today())

View Source
Link to this function

last_two_billing_months_usage(user, today \\ Timex.today())

View Source

Returns the number of sites that an account is allowed to have. Accounts for grandfathering old accounts to unlimited websites and ignores site limit on self-hosted installations.

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