AccessGrid.IosPreflight (AccessGrid v0.1.0)

Copy Markdown View Source

Response from AccessGrid.Console.ios_preflight/3 — the identifiers needed to drive Apple Wallet In-App Provisioning for a specific access pass.

Rails returns these keys in camelCase (Apple convention, not the usual snake_case AccessGrid wire shape). This struct maps them to snake_case Elixir fields via from_response/1.

Summary

Functions

Creates an IosPreflight struct from an API response map.

Types

t()

@type t() :: %AccessGrid.IosPreflight{
  card_template_identifier: String.t() | nil,
  environment_identifier: String.t() | nil,
  provisioning_credential_identifier: String.t() | nil,
  sharing_instance_identifier: String.t() | nil
}

Functions

from_response(data)

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

Creates an IosPreflight struct from an API response map.