import type * as Whop from "../index.mjs"; export interface ReceiptLineItem { /** 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_`. On a payment that predates item snapshots this falls back to the variant's product, so it can be set where the parent's own `product_id` is null. Null for a variant with no product. */ product_id: string | null; /** The product's current title, or `null` when the item has no product. */ product_title: string | null; /** How many units were bought. */ quantity: number; /** The variant's stock keeping unit, free text set by the seller (e.g. `TSHIRT-LARGE-BLUE`). Accounts with billing-reason SKU suffixes enabled receive it stamped with why the charge happened: `-S` for a first subscription charge, `-R` for a renewal, `-C` for a one-time purchase, `-U` when the payment's own metadata carries `upsell: true`, `-F` when nothing was charged. Other billing reasons carry the bare SKU. `null` when the variant has no SKU or has been deleted. */ sku: string | null; /** The recorded amount for this item's full quantity, before discounts, tax, and fees, in its purchase currency. Returns `null` when no item amount was recorded. */ subtotal: Whop.Money | null; /** The variant bought, prefixed `plan_`. Null when the variant has since been deleted. */ variant_id: string | null; /** The variant's current title, or `null` when the variant has been deleted or has no title. */ variant_title: string | null; }