Changed Revolut expected CSV import format
This commit is contained in:
parent
d168f42ba3
commit
138da17f65
5
main.py
5
main.py
|
@ -29,9 +29,12 @@ def main():
|
||||||
reader = RevolutCsvReader(args.input_file)
|
reader = RevolutCsvReader(args.input_file)
|
||||||
|
|
||||||
with Mt940Writer(args.output_file, args.account_iban) as writer:
|
with Mt940Writer(args.output_file, args.account_iban) as writer:
|
||||||
for transaction in reader.get_all_transactions():
|
transactions = reader.get_all_transactions()
|
||||||
|
for transaction in transactions:
|
||||||
writer.write_transaction(transaction)
|
writer.write_transaction(transaction)
|
||||||
|
|
||||||
|
print('Wrote {} transactions to file: {}.'.format(len(transaction), args.output_file))
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
main()
|
main()
|
12
revolut.py
12
revolut.py
|
@ -8,12 +8,12 @@ from datetime import datetime, timedelta
|
||||||
from data import Transaction
|
from data import Transaction
|
||||||
|
|
||||||
EXCPECT_HEADERS = [
|
EXCPECT_HEADERS = [
|
||||||
'Date started', 'Time started', 'Date completed', 'Time completed',
|
'Date started (UTC)', 'Time started (UTC)', 'Date completed (UTC)',
|
||||||
'State', 'Type', 'Description', 'Reference', 'Payer', 'Card name',
|
'Time completed (UTC)', 'State', 'Type', 'Description', 'Reference',
|
||||||
'Card number', 'Orig currency', 'Orig amount', 'Payment currency',
|
'Payer', 'Card name', 'Card number', 'Orig currency', 'Orig amount',
|
||||||
'Amount', 'Fee', 'Balance', 'Account', 'Beneficiary account number',
|
'Payment currency', 'Amount', 'Fee', 'Balance', 'Account',
|
||||||
'Beneficiary sort code or routing number', 'Beneficiary IBAN',
|
'Beneficiary account number', 'Beneficiary sort code or routing number',
|
||||||
'Beneficiary BIC'
|
'Beneficiary IBAN', 'Beneficiary BIC'
|
||||||
]
|
]
|
||||||
|
|
||||||
NAME_REMOVE_PREFIXES = [
|
NAME_REMOVE_PREFIXES = [
|
||||||
|
|
Loading…
Reference in New Issue
Block a user