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.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/lib/avatax/client/accounts.rb +180 -116
  3. data/lib/avatax/client/addresses.rb +34 -34
  4. data/lib/avatax/client/advancedrules.rb +33 -142
  5. data/lib/avatax/client/avafileforms.rb +37 -37
  6. data/lib/avatax/client/batches.rb +122 -122
  7. data/lib/avatax/client/certexpressinvites.rb +70 -70
  8. data/lib/avatax/client/certificates.rb +313 -313
  9. data/lib/avatax/client/companies.rb +234 -232
  10. data/lib/avatax/client/compliance.rb +2 -2
  11. data/lib/avatax/client/contacts.rb +58 -58
  12. data/lib/avatax/client/customers.rb +279 -279
  13. data/lib/avatax/client/datasources.rb +51 -51
  14. data/lib/avatax/client/definitions.rb +448 -435
  15. data/lib/avatax/client/distancethresholds.rb +74 -74
  16. data/lib/avatax/client/filingcalendars.rb +10 -498
  17. data/lib/avatax/client/filings.rb +13 -13
  18. data/lib/avatax/client/firmclientlinkages.rb +54 -54
  19. data/lib/avatax/client/free.rb +73 -73
  20. data/lib/avatax/client/fundingrequests.rb +32 -32
  21. data/lib/avatax/client/items.rb +284 -284
  22. data/lib/avatax/client/jurisdictionoverrides.rb +70 -70
  23. data/lib/avatax/client/locations.rb +87 -84
  24. data/lib/avatax/client/multidocument.rb +294 -234
  25. data/lib/avatax/client/nexus.rb +283 -143
  26. data/lib/avatax/client/notifications.rb +48 -48
  27. data/lib/avatax/client/provisioning.rb +29 -29
  28. data/lib/avatax/client/registrar.rb +122 -122
  29. data/lib/avatax/client/reports.rb +63 -63
  30. data/lib/avatax/client/settings.rb +108 -108
  31. data/lib/avatax/client/subscriptions.rb +35 -35
  32. data/lib/avatax/client/taxcodes.rb +72 -72
  33. data/lib/avatax/client/taxcontent.rb +106 -106
  34. data/lib/avatax/client/taxrules.rb +122 -122
  35. data/lib/avatax/client/transactions.rb +654 -639
  36. data/lib/avatax/client/upcs.rb +63 -63
  37. data/lib/avatax/client/users.rb +121 -121
  38. data/lib/avatax/client/utilities.rb +34 -34
  39. data/lib/avatax/connection.rb +1 -1
  40. data/lib/avatax/request.rb +2 -0
  41. data/lib/avatax/version.rb +1 -1
  42. 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"
@@ -17,7 +17,7 @@ module AvaTax
17
17
  'X-Avalara-Client' => client_id
18
18
  },
19
19
  :url => endpoint,
20
- :proxy => proxy,
20
+ :proxy => proxy
21
21
  }.merge(connection_options)
22
22
 
23
23
  Faraday.new(options) do |faraday|
@@ -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)}")
@@ -1,3 +1,3 @@
1
1
  module AvaTax
2
- VERSION = '20.1.0'.freeze unless defined?(::AvaTax::VERSION)
2
+ VERSION = '20.5.0'.freeze unless defined?(::AvaTax::VERSION)
3
3
  end
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.1.0
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-02-07 00:00:00.000000000 Z
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.3
221
+ rubygems_version: 3.0.8
222
222
  signing_key:
223
223
  specification_version: 4
224
224
  summary: Ruby wrapper for the AvaTax API