LatticeStripe.Quote.LineItem (LatticeStripe v1.7.11)

Copy Markdown View Source

Represents a line item returned by Stripe Quote APIs.

Quote line items appear in three places:

  • embedded on %LatticeStripe.Quote{} snapshots
  • embedded inside computed.upfront or computed.recurring
  • from paginated Quote line-item endpoints

Stripe may evolve the pricing subtrees here over time, so bounded fields are typed directly while pricing, period, tax, and discount detail branches remain raw maps or lists. Unknown fields are preserved in extra.

Summary

Types

t()

@type t() :: %LatticeStripe.Quote.LineItem{
  amount_discount: integer() | nil,
  amount_subtotal: integer() | nil,
  amount_tax: integer() | nil,
  amount_total: integer() | nil,
  currency: String.t() | nil,
  description: String.t() | nil,
  discounts: list() | nil,
  extra: map(),
  id: String.t() | nil,
  object: String.t(),
  period: map() | nil,
  price: map() | nil,
  pricing: map() | nil,
  quantity: integer() | nil,
  taxes: list() | map() | nil
}

Functions

from_map(map)

@spec from_map(map() | nil) :: t() | nil