import type * as Whop from "../index.js"; export interface InvoiceLineItem { /** The promo discount applied to this item, in the payment's `currency`. Null when no discount was recorded. */ discount_amount: Whop.Money | null; /** Line item ID, prefixed `li_`. Null when the payment predates item snapshots and the item is read from the payment's variant. */ id: string | null; /** The item's name as shown at checkout — the product title, else the variant title. */ label: string | null; /** The product the variant belongs to, prefixed `prod_`. Null for a variant with no product. */ product_id: string | null; /** How many units were bought. */ quantity: number; /** `unit_amount` times `quantity`, before discounts and tax, in the payment's `currency`. */ subtotal: Whop.Money | null; /** The tax collected on this item, in the payment's `currency`. Null when no tax was recorded. */ tax_amount: Whop.Money | null; /** The price of one unit before discounts, in the payment's `currency`. Null when the payment recorded no price. */ unit_amount: Whop.Money | null; /** The variant bought, prefixed `plan_`. Null when the variant has since been deleted. */ variant_id: string | null; }