diff --git a/beancount_reds_importers/importers/capitalonebank/360Checking.qfx b/beancount_reds_importers/importers/capitalonebank/360Checking.qfx new file mode 100644 index 0000000..0a833c4 --- /dev/null +++ b/beancount_reds_importers/importers/capitalonebank/360Checking.qfx @@ -0,0 +1,75 @@ + + + + + + 0 + INFO + + 20230310048208.398 + ENG + + Capital One Bank + 1001 + + 1236 + + + + + 0 + + 0 + INFO + + + USD + + 031176110 + 9876 + CHECKING + + + 20230109050000.000 + 20230309040000.000 + + + CREDIT + 20230228050000.000 + 0.01 + 202302283828 + Monthly Interest Paid + + + + CREDIT + 20230119050000.000 + 888.99 + 202301191113 + Deposit from BEAN COUNTERS PAYROLL + + + + DEBIT + 20230117050000.000 + -100 + 202301171112 + Withdrawal from AMERICAN EXPRESS ACH PMT + + + CREDIT + 20230112050000.000 + 444.55 + 202301121111 + Deposit from BEAN COUNTERS PAYROLL + + + + + 4321.98 + 20230310048208.39 + + + + + diff --git a/beancount_reds_importers/importers/capitalonebank/360Checking.qfx.extract b/beancount_reds_importers/importers/capitalonebank/360Checking.qfx.extract new file mode 100644 index 0000000..9a9fb4e --- /dev/null +++ b/beancount_reds_importers/importers/capitalonebank/360Checking.qfx.extract @@ -0,0 +1,14 @@ + +2023-01-12 * "Deposit from BEAN COUNTERS PAYROLL" "" + Assets:Banks:CapitalOne 444.55 USD + +2023-01-17 * "Withdrawal from AMERICAN EXPRESS ACH PMT" "" + Assets:Banks:CapitalOne -100 USD + +2023-01-19 * "Deposit from BEAN COUNTERS PAYROLL" "" + Assets:Banks:CapitalOne 888.99 USD + +2023-02-28 * "Monthly Interest Paid" "" + Assets:Banks:CapitalOne 0.01 USD + +2023-03-01 balance Assets:Banks:CapitalOne 4321.98 USD diff --git a/beancount_reds_importers/importers/capitalonebank/360Checking.qfx.file_account b/beancount_reds_importers/importers/capitalonebank/360Checking.qfx.file_account new file mode 100644 index 0000000..b5120d7 --- /dev/null +++ b/beancount_reds_importers/importers/capitalonebank/360Checking.qfx.file_account @@ -0,0 +1 @@ +Assets:Banks:CapitalOne diff --git a/beancount_reds_importers/importers/capitalonebank/360Checking.qfx.file_date b/beancount_reds_importers/importers/capitalonebank/360Checking.qfx.file_date new file mode 100644 index 0000000..07a2bd0 --- /dev/null +++ b/beancount_reds_importers/importers/capitalonebank/360Checking.qfx.file_date @@ -0,0 +1 @@ +2023-03-09T04:00:00 diff --git a/beancount_reds_importers/importers/capitalonebank/360Checking.qfx.file_name b/beancount_reds_importers/importers/capitalonebank/360Checking.qfx.file_name new file mode 100644 index 0000000..2bfe11d --- /dev/null +++ b/beancount_reds_importers/importers/capitalonebank/360Checking.qfx.file_name @@ -0,0 +1 @@ +360Checking.qfx diff --git a/beancount_reds_importers/importers/capitalonebank/capitalone_test.py b/beancount_reds_importers/importers/capitalonebank/capitalone_test.py new file mode 100644 index 0000000..6ca6ac9 --- /dev/null +++ b/beancount_reds_importers/importers/capitalonebank/capitalone_test.py @@ -0,0 +1,16 @@ +from os import path +from beancount.ingest import regression_pytest as regtest +from beancount_reds_importers.importers import capitalonebank + + +@regtest.with_importer( + capitalonebank.Importer( + { + "account_number": "9876", + "main_account": "Assets:Banks:CapitalOne", + } + ) +) +@regtest.with_testdir(path.dirname(__file__)) +class TestCapitalOne(regtest.ImporterTestBase): + pass