avatax 19.12.1 → 20.1.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 +14 -35
- data/lib/avatax/client/addresses.rb +4 -10
- data/lib/avatax/client/avafileforms.rb +10 -25
- data/lib/avatax/client/batches.rb +12 -30
- data/lib/avatax/client/certexpressinvites.rb +6 -15
- data/lib/avatax/client/certificates.rb +31 -76
- data/lib/avatax/client/companies.rb +32 -80
- data/lib/avatax/client/compliance.rb +2 -5
- data/lib/avatax/client/contacts.rb +12 -30
- data/lib/avatax/client/customers.rb +26 -65
- data/lib/avatax/client/datasources.rb +12 -30
- data/lib/avatax/client/definitions.rb +124 -284
- data/lib/avatax/client/distancethresholds.rb +12 -30
- data/lib/avatax/client/filings.rb +2 -5
- data/lib/avatax/client/firmclientlinkages.rb +18 -45
- data/lib/avatax/client/free.rb +6 -15
- data/lib/avatax/client/fundingrequests.rb +4 -10
- data/lib/avatax/client/items.rb +38 -95
- data/lib/avatax/client/jurisdictionoverrides.rb +12 -30
- data/lib/avatax/client/locations.rb +14 -35
- data/lib/avatax/client/multidocument.rb +20 -50
- data/lib/avatax/client/nexus.rb +16 -40
- data/lib/avatax/client/notifications.rb +6 -15
- data/lib/avatax/client/provisioning.rb +4 -10
- data/lib/avatax/client/registrar.rb +20 -50
- data/lib/avatax/client/reports.rb +8 -20
- data/lib/avatax/client/settings.rb +12 -30
- data/lib/avatax/client/subscriptions.rb +6 -15
- data/lib/avatax/client/taxcodes.rb +12 -30
- data/lib/avatax/client/taxcontent.rb +6 -15
- data/lib/avatax/client/taxrules.rb +12 -30
- data/lib/avatax/client/transactions.rb +49 -112
- data/lib/avatax/client/upcs.rb +12 -30
- data/lib/avatax/client/users.rb +16 -40
- data/lib/avatax/client/utilities.rb +6 -15
- data/lib/avatax/version.rb +1 -1
- metadata +2 -2
data/lib/avatax/client/users.rb
CHANGED
@@ -18,11 +18,8 @@ module AvaTax
|
|
18
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.
|
19
19
|
# @param model [Object] An object containing your current password and the new password.
|
20
20
|
# @return [String]
|
21
|
-
def change_password(model)
|
22
|
-
path
|
23
|
-
put(path, model)
|
24
|
-
end
|
25
|
-
|
21
|
+
def change_password(model) path = "/api/v2/passwords"
|
22
|
+
put(path, model) end
|
26
23
|
|
27
24
|
# Create new users
|
28
25
|
#
|
@@ -42,11 +39,8 @@ module AvaTax
|
|
42
39
|
# @param accountId [Integer] The unique ID number of the account where these users will be created.
|
43
40
|
# @param model [UserModel[]] The user or array of users you wish to create.
|
44
41
|
# @return [UserModel[]]
|
45
|
-
def create_users(accountId, model)
|
46
|
-
path
|
47
|
-
post(path, model)
|
48
|
-
end
|
49
|
-
|
42
|
+
def create_users(accountId, model) path = "/api/v2/accounts/#{accountId}/users"
|
43
|
+
post(path, model) end
|
50
44
|
|
51
45
|
# Delete a single user
|
52
46
|
#
|
@@ -63,11 +57,8 @@ module AvaTax
|
|
63
57
|
# @param id [Integer] The ID of the user you wish to delete.
|
64
58
|
# @param accountId [Integer] The accountID of the user you wish to delete.
|
65
59
|
# @return [ErrorDetail[]]
|
66
|
-
def delete_user(id, accountId)
|
67
|
-
path
|
68
|
-
delete(path)
|
69
|
-
end
|
70
|
-
|
60
|
+
def delete_user(id, accountId) path = "/api/v2/accounts/#{accountId}/users/#{id}"
|
61
|
+
delete(path) end
|
71
62
|
|
72
63
|
# Retrieve a single user
|
73
64
|
#
|
@@ -85,11 +76,8 @@ module AvaTax
|
|
85
76
|
# @param accountId [Integer] The accountID of the user you wish to get.
|
86
77
|
# @param include [String] Optional fetch commands.
|
87
78
|
# @return [Object]
|
88
|
-
def get_user(id, accountId, options={})
|
89
|
-
path
|
90
|
-
get(path, options)
|
91
|
-
end
|
92
|
-
|
79
|
+
def get_user(id, accountId, options={}) path = "/api/v2/accounts/#{accountId}/users/#{id}"
|
80
|
+
get(path, options) end
|
93
81
|
|
94
82
|
# Retrieve all entitlements for a single user
|
95
83
|
#
|
@@ -115,11 +103,8 @@ module AvaTax
|
|
115
103
|
# @param id [Integer] The ID of the user to retrieve.
|
116
104
|
# @param accountId [Integer] The accountID of the user you wish to get.
|
117
105
|
# @return [Object]
|
118
|
-
def get_user_entitlements(id, accountId)
|
119
|
-
path
|
120
|
-
get(path)
|
121
|
-
end
|
122
|
-
|
106
|
+
def get_user_entitlements(id, accountId) path = "/api/v2/accounts/#{accountId}/users/#{id}/entitlements"
|
107
|
+
get(path) end
|
123
108
|
|
124
109
|
# Retrieve users for this account
|
125
110
|
#
|
@@ -146,11 +131,8 @@ module AvaTax
|
|
146
131
|
# @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
|
147
132
|
# @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
|
148
133
|
# @return [FetchResult]
|
149
|
-
def list_users_by_account(accountId, options={})
|
150
|
-
path
|
151
|
-
get(path, options)
|
152
|
-
end
|
153
|
-
|
134
|
+
def list_users_by_account(accountId, options={}) path = "/api/v2/accounts/#{accountId}/users"
|
135
|
+
get(path, options) end
|
154
136
|
|
155
137
|
# Retrieve all users
|
156
138
|
#
|
@@ -178,11 +160,8 @@ module AvaTax
|
|
178
160
|
# @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
|
179
161
|
# @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
|
180
162
|
# @return [FetchResult]
|
181
|
-
def query_users(options={})
|
182
|
-
path
|
183
|
-
get(path, options)
|
184
|
-
end
|
185
|
-
|
163
|
+
def query_users(options={}) path = "/api/v2/users"
|
164
|
+
get(path, options) end
|
186
165
|
|
187
166
|
# Update a single user
|
188
167
|
#
|
@@ -198,11 +177,8 @@ module AvaTax
|
|
198
177
|
# @param accountId [Integer] The accountID of the user you wish to update.
|
199
178
|
# @param model [Object] The user object you wish to update.
|
200
179
|
# @return [Object]
|
201
|
-
def update_user(id, accountId, model)
|
202
|
-
path
|
203
|
-
put(path, model)
|
204
|
-
end
|
205
|
-
|
180
|
+
def update_user(id, accountId, model) path = "/api/v2/accounts/#{accountId}/users/#{id}"
|
181
|
+
put(path, model) end
|
206
182
|
end
|
207
183
|
end
|
208
184
|
end
|
@@ -15,11 +15,8 @@ module AvaTax
|
|
15
15
|
# specific features of AvaTax.
|
16
16
|
# @param serviceTypeId [String] The service to check
|
17
17
|
# @return [Object]
|
18
|
-
def get_my_subscription(serviceTypeId)
|
19
|
-
path
|
20
|
-
get(path)
|
21
|
-
end
|
22
|
-
|
18
|
+
def get_my_subscription(serviceTypeId) path = "/api/v2/utilities/subscriptions/#{serviceTypeId}"
|
19
|
+
get(path) end
|
23
20
|
|
24
21
|
# List all services to which the current user is subscribed
|
25
22
|
#
|
@@ -32,11 +29,8 @@ module AvaTax
|
|
32
29
|
# or subscription to provide useful information to the current user as to whether they are entitled to use
|
33
30
|
# specific features of AvaTax.
|
34
31
|
# @return [FetchResult]
|
35
|
-
def list_my_subscriptions()
|
36
|
-
path
|
37
|
-
get(path)
|
38
|
-
end
|
39
|
-
|
32
|
+
def list_my_subscriptions() path = "/api/v2/utilities/subscriptions"
|
33
|
+
get(path) end
|
40
34
|
|
41
35
|
# Tests connectivity and version of the service
|
42
36
|
#
|
@@ -61,11 +55,8 @@ module AvaTax
|
|
61
55
|
#
|
62
56
|
# * This API may be called without providing authentication credentials.
|
63
57
|
# @return [Object]
|
64
|
-
def ping()
|
65
|
-
path
|
66
|
-
get(path)
|
67
|
-
end
|
68
|
-
|
58
|
+
def ping() path = "/api/v2/utilities/ping"
|
59
|
+
get(path) end
|
69
60
|
end
|
70
61
|
end
|
71
62
|
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:
|
4
|
+
version: 20.1.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:
|
11
|
+
date: 2020-02-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|