Current section

Files

Jump to
docusign lib docusign model expirations.ex
Raw

lib/docusign/model/expirations.ex

# NOTE: This file is auto generated by OpenAPI Generator
# https://openapi-generator.tech
# Do not edit this file manually.
defmodule DocuSign.Model.Expirations do
@moduledoc """
A complex element that specifies the expiration settings for the envelope. When an envelope expires, it is voided and no longer available for signing. **Note:** there is a short delay between when the envelope expires and when it is voided.
"""
defstruct [
:expireAfter,
:expireEnabled,
:expireWarn
]
@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__{
:expireAfter => String.t() | nil,
:expireEnabled => String.t() | nil,
:expireWarn => String.t() | nil
}
def decode(value) do
struct(__MODULE__, value)
end
end