Current section
Files
Jump to
Current section
Files
lib/docusign/model/envelope_purge_configuration.ex
# NOTE: This file is auto generated by OpenAPI Generator
# https://openapi-generator.tech
# Do not edit this file manually.
defmodule DocuSign.Model.EnvelopePurgeConfiguration do
@moduledoc """
Contains information about the current envelope purge configuration for an account, which enables account administrators to purge documents from completed and voided envelopes after a set number of days (`retentionDays`).
"""
defstruct [
:purgeEnvelopes,
:redactPII,
:removeTabsAndEnvelopeAttachments,
:retentionDays
]
@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__{
:purgeEnvelopes => String.t() | nil,
:redactPII => String.t() | nil,
:removeTabsAndEnvelopeAttachments => String.t() | nil,
:retentionDays => String.t() | nil
}
def decode(value) do
struct(__MODULE__, value)
end
end