Current section
Files
Jump to
Current section
Files
lib/docusign/model/account_brands.ex
# NOTE: This file is auto generated by OpenAPI Generator
# https://openapi-generator.tech
# Do not edit this file manually.
defmodule DocuSign.Model.AccountBrands do
@moduledoc """
The AccountBrands resource enables you to use account-level brands to customize the styles and text that recipients see.
"""
alias DocuSign.Deserializer
alias DocuSign.Model.Brand
defstruct [
:brands,
:recipientBrandIdDefault,
:senderBrandIdDefault
]
@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__{
:brands => [Brand.t()] | nil,
:recipientBrandIdDefault => String.t() | nil,
:senderBrandIdDefault => String.t() | nil
}
def decode(value) do
value
|> Deserializer.deserialize(
:brands,
:list,
Brand
)
|> then(&struct(__MODULE__, &1))
end
end