import { AutoEncoder } from '@simonbackx/simple-encoding'; import { STPackage } from './STPackage.js'; export declare class STInvoiceItem extends AutoEncoder { id: string; name: string; description: string; amount: number; unitPrice: number; canUseCredits: boolean; firstFailedPayment: Date | null; paymentFailedCount: number; get price(): number; /** * All data of the original package that is linked to this item */ package?: STPackage; /** * Date the item was created/bought */ date?: Date; /** * Convertable into STInvoiceItem (or the diffence if amount is increased) * Use this to calculate prices or create an invoice * This will calculate the price to expand the package to the given amount. * If you want to renew a package, you need to create a new package first */ static fromPackage(pack: STPackage, amount?: number, pendingAmount?: number, date?: Date): STInvoiceItem; canMerge(other: STInvoiceItem): boolean; merge(other: STInvoiceItem): void; static compress(items: STInvoiceItem[]): STInvoiceItem[]; } //# sourceMappingURL=STInvoiceItem.d.ts.map