Accrue.Entitlements.Grant (accrue v1.5.0)

Copy Markdown View Source

A rail-qualified entitlement grant with retained supersession history.

Summary

Functions

Builds the grant changeset; PostgreSQL chooses the current-row winner.

Types

t()

@type t() :: %Accrue.Entitlements.Grant{
  __meta__: term(),
  account: term(),
  account_id: term(),
  account_revision: term(),
  effective_at: term(),
  environment: term(),
  expires_at: term(),
  id: term(),
  inserted_at: term(),
  logical_plan: term(),
  provider_lineage_id: term(),
  provider_order: term(),
  provider_order_key: term(),
  provider_product_id: term(),
  quantity: term(),
  rail: term(),
  source_item_id: term(),
  source_observation: term(),
  source_observation_id: term(),
  superseded_at: term(),
  updated_at: term()
}

Functions

changeset(grant_or_changeset, attrs \\ %{})

@spec changeset(t() | Ecto.Changeset.t(), map()) :: Ecto.Changeset.t()

Builds the grant changeset; PostgreSQL chooses the current-row winner.