avatax 19.3.0 → 19.4.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 +28 -0
- data/lib/avatax/client/addresses.rb +10 -0
- data/lib/avatax/client/avafileforms.rb +30 -0
- data/lib/avatax/client/batches.rb +24 -0
- data/lib/avatax/client/certexpressinvites.rb +15 -0
- data/lib/avatax/client/certificates.rb +76 -1
- data/lib/avatax/client/companies.rb +66 -2
- data/lib/avatax/client/contacts.rb +24 -0
- data/lib/avatax/client/customers.rb +50 -0
- data/lib/avatax/client/datasources.rb +30 -0
- data/lib/avatax/client/definitions.rb +28 -4
- data/lib/avatax/client/distancethresholds.rb +24 -0
- data/lib/avatax/client/filingcalendars.rb +132 -0
- data/lib/avatax/client/filings.rb +164 -2
- data/lib/avatax/client/free.rb +4 -0
- data/lib/avatax/client/fundingrequests.rb +12 -0
- data/lib/avatax/client/items.rb +64 -23
- data/lib/avatax/client/jurisdictionoverrides.rb +24 -0
- data/lib/avatax/client/locations.rb +28 -0
- data/lib/avatax/client/multidocument.rb +50 -0
- data/lib/avatax/client/nexus.rb +34 -21
- data/lib/avatax/client/notices.rb +141 -2
- data/lib/avatax/client/notifications.rb +12 -0
- data/lib/avatax/client/onboarding.rb +12 -0
- data/lib/avatax/client/registrar.rb +44 -1
- data/lib/avatax/client/reports.rb +16 -0
- data/lib/avatax/client/settings.rb +24 -0
- data/lib/avatax/client/subscriptions.rb +12 -0
- data/lib/avatax/client/taxcodes.rb +24 -0
- data/lib/avatax/client/taxcontent.rb +14 -15
- data/lib/avatax/client/taxrules.rb +24 -0
- data/lib/avatax/client/transactions.rb +187 -1
- data/lib/avatax/client/upcs.rb +30 -0
- data/lib/avatax/client/users.rb +44 -14
- data/lib/avatax/client/utilities.rb +4 -0
- data/lib/avatax/version.rb +1 -1
- metadata +2 -2
data/lib/avatax/client/upcs.rb
CHANGED
@@ -7,6 +7,11 @@ module AvaTax
|
|
7
7
|
#
|
8
8
|
# Create one or more new UPC objects attached to this company.
|
9
9
|
# A UPC represents a single UPC code in your catalog and matches this product to the tax code identified by this UPC.
|
10
|
+
#
|
11
|
+
# ### Security Policies
|
12
|
+
#
|
13
|
+
# * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, SSTAdmin, TechnicalSupportAdmin.
|
14
|
+
# * This API depends on the following active services<br />*Required* (all): AvaUpc.
|
10
15
|
# @param companyId [Integer] The ID of the company that owns this UPC.
|
11
16
|
# @param model [UPCModel[]] The UPC you wish to create.
|
12
17
|
# @return [UPCModel[]]
|
@@ -19,6 +24,11 @@ module AvaTax
|
|
19
24
|
# Delete a single UPC
|
20
25
|
#
|
21
26
|
# Marks the UPC object identified by this URL as deleted.
|
27
|
+
#
|
28
|
+
# ### Security Policies
|
29
|
+
#
|
30
|
+
# * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, SSTAdmin, TechnicalSupportAdmin.
|
31
|
+
# * This API depends on the following active services<br />*Required* (all): AvaUpc.
|
22
32
|
# @param companyId [Integer] The ID of the company that owns this UPC.
|
23
33
|
# @param id [Integer] The ID of the UPC you wish to delete.
|
24
34
|
# @return [ErrorDetail[]]
|
@@ -32,6 +42,11 @@ module AvaTax
|
|
32
42
|
#
|
33
43
|
# Get the UPC object identified by this URL.
|
34
44
|
# A UPC represents a single UPC code in your catalog and matches this product to the tax code identified by this UPC.
|
45
|
+
#
|
46
|
+
# ### Security Policies
|
47
|
+
#
|
48
|
+
# * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
|
49
|
+
# * This API depends on the following active services<br />*Required* (all): AvaUpc.
|
35
50
|
# @param companyId [Integer] The ID of the company that owns this UPC
|
36
51
|
# @param id [Integer] The primary key of this UPC
|
37
52
|
# @return [Object]
|
@@ -48,6 +63,11 @@ module AvaTax
|
|
48
63
|
#
|
49
64
|
# Search for specific objects using the criteria in the `$filter` parameter; full documentation is available on [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/) .
|
50
65
|
# Paginate your results using the `$top`, `$skip`, and `$orderby` parameters.
|
66
|
+
#
|
67
|
+
# ### Security Policies
|
68
|
+
#
|
69
|
+
# * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
|
70
|
+
# * This API depends on the following active services<br />*Required* (all): AvaUpc.
|
51
71
|
# @param companyId [Integer] The ID of the company that owns these UPCs
|
52
72
|
# @param filter [String] A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
|
53
73
|
# @param include [String] A comma separated list of additional data to retrieve.
|
@@ -68,6 +88,11 @@ module AvaTax
|
|
68
88
|
#
|
69
89
|
# Search for specific objects using the criteria in the `$filter` parameter; full documentation is available on [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/) .
|
70
90
|
# Paginate your results using the `$top`, `$skip`, and `$orderby` parameters.
|
91
|
+
#
|
92
|
+
# ### Security Policies
|
93
|
+
#
|
94
|
+
# * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
|
95
|
+
# * This API depends on the following active services<br />*Required* (all): AvaUpc.
|
71
96
|
# @param filter [String] A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
|
72
97
|
# @param include [String] A comma separated list of additional data to retrieve.
|
73
98
|
# @param top [Integer] If nonzero, return no more than this number of results. Used with `$skip` to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records.
|
@@ -86,6 +111,11 @@ module AvaTax
|
|
86
111
|
# A UPC represents a single UPC code in your catalog and matches this product to the tax code identified by this UPC.
|
87
112
|
# All data from the existing object will be replaced with data in the object you PUT.
|
88
113
|
# To set a field's value to null, you may either set its value to null or omit that field from the object you post.
|
114
|
+
#
|
115
|
+
# ### Security Policies
|
116
|
+
#
|
117
|
+
# * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, SSTAdmin, TechnicalSupportAdmin.
|
118
|
+
# * This API depends on the following active services<br />*Required* (all): AvaUpc.
|
89
119
|
# @param companyId [Integer] The ID of the company that this UPC belongs to.
|
90
120
|
# @param id [Integer] The ID of the UPC you wish to update
|
91
121
|
# @param model [Object] The UPC you wish to update.
|
data/lib/avatax/client/users.rb
CHANGED
@@ -12,6 +12,10 @@ module AvaTax
|
|
12
12
|
#
|
13
13
|
# This API only allows the currently authenticated user to change their password; it cannot be used to apply to a
|
14
14
|
# different user than the one authenticating the current API call.
|
15
|
+
#
|
16
|
+
# ### Security Policies
|
17
|
+
#
|
18
|
+
# * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPTester, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
|
15
19
|
# @param model [Object] An object containing your current password and the new password.
|
16
20
|
# @return [String]
|
17
21
|
def change_password(model)
|
@@ -31,6 +35,10 @@ module AvaTax
|
|
31
35
|
#
|
32
36
|
# A newly created user will receive an email inviting them to create their password. This means that you
|
33
37
|
# must provide a valid email address for all user accounts created.
|
38
|
+
#
|
39
|
+
# ### Security Policies
|
40
|
+
#
|
41
|
+
# * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPTester, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
|
34
42
|
# @param accountId [Integer] The unique ID number of the account where these users will be created.
|
35
43
|
# @param model [UserModel[]] The user or array of users you wish to create.
|
36
44
|
# @return [UserModel[]]
|
@@ -48,6 +56,10 @@ module AvaTax
|
|
48
56
|
#
|
49
57
|
# Account and company administrators may only delete users within the appropriate organizations
|
50
58
|
# they control.
|
59
|
+
#
|
60
|
+
# ### Security Policies
|
61
|
+
#
|
62
|
+
# * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, Compliance Root User, CSPTester, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TreasuryAdmin.
|
51
63
|
# @param id [Integer] The ID of the user you wish to delete.
|
52
64
|
# @param accountId [Integer] The accountID of the user you wish to delete.
|
53
65
|
# @return [ErrorDetail[]]
|
@@ -61,6 +73,14 @@ module AvaTax
|
|
61
73
|
#
|
62
74
|
# Get the user object identified by this URL.
|
63
75
|
# A user represents one person with access privileges to make API calls and work with a specific account.
|
76
|
+
#
|
77
|
+
# You may specify one or more of the following values in the `$include` parameter to fetch additional nested data, using commas to separate multiple values:
|
78
|
+
#
|
79
|
+
# * FetchDeleted
|
80
|
+
#
|
81
|
+
# ### Security Policies
|
82
|
+
#
|
83
|
+
# * 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, SystemOperator, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
|
64
84
|
# @param id [Integer] The ID of the user to retrieve.
|
65
85
|
# @param accountId [Integer] The accountID of the user you wish to get.
|
66
86
|
# @param include [String] Optional fetch commands.
|
@@ -88,6 +108,10 @@ module AvaTax
|
|
88
108
|
# * If the 'permissions' array within entitlements does not contain 'AccountSvc.CompanySave', the call will fail.
|
89
109
|
#
|
90
110
|
# For a full list of defined permissions, please use '/api/v2/definitions/permissions' .
|
111
|
+
#
|
112
|
+
# ### Security Policies
|
113
|
+
#
|
114
|
+
# * 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, SystemOperator, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
|
91
115
|
# @param id [Integer] The ID of the user to retrieve.
|
92
116
|
# @param accountId [Integer] The accountID of the user you wish to get.
|
93
117
|
# @return [Object]
|
@@ -97,20 +121,6 @@ module AvaTax
|
|
97
121
|
end
|
98
122
|
|
99
123
|
|
100
|
-
# Get information about a username.
|
101
|
-
#
|
102
|
-
# You may call this API prior to creating a user, to check if a particular username is available for use. Using this API, you can
|
103
|
-
# present a friendly experience prior to attempting to create a new user object.
|
104
|
-
#
|
105
|
-
# Please ensure that the query string is url encoded if you wish to check information for a user that contains url-sensitive characters.
|
106
|
-
# @param username [String] The username to search.
|
107
|
-
# @return [Object]
|
108
|
-
def get_username(options={})
|
109
|
-
path = "/api/v2/usernames"
|
110
|
-
get(path, options)
|
111
|
-
end
|
112
|
-
|
113
|
-
|
114
124
|
# Retrieve users for this account
|
115
125
|
#
|
116
126
|
# List all user objects attached to this account.
|
@@ -121,6 +131,14 @@ module AvaTax
|
|
121
131
|
#
|
122
132
|
# Search for specific objects using the criteria in the `$filter` parameter; full documentation is available on [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/) .
|
123
133
|
# Paginate your results using the `$top`, `$skip`, and `$orderby` parameters.
|
134
|
+
#
|
135
|
+
# You may specify one or more of the following values in the `$include` parameter to fetch additional nested data, using commas to separate multiple values:
|
136
|
+
#
|
137
|
+
# * FetchDeleted
|
138
|
+
#
|
139
|
+
# ### Security Policies
|
140
|
+
#
|
141
|
+
# * 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, SystemOperator, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
|
124
142
|
# @param accountId [Integer] The accountID of the user you wish to list.
|
125
143
|
# @param include [String] Optional fetch commands.
|
126
144
|
# @param filter [String] A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
|
@@ -146,6 +164,14 @@ module AvaTax
|
|
146
164
|
#
|
147
165
|
# Search for specific objects using the criteria in the `$filter` parameter; full documentation is available on [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/) .
|
148
166
|
# Paginate your results using the `$top`, `$skip`, and `$orderby` parameters.
|
167
|
+
#
|
168
|
+
# You may specify one or more of the following values in the `$include` parameter to fetch additional nested data, using commas to separate multiple values:
|
169
|
+
#
|
170
|
+
# * FetchDeleted
|
171
|
+
#
|
172
|
+
# ### Security Policies
|
173
|
+
#
|
174
|
+
# * 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, SystemOperator, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
|
149
175
|
# @param include [String] Optional fetch commands.
|
150
176
|
# @param filter [String] A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
|
151
177
|
# @param top [Integer] If nonzero, return no more than this number of results. Used with `$skip` to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records.
|
@@ -164,6 +190,10 @@ module AvaTax
|
|
164
190
|
# A user represents one person with access privileges to make API calls and work with a specific account.
|
165
191
|
# All data from the existing object will be replaced with data in the object you PUT.
|
166
192
|
# To set a field's value to null, you may either set its value to null or omit that field from the object you post.
|
193
|
+
#
|
194
|
+
# ### Security Policies
|
195
|
+
#
|
196
|
+
# * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPTester, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
|
167
197
|
# @param id [Integer] The ID of the user you wish to update.
|
168
198
|
# @param accountId [Integer] The accountID of the user you wish to update.
|
169
199
|
# @param model [Object] The user object you wish to update.
|
@@ -56,6 +56,10 @@ module AvaTax
|
|
56
56
|
# if you do not have verified connection credentials. If this API fails, either your computer is not connected to
|
57
57
|
# the internet, or there is a routing problem between your office and Avalara, or the Avalara server is not available.
|
58
58
|
# For more information on the uptime of AvaTax, please see [Avalara's AvaTax Status Page](https://status.avalara.com/).
|
59
|
+
#
|
60
|
+
# ### Security Policies
|
61
|
+
#
|
62
|
+
# * This API may be called without providing authentication credentials.
|
59
63
|
# @return [Object]
|
60
64
|
def ping()
|
61
65
|
path = "/api/v2/utilities/ping"
|
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: 19.
|
4
|
+
version: 19.4.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: 2019-
|
11
|
+
date: 2019-04-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|