1
0
mirror of https://github.com/aclindsa/ofxgo.git synced 2024-09-21 10:20:04 -04:00
Commit Graph

14 Commits

Author SHA1 Message Date
f185d78d29 Generalize response parsing code
This removes the many decodeXXXMessageSet() functions and replaces them
with a large map and a single generic decodeMessageSet() function. Also
change Responses to satisfy the Message interface as pointer types
(instead of the raw types), add the full set of top-level message sets
(though most of them still lack any message-parsing ability), adjust the
message set names to more closely mirror their OFX names, and fixup
tests and the command-line client to match the above changes.
2017-03-31 11:54:43 -04:00
d822179446 Add Type() to Message interface, check types when marshalling requests 2017-03-31 09:25:07 -04:00
c1777df3df Standardize transaction wrapper fields 2017-03-30 10:24:26 -04:00
6efd3ae921 Add test for banking responses
This also adds a generic response equality testing framework, a missing
Status field to all current responses, and Equal() methods to all basic
types.
2017-03-30 07:08:34 -04:00
5596cfbf8d Don't require UIDs to be 36 characters
The spec strongly recommends this, but doesn't strictly require it
2017-03-29 09:23:15 -04:00
1d8ba5c19a Make optional struct fields pointers
This allows encoding/xml to properly comparison against nil to see if
they should be marshalled if the 'xml' tag contains ",omitempty" and for
users to test against nil to see if a field was present in the parsed
OFX.

This commit also fixes up cmd/ofx to use the new pointers.
2017-03-29 09:22:02 -04:00
27a88ca703 Make Decode*MessageSet functions private to the library
These don't need to be exposed and clutter the auto-generated
documentation
2017-03-25 06:23:30 -04:00
f2cea7c6d4 Switch to own clone of xml encoding library 2017-03-22 20:59:40 -04:00
6491311dbc Move credit cards to the right message set
They don't belong in with the banking message set like they were, even
though they're in the same section in the spec...
2017-03-22 20:01:30 -04:00
a0e2c146e4 Add requesting/parsing security list 2017-03-20 21:07:58 -04:00
f59f3713c2 Add simple investment requests/responses
This is lacking (at least) parsing the list of securities frequently
sent with investment statements
2017-03-19 21:08:58 -04:00
76aeca66c8 Banking: Add credit card statements, image data, and pending transactions 2017-03-17 21:35:42 -04:00
8158868432 Reorganization 2017-03-17 21:35:26 -04:00
cd1e7b480a Add the ability to download Bank Transactions 2017-03-14 10:31:14 -04:00