Current section

Files

Jump to
docusign lib docusign model billing_plan_response.ex
Raw

lib/docusign/model/billing_plan_response.ex

# NOTE: This file is auto generated by OpenAPI Generator 6.4.0 (https://openapi-generator.tech).
# Do not edit this file manually.
defmodule DocuSign.Model.BillingPlanResponse do
@moduledoc """
Defines a billing plan response object.
"""
@derive [Poison.Encoder]
defstruct [
:billingPlan,
:successorPlans
]
@type t :: %__MODULE__{
:billingPlan => DocuSign.Model.BillingPlan.t() | nil,
:successorPlans => [DocuSign.Model.BillingPlan.t()] | nil
}
end
defimpl Poison.Decoder, for: DocuSign.Model.BillingPlanResponse do
import DocuSign.Deserializer
def decode(value, options) do
value
|> deserialize(:billingPlan, :struct, DocuSign.Model.BillingPlan, options)
|> deserialize(:successorPlans, :list, DocuSign.Model.BillingPlan, options)
end
end