Skip to content

Commit

Permalink
fix: update example bank enum and column name
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamin-awd committed Oct 26, 2023
1 parent 3f89319 commit e8307d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions monopoly/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ class BankNames(Enum):
HSBC = "hsbc"
OCBC = "ocbc"
STANDARD_CHARTERED = "standard_chartered"
EXAMPLE = "monopoly"


class StatementFields(str, Enum):
Expand Down
6 changes: 3 additions & 3 deletions monopoly/examples/example_bank.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
from monopoly.banks.base import BankBase
from monopoly.config import StatementConfig
from monopoly.constants import AccountType
from monopoly.constants import AccountType, BankNames


# fmt: off
class MonopolyBank(BankBase):
"""Dummy class to help with reading the example PDF statement"""
statement_config = StatementConfig(
bank_name="monopoly",
bank_name=BankNames.EXAMPLE,
account_type=AccountType.CREDIT,
transaction_pattern=(
r"(?P<date>\d+/\d+)\s*"
r"(?P<transaction_date>\d+/\d+)\s*"
r"(?P<description>.*?)\s*"
r"(?P<amount>[\d.,]+)$"
),
Expand Down

0 comments on commit e8307d1

Please sign in to comment.