Files
alrahma_sunday_school_api/apps/api/dist/services/invoicePdfService.d.ts
T
2026-06-11 03:22:12 -04:00

46 lines
1.2 KiB
TypeScript

interface InvoiceData {
invoiceNumber: string;
issueDate: string;
dueDate: string | null;
company: {
name: string;
email: string;
phone?: string | null;
address?: any;
};
subscription?: {
plan: string;
billingPeriod: string;
currentPeriodStart?: string | null;
currentPeriodEnd?: string | null;
currency: string;
};
amount: number;
currency: string;
status: string;
paymentProvider: string;
transactionId?: string | null;
paidAt?: string | null;
lineItems?: Array<{
description: string;
amount: number;
currency: string;
quantity?: number;
unitAmount?: number;
periodStart?: string | null;
periodEnd?: string | null;
}>;
totals?: {
subtotalAmount: number;
discountAmount: number;
creditAmount: number;
taxAmount: number;
totalAmount: number;
amountPaid: number;
amountDue: number;
};
}
export declare function generateInvoicePdf(data: InvoiceData): Promise<Buffer>;
export declare function buildInvoiceNumber(invoiceId: string, createdAt: Date): string;
export {};
//# sourceMappingURL=invoicePdfService.d.ts.map