Current section
Files
Jump to
Current section
Files
lib/docusign/model/billing_plan_response.ex
# NOTE: This file is auto generated by OpenAPI Generator 7.12.0 (https://openapi-generator.tech).
# Do not edit this file manually.
defmodule DocuSign.Model.BillingPlanResponse do
@moduledoc """
Defines a billing plan response object.
"""
alias DocuSign.Deserializer
alias DocuSign.Model.BillingPlan
@derive Jason.Encoder
defstruct [
:billingPlan,
:successorPlans
]
@type t :: %__MODULE__{
:billingPlan => BillingPlan.t() | nil,
:successorPlans => [BillingPlan.t()] | nil
}
def decode(value) do
value
|> Deserializer.deserialize(:billingPlan, :struct, BillingPlan)
|> Deserializer.deserialize(:successorPlans, :list, BillingPlan)
end
end