When invoking list_ledger_entries() again, we would expect ledger entries of the 2022 accounting year but receive cached ledger entries of the previous call instead.
Proposed Solution
CaschedApiClient needs to save a cached copy for every parameter set called.
Default values need to be made explicit before calling the cached method.
To this end, it would. probably be helpful to implement a (cached) list_fiscal_periods method.
Problem
Our current caching functionality is misleading in certain situations, for example when the default accounting year is changed between two calls.
list_ledger_entries()
returns ledger entries of the current default accounting year and caches the return value.list_ledger_entries()
again, we would expect ledger entries of the 2022 accounting year but receive cached ledger entries of the previous call instead.Proposed Solution
list_fiscal_periods
method.