From 00739d0eef61740d83e8a68ba08f726f0416a77b Mon Sep 17 00:00:00 2001 From: Jonas Meyer Date: Sat, 19 Mar 2022 04:49:39 +0100 Subject: [PATCH] Add estateguru english csv layout --- config/estateguru_en.yml | 15 +++++++++++++++ parse-account-statements.py | 1 + 2 files changed, 16 insertions(+) create mode 100644 config/estateguru_en.yml diff --git a/config/estateguru_en.yml b/config/estateguru_en.yml new file mode 100644 index 0000000..2a7e05e --- /dev/null +++ b/config/estateguru_en.yml @@ -0,0 +1,15 @@ +--- +type_regex: !!map + deposit: "^Deposit.*" + withdraw: "^Withdrawal.*" + interest: "(^Interest.*)|(^Indemnity.*)|(^Referral.*)|(^EG Bonus.*)|(^Secondary Market Profit.*)" + fee: "(^Secondary Market Loss.*)|(^Fee.*)" + +csv_fieldnames: !!map + booking_date: 'Payment Date' + booking_date_format: '%d/%m/%Y %H:%M' + booking_details: 'Loan Code' + booking_id: 'ID' + booking_type: 'Cash Flow Type' + booking_value: 'Amount' + booking_currency: 'Currency' diff --git a/parse-account-statements.py b/parse-account-statements.py index 28e128c..930c130 100755 --- a/parse-account-statements.py +++ b/parse-account-statements.py @@ -86,6 +86,7 @@ def parse_args(): "robocash", "swaper", "viainvest", + "estateguru_en", ], default="mintos", )