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

Support for API versions; gem should upgrade before it is forced #77

Open
pdg137 opened this issue Jun 23, 2022 · 1 comment
Open

Support for API versions; gem should upgrade before it is forced #77

pdg137 opened this issue Jun 23, 2022 · 1 comment

Comments

@pdg137
Copy link

pdg137 commented Jun 23, 2022

According to https://developers.taxjar.com/api/reference/?ruby#api-version , there are various versions of the API. By email we were told that the version will be force-upgraded for everyone on August 31, but there's no obvious way to test the latest version with this gem.

It seems to me that the gem should provide access to the version and also default to the latest version of the API starting now, so that anyone can test it out as part of their normal gem upgrade process.

@bray
Copy link

bray commented Jul 15, 2022

@pdg137 With the latest gem version (3.0.3), I'm able to set the API version like so:

TaxjarClient.set_api_config('headers', {
  'x-api-version' => '2022-01-24'
})

I agree though that this should be in the README and default to the latest API version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants