AccessGrid.LedgerItem.AccessPass (AccessGrid v0.1.0)

Copy Markdown View Source

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{}.

Summary

Functions

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

Types

t()

@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
}

Functions

from_response(data)

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

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