[FR]: Store account as attribute on transaction
Is your feature request related to a problem? Please describe.
No response
Describe the solution you'd like
When running client.transactions(), without specifying a specific account, there's no trivial way to determine which account a transaction is attached to. Ideally, having an account attribute on the Transaction which stores an Account would resolve this.
I acknowledge that it's possible to iterate through Accounts and pull all Transactions from there, but I think this approach should also be made possible.
Describe alternatives you've considered
No response
Additional context
My actual use-case is to be pull a CSV in the same format as I can export from the Up! app, using the API, so that I don't need to (a) copy the file off my phone, and (b) retrieve CSVs one month at a time. This is one of several fields missing from a Transaction required to facilitate this.
(The other fields are the "Transaction Type" and "Total (AUD)"; the latter is achievable by summing amount and round_up; I haven't worked out yet where to get the former via the API.)
I took a stab at adding account to Transaction with https://github.com/mattcen/up-bank-api/commit/8f07ef63aec0080ec96ed110e7402088779bd1d6, but I don't think I've taken the best approach; I'm enthusiastic for feedback.