2024-04-10 12:14:55 +03:00
/ *
2024-05-11 14:43:57 +03:00
* Firefly III API v2 .0 .14
2024-04-10 12:14:55 +03:00
*
2024-05-11 15:26:56 +03:00
* This is the documentation of the Firefly III API . You can find accompanying documentation on the website of Firefly III itself ( see below ) . Please report any bugs or issues . You may use the \ "Authorize\" button to try the API below . This file was last generated on 2024 - 04 - 20 T05 : 28 : 29 + 00 : 00 Please keep in mind that the demo site does not accept requests from curl , colly , wget , etc . You must use a browser or a tool like Postman to make requests . Too many script kiddies out there , sorry about that .
2024-04-10 12:14:55 +03:00
*
2024-05-11 14:43:57 +03:00
* API version : 2.0 .14
2024-04-10 12:14:55 +03:00
* Contact : james @ firefly - iii . org
* Generated by : Swagger Codegen ( https : //github.com/swagger-api/swagger-codegen.git)
* /
2024-05-11 15:26:56 +03:00
package firefly3
2024-04-10 12:14:55 +03:00
import (
"time"
)
type Account struct {
CreatedAt time . Time ` json:"created_at,omitempty" `
UpdatedAt time . Time ` json:"updated_at,omitempty" `
// If omitted, defaults to true.
Active bool ` json:"active,omitempty" `
// Order of the account. Is NULL if account is not asset or liability.
2024-05-11 15:26:56 +03:00
Order int32 ` json:"order,omitempty" `
Name string ` json:"name" `
Type_ * ShortAccountTypeProperty ` json:"type" `
AccountRole * AccountRoleProperty ` json:"account_role,omitempty" `
2024-04-10 12:14:55 +03:00
// Use either currency_id or currency_code. Defaults to the user's default currency.
CurrencyId string ` json:"currency_id,omitempty" `
// Use either currency_id or currency_code. Defaults to the user's default currency.
2024-05-11 15:26:56 +03:00
CurrencyCode string ` json:"currency_code,omitempty" `
CurrencySymbol string ` json:"currency_symbol,omitempty" `
CurrencyDecimalPlaces int32 ` json:"currency_decimal_places,omitempty" `
CurrentBalance string ` json:"current_balance,omitempty" `
2024-04-10 12:14:55 +03:00
// The timestamp for this date is always 23:59:59, to indicate it's the balance at the very END of that particular day.
CurrentBalanceDate time . Time ` json:"current_balance_date,omitempty" `
2024-05-11 15:26:56 +03:00
Iban string ` json:"iban,omitempty" `
Bic string ` json:"bic,omitempty" `
AccountNumber string ` json:"account_number,omitempty" `
2024-04-10 12:14:55 +03:00
// Represents the opening balance, the initial amount this account holds.
OpeningBalance string ` json:"opening_balance,omitempty" `
// Represents the current debt for liabilities.
CurrentDebt string ` json:"current_debt,omitempty" `
// Represents the date of the opening balance.
OpeningBalanceDate time . Time ` json:"opening_balance_date,omitempty" `
2024-05-11 15:26:56 +03:00
VirtualBalance string ` json:"virtual_balance,omitempty" `
2024-04-10 12:14:55 +03:00
// If omitted, defaults to true.
2024-05-11 15:26:56 +03:00
IncludeNetWorth bool ` json:"include_net_worth,omitempty" `
CreditCardType * CreditCardTypeProperty ` json:"credit_card_type,omitempty" `
2024-04-10 12:14:55 +03:00
// Mandatory when the account_role is ccAsset. Moment at which CC payment installments are asked for by the bank.
2024-05-11 15:26:56 +03:00
MonthlyPaymentDate time . Time ` json:"monthly_payment_date,omitempty" `
LiabilityType * LiabilityTypeProperty ` json:"liability_type,omitempty" `
2024-04-10 12:14:55 +03:00
LiabilityDirection * LiabilityDirectionProperty ` json:"liability_direction,omitempty" `
// Mandatory when type is liability. Interest percentage.
2024-05-11 15:26:56 +03:00
Interest string ` json:"interest,omitempty" `
2024-04-10 12:14:55 +03:00
InterestPeriod * InterestPeriodProperty ` json:"interest_period,omitempty" `
2024-05-11 15:26:56 +03:00
Notes string ` json:"notes,omitempty" `
2024-04-10 12:14:55 +03:00
// Latitude of the accounts's location, if applicable. Can be used to draw a map.
Latitude float64 ` json:"latitude,omitempty" `
// Latitude of the accounts's location, if applicable. Can be used to draw a map.
Longitude float64 ` json:"longitude,omitempty" `
// Zoom level for the map, if drawn. This to set the box right. Unfortunately this is a proprietary value because each map provider has different zoom levels.
ZoomLevel int32 ` json:"zoom_level,omitempty" `
}