# NOTE: This file is auto generated by OpenAPI Generator 7.12.0 (https://openapi-generator.tech).
# Do not edit this file manually.

defmodule Ory.Model.CustomDomain do
  @moduledoc """
  Custom Hostname
  """

  @derive Jason.Encoder
  defstruct [
    :cookie_domain,
    :cors_allowed_origins,
    :cors_enabled,
    :created_at,
    :custom_ui_base_url,
    :hostname,
    :id,
    :ssl_status,
    :updated_at,
    :verification_errors,
    :verification_status
  ]

  @type t :: %__MODULE__{
    :cookie_domain => String.t | nil,
    :cors_allowed_origins => [String.t] | nil,
    :cors_enabled => boolean() | nil,
    :created_at => DateTime.t | nil,
    :custom_ui_base_url => String.t | nil,
    :hostname => String.t | nil,
    :id => String.t | nil,
    :ssl_status => String.t | nil,
    :updated_at => DateTime.t | nil,
    :verification_errors => [String.t] | nil,
    :verification_status => String.t | nil
  }

  alias Ory.Deserializer

  def decode(value) do
    value
     |> Deserializer.deserialize(:created_at, :datetime, nil)
     |> Deserializer.deserialize(:updated_at, :datetime, nil)
  end
end

