Current section
Files
Jump to
Current section
Files
lib/docusign/model/new_account_summary.ex
# NOTE: This file is auto generated by OpenAPI Generator
# https://openapi-generator.tech
# Do not edit this file manually.
defmodule DocuSign.Model.NewAccountSummary do
@moduledoc """
"""
alias DocuSign.Deserializer
alias DocuSign.Model.BillingPlanPreview
defstruct [
:accountId,
:accountIdGuid,
:accountName,
:apiPassword,
:baseUrl,
:billingPlanPreview,
:userId
]
@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__{
:accountId => String.t() | nil,
:accountIdGuid => String.t() | nil,
:accountName => String.t() | nil,
:apiPassword => String.t() | nil,
:baseUrl => String.t() | nil,
:billingPlanPreview => BillingPlanPreview.t() | nil,
:userId => String.t() | nil
}
def decode(value) do
value
|> Deserializer.deserialize(
:billingPlanPreview,
:struct,
BillingPlanPreview
)
|> then(&struct(__MODULE__, &1))
end
end