go-firefly3/model_budget.go
2024-04-10 12:14:55 +03:00

33 lines
1.8 KiB
Go

/*
* Firefly III API v2.0.12
*
* 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-03-16T05:34:43+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.
*
* API version: 2.0.12
* Contact: james@firefly-iii.org
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package firefly3
import (
"time"
)
type Budget struct {
CreatedAt time.Time `json:"created_at,omitempty"`
UpdatedAt time.Time `json:"updated_at,omitempty"`
Name string `json:"name"`
Active bool `json:"active,omitempty"`
Notes string `json:"notes,omitempty"`
Order int32 `json:"order,omitempty"`
AutoBudgetType *AutoBudgetType `json:"auto_budget_type,omitempty"`
// Use either currency_id or currency_code. Defaults to the user's default currency.
AutoBudgetCurrencyId string `json:"auto_budget_currency_id,omitempty"`
// Use either currency_id or currency_code. Defaults to the user's default currency.
AutoBudgetCurrencyCode string `json:"auto_budget_currency_code,omitempty"`
AutoBudgetAmount string `json:"auto_budget_amount,omitempty"`
AutoBudgetPeriod *AutoBudgetPeriod `json:"auto_budget_period,omitempty"`
// Information on how much was spent in this budget. Is only filled in when the start and end date are submitted.
Spent []BudgetSpent `json:"spent,omitempty"`
}