ClearBank.Webhook.Events.CustomerKycStatusChanged (ClearBank v1.0.0)

Copy Markdown View Source

Fired when an embedded customer's KYC status transitions.

Summary

Types

kyc_status()

@type kyc_status() ::
  :pending | :in_progress | :approved | :rejected | :requires_action | nil

t()

@type t() :: %ClearBank.Webhook.Events.CustomerKycStatusChanged{
  customer_id: String.t() | nil,
  new_status: kyc_status(),
  previous_status: kyc_status(),
  reason: String.t() | nil,
  timestamp: String.t() | nil
}

Functions

from_payload(payload)

@spec from_payload(map()) :: t()