2024-04-12 13:00:28 +03:00
|
|
|
package config
|
2024-03-27 21:19:30 +02:00
|
|
|
|
|
|
|
type Config struct {
|
2024-08-28 22:41:05 +03:00
|
|
|
Accounts []Account `json:"accounts"`
|
|
|
|
TransactionTypes []TransactionTypes `json:"transaction_types"`
|
2024-03-27 21:19:30 +02:00
|
|
|
}
|
2024-03-27 20:12:24 +02:00
|
|
|
|
2024-08-28 22:41:05 +03:00
|
|
|
type Account struct {
|
2024-04-03 21:55:53 +03:00
|
|
|
Firefly3Name string `json:"firefly3_name,omitempty"`
|
|
|
|
MonobankId string `json:"monobank_id,omitempty"`
|
2024-08-19 13:23:20 +03:00
|
|
|
Currency string `json:"currency,omitempty"`
|
2024-03-27 21:19:30 +02:00
|
|
|
}
|
2024-03-27 20:12:24 +02:00
|
|
|
|
2024-08-28 22:41:05 +03:00
|
|
|
type TransactionTypes struct {
|
|
|
|
Names []string `json:"names,omitempty"`
|
|
|
|
NamesRefund []string `json:"names_refund,omitempty"`
|
|
|
|
NamesLooseMatch bool `json:"names_loose_match,omitempty"` // "name%" match
|
|
|
|
MccCodes []int `json:"mcc_codes,omitempty"`
|
|
|
|
Firefly3 TransactionTypeFirefly3 `json:"firefly3,omitempty"`
|
|
|
|
SumMax int `json:"sum_max,omitempty"`
|
2024-03-27 21:19:30 +02:00
|
|
|
}
|
2024-03-27 20:12:24 +02:00
|
|
|
|
2024-08-28 22:41:05 +03:00
|
|
|
type TransactionTypeFirefly3 struct {
|
2024-03-29 22:42:44 +02:00
|
|
|
Type string `json:"type,omitempty"`
|
|
|
|
Destination string `json:"destination,omitempty"`
|
|
|
|
Description string `json:"description,omitempty"`
|
|
|
|
Category string `json:"category,omitempty"`
|
|
|
|
IsUseDestinationAsSource bool `json:"is_use_destination_as_source,omitempty"`
|
2024-03-27 21:19:30 +02:00
|
|
|
}
|