-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample.config.yml
62 lines (61 loc) · 1.54 KB
/
example.config.yml
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
matchers:
- id: pos-purchase-bank-a # Can be anything
pattern: 'Hello, your account (?P<account>.+) was charged at (?P<datetime>[0-9-]+ [0-9:]+) for (?P<amount>.+) by (?P<location>.+)'
nature: Debit # or Credit
values:
account:
type: FromMatch
config:
group: account
parser: null
amount:
type: FromMatch
config:
group: amount
parser: null
currency:
type: Fixed
config: USD
source:
type: FromMatch
config:
group: location
parser: null
time:
type: FromMatch
config:
group: datetime
parser:
type: FormattedDateTime
config: '%d-%m-%y %H:%M'
- id: online-purchase-bank-b
pattern: 'Hello, your credit card ending with (?P<card>.+) has been used for (?P<currency>[A-Z]+) (?P<amount>.+) at (?P<location>.+) on (?P<datetime>.+ at \d+)\.'
nature: Debit
values:
account:
type: FromMatch
config:
group: card
parser: null
amount:
type: FromMatch
config:
group: amount
parser: null
currency:
type: FromMatch
config:
group: currency
parser: null
source:
type: FromMatch
config:
group: location
parser: null
time:
type: FromMatch
config:
group: datetime
parser:
type: FormattedDateTime
config: '%d/%m/%y at %H:%M:%S'