ExFattureincloud.Usage.Quota (ExFattureincloud v0.1.0)

Copy Markdown View Source

A plan quota reported by the provider. Unknown/null values stay unknown.

Summary

Functions

Whether the quota has room for count new resources. Does not reserve capacity.

Types

t()

@type t() :: %ExFattureincloud.Usage.Quota{
  api_rate_limit: ExFattureincloud.RateLimit.t(),
  category: String.t(),
  checked_at: DateTime.t(),
  limit: number() | nil,
  period: :annual | :global,
  remaining: number() | :unknown,
  used: number() | nil
}

Functions

available?(quota, count \\ 1)

@spec available?(t(), pos_integer()) :: boolean() | :unknown

Whether the quota has room for count new resources. Does not reserve capacity.