lib/ory/model/verification_flow.ex

# NOTE: This file is auto generated by OpenAPI Generator 6.2.1 (https://openapi-generator.tech).
# Do not edit this file 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