InvoiceLineItem
Invoice Line Items represent the individual lines within an invoice and only exist within the context of an invoice.
Each line item is backed by either an invoice item or a subscription item.
Summary
Types
@type t() :: %Stripe.Resources.InvoiceLineItem{ amount: term(), currency: term(), description: term(), discount_amounts: term(), discountable: term(), discounts: term(), id: term(), invoice: term(), livemode: term(), metadata: term(), object: term(), parent: term(), period: term(), pretax_credit_amounts: term(), pricing: term(), quantity: term(), quantity_decimal: term(), subscription: term(), subtotal: term(), taxes: term() }
amount- The amount, in cents (or local equivalent).currency- Three-letter ISO currency code, in lowercase. Must be a supported currency. Format: ISO 4217 currency code.description- An arbitrary string attached to the object. Often useful for displaying to users. Max length: 5000. Nullable.discount_amounts- The amount of discount calculated per discount for this line item. Nullable. Expandable.discountable- If true, discounts will apply to this line item. Always false for prorations.discounts- The discounts applied to the invoice line item. Line item discounts are applied before invoice discounts. Useexpand[]=discountsto expand each discount. Expandable.id- Unique identifier for the object. Max length: 5000.invoice- The ID of the invoice that contains this line item. Max length: 5000. Nullable.livemode- If the object exists in live mode, the value istrue. If the object exists in test mode, the value isfalse.metadata- Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Note that for line items withtype=subscription,metadatareflects the current metadata from the subscription associated with the line item, unless the invoice line was directly updated with different metadata after creation.object- String representing the object's type. Objects of the same type share the same value. Possible values:line_item.parent- The parent that generated this line item. Nullable. Expandable.period- Expandable.pretax_credit_amounts- Contains pretax credit amounts (ex: discount, credit grants, etc) that apply to this line item. Nullable. Expandable.pricing- The pricing information of the line item. Nullable. Expandable.quantity- Quantity of units for the invoice line item in integer format, with any decimal precision truncated. For the line item's full-precision decimal quantity, usequantity_decimal. This field will be deprecated in favor ofquantity_decimalin a future version. If the line item is a proration or subscription, the quantity of the subscription that the proration was computed for. Nullable.quantity_decimal- Non-negative decimal with at most 12 decimal places. The quantity of units for the line item. Format: decimal string. Nullable.subscription- Nullable. Expandable.subtotal- The subtotal of the line item, in cents (or local equivalent), before any discounts or taxes.taxes- The tax information of the line item. Nullable. Expandable.