export interface InvoiceItem { /** * ID of the Invoice Item object. */ id: string; /** * The amount of the total charge or credit for this item. Decimal, including the correct number of decimal places for the currency exponent, as defined in ISO 2417:2015. If the amount is a whole number, use an integer and not a decimal. * * This is `quantity` times `unit_amount`. A credit is indicated by a negative number. */ amount: number; /** * Three-letter ISO 4217 code for the currency used in the `amount` field. Uppercase. */ currency: string; /** * ID of the customer. String starting with **cus_**. * * For more information, see [Customer Object](ref:customer-object). */ customer: `cus_${string}`; /** * The time of the charge or credit, in [*Unix time*](ref:glossary). */ date: number; /** * Description of the invoice item. */ description: string; /** * Determines whether this invoice item is subject to the discount defined in the coupon that is assigned to the customer or subscription. * * For negative amounts and prorations, the default is **false**, and for all other invoice items, the default is **true**. */ discountable: boolean; /** * ID of the invoice that this invoice item is assigned to. Relevant when `subscription` is not set. */ invoice: string; /** * A JSON object defined by the client. */ metadata: object; /** * Defines the start and end of the time period that this invoice item refers to. Relevant when the invoice item refers to more than one day. Contains the following fields: * * `start` - The start of the time period. * * `end` - The end of the time period. */ period: { start: unknown; end: unknown; }; /** * Describes the pricing structure for the invoice item. * * For more information, see [Plan Object](#plan-object). */ plan: object; /** * Indicates whether the invoice item is prorated. Response only. */ proration: boolean; /** * Indicates the number of units charged as a single invoice item. Integer. */ quantity: number; /** * ID of the subscription to assign this invoice item to. By default, the invoice item is assigned to the customer's subscription whose current billing cycle ends first. Relevant when `invoice` is not set. * * For more information, see [Subscription Object](ref:subscription-object). */ subscription: string; /** * Per-unit price of the product or service, adjusted as defined in the plan. Decimal. */ unit_amount: number; } //# sourceMappingURL=InvoiceItem.d.ts.map