Re: checking/saving statement requests

Benoit GrĂ©goire <[email protected]> Tue, 9 Jan 2007 03:04:28 -0500
Newsgroups gmane.comp.finance.libofx.devel
Message-ID <[email protected]>
On Sunday 17 December 2006 23:52, Christian Lupien wrote:
> Hello
>
> I sent this email three weeks ago but I was not a list member and it
> never made it out. So here it is again.
>
> I was trying to use gnucash (2.0.2) with aqbanking (2.2.3) and libofx
> (0.8.2) to access an ING direct account which is a SAVINGS account. The
> system worked for a CHECKING account but because this is hardcoded in
> the statement-request, I was unable to get the savings to work (reply was
> always account does not exist).
>
> So I did the following hack. It fixes my problem and keeps binary
> compatibility. A better fix fix might be to force both AccountType enum
> to be the same but that would break the binary compatibility of the
> library.

Indeed, in fact there should never have been two account info structures in 
the first place.  Since this change requires source change in aqbanking 
anyway, I corrected the situation, updated ofxconnect and adapted your patch.  
It will be in libofx 0.8.4 (not to be confused with 0.8.3 released 
yesterday), thanks!

My own solution isn't ideal, as the AcctType enum should be in the global 
scope.  It isn't for historical reasons.  Unfortunately correcting that now 
would break source compatibility for every users of libofx, something I'm not 
quite ready to do until the next major API change.

> I also included the aqbanking patch to make it work. If you do make the
> change, you could send it to them.

Unfortunately, my distribution's dependencies are not recent enough to compile 
aqbanking CVS, so I couldn't adapt your aqbanking patch.  Hopefully you or 
someone else on the list can update the aqbanking part of the patch to use 
the old structures. 

-- 
Benoit Grégoire
Technologies Coeus inc.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
Libofx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libofx-devel
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)

iD4DBQBFo0yQmZ6zzPlLuwMRAq0iAKCs2apn1bjYOv+kKbje9YT29Q0yUwCXTXDb
9wyk/9aMg/jKV7BsEjEygA==
=VOKa
-----END PGP SIGNATURE-----