AccessGrid.CardTemplate.PublishResult (AccessGrid v0.1.0)

Copy Markdown View Source

Response from publishing a card template via AccessGrid.Console.publish_template/2. Contains the template id and the resulting publish status:

  • "publishing" — already in flight from a prior call
  • "in-review" — Apple-side review queued (typical for Apple templates)
  • "ready" — published immediately (typical for Android templates)

Summary

Functions

Creates a PublishResult struct from an API response map.

Types

t()

@type t() :: %AccessGrid.CardTemplate.PublishResult{
  id: String.t() | nil,
  status: String.t() | nil
}

Functions

from_response(data)

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

Creates a PublishResult struct from an API response map.