View Source Plausible.Billing.Plans (Plausible v0.0.1)

Link to this section Summary

Link to this section Types

@type plan() ::
  %{
    limit: non_neg_integer(),
    monthly_product_id: String.t(),
    yearly_product_id: String.t(),
    monthly_cost: String.t(),
    yearly_cost: String.t()
  }
  | :enterprise

Link to this section Functions

Link to this function

for_product_id(product_id)

View Source
Link to this function

subscription_interval(subscription)

View Source
Link to this function

suggested_plan(user, usage_during_cycle)

View Source
@spec suggested_plan(Plausible.Auth.User.t(), non_neg_integer()) :: plan()