# `AccessGrid.LedgerItem.AccessPass`
[🔗](https://github.com/Access-Grid/accessgrid-ex/blob/main/lib/access_grid/ledger_item.ex#L53)

Narrow access-pass representation embedded in `AccessGrid.LedgerItem`. Returned
with just enough fields to identify the pass behind a ledger line; for the full
access-pass shape, use `AccessGrid.AccessPasses.get/2`.

The field is named `pass_template` here (matching the wire key Rails returns)
but its value is a `%AccessGrid.LedgerItem.CardTemplate{}`.

# `t`

```elixir
@type t() :: %AccessGrid.LedgerItem.AccessPass{
  full_name: String.t() | nil,
  id: String.t() | nil,
  metadata: map(),
  pass_template: AccessGrid.LedgerItem.CardTemplate.t() | nil,
  state: String.t() | nil,
  unified_access_pass_id: String.t() | nil
}
```

# `from_response`

```elixir
@spec from_response(map() | nil) :: t() | nil
```

Creates a LedgerItem.AccessPass struct from an API response map.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
