Current section
Files
Jump to
Current section
Files
lib/docusign/model/recipient_identity_verification.ex
# NOTE: This file is auto generated by OpenAPI Generator
# https://openapi-generator.tech
# Do not edit this file manually.
defmodule DocuSign.Model.RecipientIdentityVerification do
@moduledoc """
Specifies ID Verification applied on an envelope by workflow ID. See the [list](/docs/esign-rest-api/reference/accounts/identityverifications/list/) method in the [IdentityVerifications](/docs/esign-rest-api/reference/accounts/identityverifications/) resource for more information on how to retrieve workflow IDs available for an account. This can be used in addition to other [recipient authentication](https://support.docusign.com/s/document-item?bundleId=gav1643676262430&topicId=kzp1578456318101.html) methods.
"""
alias DocuSign.Deserializer
alias DocuSign.Model.PropertyMetadata
alias DocuSign.Model.RecipientIdentityInputOption
defstruct [
:inputOptions,
:workflowId,
:workflowIdMetadata,
:workflowLabel
]
@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__{
:inputOptions => [RecipientIdentityInputOption.t()] | nil,
:workflowId => String.t() | nil,
:workflowIdMetadata => PropertyMetadata.t() | nil,
:workflowLabel => String.t() | nil
}
def decode(value) do
value
|> Deserializer.deserialize(
:inputOptions,
:list,
RecipientIdentityInputOption
)
|> Deserializer.deserialize(
:workflowIdMetadata,
:struct,
PropertyMetadata
)
|> then(&struct(__MODULE__, &1))
end
end