diff options
author | Jared Norman <jared@super.gd> | 2021-02-08 16:50:56 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-08 16:50:56 -0800 |
commit | 6e9ff3c16c705cb75b55b4cfb9f66379bcad45a7 (patch) | |
tree | 14c1f3a3d59ec9df9eb7b601cbe146bf14ad3e2a /lib/super_good/solidus_taxjar/api.rb | |
parent | b8e1db2f128312b7d2a6923c2fe2424df70385c2 (diff) | |
parent | 338d38d00a3e444aaeddc757e508d0f34d811209 (diff) |
Merge pull request #34 from nvandoorn/33-put-api-version-in-request-headers
Diffstat (limited to 'lib/super_good/solidus_taxjar/api.rb')
-rw-r--r-- | lib/super_good/solidus_taxjar/api.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/super_good/solidus_taxjar/api.rb b/lib/super_good/solidus_taxjar/api.rb index 9a8ba90..a1d1af5 100644 --- a/lib/super_good/solidus_taxjar/api.rb +++ b/lib/super_good/solidus_taxjar/api.rb @@ -5,7 +5,9 @@ module SuperGood ::Taxjar::Client.new( api_key: ENV.fetch("TAXJAR_API_KEY"), api_url: ENV.fetch("TAXJAR_API_URL") { "https://api.taxjar.com" } # Sandbox URL: https://api.sandbox.taxjar.com - ) + ).set_api_config('headers', { + 'x-api-version' => '2020-08-07' + }) end def initialize(taxjar_client: self.class.default_taxjar_client) |