Files
monobank-firefly3-bot/config/config.go
stuzer05 1fbac9fef9
All checks were successful
build docker image / docker-build (push) Successful in 1m6s
Add auto-detection of transaction direction
For "description" only provided entries, auto detection doesn't work. As it searches if Source or Destenation is a monobank account by it's name
2025-07-20 18:48:35 +03:00

30 lines
1.1 KiB
Go

package config
type Config struct {
Accounts []Account `json:"accounts"`
TransactionTypes []TransactionTypes `json:"transaction_types"`
}
type Account struct {
Firefly3Name string `json:"firefly3_name,omitempty"`
MonobankId string `json:"monobank_id,omitempty"`
Currency string `json:"currency,omitempty"`
}
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"`
}
type TransactionTypeFirefly3 struct {
Type string `json:"type,omitempty"`
Source string `json:"source,omitempty"`
Destination string `json:"destination,omitempty"`
Description string `json:"description,omitempty"`
Category string `json:"category,omitempty"`
}