Accrue.Entitlements.Compatibility (accrue v1.5.0)

Copy Markdown View Source

Fail-closed compatibility lane between legacy LocalMap and canonical projection.

Summary

Functions

authority(billable, opts \\ [])

@spec authority(
  term(),
  keyword()
) :: {:ok, module(), map()} | {:error, atom()}

backfill(cursor \\ nil, opts \\ [])

@spec backfill(keyword(), keyword()) :: {:ok, map()} | {:error, atom()}

compare(billable, opts \\ [])

@spec compare(
  term(),
  keyword()
) :: {:ok, map()} | {:error, atom()}

enable(billable, opts \\ [])

@spec enable(
  term(),
  keyword()
) :: :ok | {:error, atom()}

rollback(opts \\ [])

@spec rollback(keyword()) :: :ok

validate_clean_window(window)

@spec validate_clean_window(keyword()) ::
  {:ok, map()} | {:error, :invalid_clean_window}