Current section
Files
Jump to
Current section
Files
lib/docusign/model/billing_charge.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.BillingCharge do
@moduledoc """
Contains information about a billing charge.
"""
@derive [Poison.Encoder]
defstruct [
:allowedQuantity,
:blocked,
:chargeName,
:chargeType,
:chargeUnitOfMeasure,
:discounts,
:firstEffectiveDate,
:includedQuantity,
:incrementalQuantity,
:lastEffectiveDate,
:prices,
:unitPrice,
:usedQuantity
]
@type t :: %__MODULE__{
:allowedQuantity => String.t(),
:blocked => String.t(),
:chargeName => String.t(),
:chargeType => String.t(),
:chargeUnitOfMeasure => String.t(),
:discounts => [BillingDiscount],
:firstEffectiveDate => String.t(),
:includedQuantity => String.t(),
:incrementalQuantity => String.t(),
:lastEffectiveDate => String.t(),
:prices => [BillingPrice],
:unitPrice => String.t(),
:usedQuantity => String.t()
}
end
defimpl Poison.Decoder, for: DocuSign.Model.BillingCharge do
import DocuSign.Deserializer
def decode(value, options) do
value
|> deserialize(:discounts, :list, DocuSign.Model.BillingDiscount, options)
|> deserialize(:prices, :list, DocuSign.Model.BillingPrice, options)
end
end