# NOTE: This file is auto generated by OpenAPI Generator # https://openapi-generator.tech # Do not edit this file manually. defmodule DocuSign.Model.AddressInformation do @moduledoc """ Contains address information. """ defstruct [ :address1, :address2, :city, :country, :fax, :phone, :postalCode, :stateOrProvince, :zipPlus4 ] @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__{ :address1 => String.t() | nil, :address2 => String.t() | nil, :city => String.t() | nil, :country => String.t() | nil, :fax => String.t() | nil, :phone => String.t() | nil, :postalCode => String.t() | nil, :stateOrProvince => String.t() | nil, :zipPlus4 => String.t() | nil } def decode(value) do struct(__MODULE__, value) end end