ynab / ynab-sdk-ruby

YNAB API Client for Ruby
https://api.ynab.com
Apache License 2.0
65 stars 12 forks source link

Is the SaveTransaction class unused? #76

Closed jordancrawfordnz closed 2 months ago

jordancrawfordnz commented 2 months ago

Hi - I recently upgraded to version 3.2 from a 2.x version. I had code which was using SaveTransaction with the create transaction API (https://github.com/ynab/ynab-sdk-ruby/blob/main/docs/TransactionsApi.md#create_transaction).

I noticed that the SaveTransaction class and it's docs still exists but isn't referenced in lib/ynab.rb so cannot be loaded.

Is the class meant to be loadable? Or is it meant to be removed?

I switched my code over to use NewTransaction and so far it's working as intended.

bradymholt commented 2 months ago

Ah, you're right, this class is no longer in use. NewTransaction is the class you'll want. I have a PR here: https://github.com/ynab/ynab-sdk-ruby/pull/79 to fix this. Thanks for letting us know.