chore: implenet the external invoice 2

This commit is contained in:
mahyargdz
2025-07-14 12:29:00 +03:30
parent 1794b36758
commit 9d46c4f20b
12 changed files with 409 additions and 21 deletions
@@ -9,3 +9,31 @@ export interface IBusinessProvisioningJob {
email: string;
fullName: string;
}
export enum InvoiceStatus {
DRAFT = "DRAFT",
PENDING = "PENDING",
WAIT_PAYMENT = "WAIT_PAYMENT",
PAID = "PAID",
ARCHIVED = "ARCHIVED",
OVERDUE = "OVERDUE",
}
export interface IExternalInvoiceJob {
invoice: {
id: string;
status: InvoiceStatus;
[key: string]: unknown;
};
items: {
id: string;
name: string;
count: number;
unitPrice: number;
discount: number;
}[];
businessId: string;
danakSubscriptionId: string;
timestamp: string;
// callbackData?: Record<string, unknown>;
}