From f5075ed96dedd868d80dd32899b047bd25ab6a74 Mon Sep 17 00:00:00 2001 From: padreug Date: Mon, 10 Nov 2025 15:50:33 +0100 Subject: [PATCH] Clarifies amount field in ExpenseEntryRequest Updates the description of the `amount` and `currency` fields in the `ExpenseEntryRequest` interface to clarify that the amount is in the specified currency (or satoshis if currency is None). --- src/modules/expenses/types/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/expenses/types/index.ts b/src/modules/expenses/types/index.ts index 5ce4932..1f9e37e 100644 --- a/src/modules/expenses/types/index.ts +++ b/src/modules/expenses/types/index.ts @@ -51,12 +51,12 @@ export enum PermissionType { */ export interface ExpenseEntryRequest { description: string - amount: number // In sats + amount: number // Amount in the specified currency (or satoshis if currency is None) expense_account: string // Account name or ID is_equity: boolean user_wallet: string reference?: string - currency?: string // e.g., "USD" + currency?: string // If None, amount is in satoshis. Otherwise, fiat currency code (e.g., "EUR", "USD") entry_date?: string // ISO datetime string }