View Source Stripe.Item (Striped v0.1.0)
A line item.
Link to this section Summary
Link to this section 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, product: binary() | Stripe.Product.t() | Stripe.DeletedProduct.t(), 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.productThe ID of the product for this line item.
This will always be the same as price.product.
quantityThe quantity of products being purchased.taxesThe taxes applied to the line item.