Current section
Files
Jump to
Current section
Files
lib/docusign/model/locale_policy_tab.ex
# NOTE: This file is auto generated by OpenAPI Generator
# https://openapi-generator.tech
# Do not edit this file manually.
defmodule DocuSign.Model.LocalePolicyTab do
@moduledoc """
Allows you to customize locale settings.
"""
defstruct [
:addressFormat,
:calendarType,
:cultureName,
:currencyCode,
:currencyNegativeFormat,
:currencyPositiveFormat,
:customDateFormat,
:customTimeFormat,
:dateFormat,
:initialFormat,
:nameFormat,
:timeFormat,
:timeZone,
:useLongCurrencyFormat
]
@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__{
:addressFormat => String.t() | nil,
:calendarType => String.t() | nil,
:cultureName => String.t() | nil,
:currencyCode => String.t() | nil,
:currencyNegativeFormat => String.t() | nil,
:currencyPositiveFormat => String.t() | nil,
:customDateFormat => String.t() | nil,
:customTimeFormat => String.t() | nil,
:dateFormat => String.t() | nil,
:initialFormat => String.t() | nil,
:nameFormat => String.t() | nil,
:timeFormat => String.t() | nil,
:timeZone => String.t() | nil,
:useLongCurrencyFormat => String.t() | nil
}
def decode(value) do
struct(__MODULE__, value)
end
end