-
Notifications
You must be signed in to change notification settings - Fork 134
Open
Labels
good first issueGood for newcomersGood for newcomers
Description
Location: frontend/lib/types/invoice.ts
Description
Before any invoice hooks or pages can be built, the TypeScript interfaces for the invoices feature need to be defined. These types represent the invoice records returned by the API and are shared across the invoices list page, the detail page, and any dashboard stats that reference invoice data.
Acceptance Criteria
-
frontend/lib/types/invoice.tsexports:- An
InvoiceStatustype:"PAID" | "PENDING" - An
Invoiceinterface with:id: stringinvoiceNumber: stringamountKobo: numberamountNaira: numberstatus: InvoiceStatuspaidAt: string | nulluserId: stringbookingId: stringpaymentId: string | nullbooking?: Booking(imported from@/lib/types/booking)payment?: Payment(imported from@/lib/types/payment)user?: { id: string; firstname: string; lastname: string; email: string }createdAt: stringupdatedAt: string
- An
- Only TypeScript
interfaceandtypedeclarations — no runtime code -
npx tsc --noEmitpasses with no errors
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomers