ofxparse icon indicating copy to clipboard operation
ofxparse copied to clipboard

Add writer of Credit Card Statement

Open diraol opened this issue 10 months ago • 0 comments

This pull request includes changes to the ofxparse Python library, specifically in the ofxparse.py and ofxprinter.py files. The changes are centered around improving the handling of OFX data, including parsing and printing. The main changes include parsing the dtserver field in the __init__ method of ofxparse.py, adding a tabs parameter in the OfxPrinter class of ofxprinter.py, and expanding the writeHeaders, writeStmTrs, and writeBankMsgsRsv1 methods in ofxprinter.py.

Parsing improvements:

  • ofxparse/ofxparse.py: The __init__ method now parses the dtserver field using the parseOfxDateTime method from OfxParser.

Printing improvements:

  • ofxparse/ofxprinter.py: The OfxPrinter class now has a tabs parameter in the __init__ method, which is used to control the indentation of the output.
  • ofxparse/ofxprinter.py: The writeSignOn method has been expanded to handle a variety of fields and conditions for the signon object.
  • ofxparse/ofxprinter.py: A new method writeCCStmTrs has been added to handle the printing of credit card statement transactions.
  • ofxparse/ofxprinter.py: The writeBankMsgsRsv1 method has been expanded to handle credit card messages via the new writeCreditCardMsgsRsv1 method.

diraol avatar Apr 14 '24 01:04 diraol