Current section
Files
Jump to
Current section
Files
lib/docusign/model/filter.ex
# NOTE: This file is auto generated by OpenAPI Generator
# https://openapi-generator.tech
# Do not edit this file manually.
defmodule DocuSign.Model.Filter do
@moduledoc """
Use this object to create a filtered view of the items in a folder.
"""
defstruct [
:actionRequired,
:expires,
:folderIds,
:fromDateTime,
:isTemplate,
:order,
:orderBy,
:searchTarget,
:searchText,
:status,
:toDateTime
]
@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__{
:actionRequired => String.t() | nil,
:expires => String.t() | nil,
:folderIds => String.t() | nil,
:fromDateTime => String.t() | nil,
:isTemplate => String.t() | nil,
:order => String.t() | nil,
:orderBy => String.t() | nil,
:searchTarget => String.t() | nil,
:searchText => String.t() | nil,
:status => String.t() | nil,
:toDateTime => String.t() | nil
}
def decode(value) do
struct(__MODULE__, value)
end
end