View Source Stripe.Item (stripity_stripe v3.2.0)
A line item.
Summary
Types
@type t() :: %Stripe.Item{ amount_discount: integer(), amount_subtotal: integer(), amount_tax: integer(), amount_total: integer(), currency: binary(), description: binary(), discounts: term(), id: binary(), object: binary(), price: Stripe.Price.t() | nil, quantity: integer() | nil, taxes: term() }
The item type.
amount_discountTotal discount amount applied. If no discounts were applied, defaults to 0.amount_subtotalTotal before any discounts or taxes are applied.amount_taxTotal tax amount applied. If no tax was applied, defaults to 0.amount_totalTotal after discounts and taxes.currencyThree-letter ISO currency code, in lowercase. Must be a supported currency.descriptionAn arbitrary string attached to the object. Often useful for displaying to users. Defaults to product name.discountsThe discounts applied to the line item.idUnique identifier for the object.objectString representing the object's type. Objects of the same type share the same value.priceThe price used to generate the line item.quantityThe quantity of products being purchased.taxesThe taxes applied to the line item.