lib/docusign/model/document_html_definition.ex

# NOTE: This file is auto generated by OpenAPI Generator 6.4.0 (https://openapi-generator.tech).
# Do not edit this file manually.

defmodule DocuSign.Model.DocumentHtmlDefinition do
  @moduledoc """
  Holds the properties that define how to generate the responsive-formatted HTML for the document. See [Responsive signing](/docs/esign-rest-api/esign101/concepts/responsive/) in the [eSignature concepts guide](/docs/esign-rest-api/esign101/concepts/).
  """

  @derive [Poison.Encoder]
  defstruct [
    :displayAnchorPrefix,
    :displayAnchors,
    :displayOrder,
    :displayPageNumber,
    :documentGuid,
    :documentId,
    :headerLabel,
    :maxScreenWidth,
    :removeEmptyTags,
    :showMobileOptimizedToggle,
    :source
  ]

  @type t :: %__MODULE__{
          :displayAnchorPrefix => String.t() | nil,
          :displayAnchors => [DocuSign.Model.DocumentHtmlDisplayAnchor.t()] | nil,
          :displayOrder => String.t() | nil,
          :displayPageNumber => String.t() | nil,
          :documentGuid => String.t() | nil,
          :documentId => String.t() | nil,
          :headerLabel => String.t() | nil,
          :maxScreenWidth => String.t() | nil,
          :removeEmptyTags => String.t() | nil,
          :showMobileOptimizedToggle => String.t() | nil,
          :source => String.t() | nil
        }
end

defimpl Poison.Decoder, for: DocuSign.Model.DocumentHtmlDefinition do
  import DocuSign.Deserializer

  def decode(value, options) do
    value
    |> deserialize(:displayAnchors, :list, DocuSign.Model.DocumentHtmlDisplayAnchor, options)
  end
end