avatax 21.9.0 → 21.10.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/filingcalendars.rb +2 -0
- data/lib/avatax/client/filings.rb +2 -0
- data/lib/avatax/request.rb +11 -3
- data/lib/avatax/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 464f9c27aa970f7aadf17b5a50cc059be091bd4bdfe221944d3c4e4673168ea4
|
4
|
+
data.tar.gz: 1cac51fbaa20ac2696c6981ad7f2d6db5b1a93b50014d1e94237d142f90649b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02a1bf895af6cf65dd6b63f406b210dca1801a9b7662ec56a6de17bb8a76775de4fd111a94bdc12495edc28e4bbab08449c8f2386cc0a8cb0cd9054577cab540
|
7
|
+
data.tar.gz: 004ceea7942fbb901dd98f9e1fc8309ed3932dfbb57cf8be20027651a3c84fa76bb5854f3f324d8275c500d4ebad20a3262623828006c429213576626a570e84
|
@@ -11,6 +11,7 @@ module AvaTax
|
|
11
11
|
#
|
12
12
|
# ### Security Policies
|
13
13
|
#
|
14
|
+
# * This API requires openId bearer token for authentication
|
14
15
|
# * This API depends on the following active services:*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.*Firm Managed* (for accounts managed by a firm): ARA, ARAManaged.
|
15
16
|
# @param companyId [Integer] The unique ID of the company that owns the filing calendar object
|
16
17
|
# @param model [Object] Cycle Safe Options Request
|
@@ -24,6 +25,7 @@ module AvaTax
|
|
24
25
|
#
|
25
26
|
# ### Security Policies
|
26
27
|
#
|
28
|
+
# * This API requires openId bearer token for authentication
|
27
29
|
# * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPTester, FirmAdmin, FirmUser, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
|
28
30
|
# @param companyId [Integer] The unique ID of the company
|
29
31
|
# @param filingCalendarId [Integer] The unique ID of the filing calendar that will remove setting
|
@@ -7,6 +7,7 @@ module AvaTax
|
|
7
7
|
#
|
8
8
|
# ### Security Policies
|
9
9
|
#
|
10
|
+
# * This API requires openId bearer token for authentication
|
10
11
|
# * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPTester, FirmAdmin, FirmUser, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
|
11
12
|
# @param companyId [Integer] The ID of the company that owns these returns
|
12
13
|
# @param filingReturnId [Integer] The ID of the filing return
|
@@ -18,6 +19,7 @@ module AvaTax
|
|
18
19
|
#
|
19
20
|
# ### Security Policies
|
20
21
|
#
|
22
|
+
# * This API requires openId bearer token for authentication
|
21
23
|
# * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, ProStoresOperator, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
|
22
24
|
# * This API is available by invitation only.*Exempt security roles*: ComplianceRootUser, ComplianceAdmin, ComplianceUser, TechnicalSupportAdmin, TechnicalSupportUser, CompanyUser, AccountUser, CompanyAdmin, AccountAdmin.
|
23
25
|
# * This API depends on the following active services:*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.*Firm Managed* (for accounts managed by a firm): ARA, ARAManaged.
|
data/lib/avatax/request.rb
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
require 'faraday'
|
2
2
|
require 'json'
|
3
|
+
require "erb"
|
4
|
+
|
3
5
|
|
4
6
|
module AvaTax
|
5
7
|
module Request
|
@@ -24,9 +26,9 @@ module AvaTax
|
|
24
26
|
response = connection.send(method) do |request|
|
25
27
|
case method
|
26
28
|
when :get, :delete
|
27
|
-
request.url("#{
|
29
|
+
request.url("#{encode_path(path)}?#{URI.encode_www_form(options)}")
|
28
30
|
when :post, :put
|
29
|
-
request.url("#{
|
31
|
+
request.url("#{encode_path(path)}?#{URI.encode_www_form(options)}")
|
30
32
|
request.headers['Content-Type'] = 'application/json'
|
31
33
|
request.body = model.to_json unless model.empty?
|
32
34
|
end
|
@@ -38,5 +40,11 @@ module AvaTax
|
|
38
40
|
response.body
|
39
41
|
end
|
40
42
|
end
|
43
|
+
|
44
|
+
private
|
45
|
+
|
46
|
+
def encode_path(path)
|
47
|
+
path.split('/').map { |part| ERB::Util.url_encode(part) }.join('/')
|
48
|
+
end
|
41
49
|
end
|
42
|
-
end
|
50
|
+
end
|
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.10.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-10-
|
11
|
+
date: 2021-10-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|