Current section

Files

Jump to
docusign lib docusign model comment.ex
Raw

lib/docusign/model/comment.ex

# NOTE: This file is auto generated by OpenAPI Generator
# https://openapi-generator.tech
# Do not edit this file manually.
defmodule DocuSign.Model.Comment do
@moduledoc """
"""
defstruct [
:envelopeId,
:hmac,
:id,
:mentions,
:read,
:sentByEmail,
:sentByFullName,
:sentByImageId,
:sentByInitials,
:sentByRecipientId,
:sentByUserId,
:signingGroupId,
:signingGroupName,
:subject,
:tabId,
:text,
:threadId,
:threadOriginatorId,
:timeStampFormatted,
:timestamp,
:visibleTo
]
@doc false
defimpl Jason.Encoder, for: __MODULE__ do
def encode(struct, opts) do
struct
|> Map.from_struct()
|> Enum.reject(fn {_k, v} -> is_nil(v) end)
|> Map.new()
|> Jason.Encode.map(opts)
end
end
@type t :: %__MODULE__{
:envelopeId => String.t() | nil,
:hmac => String.t() | nil,
:id => String.t() | nil,
:mentions => [String.t()] | nil,
:read => boolean() | nil,
:sentByEmail => String.t() | nil,
:sentByFullName => String.t() | nil,
:sentByImageId => String.t() | nil,
:sentByInitials => String.t() | nil,
:sentByRecipientId => String.t() | nil,
:sentByUserId => String.t() | nil,
:signingGroupId => String.t() | nil,
:signingGroupName => String.t() | nil,
:subject => String.t() | nil,
:tabId => String.t() | nil,
:text => String.t() | nil,
:threadId => String.t() | nil,
:threadOriginatorId => String.t() | nil,
:timeStampFormatted => String.t() | nil,
:timestamp => String.t() | nil,
:visibleTo => [String.t()] | nil
}
def decode(value) do
struct(__MODULE__, value)
end
end