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

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
@spec last_two_billing_months_usage(Plausible.Auth.User.t(), Date.t()) ::
  {non_neg_integer(), non_neg_integer()}
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