Releases: dnbasta/ynab-transaction-adjuster
Releases · dnbasta/ynab-transaction-adjuster
2.0.0
1.3.0
New Functionality
- specifying an
account_id
inCredentials
is now optional. If not provided library will fetch transactions for whole budget - created
Account
object withname
andid
attributes. - added
account
as attribute toTransaction
,Modifier
andModifiedTransaction
object. - added
accounts
as lookup property toAdjuster
. It can be used viafetch_by_name()
orfetch_by_id()
1.2.0
Enhancements
categories
,payees
andtransactions
attributes ofAdjuster
class are now python propertiesAdjuster
can now be initialized directly withCredentials
object only- new
apply()
method: appliesfilter()
andadjust()
functions and returns list ofModifiedTransaction
- new
update()
method: updates list ofModifiedTransaction
in YNAB changed_attributes
inModifiedTransaction
converted from function to python property
Deprecated
- class method
from_credentials()
has been deprecated. Use standard constructor instead dry_run()
has been deprecated. Useapply()
function insteadrun()
has been deprecated. Useapply()
and thenupdate()
function instead
1.1.0
1.0.0
Breaking changes
- shortened and simplified class names and attributes
- introduced
Credentials
object for storing token, budget and account string - made
Adjuster
class easier to side load/test by putting API calls into to class methodfrom_credentials()
- renamed
test()
method todry_run()
dry_run()
now returns list ofModifiedTransaction
instead ofdict
New Functionality
- allows for custom names and custom order with type annotations in
filter()
andadjust()
methods - raises
SignatureError
if parameters infilter()
andadjust()
are not compatible with abstract methods inAdjuster
- new optional parameter
pretty_print
fordry_run()
to print friendly output to console