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 14:43:57 +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 14:43:57 +03:00
package swagger
2024-04-10 12:14:55 +03:00
import (
"time"
)
type AccountUpdate struct {
2024-05-11 14:43:57 +03:00
Name string ` json:"name" `
Iban string ` json:"iban,omitempty" `
Bic string ` json:"bic,omitempty" `
AccountNumber string ` json:"account_number,omitempty" `
OpeningBalance string ` json:"opening_balance,omitempty" `
2024-04-10 12:14:55 +03:00
OpeningBalanceDate time . Time ` json:"opening_balance_date,omitempty" `
2024-05-11 14:43:57 +03:00
VirtualBalance string ` json:"virtual_balance,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.
CurrencyCode string ` json:"currency_code,omitempty" `
// If omitted, defaults to true.
Active bool ` json:"active,omitempty" `
// Order of the account
Order int32 ` json:"order,omitempty" `
// If omitted, defaults to true.
2024-05-11 14:43:57 +03:00
IncludeNetWorth bool ` json:"include_net_worth,omitempty" `
AccountRole * AccountRoleProperty ` json:"account_role,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 14:43:57 +03:00
MonthlyPaymentDate time . Time ` json:"monthly_payment_date,omitempty" `
LiabilityType * LiabilityTypeProperty ` json:"liability_type,omitempty" `
2024-04-10 12:14:55 +03:00
// Mandatory when type is liability. Interest percentage.
2024-05-11 14:43:57 +03:00
Interest string ` json:"interest,omitempty" `
2024-04-10 12:14:55 +03:00
InterestPeriod * InterestPeriodProperty ` json:"interest_period,omitempty" `
2024-05-11 14:43:57 +03:00
Notes string ` json:"notes,omitempty" `
2024-04-10 12:14:55 +03:00
// Latitude of the account's location, if applicable. Can be used to draw a map. If omitted, the existing location will be kept. If submitted as NULL, the current location will be removed.
Latitude float64 ` json:"latitude,omitempty" `
// Latitude of the account's location, if applicable. Can be used to draw a map. If omitted, the existing location will be kept. If submitted as NULL, the current location will be removed.
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. If omitted, the existing location will be kept. If submitted as NULL, the current location will be removed.
ZoomLevel int32 ` json:"zoom_level,omitempty" `
}