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
ory_kratos lib ory model message.ex
Raw

lib/ory/model/message.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.Message do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:body,
:created_at,
:id,
:recipient,
:send_count,
:status,
:subject,
:template_type,
:type,
:updated_at
]
@type t :: %__MODULE__{
:body => String.t | nil,
:created_at => DateTime.t | nil,
:id => String.t | nil,
:recipient => String.t | nil,
:send_count => integer() | nil,
:status => Ory.Model.CourierMessageStatus.t | nil,
:subject => String.t | nil,
:template_type => String.t | nil,
:type => Ory.Model.CourierMessageType.t | nil,
:updated_at => DateTime.t | nil
}
end
defimpl Poison.Decoder, for: Ory.Model.Message do
import Ory.Deserializer
def decode(value, options) do
value
|> deserialize(:status, :struct, Ory.Model.CourierMessageStatus, options)
|> deserialize(:type, :struct, Ory.Model.CourierMessageType, options)
end
end