Packages
OpenAPI API client for Ory Kratos, Ory's central identity management solution with hardened authentication, MFA, FIDO2, TOTP, WebAuthn, SSO, profile management, and more.
Current section
Files
Jump to
Current section
Files
lib/ory/model/verification_flow.ex
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule Ory.Model.VerificationFlow do
@moduledoc """
Used to verify an out-of-band communication channel such as an email address or a phone number. For more information head over to: https://www.ory.sh/docs/kratos/selfservice/flows/verify-email-account-activation
"""
@derive [Poison.Encoder]
defstruct [
:active,
:expires_at,
:id,
:issued_at,
:request_url,
:return_to,
:state,
:type,
:ui
]
@type t :: %__MODULE__{
:active => String.t | nil,
:expires_at => DateTime.t | nil,
:id => String.t,
:issued_at => DateTime.t | nil,
:request_url => String.t | nil,
:return_to => String.t | nil,
:state => Ory.Model.VerificationFlowState.t,
:type => String.t,
:ui => Ory.Model.UiContainer.t
}
end
defimpl Poison.Decoder, for: Ory.Model.VerificationFlow do
import Ory.Deserializer
def decode(value, options) do
value
|> deserialize(:state, :struct, Ory.Model.VerificationFlowState, options)
|> deserialize(:ui, :struct, Ory.Model.UiContainer, options)
end
end