avatax 21.10.0 → 21.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/avatax/client/accounts.rb +22 -11
- data/lib/avatax/client/addresses.rb +4 -2
- data/lib/avatax/client/advancedrules.rb +10 -5
- data/lib/avatax/client/ageverification.rb +29 -0
- data/lib/avatax/client/avafileforms.rb +10 -5
- data/lib/avatax/client/batches.rb +16 -8
- data/lib/avatax/client/certexpressinvites.rb +6 -3
- data/lib/avatax/client/certificates.rb +30 -15
- data/lib/avatax/client/companies.rb +42 -21
- data/lib/avatax/client/compliance.rb +25 -14
- data/lib/avatax/client/contacts.rb +12 -6
- data/lib/avatax/client/customers.rb +26 -13
- data/lib/avatax/client/datasources.rb +12 -6
- data/lib/avatax/client/definitions.rb +140 -70
- data/lib/avatax/client/distancethresholds.rb +12 -6
- data/lib/avatax/client/ecommercetoken.rb +4 -2
- data/lib/avatax/client/filingcalendars.rb +7 -4
- data/lib/avatax/client/filings.rb +4 -2
- data/lib/avatax/client/firmclientlinkages.rb +18 -9
- data/lib/avatax/client/free.rb +2 -1
- data/lib/avatax/client/fundingrequests.rb +4 -2
- data/lib/avatax/client/items.rb +50 -25
- data/lib/avatax/client/jurisdictionoverrides.rb +12 -6
- data/lib/avatax/client/locations.rb +24 -12
- data/lib/avatax/client/multidocument.rb +20 -10
- data/lib/avatax/client/nexus.rb +30 -15
- data/lib/avatax/client/notices.rb +8 -4
- data/lib/avatax/client/notifications.rb +6 -3
- data/lib/avatax/client/provisioning.rb +4 -2
- data/lib/avatax/client/registrar.rb +22 -11
- data/lib/avatax/client/reports.rb +8 -4
- data/lib/avatax/client/settings.rb +12 -6
- data/lib/avatax/client/shippingverification.rb +66 -0
- data/lib/avatax/client/subscriptions.rb +6 -3
- data/lib/avatax/client/taxcodes.rb +12 -6
- data/lib/avatax/client/taxcontent.rb +10 -5
- data/lib/avatax/client/taxrules.rb +12 -6
- data/lib/avatax/client/transactions.rb +42 -21
- data/lib/avatax/client/upcs.rb +12 -6
- data/lib/avatax/client/userdefinedfields.rb +52 -0
- data/lib/avatax/client/users.rb +16 -8
- data/lib/avatax/client/utilities.rb +6 -3
- data/lib/avatax/client.rb +2 -0
- data/lib/avatax/connection.rb +1 -1
- data/lib/avatax/request.rb +10 -9
- data/lib/avatax/version.rb +1 -1
- metadata +5 -2
data/lib/avatax/request.rb
CHANGED
@@ -6,24 +6,25 @@ require "erb"
|
|
6
6
|
module AvaTax
|
7
7
|
module Request
|
8
8
|
|
9
|
-
def get(path, options={})
|
10
|
-
request(:get, path, nil, options)
|
9
|
+
def get(path, options={}, apiversion="")
|
10
|
+
request(:get, path, nil, options, apiversion)
|
11
11
|
end
|
12
12
|
|
13
|
-
def post(path, model, options={})
|
14
|
-
request(:post, path, model, options)
|
13
|
+
def post(path, model, options={}, apiversion="")
|
14
|
+
request(:post, path, model, options, apiversion)
|
15
15
|
end
|
16
16
|
|
17
|
-
def put(path, model, options={})
|
18
|
-
request(:put, path, model, options)
|
17
|
+
def put(path, model, options={}, apiversion="")
|
18
|
+
request(:put, path, model, options, apiversion)
|
19
19
|
end
|
20
20
|
|
21
|
-
def delete(path, options={})
|
22
|
-
request(:delete, path, nil, options)
|
21
|
+
def delete(path, options={}, apiversion="")
|
22
|
+
request(:delete, path, nil, options, apiversion)
|
23
23
|
end
|
24
24
|
|
25
|
-
def request(method, path, model, options={})
|
25
|
+
def request(method, path, model, options={}, apiversion="")
|
26
26
|
response = connection.send(method) do |request|
|
27
|
+
request.headers['X-Avalara-Client'] = request.headers['X-Avalara-Client'].gsub("API_VERSION", apiversion)
|
27
28
|
case method
|
28
29
|
when :get, :delete
|
29
30
|
request.url("#{encode_path(path)}?#{URI.encode_www_form(options)}")
|
data/lib/avatax/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: avatax
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 21.
|
4
|
+
version: 21.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marcus Vorwaller
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-12-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -121,6 +121,7 @@ files:
|
|
121
121
|
- lib/avatax/client/accounts.rb
|
122
122
|
- lib/avatax/client/addresses.rb
|
123
123
|
- lib/avatax/client/advancedrules.rb
|
124
|
+
- lib/avatax/client/ageverification.rb
|
124
125
|
- lib/avatax/client/avafileforms.rb
|
125
126
|
- lib/avatax/client/batches.rb
|
126
127
|
- lib/avatax/client/certexpressinvites.rb
|
@@ -153,6 +154,7 @@ files:
|
|
153
154
|
- lib/avatax/client/registrar.rb
|
154
155
|
- lib/avatax/client/reports.rb
|
155
156
|
- lib/avatax/client/settings.rb
|
157
|
+
- lib/avatax/client/shippingverification.rb
|
156
158
|
- lib/avatax/client/subscriptions.rb
|
157
159
|
- lib/avatax/client/taxContent/README.txt
|
158
160
|
- lib/avatax/client/taxRatesByZip/README.txt
|
@@ -162,6 +164,7 @@ files:
|
|
162
164
|
- lib/avatax/client/taxrules.rb
|
163
165
|
- lib/avatax/client/transactions.rb
|
164
166
|
- lib/avatax/client/upcs.rb
|
167
|
+
- lib/avatax/client/userdefinedfields.rb
|
165
168
|
- lib/avatax/client/users.rb
|
166
169
|
- lib/avatax/client/utilities.rb
|
167
170
|
- lib/avatax/configuration.rb
|