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).
This commit is contained in:
padreug 2025-11-10 15:50:33 +01:00
parent 90a5741d7a
commit f5075ed96d

View file

@ -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
}