Current section

Files

Jump to
polarex lib polarex schemas benefit_discord_create.ex
Raw

lib/polarex/schemas/benefit_discord_create.ex

defmodule Polarex.BenefitDiscordCreate do
@moduledoc """
Provides struct and type for a BenefitDiscordCreate
"""
@type t :: %__MODULE__{
description: String.t(),
metadata: map | nil,
organization_id: String.t() | nil,
properties: Polarex.BenefitDiscordCreateProperties.t(),
type: String.t()
}
defstruct [:description, :metadata, :organization_id, :properties, :type]
@doc false
@spec __fields__(atom) :: keyword
def __fields__(type \\ :t)
def __fields__(:t) do
[
description: :string,
metadata: :map,
organization_id: {:union, [{:string, "uuid4"}, :null]},
properties: {Polarex.BenefitDiscordCreateProperties, :t},
type: {:const, "discord"}
]
end
end