Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FR]: Store account as attribute on transaction #6

Open
mattcen opened this issue Oct 9, 2023 · 0 comments
Open

[FR]: Store account as attribute on transaction #6

mattcen opened this issue Oct 9, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@mattcen
Copy link

mattcen commented Oct 9, 2023

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 mattcen@8f07ef6, but I don't think I've taken the best approach; I'm enthusiastic for feedback.

@mattcen mattcen added the enhancement New feature or request label Oct 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant