-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.sample.edn
102 lines (86 loc) · 4.33 KB
/
config.sample.edn
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
;; This file needs to be copied to $HOME/.config/money/config.edn and adapted to
;; suit your needs.
{
;; These are the different export types we can support.
:csv-types
[
{
:name "monzo"
;; These are the column names we use to identify that this CSV file is a
;; Monzo CSV file. If these columns are present, use this mapper.
:identifier-columns ["Transaction ID" "Date" "Time"]
;; Mapping CSV columns to our internal database columns.
:column-mappings {
"Date" :date
"Name" :name
"Category" :original-category
"Amount" :amount
}
}
{
:name "amex"
:identifier-columns ["Date" "Description" "Card Member"]
:column-mappings {
"Date" :date
"Appears On Your Statement As" :name
"Category" :original-category
"Amount" :amount
}
}
]
;; These rules describe how transactions are categorized. For now they only
;; support matching on :name and on :original-category.
;;
;; :name is case insensitive and matches a substring.
;; :original-category requires a strict match.
;;
;; You can combine both:
;; {:match
;; {:name "blah"
;; :original-category "General"}
;; :category "Subscriptions"}
:category-rules
[
{:match {:name "APPLE.COM/BILL"} :category "Subscriptions"}
{:match {:name "YouTube Premium"} :category "Subscriptions"}
{:match {:name "NETFLIX.COM"} :category "Subscriptions"}
{:match {:original-category "Bills"} :category "Bills"}
{:match {:original-category "Income"} :category "Income"}
{:match {:original-category "Savings"} :category "Savings"}
{:match {:name "ringgo"} :category "Car"}
{:match {:name "CHAR.GY"} :category "Car"}
{:match {:original-category "General Purchases-Parking Charges"} :category "Car"}
{:match {:original-category "Eating out"} :category "Eating out"}
{:match {:original-category "Entertainment-Bars & Cafés"} :category "Eating out"}
{:match {:original-category "Entertainment-Restaurants"} :category "Eating out"}
{:match {:original-category "General"} :category "General"}
{:match {:original-category "Groceries"} :category "Groceries"}
{:match {:original-category "General Purchases-Groceries"} :category "Groceries"}
{:match {:original-category "Holidays"} :category "Holidays"}
{:match {:original-category "Business Services-Health Care Services"} :category "Personal care"}
{:match {:original-category "General Purchases-Pharmacies"} :category "Personal care"}
{:match {:original-category "Personal care"} :category "Personal care"}
{:match {:name "yoga"} :category "Personal care"}
{:match {:original-category "Shopping"} :category "Shopping"}
{:match {:original-category "General Purchases-Book Stores"} :category "Shopping"}
{:match {:original-category "General Purchases-Clothing Stores"} :category "Shopping"}
{:match {:original-category "General Purchases-Department Stores"} :category "Shopping"}
{:match {:original-category "General Purchases-General Retail"} :category "Shopping"}
{:match {:original-category "General Purchases-Hardware Supplies"} :category "Shopping"}
{:match {:original-category "General Purchases-Online Purchases"} :category "Shopping"}
{:match {:original-category "General Purchases-Sporting Goods Stores"} :category "Shopping"}
{:match {:original-category "Transport"} :category "Transportation"}
{:match {:original-category "Travel-Airline"} :category "Transportation"}
{:match {:original-category "Travel-Auto Services"} :category "Transportation"}
{:match {:original-category "Travel-Other Travel"} :category "Transportation"}
{:match {:original-category "Travel-Taxis & Coach"} :category "Transportation"}
{:match {:original-category "Entertainment-Clubs"} :category "Entertainment"}
{:match {:original-category "Entertainment-General Attractions"} :category "Entertainment"}
{:match {:original-category "Entertainment-Other Entertainment"} :category "Entertainment"}
{:match {:original-category "Entertainment"} :category "Entertainment"}
{:match {:original-category "Transfers"} :category "Transfers"}
;; This wildcard options is specific to amex, which doesn't set a description
;; on transfers received to pay off card balance.
{:match {:original-category ""} :category "Transfers"}
]
}