Current section

Files

Jump to
docusign lib docusign model workspace_user.ex
Raw

lib/docusign/model/workspace_user.ex

# NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule DocuSign.Model.WorkspaceUser do
@moduledoc """
A workspaceUser representing the user. This property is only returned in response to user specific GET call.
"""
@derive [Poison.Encoder]
defstruct [
:accountId,
:accountName,
:activeSince,
:created,
:createdById,
:email,
:errorDetails,
:lastModified,
:lastModifiedById,
:status,
:type,
:userId,
:userName,
:workspaceId,
:workspaceUserBaseUrl,
:workspaceUserId
]
@type t :: %__MODULE__{
:accountId => String.t(),
:accountName => String.t(),
:activeSince => String.t(),
:created => String.t(),
:createdById => String.t(),
:email => String.t(),
:errorDetails => ErrorDetails,
:lastModified => String.t(),
:lastModifiedById => String.t(),
:status => String.t(),
:type => String.t(),
:userId => String.t(),
:userName => String.t(),
:workspaceId => String.t(),
:workspaceUserBaseUrl => String.t(),
:workspaceUserId => String.t()
}
end
defimpl Poison.Decoder, for: DocuSign.Model.WorkspaceUser do
import DocuSign.Deserializer
def decode(value, options) do
value
|> deserialize(:errorDetails, :struct, DocuSign.Model.ErrorDetails, options)
end
end