Current section

Files

Jump to
docusign lib docusign model currency_plan_price.ex
Raw

lib/docusign/model/currency_plan_price.ex

# NOTE: This file is auto generated by OpenAPI Generator
# https://openapi-generator.tech
# Do not edit this file manually.
defmodule DocuSign.Model.CurrencyPlanPrice do
@moduledoc """
"""
alias DocuSign.Deserializer
alias DocuSign.Model.CreditCardTypes
defstruct [
:currencyCode,
:currencySymbol,
:perSeatPrice,
:supportIncidentFee,
:supportPlanFee,
:supportedCardTypes
]
@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__{
:currencyCode => String.t() | nil,
:currencySymbol => String.t() | nil,
:perSeatPrice => String.t() | nil,
:supportIncidentFee => String.t() | nil,
:supportPlanFee => String.t() | nil,
:supportedCardTypes => CreditCardTypes.t() | nil
}
def decode(value) do
value
|> Deserializer.deserialize(
:supportedCardTypes,
:struct,
CreditCardTypes
)
|> then(&struct(__MODULE__, &1))
end
end