AccessGrid.Webhook.VerifyResult (AccessGrid v0.4.0)

Copy Markdown View Source

Result of verifying a webhook via AccessGrid.Console.verify_webhook/2. Contains the webhook id and its verification state:

  • verified: true — the webhook was already verified; no state change.
  • verified: false — verification has been initiated for the webhook.

Summary

Functions

Creates a VerifyResult struct from an API response map.

Types

t()

@type t() :: %AccessGrid.Webhook.VerifyResult{
  id: String.t() | nil,
  verified: boolean() | nil
}

Functions

from_response(data)

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

Creates a VerifyResult struct from an API response map.