Show product usage types in credit ledger

Persist hotword request origin so every reservation lifecycle entry can be classified without mutating the immutable ledger.
This commit is contained in:
Rocky
2026-08-19 19:47:12 +08:00
parent e1fd35b1ff
commit 3edc86a9a0
22 changed files with 205 additions and 16 deletions
+3
View File
@@ -98,6 +98,8 @@ export type LedgerEntryType =
| "refund"
| "adjustment";
export type UsageType = "polish" | "asr" | "ai" | "agent" | "hotword";
export interface LedgerEntry {
entryId: string;
userId: string;
@@ -105,6 +107,7 @@ export interface LedgerEntry {
amount: number;
balanceAfter: number;
reasonCode: string;
usageType?: UsageType;
createdAt: string;
}