Current section

Files

Jump to
docusign lib docusign model envelope_delay_rule.ex
Raw

lib/docusign/model/envelope_delay_rule.ex

# NOTE: This file is auto generated by OpenAPI Generator
# https://openapi-generator.tech
# Do not edit this file manually.
defmodule DocuSign.Model.EnvelopeDelayRule do
@moduledoc """
A user-specified object that describes the envelope delay. To indicate a relative delay, use `delay`. To indicate the exact datetime the envelope should be sent, use `resumeDate`. Only one of the two properties can be used.
"""
defstruct [
:delay,
:resumeDate
]
@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__{
:delay => String.t() | nil,
:resumeDate => String.t() | nil
}
def decode(value) do
struct(__MODULE__, value)
end
end