avatax 21.3.1 → 21.9.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 +83 -83
- data/lib/avatax/client/addresses.rb +20 -20
- data/lib/avatax/client/advancedrules.rb +41 -41
- data/lib/avatax/client/avafileforms.rb +41 -41
- data/lib/avatax/client/batches.rb +62 -62
- data/lib/avatax/client/certexpressinvites.rb +27 -27
- data/lib/avatax/client/certificates.rb +111 -111
- data/lib/avatax/client/companies.rb +153 -153
- data/lib/avatax/client/contacts.rb +48 -48
- data/lib/avatax/client/customers.rb +97 -97
- data/lib/avatax/client/datasources.rb +48 -48
- data/lib/avatax/client/definitions.rb +591 -422
- data/lib/avatax/client/distancethresholds.rb +48 -48
- data/lib/avatax/client/ecommercetoken.rb +16 -16
- data/lib/avatax/client/filingcalendars.rb +39 -20
- data/lib/avatax/client/filings.rb +20 -20
- data/lib/avatax/client/firmclientlinkages.rb +69 -69
- data/lib/avatax/client/free.rb +13 -13
- data/lib/avatax/client/fundingrequests.rb +20 -20
- data/lib/avatax/client/items.rb +255 -137
- data/lib/avatax/client/jurisdictionoverrides.rb +48 -48
- data/lib/avatax/client/locations.rb +90 -90
- data/lib/avatax/client/multidocument.rb +76 -76
- data/lib/avatax/client/nexus.rb +133 -105
- data/lib/avatax/client/notices.rb +37 -406
- data/lib/avatax/client/notifications.rb +27 -27
- data/lib/avatax/client/provisioning.rb +20 -20
- data/lib/avatax/client/registrar.rb +85 -75
- data/lib/avatax/client/reports.rb +35 -35
- data/lib/avatax/client/settings.rb +55 -50
- data/lib/avatax/client/subscriptions.rb +27 -27
- data/lib/avatax/client/taxcodes.rb +48 -48
- data/lib/avatax/client/taxcontent.rb +41 -41
- data/lib/avatax/client/taxrules.rb +50 -50
- data/lib/avatax/client/transactions.rb +154 -154
- data/lib/avatax/client/upcs.rb +48 -48
- data/lib/avatax/client/users.rb +64 -64
- data/lib/avatax/client/utilities.rb +27 -27
- data/lib/avatax/version.rb +1 -1
- metadata +11 -4
@@ -1,10 +1,10 @@
|
|
1
|
-
module AvaTax
|
2
|
-
class Client
|
3
|
-
module Registrar
|
4
|
-
|
5
|
-
|
6
|
-
# Create a new account
|
7
|
-
#
|
1
|
+
module AvaTax
|
2
|
+
class Client
|
3
|
+
module Registrar
|
4
|
+
|
5
|
+
|
6
|
+
# Create a new account
|
7
|
+
#
|
8
8
|
# # For Registrar Use Only
|
9
9
|
# This API is for use by Avalara Registrar administrative users only.
|
10
10
|
#
|
@@ -13,14 +13,14 @@ module AvaTax
|
|
13
13
|
#
|
14
14
|
# ### Security Policies
|
15
15
|
#
|
16
|
-
# * This API requires one of the following user roles: FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
|
16
|
+
# * This API requires one of the following user roles: FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
|
17
17
|
# @param model [Object] The account you wish to create.
|
18
|
-
# @return [AccountModel[]]
|
19
|
-
def create_account(model) path = "/api/v2/accounts"
|
20
|
-
post(path, model) end
|
21
|
-
|
22
|
-
# Create new notifications.
|
23
|
-
#
|
18
|
+
# @return [AccountModel[]]
|
19
|
+
def create_account(model) path = "/api/v2/accounts"
|
20
|
+
post(path, model) end
|
21
|
+
|
22
|
+
# Create new notifications.
|
23
|
+
#
|
24
24
|
# This API is available by invitation only.
|
25
25
|
#
|
26
26
|
# Create a single notification.
|
@@ -38,14 +38,14 @@ module AvaTax
|
|
38
38
|
# ### Security Policies
|
39
39
|
#
|
40
40
|
# * This API requires one of the following user roles: FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
|
41
|
-
# * This API is available by invitation only. To request access to this feature, please speak to a business development manager and request access to [NotificationsAPI:Create].
|
41
|
+
# * This API is available by invitation only. To request access to this feature, please speak to a business development manager and request access to [NotificationsAPI:Create].
|
42
42
|
# @param model [NotificationModel[]] The notifications you wish to create.
|
43
|
-
# @return [NotificationModel[]]
|
44
|
-
def create_notifications(model) path = "/api/v2/notifications"
|
45
|
-
post(path, model) end
|
46
|
-
|
47
|
-
# Create a new subscription
|
48
|
-
#
|
43
|
+
# @return [NotificationModel[]]
|
44
|
+
def create_notifications(model) path = "/api/v2/notifications"
|
45
|
+
post(path, model) end
|
46
|
+
|
47
|
+
# Create a new subscription
|
48
|
+
#
|
49
49
|
# This API is for use by Avalara Registrar administrative users only.
|
50
50
|
#
|
51
51
|
# Create one or more new subscription objects attached to this account.
|
@@ -54,15 +54,15 @@ module AvaTax
|
|
54
54
|
#
|
55
55
|
# ### Security Policies
|
56
56
|
#
|
57
|
-
# * This API requires one of the following user roles: Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
|
57
|
+
# * This API requires one of the following user roles: Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
|
58
58
|
# @param accountId [Integer] The ID of the account that owns this subscription.
|
59
59
|
# @param model [SubscriptionModel[]] The subscription you wish to create.
|
60
|
-
# @return [SubscriptionModel[]]
|
61
|
-
def create_subscriptions(accountId, model) path = "/api/v2/accounts/#{accountId}/subscriptions"
|
62
|
-
post(path, model) end
|
63
|
-
|
64
|
-
# Delete a single account
|
65
|
-
#
|
60
|
+
# @return [SubscriptionModel[]]
|
61
|
+
def create_subscriptions(accountId, model) path = "/api/v2/accounts/#{accountId}/subscriptions"
|
62
|
+
post(path, model) end
|
63
|
+
|
64
|
+
# Delete a single account
|
65
|
+
#
|
66
66
|
# # For Registrar Use Only
|
67
67
|
# This API is for use by Avalara Registrar administrative users only.
|
68
68
|
#
|
@@ -71,14 +71,14 @@ module AvaTax
|
|
71
71
|
#
|
72
72
|
# ### Security Policies
|
73
73
|
#
|
74
|
-
# * This API requires the user role SystemAdmin.
|
74
|
+
# * This API requires the user role SystemAdmin.
|
75
75
|
# @param id [Integer] The ID of the account you wish to delete.
|
76
|
-
# @return [ErrorDetail[]]
|
77
|
-
def delete_account(id) path = "/api/v2/accounts/#{id}"
|
78
|
-
delete(path) end
|
79
|
-
|
80
|
-
# Delete a single notification.
|
81
|
-
#
|
76
|
+
# @return [ErrorDetail[]]
|
77
|
+
def delete_account(id) path = "/api/v2/accounts/#{id}"
|
78
|
+
delete(path) end
|
79
|
+
|
80
|
+
# Delete a single notification.
|
81
|
+
#
|
82
82
|
# This API is available by invitation only.
|
83
83
|
#
|
84
84
|
# Delete the existing notification identified by this URL.
|
@@ -93,14 +93,14 @@ module AvaTax
|
|
93
93
|
# ### Security Policies
|
94
94
|
#
|
95
95
|
# * This API requires one of the following user roles: FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
|
96
|
-
# * This API is available by invitation only. To request access to this feature, please speak to a business development manager and request access to [NotificationsAPI:Create].
|
96
|
+
# * This API is available by invitation only. To request access to this feature, please speak to a business development manager and request access to [NotificationsAPI:Create].
|
97
97
|
# @param id [Integer] The id of the notification you wish to delete.
|
98
|
-
# @return [ErrorDetail[]]
|
99
|
-
def delete_notification(id) path = "/api/v2/notifications/#{id}"
|
100
|
-
delete(path) end
|
101
|
-
|
102
|
-
# Delete a single subscription
|
103
|
-
#
|
98
|
+
# @return [ErrorDetail[]]
|
99
|
+
def delete_notification(id) path = "/api/v2/notifications/#{id}"
|
100
|
+
delete(path) end
|
101
|
+
|
102
|
+
# Delete a single subscription
|
103
|
+
#
|
104
104
|
# # For Registrar Use Only
|
105
105
|
# This API is for use by Avalara Registrar administrative users only.
|
106
106
|
#
|
@@ -108,15 +108,25 @@ module AvaTax
|
|
108
108
|
#
|
109
109
|
# ### Security Policies
|
110
110
|
#
|
111
|
-
# * This API requires one of the following user roles: Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
|
111
|
+
# * This API requires one of the following user roles: Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
|
112
112
|
# @param accountId [Integer] The ID of the account that owns this subscription.
|
113
113
|
# @param id [Integer] The ID of the subscription you wish to delete.
|
114
|
-
# @return [ErrorDetail[]]
|
115
|
-
def delete_subscription(accountId, id) path = "/api/v2/accounts/#{accountId}/subscriptions/#{id}"
|
116
|
-
delete(path) end
|
117
|
-
|
118
|
-
#
|
114
|
+
# @return [ErrorDetail[]]
|
115
|
+
def delete_subscription(accountId, id) path = "/api/v2/accounts/#{accountId}/subscriptions/#{id}"
|
116
|
+
delete(path) end
|
117
|
+
|
118
|
+
# Retrieve List of Accounts by Account Migration Status
|
119
|
+
#
|
120
|
+
# ### Security Policies
|
119
121
|
#
|
122
|
+
# * This API requires one of the following user roles: FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
|
123
|
+
# @param writeMode [String] (See TssAccountMigrationId::* for a list of allowable values)
|
124
|
+
# @return [Object]
|
125
|
+
def list_accounts_by_tss_write_mode(writeMode) path = "/api/v2/accounts/ListAccountsByTssWriteMode/#{writeMode}"
|
126
|
+
get(path) end
|
127
|
+
|
128
|
+
# Reset a user's password programmatically
|
129
|
+
#
|
120
130
|
# # For Registrar Use Only
|
121
131
|
# This API is for use by Avalara Registrar administrative users only.
|
122
132
|
#
|
@@ -127,16 +137,16 @@ module AvaTax
|
|
127
137
|
# ### Security Policies
|
128
138
|
#
|
129
139
|
# * 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.
|
130
|
-
# * This API is available to Avalara system-level (registrar-level) users only.
|
140
|
+
# * This API is available to Avalara system-level (registrar-level) users only.
|
131
141
|
# @param userId [Integer] The unique ID of the user whose password will be changed
|
132
142
|
# @param unmigrateFromAi [Boolean] If user's password was migrated to AI, undo this.
|
133
143
|
# @param model [Object] The new password for this user
|
134
|
-
# @return [String]
|
135
|
-
def reset_password(userId, model, options={}) path = "/api/v2/passwords/#{userId}/reset"
|
136
|
-
post(path, model, options) end
|
137
|
-
|
138
|
-
# Update a single account
|
139
|
-
#
|
144
|
+
# @return [String]
|
145
|
+
def reset_password(userId, model, options={}) path = "/api/v2/passwords/#{userId}/reset"
|
146
|
+
post(path, model, options) end
|
147
|
+
|
148
|
+
# Update a single account
|
149
|
+
#
|
140
150
|
# # For Registrar Use Only
|
141
151
|
# This API is for use by Avalara Registrar administrative users only.
|
142
152
|
#
|
@@ -144,15 +154,15 @@ module AvaTax
|
|
144
154
|
#
|
145
155
|
# ### Security Policies
|
146
156
|
#
|
147
|
-
# * This API requires one of the following user roles: FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
|
157
|
+
# * This API requires one of the following user roles: FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
|
148
158
|
# @param id [Integer] The ID of the account you wish to update.
|
149
159
|
# @param model [Object] The account object you wish to update.
|
150
|
-
# @return [Object]
|
151
|
-
def update_account(id, model) path = "/api/v2/accounts/#{id}"
|
152
|
-
put(path, model) end
|
153
|
-
|
154
|
-
# Update a single notification.
|
155
|
-
#
|
160
|
+
# @return [Object]
|
161
|
+
def update_account(id, model) path = "/api/v2/accounts/#{id}"
|
162
|
+
put(path, model) end
|
163
|
+
|
164
|
+
# Update a single notification.
|
165
|
+
#
|
156
166
|
# This API is available by invitation only.
|
157
167
|
#
|
158
168
|
# Replaces the notification identified by this URL with a new notification.
|
@@ -167,15 +177,15 @@ module AvaTax
|
|
167
177
|
# ### Security Policies
|
168
178
|
#
|
169
179
|
# * This API requires one of the following user roles: FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
|
170
|
-
# * This API is available by invitation only. To request access to this feature, please speak to a business development manager and request access to [NotificationsAPI:Create].
|
180
|
+
# * This API is available by invitation only. To request access to this feature, please speak to a business development manager and request access to [NotificationsAPI:Create].
|
171
181
|
# @param id [Integer] The id of the notification you wish to update.
|
172
182
|
# @param model [Object] The notification object you wish to update.
|
173
|
-
# @return [Object]
|
174
|
-
def update_notification(id, model) path = "/api/v2/notifications/#{id}"
|
175
|
-
put(path, model) end
|
176
|
-
|
177
|
-
# Update a single subscription
|
178
|
-
#
|
183
|
+
# @return [Object]
|
184
|
+
def update_notification(id, model) path = "/api/v2/notifications/#{id}"
|
185
|
+
put(path, model) end
|
186
|
+
|
187
|
+
# Update a single subscription
|
188
|
+
#
|
179
189
|
# # For Registrar Use Only
|
180
190
|
# This API is for use by Avalara Registrar administrative users only.
|
181
191
|
#
|
@@ -187,13 +197,13 @@ module AvaTax
|
|
187
197
|
#
|
188
198
|
# ### Security Policies
|
189
199
|
#
|
190
|
-
# * This API requires one of the following user roles: Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
|
200
|
+
# * This API requires one of the following user roles: Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
|
191
201
|
# @param accountId [Integer] The ID of the account that this subscription belongs to.
|
192
202
|
# @param id [Integer] The ID of the subscription you wish to update
|
193
203
|
# @param model [Object] The subscription you wish to update.
|
194
|
-
# @return [Object]
|
195
|
-
def update_subscription(accountId, id, model) path = "/api/v2/accounts/#{accountId}/subscriptions/#{id}"
|
196
|
-
put(path, model) end
|
197
|
-
end
|
198
|
-
end
|
204
|
+
# @return [Object]
|
205
|
+
def update_subscription(accountId, id, model) path = "/api/v2/accounts/#{accountId}/subscriptions/#{id}"
|
206
|
+
put(path, model) end
|
207
|
+
end
|
208
|
+
end
|
199
209
|
end
|
@@ -1,10 +1,10 @@
|
|
1
|
-
module AvaTax
|
2
|
-
class Client
|
3
|
-
module Reports
|
4
|
-
|
5
|
-
|
6
|
-
# Download a report
|
7
|
-
#
|
1
|
+
module AvaTax
|
2
|
+
class Client
|
3
|
+
module Reports
|
4
|
+
|
5
|
+
|
6
|
+
# Download a report
|
7
|
+
#
|
8
8
|
# This API downloads the file associated with a report.
|
9
9
|
#
|
10
10
|
# If the report is not yet complete, you will receive a `ReportNotFinished` error. To check if a report is complete,
|
@@ -18,18 +18,18 @@ module AvaTax
|
|
18
18
|
# * Check the status of a report by calling `GetReport` and passing in the report's `id` value.
|
19
19
|
# * When a report's status is `Completed`, call `DownloadReport` to retrieve the file.
|
20
20
|
#
|
21
|
-
#
|
21
|
+
# * We throttle this API. You can only call this API up to 5 times in a minute.
|
22
22
|
#
|
23
23
|
# ### Security Policies
|
24
24
|
#
|
25
|
-
# * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ProStoresOperator, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
|
25
|
+
# * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ProStoresOperator, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
|
26
26
|
# @param id [Integer] The unique ID number of this report
|
27
|
-
# @return [Object]
|
28
|
-
def download_report(id) path = "/api/v2/reports/#{id}/attachment"
|
29
|
-
get(path) end
|
30
|
-
|
31
|
-
# Retrieve a single report
|
32
|
-
#
|
27
|
+
# @return [Object]
|
28
|
+
def download_report(id) path = "/api/v2/reports/#{id}/attachment"
|
29
|
+
get(path) end
|
30
|
+
|
31
|
+
# Retrieve a single report
|
32
|
+
#
|
33
33
|
# Retrieve a single report by its unique ID number.
|
34
34
|
#
|
35
35
|
# Reports are run as asynchronous report tasks on the server. When complete, the report file will be available for download
|
@@ -40,14 +40,14 @@ module AvaTax
|
|
40
40
|
# * Check the status of a report by calling `GetReport` and passing in the report's `id` value.
|
41
41
|
# * When a report's status is `Completed`, call `DownloadReport` to retrieve the file.
|
42
42
|
#
|
43
|
-
# This API call returns information about any report type.
|
43
|
+
# This API call returns information about any report type.
|
44
44
|
# @param id [Integer] The unique ID number of the report to retrieve
|
45
|
-
# @return [Object]
|
46
|
-
def get_report(id) path = "/api/v2/reports/#{id}"
|
47
|
-
get(path) end
|
48
|
-
|
49
|
-
# Initiate an ExportDocumentLine report task
|
50
|
-
#
|
45
|
+
# @return [Object]
|
46
|
+
def get_report(id) path = "/api/v2/reports/#{id}"
|
47
|
+
get(path) end
|
48
|
+
|
49
|
+
# Initiate an ExportDocumentLine report task
|
50
|
+
#
|
51
51
|
# Begins running an `ExportDocumentLine` report task and returns the identity of the report.
|
52
52
|
#
|
53
53
|
# Reports are run as asynchronous report tasks on the server. When complete, the report file will be available for download
|
@@ -71,15 +71,15 @@ module AvaTax
|
|
71
71
|
#
|
72
72
|
# ### Security Policies
|
73
73
|
#
|
74
|
-
# * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
|
74
|
+
# * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
|
75
75
|
# @param companyId [Integer] The unique ID number of the company to report on.
|
76
76
|
# @param model [Object] Options that may be configured to customize the report.
|
77
|
-
# @return [ReportModel[]]
|
78
|
-
def initiate_export_document_line_report(companyId, model) path = "/api/v2/companies/#{companyId}/reports/exportdocumentline/initiate"
|
79
|
-
post(path, model) end
|
80
|
-
|
81
|
-
# List all report tasks for account
|
82
|
-
#
|
77
|
+
# @return [ReportModel[]]
|
78
|
+
def initiate_export_document_line_report(companyId, model) path = "/api/v2/companies/#{companyId}/reports/exportdocumentline/initiate"
|
79
|
+
post(path, model) end
|
80
|
+
|
81
|
+
# List all report tasks for account
|
82
|
+
#
|
83
83
|
# List all report tasks for your account.
|
84
84
|
#
|
85
85
|
# Reports are run as asynchronous report tasks on the server. When complete, the report file will be available for download
|
@@ -94,14 +94,14 @@ module AvaTax
|
|
94
94
|
#
|
95
95
|
# ### Security Policies
|
96
96
|
#
|
97
|
-
# * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ProStoresOperator, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
|
97
|
+
# * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ProStoresOperator, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
|
98
98
|
# @param companyId [Integer] The id of the company for which to get reports.
|
99
99
|
# @param pageKey [String] Provide a page key to retrieve the next page of results.
|
100
100
|
# @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
|
101
101
|
# @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.
|
102
|
-
# @return [FetchResult]
|
103
|
-
def list_reports(options={}) path = "/api/v2/reports"
|
104
|
-
get(path, options) end
|
105
|
-
end
|
106
|
-
end
|
102
|
+
# @return [FetchResult]
|
103
|
+
def list_reports(options={}) path = "/api/v2/reports"
|
104
|
+
get(path, options) end
|
105
|
+
end
|
106
|
+
end
|
107
107
|
end
|
@@ -1,10 +1,10 @@
|
|
1
|
-
module AvaTax
|
2
|
-
class Client
|
3
|
-
module Settings
|
4
|
-
|
5
|
-
|
6
|
-
# Create a new setting
|
7
|
-
#
|
1
|
+
module AvaTax
|
2
|
+
class Client
|
3
|
+
module Settings
|
4
|
+
|
5
|
+
|
6
|
+
# Create a new setting
|
7
|
+
#
|
8
8
|
# Create one or more new setting objects attached to this company.
|
9
9
|
#
|
10
10
|
# The company settings system is a metadata system that you can use to store extra information
|
@@ -16,17 +16,22 @@ module AvaTax
|
|
16
16
|
# When creating this object, you may define your own `set`, `name`, and `value` parameters.
|
17
17
|
# To define your own values, please choose a `set` name that begins with `X-` to indicate an extension.
|
18
18
|
#
|
19
|
+
# Use Set = Transactions, Name = TaxCodePrioritization/HSCodePrioritization and Value = Transaction/ItemMaster for prioritizing which TaxCodes/HsCodes should be used for calculating taxes.
|
20
|
+
#
|
21
|
+
# Example: To prioritize TaxCodes passed in a Transaction over values stored with Items when calculating tax, use
|
22
|
+
# Set = Transactions, Name = TaxCodePrioritization, Value = Transaction
|
23
|
+
#
|
19
24
|
# ### Security Policies
|
20
25
|
#
|
21
|
-
# * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, ProStoresOperator, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
|
26
|
+
# * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, ProStoresOperator, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
|
22
27
|
# @param companyId [Integer] The ID of the company that owns this setting.
|
23
28
|
# @param model [SettingModel[]] The setting you wish to create.
|
24
|
-
# @return [SettingModel[]]
|
25
|
-
def create_settings(companyId, model) path = "/api/v2/companies/#{companyId}/settings"
|
26
|
-
post(path, model) end
|
27
|
-
|
28
|
-
# Delete a single setting
|
29
|
-
#
|
29
|
+
# @return [SettingModel[]]
|
30
|
+
def create_settings(companyId, model) path = "/api/v2/companies/#{companyId}/settings"
|
31
|
+
post(path, model) end
|
32
|
+
|
33
|
+
# Delete a single setting
|
34
|
+
#
|
30
35
|
# Mark the setting object at this URL as deleted.
|
31
36
|
#
|
32
37
|
# The company settings system is a metadata system that you can use to store extra information
|
@@ -40,15 +45,15 @@ module AvaTax
|
|
40
45
|
#
|
41
46
|
# ### Security Policies
|
42
47
|
#
|
43
|
-
# * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
|
48
|
+
# * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
|
44
49
|
# @param companyId [Integer] The ID of the company that owns this setting.
|
45
50
|
# @param id [Integer] The ID of the setting you wish to delete.
|
46
|
-
# @return [ErrorDetail[]]
|
47
|
-
def delete_setting(companyId, id) path = "/api/v2/companies/#{companyId}/settings/#{id}"
|
48
|
-
delete(path) end
|
49
|
-
|
50
|
-
# Retrieve a single setting
|
51
|
-
#
|
51
|
+
# @return [ErrorDetail[]]
|
52
|
+
def delete_setting(companyId, id) path = "/api/v2/companies/#{companyId}/settings/#{id}"
|
53
|
+
delete(path) end
|
54
|
+
|
55
|
+
# Retrieve a single setting
|
56
|
+
#
|
52
57
|
# Get a single setting object by its unique ID.
|
53
58
|
#
|
54
59
|
# The company settings system is a metadata system that you can use to store extra information
|
@@ -62,15 +67,15 @@ module AvaTax
|
|
62
67
|
#
|
63
68
|
# ### Security Policies
|
64
69
|
#
|
65
|
-
# * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, ProStoresOperator, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
|
70
|
+
# * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, ProStoresOperator, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
|
66
71
|
# @param companyId [Integer] The ID of the company that owns this setting
|
67
72
|
# @param id [Integer] The primary key of this setting
|
68
|
-
# @return [Object]
|
69
|
-
def get_setting(companyId, id) path = "/api/v2/companies/#{companyId}/settings/#{id}"
|
70
|
-
get(path) end
|
71
|
-
|
72
|
-
# Retrieve all settings for this company
|
73
|
-
#
|
73
|
+
# @return [Object]
|
74
|
+
def get_setting(companyId, id) path = "/api/v2/companies/#{companyId}/settings/#{id}"
|
75
|
+
get(path) end
|
76
|
+
|
77
|
+
# Retrieve all settings for this company
|
78
|
+
#
|
74
79
|
# List all setting objects attached to this company.
|
75
80
|
#
|
76
81
|
# The company settings system is a metadata system that you can use to store extra information
|
@@ -87,19 +92,19 @@ module AvaTax
|
|
87
92
|
#
|
88
93
|
# ### Security Policies
|
89
94
|
#
|
90
|
-
# * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, ProStoresOperator, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
|
95
|
+
# * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, ProStoresOperator, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
|
91
96
|
# @param companyId [Integer] The ID of the company that owns these settings
|
92
|
-
# @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/)
|
97
|
+
# @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/).<br />*Not filterable:* modifiedDate, ModifiedUserId
|
93
98
|
# @param include [String] A comma separated list of additional data to retrieve.
|
94
99
|
# @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.
|
95
100
|
# @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
|
96
101
|
# @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
|
97
|
-
# @return [FetchResult]
|
98
|
-
def list_settings_by_company(companyId, options={}) path = "/api/v2/companies/#{companyId}/settings"
|
99
|
-
get(path, options) end
|
100
|
-
|
101
|
-
# Retrieve all settings
|
102
|
-
#
|
102
|
+
# @return [FetchResult]
|
103
|
+
def list_settings_by_company(companyId, options={}) path = "/api/v2/companies/#{companyId}/settings"
|
104
|
+
get(path, options) end
|
105
|
+
|
106
|
+
# Retrieve all settings
|
107
|
+
#
|
103
108
|
# Get multiple setting objects across all companies.
|
104
109
|
#
|
105
110
|
# The company settings system is a metadata system that you can use to store extra information
|
@@ -116,18 +121,18 @@ module AvaTax
|
|
116
121
|
#
|
117
122
|
# ### Security Policies
|
118
123
|
#
|
119
|
-
# * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, ProStoresOperator, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
|
120
|
-
# @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/)
|
124
|
+
# * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, ProStoresOperator, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
|
125
|
+
# @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/).<br />*Not filterable:* modifiedDate, ModifiedUserId
|
121
126
|
# @param include [String] A comma separated list of additional data to retrieve.
|
122
127
|
# @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.
|
123
128
|
# @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
|
124
129
|
# @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
|
125
|
-
# @return [FetchResult]
|
126
|
-
def query_settings(options={}) path = "/api/v2/settings"
|
127
|
-
get(path, options) end
|
128
|
-
|
129
|
-
# Update a single setting
|
130
|
-
#
|
130
|
+
# @return [FetchResult]
|
131
|
+
def query_settings(options={}) path = "/api/v2/settings"
|
132
|
+
get(path, options) end
|
133
|
+
|
134
|
+
# Update a single setting
|
135
|
+
#
|
131
136
|
# Replace the existing setting object at this URL with an updated object.
|
132
137
|
#
|
133
138
|
# The company settings system is a metadata system that you can use to store extra information
|
@@ -145,13 +150,13 @@ module AvaTax
|
|
145
150
|
#
|
146
151
|
# ### Security Policies
|
147
152
|
#
|
148
|
-
# * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, ProStoresOperator, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
|
153
|
+
# * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, ProStoresOperator, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
|
149
154
|
# @param companyId [Integer] The ID of the company that this setting belongs to.
|
150
155
|
# @param id [Integer] The ID of the setting you wish to update
|
151
156
|
# @param model [Object] The setting you wish to update.
|
152
|
-
# @return [Object]
|
153
|
-
def update_setting(companyId, id, model) path = "/api/v2/companies/#{companyId}/settings/#{id}"
|
154
|
-
put(path, model) end
|
155
|
-
end
|
156
|
-
end
|
157
|
+
# @return [Object]
|
158
|
+
def update_setting(companyId, id, model) path = "/api/v2/companies/#{companyId}/settings/#{id}"
|
159
|
+
put(path, model) end
|
160
|
+
end
|
161
|
+
end
|
157
162
|
end
|
@@ -1,25 +1,25 @@
|
|
1
|
-
module AvaTax
|
2
|
-
class Client
|
3
|
-
module Subscriptions
|
4
|
-
|
5
|
-
|
6
|
-
# Retrieve a single subscription
|
7
|
-
#
|
1
|
+
module AvaTax
|
2
|
+
class Client
|
3
|
+
module Subscriptions
|
4
|
+
|
5
|
+
|
6
|
+
# Retrieve a single subscription
|
7
|
+
#
|
8
8
|
# Get the subscription object identified by this URL.
|
9
9
|
# A 'subscription' indicates a licensed subscription to a named Avalara service.
|
10
10
|
# To request or remove subscriptions, please contact Avalara sales or your customer account manager.
|
11
11
|
#
|
12
12
|
# ### Security Policies
|
13
13
|
#
|
14
|
-
# * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
|
14
|
+
# * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
|
15
15
|
# @param accountId [Integer] The ID of the account that owns this subscription
|
16
16
|
# @param id [Integer] The primary key of this subscription
|
17
|
-
# @return [Object]
|
18
|
-
def get_subscription(accountId, id) path = "/api/v2/accounts/#{accountId}/subscriptions/#{id}"
|
19
|
-
get(path) end
|
20
|
-
|
21
|
-
# Retrieve subscriptions for this account
|
22
|
-
#
|
17
|
+
# @return [Object]
|
18
|
+
def get_subscription(accountId, id) path = "/api/v2/accounts/#{accountId}/subscriptions/#{id}"
|
19
|
+
get(path) end
|
20
|
+
|
21
|
+
# Retrieve subscriptions for this account
|
22
|
+
#
|
23
23
|
# List all subscription objects attached to this account.
|
24
24
|
# A 'subscription' indicates a licensed subscription to a named Avalara service.
|
25
25
|
# To request or remove subscriptions, please contact Avalara sales or your customer account manager.
|
@@ -29,18 +29,18 @@ module AvaTax
|
|
29
29
|
#
|
30
30
|
# ### Security Policies
|
31
31
|
#
|
32
|
-
# * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
|
32
|
+
# * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
|
33
33
|
# @param accountId [Integer] The ID of the account that owns these subscriptions
|
34
34
|
# @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/).<br />*Not filterable:* subscriptionDescription
|
35
35
|
# @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.
|
36
36
|
# @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
|
37
37
|
# @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
|
38
|
-
# @return [FetchResult]
|
39
|
-
def list_subscriptions_by_account(accountId, options={}) path = "/api/v2/accounts/#{accountId}/subscriptions"
|
40
|
-
get(path, options) end
|
41
|
-
|
42
|
-
# Retrieve all subscriptions
|
43
|
-
#
|
38
|
+
# @return [FetchResult]
|
39
|
+
def list_subscriptions_by_account(accountId, options={}) path = "/api/v2/accounts/#{accountId}/subscriptions"
|
40
|
+
get(path, options) end
|
41
|
+
|
42
|
+
# Retrieve all subscriptions
|
43
|
+
#
|
44
44
|
# Get multiple subscription objects across all accounts.
|
45
45
|
# A 'subscription' indicates a licensed subscription to a named Avalara service.
|
46
46
|
# To request or remove subscriptions, please contact Avalara sales or your customer account manager.
|
@@ -50,14 +50,14 @@ module AvaTax
|
|
50
50
|
#
|
51
51
|
# ### Security Policies
|
52
52
|
#
|
53
|
-
# * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
|
53
|
+
# * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
|
54
54
|
# @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/).<br />*Not filterable:* subscriptionDescription
|
55
55
|
# @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.
|
56
56
|
# @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
|
57
57
|
# @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
|
58
|
-
# @return [FetchResult]
|
59
|
-
def query_subscriptions(options={}) path = "/api/v2/subscriptions"
|
60
|
-
get(path, options) end
|
61
|
-
end
|
62
|
-
end
|
58
|
+
# @return [FetchResult]
|
59
|
+
def query_subscriptions(options={}) path = "/api/v2/subscriptions"
|
60
|
+
get(path, options) end
|
61
|
+
end
|
62
|
+
end
|
63
63
|
end
|