Skip to content

Releases: dnbasta/ynab-transaction-adjuster

2.0.0

30 Apr 06:37
1e04fb1
Compare
Choose a tag to compare

Breaking Change

  • update() function does return now list of updated Transaction objects instead of count
  • removed deprecated methods run(), dry_run()and from_credentials()

Enhancements

  • Subtransaction object has now transfer_transaction_id attribute

1.3.0

30 Apr 05:08
181db6e
Compare
Choose a tag to compare

New Functionality

  • specifying an account_id in Credentials is now optional. If not provided library will fetch transactions for whole budget
  • created Account object with name and id attributes.
  • added account as attribute to Transaction, Modifier and ModifiedTransaction object.
  • added accounts as lookup property to Adjuster. It can be used via fetch_by_name() or fetch_by_id()

1.2.0

28 Apr 06:42
594d61e
Compare
Choose a tag to compare

Enhancements

  • categories, payees and transactions attributes of Adjuster class are now python properties
  • Adjuster can now be initialized directly with Credentials object only
  • new apply() method: applies filter() and adjust() functions and returns list of ModifiedTransaction
  • new update()method: updates list of ModifiedTransaction in YNAB
  • changed_attributes in ModifiedTransaction converted from function to python property

Deprecated

  • class method from_credentials() has been deprecated. Use standard constructor instead
  • dry_run() has been deprecated. Use apply() function instead
  • run()has been deprecated. Use apply() and then update() function instead

1.1.0

26 Apr 07:47
d7fee85
Compare
Choose a tag to compare

New Functionality

  • Transaction model has now transfer_transaction_id attribute
  • Adjuster now has fetch_transaction() method to get a specific transaction

1.0.0

23 Apr 05:43
3000fac
Compare
Choose a tag to compare

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 method from_credentials()
  • renamed test() method to dry_run()
  • dry_run() now returns list of ModifiedTransaction instead of dict

New Functionality

  • allows for custom names and custom order with type annotations in filter() and adjust() methods
  • raises SignatureError if parameters in filter() and adjust() are not compatible with abstract methods in Adjuster
  • new optional parameter pretty_print for dry_run() to print friendly output to console

0.3.8

08 Apr 08:56
Compare
Choose a tag to compare

Bugfixes

  • module will no longer call YNAB api when no transactions where modified (earlier caused a 400 error with api because of empty body)

0.3.7

07 Apr 08:02
Compare
Choose a tag to compare

Bugfixes

  • updated readme to match with current version of the module

0.3.6

07 Apr 07:55
Compare
Choose a tag to compare

Bugfixes

  • validate replacing None values in category of originating transaction with an actual category

0.3.5

27 Mar 06:10
Compare
Choose a tag to compare

Enhancements

  • added cleared and approved fields as adjustable values

0.3.4

25 Mar 09:49
Compare
Choose a tag to compare

Bugfixes

  • fixed bug when validating None values for category in modified transaction