archetecture security fix
This commit is contained in:
+46
@@ -0,0 +1,46 @@
|
||||
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
|
||||
Reference in New Issue
Block a user