Added display of credits

This commit is contained in:
Dries Augustyns
2025-12-05 07:59:47 +01:00
parent 8c348d3580
commit 04a64ef83a
4 changed files with 62 additions and 1 deletions
@@ -19,12 +19,20 @@ export interface UpcomingInvoice {
total: number;
}
export interface AccountCredits {
balance: number;
hasCredits: boolean;
creditAmount: number;
currency: string;
}
export interface BillingConsumptionData {
period: BillingPeriod;
usage: {
total: number;
records: UsageRecord[];
};
credits: AccountCredits | null;
upcomingInvoice: UpcomingInvoice | null;
}