A rail-qualified entitlement grant with retained supersession history.
Summary
Functions
Builds the grant changeset; PostgreSQL chooses the current-row winner.
Types
@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
@spec changeset(t() | Ecto.Changeset.t(), map()) :: Ecto.Changeset.t()
Builds the grant changeset; PostgreSQL chooses the current-row winner.