import { Currency } from '@chargify/formatters'; export type BillingHistoryModel = { pagination: { totalItems: number; totalPages: number; itemsPerPage: number; }; items: InvoiceModel[]; }; export type InvoiceModel = { id: string; number: string; issueDate: string; dueDate: string; status: InvoiceStatus; totalAmountInCents: number; amountDueInCents: number; currency: Currency; invoiceUrl: string; consolidationLevel: InvoiceConsolidationLevel; }; export type Product = { name: string; id: number; }; export type InvoiceStatus = 'draft' | 'open' | 'paid' | 'pending' | 'voided' | 'canceled'; export type InvoiceConsolidationLevel = 'none' | 'parent' | 'child'; export type SortDir = 'asc' | 'desc';