avatax 20.1.0 → 20.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/avatax/client/accounts.rb +180 -116
- data/lib/avatax/client/addresses.rb +34 -34
- data/lib/avatax/client/advancedrules.rb +33 -142
- data/lib/avatax/client/avafileforms.rb +37 -37
- data/lib/avatax/client/batches.rb +122 -122
- data/lib/avatax/client/certexpressinvites.rb +70 -70
- data/lib/avatax/client/certificates.rb +313 -313
- data/lib/avatax/client/companies.rb +234 -232
- data/lib/avatax/client/compliance.rb +2 -2
- data/lib/avatax/client/contacts.rb +58 -58
- data/lib/avatax/client/customers.rb +279 -279
- data/lib/avatax/client/datasources.rb +51 -51
- data/lib/avatax/client/definitions.rb +448 -435
- data/lib/avatax/client/distancethresholds.rb +74 -74
- data/lib/avatax/client/filingcalendars.rb +10 -498
- data/lib/avatax/client/filings.rb +13 -13
- data/lib/avatax/client/firmclientlinkages.rb +54 -54
- data/lib/avatax/client/free.rb +73 -73
- data/lib/avatax/client/fundingrequests.rb +32 -32
- data/lib/avatax/client/items.rb +284 -284
- data/lib/avatax/client/jurisdictionoverrides.rb +70 -70
- data/lib/avatax/client/locations.rb +87 -84
- data/lib/avatax/client/multidocument.rb +294 -234
- data/lib/avatax/client/nexus.rb +283 -143
- data/lib/avatax/client/notifications.rb +48 -48
- data/lib/avatax/client/provisioning.rb +29 -29
- data/lib/avatax/client/registrar.rb +122 -122
- data/lib/avatax/client/reports.rb +63 -63
- data/lib/avatax/client/settings.rb +108 -108
- data/lib/avatax/client/subscriptions.rb +35 -35
- data/lib/avatax/client/taxcodes.rb +72 -72
- data/lib/avatax/client/taxcontent.rb +106 -106
- data/lib/avatax/client/taxrules.rb +122 -122
- data/lib/avatax/client/transactions.rb +654 -639
- data/lib/avatax/client/upcs.rb +63 -63
- data/lib/avatax/client/users.rb +121 -121
- data/lib/avatax/client/utilities.rb +34 -34
- data/lib/avatax/connection.rb +1 -1
- data/lib/avatax/request.rb +2 -0
- data/lib/avatax/version.rb +1 -1
- metadata +3 -3
@@ -5,28 +5,28 @@ module AvaTax
|
|
5
5
|
|
6
6
|
# Checks if the current user is subscribed to a specific service
|
7
7
|
#
|
8
|
-
# Returns a subscription object for the current account, or 404 Not Found if this subscription is not enabled for this account.
|
9
|
-
#
|
10
|
-
# This API will return an error if it is called with invalid authentication credentials.
|
11
|
-
#
|
12
|
-
# This API is intended to help you determine whether you have the necessary subscription to use certain API calls
|
13
|
-
# within AvaTax. You can examine the subscriptions returned from this API call to look for a particular product
|
14
|
-
# or subscription to provide useful information to the current user as to whether they are entitled to use
|
8
|
+
# Returns a subscription object for the current account, or 404 Not Found if this subscription is not enabled for this account.
|
9
|
+
#
|
10
|
+
# This API will return an error if it is called with invalid authentication credentials.
|
11
|
+
#
|
12
|
+
# This API is intended to help you determine whether you have the necessary subscription to use certain API calls
|
13
|
+
# within AvaTax. You can examine the subscriptions returned from this API call to look for a particular product
|
14
|
+
# or subscription to provide useful information to the current user as to whether they are entitled to use
|
15
15
|
# specific features of AvaTax.
|
16
|
-
# @param serviceTypeId [String] The service to check
|
16
|
+
# @param serviceTypeId [String] The service to check
|
17
17
|
# @return [Object]
|
18
18
|
def get_my_subscription(serviceTypeId) path = "/api/v2/utilities/subscriptions/#{serviceTypeId}"
|
19
19
|
get(path) end
|
20
20
|
|
21
21
|
# List all services to which the current user is subscribed
|
22
22
|
#
|
23
|
-
# Returns the list of all subscriptions enabled for the currently logged in user.
|
24
|
-
#
|
25
|
-
# This API will return an error if it is called with invalid authentication credentials.
|
26
|
-
#
|
27
|
-
# This API is intended to help you determine whether you have the necessary subscription to use certain API calls
|
28
|
-
# within AvaTax. You can examine the subscriptions returned from this API call to look for a particular product
|
29
|
-
# or subscription to provide useful information to the current user as to whether they are entitled to use
|
23
|
+
# Returns the list of all subscriptions enabled for the currently logged in user.
|
24
|
+
#
|
25
|
+
# This API will return an error if it is called with invalid authentication credentials.
|
26
|
+
#
|
27
|
+
# This API is intended to help you determine whether you have the necessary subscription to use certain API calls
|
28
|
+
# within AvaTax. You can examine the subscriptions returned from this API call to look for a particular product
|
29
|
+
# or subscription to provide useful information to the current user as to whether they are entitled to use
|
30
30
|
# specific features of AvaTax.
|
31
31
|
# @return [FetchResult]
|
32
32
|
def list_my_subscriptions() path = "/api/v2/utilities/subscriptions"
|
@@ -34,25 +34,25 @@ module AvaTax
|
|
34
34
|
|
35
35
|
# Tests connectivity and version of the service
|
36
36
|
#
|
37
|
-
# Check connectivity to AvaTax and return information about the AvaTax API server.
|
38
|
-
#
|
39
|
-
# This API is intended to help you verify that your connection is working. This API will always succeed and will
|
40
|
-
# never return a error. It provides basic information about the server you connect to:
|
41
|
-
#
|
42
|
-
# * `version` - The version number of the AvaTax API server that responded to your request. The AvaTax API version number is updated once per month during Avalara's update process.
|
43
|
-
# * `authenticated` - A boolean flag indicating whether or not you sent valid credentials with your API request.
|
44
|
-
# * `authenticationType` - If you provided valid credentials to the API, this field will tell you whether you used Bearer, Username, or LicenseKey authentication.
|
45
|
-
# * `authenticatedUserName` - If you provided valid credentials to the API, this field will tell you the username of the currently logged in user.
|
46
|
-
# * `authenticatedUserId` - If you provided valid credentials to the API, this field will tell you the user ID of the currently logged in user.
|
47
|
-
# * `authenticatedAccountId` - If you provided valid credentials to the API, this field will contain the account ID of the currently logged in user.
|
48
|
-
#
|
49
|
-
# This API helps diagnose connectivity problems between your application and AvaTax; you may call this API even
|
50
|
-
# if you do not have verified connection credentials. If this API fails, either your computer is not connected to
|
51
|
-
# the internet, or there is a routing problem between your office and Avalara, or the Avalara server is not available.
|
52
|
-
# For more information on the uptime of AvaTax, please see [Avalara's AvaTax Status Page](https://status.avalara.com/).
|
53
|
-
#
|
54
|
-
# ### Security Policies
|
55
|
-
#
|
37
|
+
# Check connectivity to AvaTax and return information about the AvaTax API server.
|
38
|
+
#
|
39
|
+
# This API is intended to help you verify that your connection is working. This API will always succeed and will
|
40
|
+
# never return a error. It provides basic information about the server you connect to:
|
41
|
+
#
|
42
|
+
# * `version` - The version number of the AvaTax API server that responded to your request. The AvaTax API version number is updated once per month during Avalara's update process.
|
43
|
+
# * `authenticated` - A boolean flag indicating whether or not you sent valid credentials with your API request.
|
44
|
+
# * `authenticationType` - If you provided valid credentials to the API, this field will tell you whether you used Bearer, Username, or LicenseKey authentication.
|
45
|
+
# * `authenticatedUserName` - If you provided valid credentials to the API, this field will tell you the username of the currently logged in user.
|
46
|
+
# * `authenticatedUserId` - If you provided valid credentials to the API, this field will tell you the user ID of the currently logged in user.
|
47
|
+
# * `authenticatedAccountId` - If you provided valid credentials to the API, this field will contain the account ID of the currently logged in user.
|
48
|
+
#
|
49
|
+
# This API helps diagnose connectivity problems between your application and AvaTax; you may call this API even
|
50
|
+
# if you do not have verified connection credentials. If this API fails, either your computer is not connected to
|
51
|
+
# the internet, or there is a routing problem between your office and Avalara, or the Avalara server is not available.
|
52
|
+
# For more information on the uptime of AvaTax, please see [Avalara's AvaTax Status Page](https://status.avalara.com/).
|
53
|
+
#
|
54
|
+
# ### Security Policies
|
55
|
+
#
|
56
56
|
# * This API may be called without providing authentication credentials.
|
57
57
|
# @return [Object]
|
58
58
|
def ping() path = "/api/v2/utilities/ping"
|
data/lib/avatax/connection.rb
CHANGED
data/lib/avatax/request.rb
CHANGED
@@ -22,6 +22,8 @@ module AvaTax
|
|
22
22
|
|
23
23
|
def request(method, path, model, options={})
|
24
24
|
response = connection.send(method) do |request|
|
25
|
+
# timeout in seconds
|
26
|
+
request.options['timeout'] = 1200
|
25
27
|
case method
|
26
28
|
when :get, :delete
|
27
29
|
request.url("#{URI.encode(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: 20.
|
4
|
+
version: 20.5.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: 2020-
|
11
|
+
date: 2020-05-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -218,7 +218,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
218
218
|
- !ruby/object:Gem::Version
|
219
219
|
version: 2.0.0
|
220
220
|
requirements: []
|
221
|
-
rubygems_version: 3.0.
|
221
|
+
rubygems_version: 3.0.8
|
222
222
|
signing_key:
|
223
223
|
specification_version: 4
|
224
224
|
summary: Ruby wrapper for the AvaTax API
|