View Source ExOAPI.Stripe.Schemas.Item (exoapi_stripe v0.1.4)
description: A line item.
:amount_subtotal :: :integer
Total before any discounts or taxes are applied.
:amount_total :: :integer
Total after discounts and taxes.
:currency :: :string
Three-letter ISO currency code, in lowercase. Must be a supported currency.
:description :: :string
An arbitrary string attached to the object. Often useful for displaying to users. Defaults to product name.
::discounts :: ExOAPI.Stripe.Schemas.LineItemsDiscountAmount
:id :: :string
Unique identifier for the object.
:object :: :string
String representing the object's type. Objects of the same type share the same value.
:price :: ExOAPI.Stripe.Schemas.Price
The price used to generate the line item.
:quantity :: :integer
The quantity of products being purchased.
::taxes :: ExOAPI.Stripe.Schemas.LineItemsTaxAmount
Link to this section Summary
Link to this section Types
@type params() :: map()
@type t() :: %ExOAPI.Stripe.Schemas.Item{ amount_subtotal: integer() | nil, amount_total: integer() | nil, currency: String.t() | nil, description: String.t() | nil, discounts: [ExOAPI.Stripe.Schemas.LineItemsDiscountAmount.t()], id: String.t() | nil, object: :item | nil, price: ExOAPI.EctoTypes.AnyOf.t() | nil, quantity: integer() | nil, taxes: [ExOAPI.Stripe.Schemas.LineItemsTaxAmount.t()] }
Link to this section Functions
@spec changeset(t(), params()) :: Ecto.Changeset.t()