avatax 21.9.0 → 21.10.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f093a4a8890e9266820d341d75bd24beccedce72570c1ff2a9af69d0db500927
4
- data.tar.gz: 606c268a3a348169041822234a16e84573c8e3eaa5c07fa3a22f1db6459896d6
3
+ metadata.gz: 464f9c27aa970f7aadf17b5a50cc059be091bd4bdfe221944d3c4e4673168ea4
4
+ data.tar.gz: 1cac51fbaa20ac2696c6981ad7f2d6db5b1a93b50014d1e94237d142f90649b9
5
5
  SHA512:
6
- metadata.gz: 496e76e866a9eea1b0e610f718173b71416f491a045d31e795836bae930068f44c618dc3b3dadf345a6935bbb3b65f1ddb89af40d054f276d76c4244f74a343c
7
- data.tar.gz: ca40289b423c2a54b2c1be792a77051ca2e8a2b4ff4e005a52c4e255005e85ab94d20b062551f5750bfc072c1e2505a1feb25496ee0f42a46b00263bc631c978
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.
@@ -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("#{URI.encode(path)}?#{URI.encode_www_form(options)}")
29
+ request.url("#{encode_path(path)}?#{URI.encode_www_form(options)}")
28
30
  when :post, :put
29
- request.url("#{URI.encode(path)}?#{URI.encode_www_form(options)}")
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
@@ -1,3 +1,3 @@
1
1
  module AvaTax
2
- VERSION = '21.9.0'.freeze unless defined?(::AvaTax::VERSION)
2
+ VERSION = '21.10.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: 21.9.0
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-13 00:00:00.000000000 Z
11
+ date: 2021-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake