Module: Api::Taxjar
- Defined in:
- app/services/api/taxjar.rb,
app/services/api/taxjar/error.rb,
app/services/api/taxjar/client.rb,
app/services/api/taxjar/category.rb,
app/services/api/taxjar/customer.rb,
app/services/api/taxjar/tax_result.rb,
app/services/api/taxjar/transaction.rb,
app/services/api/taxjar/summary_rate.rb,
app/services/api/taxjar/tax_line_item.rb
Overview
Namespace + factory for the direct TaxJar API client. Replaces the
taxjar-ruby gem; see Client and
doc/tasks/202606011409_EXTRACT_TAXJAR_DIRECT_CLIENT.md.
Defined Under Namespace
Classes: Category, Client, Customer, Error, SummaryRate, TaxLineItem, TaxResult, Transaction
Class Method Summary collapse
-
.client ⇒ Api::Taxjar::Client
Build a TaxJar client from the encrypted credentials (
taxjar => api_key / api_url).
Class Method Details
.client ⇒ Api::Taxjar::Client
Build a TaxJar client from the encrypted credentials
(taxjar => api_key / api_url). A fresh instance per call avoids sharing
a Faraday connection across threads.
13 14 15 16 17 18 |
# File 'app/services/api/taxjar.rb', line 13 def self.client Client.new( api_key: Heatwave::Configuration.fetch(:taxjar, :api_key), api_url: Heatwave::Configuration.fetch(:taxjar, :api_url) ) end |