Current section

Files

Jump to
docusign lib docusign model doc_gen_form_field.ex
Raw

lib/docusign/model/doc_gen_form_field.ex

# NOTE: This file is auto generated by OpenAPI Generator 7.12.0 (https://openapi-generator.tech).
# Do not edit this file manually.
defmodule DocuSign.Model.DocGenFormField do
@moduledoc """
The document fields available for document generation. This object is used in reponses (GET) and requests (PUT). When used with [DocumentGeneration: updateEnvelopeDocGenFormFields](/docs/esign-rest-api/reference/envelopes/documentgeneration/updateenvelopedocgenformfields/) (PUT), the `name` and `value` / `rowValues` properties are required and any other values are ignored.
"""
alias DocuSign.Deserializer
alias DocuSign.Model.DocGenFormFieldOption
alias DocuSign.Model.DocGenFormFieldRowValue
alias DocuSign.Model.DocGenFormFieldValidation
@derive Jason.Encoder
defstruct [
:description,
:label,
:name,
:options,
:order,
:predefinedValidation,
:required,
:rowValues,
:type,
:validation,
:value
]
@type t :: %__MODULE__{
:description => String.t() | nil,
:label => String.t() | nil,
:name => String.t() | nil,
:options => [DocGenFormFieldOption.t()] | nil,
:order => String.t() | nil,
:predefinedValidation => String.t() | nil,
:required => String.t() | nil,
:rowValues => [DocGenFormFieldRowValue.t()] | nil,
:type => String.t() | nil,
:validation => DocGenFormFieldValidation.t() | nil,
:value => String.t() | nil
}
def decode(value) do
value
|> Deserializer.deserialize(:options, :list, DocGenFormFieldOption)
|> Deserializer.deserialize(:rowValues, :list, DocGenFormFieldRowValue)
|> Deserializer.deserialize(:validation, :struct, DocGenFormFieldValidation)
end
end