-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcommon.go
35 lines (30 loc) · 802 Bytes
/
common.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package toshl
// Currency represents a Toshl supported currency
type Currency struct {
Code string `json:"code"`
Rate float64 `json:"rate"`
Fixed bool `json:"fixed"`
}
// Median represents a Toshl median
type Median struct {
Expenses float64 `json:"expenses"`
Incomes float64 `json:"incomes"`
}
// Goal represents a Toshl goal
type Goal struct {
Amount float64 `json:"amount"`
Start string `json:"start"`
End string `json:"end"`
}
// Recurrence represents a Toshl recurrence
type Recurrence struct {
Frequency string `json:"frequency"`
Interval int `json:"interval"`
Start string `json:"start"`
Iteration int `json:"iteration"`
}
// CategoryCounts represents a Toshl count
type CategoryCounts struct {
Entries int `json:"entries"`
Tags int `json:"tags"`
}