LatticeStripe.Tax.Transaction.LineItem (LatticeStripe v1.7.6)

Copy Markdown View Source

Represents a line item on a Stripe Tax Transaction.

Returned embedded on %LatticeStripe.Tax.Transaction{} objects and from LatticeStripe.Tax.Transaction.list_line_items/4.

Summary

Types

t()

@type t() :: %LatticeStripe.Tax.Transaction.LineItem{
  amount: integer() | nil,
  amount_tax: integer() | nil,
  extra: map(),
  id: String.t() | nil,
  livemode: boolean() | nil,
  metadata: map() | nil,
  object: String.t(),
  performance_location: map() | nil,
  product: LatticeStripe.Product.t() | String.t() | map() | nil,
  quantity: integer() | nil,
  reference: String.t() | nil,
  reversal: map() | String.t() | nil,
  tax_behavior: atom() | String.t() | nil,
  tax_breakdown: list() | nil,
  tax_code: String.t() | nil,
  type: String.t() | nil
}

Functions

from_map(map)

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