import * as z from "zod/v4-mini"; import { Result as SafeParseResult } from "../../types/fp.js"; import { CommitmentInfo } from "./commitment-info.js"; import { SDKValidationError } from "./sdk-validation-error.js"; import { SourceUsageItem } from "./source-usage-item.js"; import { Status } from "./status.js"; import { UsageBreakdownItem } from "./usage-breakdown-item.js"; export type InvoiceLineItemResponse = { /** * adjusted_entitlement_quantity is the entitlement-covered portion deducted from raw usage. * * @remarks * Nil when no entitlement was applied. Raw usage = Quantity + AdjustedEntitlementQuantity. */ adjustedEntitlementQuantity?: string | undefined; amount?: string | undefined; commitmentInfo?: CommitmentInfo | undefined; createdAt?: Date | undefined; createdBy?: string | undefined; currency?: string | undefined; customerId?: string | undefined; displayName?: string | undefined; entityId?: string | undefined; entityType?: string | undefined; environmentId?: string | undefined; id?: string | undefined; invoiceId?: string | undefined; /** * invoice_level_discount is the discount amount in invoice currency applied to all line items on the invoice. */ invoiceLevelDiscount?: string | undefined; /** * line_item_discount is the discount amount in invoice currency applied directly to this line item. */ lineItemDiscount?: string | undefined; metadata?: { [k: string]: string; } | undefined; meterDisplayName?: string | undefined; meterId?: string | undefined; /** * parent_line_item_id links this line item to the line item it replaced, if it was created by editing * * @remarks * an existing line item. Forms a linked-list chain across edits; nil for line items that were never edited. */ parentLineItemId?: string | undefined; periodEnd?: Date | undefined; periodStart?: Date | undefined; planDisplayName?: string | undefined; /** * prepaid_credits_applied is the amount in invoice currency reduced from this line item due to prepaid credits application. */ prepaidCreditsApplied?: string | undefined; priceId?: string | undefined; priceType?: string | undefined; priceUnit?: string | undefined; priceUnitAmount?: string | undefined; priceUnitId?: string | undefined; quantity?: string | undefined; status?: Status | undefined; subscriptionId?: string | undefined; /** * sub_line_item_id links this invoice line item to the subscription_line_item that generated it. */ subscriptionLineItemId?: string | undefined; tenantId?: string | undefined; updatedAt?: Date | undefined; updatedBy?: string | undefined; /** * usage_analytics contains usage analytics for this line item (legacy - grouped by source) */ usageAnalytics?: Array | undefined; /** * usage_breakdown contains flexible usage breakdown for this line item (supports any grouping) */ usageBreakdown?: Array | undefined; }; /** @internal */ export declare const InvoiceLineItemResponse$inboundSchema: z.ZodMiniType; export declare function invoiceLineItemResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=invoice-line-item-response.d.ts.map