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:
parent
90a5741d7a
commit
f5075ed96d
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue