AccessGrid.SmartTapReveal (AccessGrid v0.2.0)

Copy Markdown View Source

Response from AccessGrid.Console.reveal_smart_tap/2 — the SmartTap credentials for a card template.

private_key is the plaintext PEM, decrypted client-side by the SDK. key_version, collector_id, and fingerprint are the server's response metadata (template id, Google Wallet SmartTap merchant id, SHA-256 of the caller's pubkey).

Summary

Functions

Builds a SmartTapReveal struct from the metadata fields of an API response. private_key is left nil and filled in by AccessGrid.Console.reveal_smart_tap/2 after the envelope is decrypted.

Types

t()

@type t() :: %AccessGrid.SmartTapReveal{
  collector_id: String.t() | nil,
  fingerprint: String.t() | nil,
  key_version: String.t() | nil,
  private_key: binary() | nil
}

Functions

from_response(data)

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

Builds a SmartTapReveal struct from the metadata fields of an API response. private_key is left nil and filled in by AccessGrid.Console.reveal_smart_tap/2 after the envelope is decrypted.