2024-04-10 12:14:55 +03:00
|
|
|
/*
|
2024-05-22 14:19:23 +03:00
|
|
|
* Firefly III API v2.1.0
|
2024-04-10 12:14:55 +03:00
|
|
|
*
|
2024-05-22 14:19:23 +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-05-19T04:33:01+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-22 14:19:23 +03:00
|
|
|
* API version: 2.1.0
|
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 Attachment struct {
|
2024-05-11 15:26:56 +03:00
|
|
|
CreatedAt time.Time `json:"created_at,omitempty"`
|
|
|
|
UpdatedAt time.Time `json:"updated_at,omitempty"`
|
2024-04-10 12:14:55 +03:00
|
|
|
AttachableType *AttachableType `json:"attachable_type"`
|
|
|
|
// ID of the model this attachment is linked to.
|
|
|
|
AttachableId string `json:"attachable_id"`
|
|
|
|
// MD5 hash of the file for basic duplicate detection.
|
2024-05-11 15:26:56 +03:00
|
|
|
Md5 string `json:"md5,omitempty"`
|
|
|
|
Filename string `json:"filename"`
|
2024-04-10 12:14:55 +03:00
|
|
|
DownloadUrl string `json:"download_url,omitempty"`
|
2024-05-11 15:26:56 +03:00
|
|
|
UploadUrl string `json:"upload_url,omitempty"`
|
|
|
|
Title string `json:"title,omitempty"`
|
|
|
|
Notes string `json:"notes,omitempty"`
|
|
|
|
Mime string `json:"mime,omitempty"`
|
|
|
|
Size int32 `json:"size,omitempty"`
|
2024-04-10 12:14:55 +03:00
|
|
|
}
|