Current section
Files
Jump to
Current section
Files
lib/docusign/model/billing_plan_response.ex
# NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule DocuSign.Model.BillingPlanResponse do
@moduledoc """
Defines a billing plan response object.
"""
@derive [Poison.Encoder]
defstruct [
:billingPlan,
:successorPlans
]
@type t :: %__MODULE__{
:billingPlan => BillingPlan,
:successorPlans => [BillingPlan]
}
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