Current section

Files

Jump to
docusign lib docusign model billing_plan.ex
Raw

lib/docusign/model/billing_plan.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.BillingPlan do
@moduledoc """
Contains information about a billing plan.
"""
@derive [Poison.Encoder]
defstruct [
:appStoreProducts,
:currencyPlanPrices,
:enableSupport,
:includedSeats,
:otherDiscountPercent,
:paymentCycle,
:paymentMethod,
:perSeatPrice,
:planClassification,
:planFeatureSets,
:planId,
:planName,
:seatDiscounts,
:supportIncidentFee,
:supportPlanFee
]
@type t :: %__MODULE__{
:appStoreProducts => [AppStoreProduct],
:currencyPlanPrices => [CurrencyPlanPrice],
:enableSupport => String.t(),
:includedSeats => String.t(),
:otherDiscountPercent => String.t(),
:paymentCycle => String.t(),
:paymentMethod => String.t(),
:perSeatPrice => String.t(),
:planClassification => String.t(),
:planFeatureSets => [FeatureSet],
:planId => String.t(),
:planName => String.t(),
:seatDiscounts => [SeatDiscount],
:supportIncidentFee => String.t(),
:supportPlanFee => String.t()
}
end
defimpl Poison.Decoder, for: DocuSign.Model.BillingPlan do
import DocuSign.Deserializer
def decode(value, options) do
value
|> deserialize(:appStoreProducts, :list, DocuSign.Model.AppStoreProduct, options)
|> deserialize(:currencyPlanPrices, :list, DocuSign.Model.CurrencyPlanPrice, options)
|> deserialize(:planFeatureSets, :list, DocuSign.Model.FeatureSet, options)
|> deserialize(:seatDiscounts, :list, DocuSign.Model.SeatDiscount, options)
end
end