avatax 19.3.0 → 19.4.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.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/lib/avatax/client/accounts.rb +28 -0
  3. data/lib/avatax/client/addresses.rb +10 -0
  4. data/lib/avatax/client/avafileforms.rb +30 -0
  5. data/lib/avatax/client/batches.rb +24 -0
  6. data/lib/avatax/client/certexpressinvites.rb +15 -0
  7. data/lib/avatax/client/certificates.rb +76 -1
  8. data/lib/avatax/client/companies.rb +66 -2
  9. data/lib/avatax/client/contacts.rb +24 -0
  10. data/lib/avatax/client/customers.rb +50 -0
  11. data/lib/avatax/client/datasources.rb +30 -0
  12. data/lib/avatax/client/definitions.rb +28 -4
  13. data/lib/avatax/client/distancethresholds.rb +24 -0
  14. data/lib/avatax/client/filingcalendars.rb +132 -0
  15. data/lib/avatax/client/filings.rb +164 -2
  16. data/lib/avatax/client/free.rb +4 -0
  17. data/lib/avatax/client/fundingrequests.rb +12 -0
  18. data/lib/avatax/client/items.rb +64 -23
  19. data/lib/avatax/client/jurisdictionoverrides.rb +24 -0
  20. data/lib/avatax/client/locations.rb +28 -0
  21. data/lib/avatax/client/multidocument.rb +50 -0
  22. data/lib/avatax/client/nexus.rb +34 -21
  23. data/lib/avatax/client/notices.rb +141 -2
  24. data/lib/avatax/client/notifications.rb +12 -0
  25. data/lib/avatax/client/onboarding.rb +12 -0
  26. data/lib/avatax/client/registrar.rb +44 -1
  27. data/lib/avatax/client/reports.rb +16 -0
  28. data/lib/avatax/client/settings.rb +24 -0
  29. data/lib/avatax/client/subscriptions.rb +12 -0
  30. data/lib/avatax/client/taxcodes.rb +24 -0
  31. data/lib/avatax/client/taxcontent.rb +14 -15
  32. data/lib/avatax/client/taxrules.rb +24 -0
  33. data/lib/avatax/client/transactions.rb +187 -1
  34. data/lib/avatax/client/upcs.rb +30 -0
  35. data/lib/avatax/client/users.rb +44 -14
  36. data/lib/avatax/client/utilities.rb +4 -0
  37. data/lib/avatax/version.rb +1 -1
  38. metadata +2 -2
@@ -24,6 +24,10 @@ module AvaTax
24
24
  #
25
25
  # Please note that nexus changes may not take effect immediately and you should plan to update your nexus settings in advance
26
26
  # of calculating tax for a location.
27
+ #
28
+ # ### Security Policies
29
+ #
30
+ # * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, SSTAdmin, TechnicalSupportAdmin.
27
31
  # @param companyId [Integer] The ID of the company that owns this nexus.
28
32
  # @param model [NexusModel[]] The nexus you wish to create.
29
33
  # @return [NexusModel[]]
@@ -50,6 +54,10 @@ module AvaTax
50
54
  #
51
55
  # Please note that nexus changes may not take effect immediately and you should plan to update your nexus settings in advance
52
56
  # of calculating tax for a location.
57
+ #
58
+ # ### Security Policies
59
+ #
60
+ # * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, SSTAdmin, TechnicalSupportAdmin.
53
61
  # @param companyId [Integer] The ID of the company that will own this nexus.
54
62
  # @param model [DeclareNexusByAddressModel[]] The nexus you wish to create.
55
63
  # @return [NexusByAddressModel[]]
@@ -69,6 +77,10 @@ module AvaTax
69
77
  #
70
78
  # Please note that nexus changes may not take effect immediately and you should plan to update your nexus settings in advance
71
79
  # of calculating tax for a location.
80
+ #
81
+ # ### Security Policies
82
+ #
83
+ # * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, SSTAdmin, TechnicalSupportAdmin.
72
84
  # @param companyId [Integer] The ID of the company that owns this nexus.
73
85
  # @param id [Integer] The ID of the nexus you wish to delete.
74
86
  # @return [ErrorDetail[]]
@@ -85,6 +97,10 @@ module AvaTax
85
97
  # The concept of Nexus indicates a place where your company is legally obligated to collect and remit transactional
86
98
  # taxes. The legal requirements for nexus may vary per country and per jurisdiction; please seek advice from your
87
99
  # accountant or lawyer prior to declaring nexus.
100
+ #
101
+ # ### Security Policies
102
+ #
103
+ # * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
88
104
  # @param companyId [Integer] The ID of the company that owns this nexus object
89
105
  # @param id [Integer] The primary key of this nexus
90
106
  # @return [Object]
@@ -105,6 +121,10 @@ module AvaTax
105
121
  # This API is intended to provide useful information when examining a tax form. If you are about to begin filing
106
122
  # a tax form, you may want to know whether you have declared nexus in all the jurisdictions related to that tax
107
123
  # form in order to better understand how the form will be filled out.
124
+ #
125
+ # ### Security Policies
126
+ #
127
+ # * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
108
128
  # @param companyId [Integer] The ID of the company that owns this nexus object
109
129
  # @param formCode [String] The form code that we are looking up the nexus for
110
130
  # @return [Object]
@@ -124,8 +144,12 @@ module AvaTax
124
144
  #
125
145
  # 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/) .
126
146
  # Paginate your results using the `$top`, `$skip`, and `$orderby` parameters.
147
+ #
148
+ # ### Security Policies
149
+ #
150
+ # * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
127
151
  # @param companyId [Integer] The ID of the company that owns these nexus objects
128
- # @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:* streamlinedSalesTax, taxAuthorityId
152
+ # @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:* streamlinedSalesTax, isSSTActive, taxAuthorityId
129
153
  # @param include [String] A comma separated list of additional data to retrieve.
130
154
  # @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.
131
155
  # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
@@ -137,25 +161,6 @@ module AvaTax
137
161
  end
138
162
 
139
163
 
140
- # Summarize nexus by NexusTaxTypeGroup for this company
141
- #
142
- # Provides a summary of nexus information useful for quickly displaying key information.
143
- #
144
- # The concept of Nexus indicates a place where your company is legally obligated to collect and remit transactional
145
- # taxes. The legal requirements for nexus may vary per country and per jurisdiction; please seek advice from your
146
- # accountant or lawyer prior to declaring nexus.
147
- #
148
- # This API produces only basic information about your company's nexus declarations. For example, it will show
149
- # the number of nexus declarations of each tax type. To request more information about your company's nexus
150
- # declarations, please use `QueryNexus` or `ListNexusByCompany`.
151
- # @param companyId [Integer] The ID of the company that owns these nexus objects
152
- # @return [Object]
153
- def nexus_summary(companyId)
154
- path = "/api/v2/companies/#{companyId}/nexus/summary"
155
- get(path)
156
- end
157
-
158
-
159
164
  # Retrieve all nexus
160
165
  #
161
166
  # Get multiple nexus objects across all companies.
@@ -166,7 +171,11 @@ module AvaTax
166
171
  #
167
172
  # 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/) .
168
173
  # Paginate your results using the `$top`, `$skip`, and `$orderby` parameters.
169
- # @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:* streamlinedSalesTax, taxAuthorityId
174
+ #
175
+ # ### Security Policies
176
+ #
177
+ # * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
178
+ # @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:* streamlinedSalesTax, isSSTActive, taxAuthorityId
170
179
  # @param include [String] A comma separated list of additional data to retrieve.
171
180
  # @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.
172
181
  # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
@@ -199,6 +208,10 @@ module AvaTax
199
208
  #
200
209
  # Please note that nexus changes may not take effect immediately and you should plan to update your nexus settings in advance
201
210
  # of calculating tax for a location.
211
+ #
212
+ # ### Security Policies
213
+ #
214
+ # * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, SSTAdmin, TechnicalSupportAdmin.
202
215
  # @param companyId [Integer] The ID of the company that this nexus belongs to.
203
216
  # @param id [Integer] The ID of the nexus you wish to update
204
217
  # @param model [Object] The nexus object you wish to update.
@@ -9,6 +9,12 @@ module AvaTax
9
9
  # 'Notice comments' are updates by the notice team on the work to be done and that has been done so far on a notice.
10
10
  # A 'notice' represents a letter sent to a business by a tax authority regarding tax filing issues. Avalara
11
11
  # Returns customers often receive support and assistance from the Compliance Notices team in handling notices received by taxing authorities.
12
+ #
13
+ # ### Security Policies
14
+ #
15
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, Compliance Operator, Compliance Root User, Compliance Temp User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, ProStoresOperator, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, SystemOperator, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
16
+ # * This API depends on the following active services<br />*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.
17
+ # * This API is available by invitation only. To request access to this feature, please speak to a business development manager and request host address whitelisting for [Returns] for your servers.
12
18
  # @param companyId [Integer] The ID of the company that owns this notice.
13
19
  # @param id [Integer] The ID of the tax notice we are adding the comment for.
14
20
  # @param model [NoticeCommentModel[]] The notice comments you wish to create.
@@ -26,6 +32,12 @@ module AvaTax
26
32
  # as broken down in our "notice log" found in Workflow. Main examples of the categories are 'Tax Due', 'Interest', 'Penalty', 'Total Abated'.
27
33
  # A 'notice' represents a letter sent to a business by a tax authority regarding tax filing issues. Avalara
28
34
  # Returns customers often receive support and assistance from the Compliance Notices team in handling notices received by taxing authorities.
35
+ #
36
+ # ### Security Policies
37
+ #
38
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, Compliance Operator, Compliance Root User, Compliance Temp User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, ProStoresOperator, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, SystemOperator, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
39
+ # * This API depends on the following active services<br />*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.
40
+ # * This API is available by invitation only. To request access to this feature, please speak to a business development manager and request host address whitelisting for [Returns] for your servers.
29
41
  # @param companyId [Integer] The ID of the company that owns this notice.
30
42
  # @param id [Integer] The ID of the notice added to the finance details.
31
43
  # @param model [NoticeFinanceModel[]] The notice finance details you wish to create.
@@ -42,6 +54,12 @@ module AvaTax
42
54
  # 'Notice comments' are updates by the notice team on the work to be done and that has been done so far on a notice.
43
55
  # A 'notice' represents a letter sent to a business by a tax authority regarding tax filing issues. Avalara
44
56
  # Returns customers often receive support and assistance from the Compliance Notices team in handling notices received by taxing authorities.
57
+ #
58
+ # ### Security Policies
59
+ #
60
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, Compliance Operator, Compliance Root User, Compliance Temp User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, ProStoresOperator, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, SystemOperator, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
61
+ # * This API depends on the following active services<br />*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.
62
+ # * This API is available by invitation only. To request access to this feature, please speak to a business development manager and request host address whitelisting for [Returns] for your servers.
45
63
  # @param companyId [Integer] The ID of the company that owns this notice.
46
64
  # @param id [Integer] The ID of the tax notice we are adding the responsibility for.
47
65
  # @param model [NoticeResponsibilityDetailModel[]] The notice responsibilities you wish to create.
@@ -58,6 +76,12 @@ module AvaTax
58
76
  # 'Notice root causes' are are those who are responsible for the notice.
59
77
  # A 'notice' represents a letter sent to a business by a tax authority regarding tax filing issues. Avalara
60
78
  # Returns customers often receive support and assistance from the Compliance Notices team in handling notices received by taxing authorities.
79
+ #
80
+ # ### Security Policies
81
+ #
82
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, Compliance Operator, Compliance Root User, Compliance Temp User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, ProStoresOperator, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, SystemOperator, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
83
+ # * This API depends on the following active services<br />*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.
84
+ # * This API is available by invitation only. To request access to this feature, please speak to a business development manager and request host address whitelisting for [Returns] for your servers.
61
85
  # @param companyId [Integer] The ID of the company that owns this notice.
62
86
  # @param id [Integer] The ID of the tax notice we are adding the responsibility for.
63
87
  # @param model [NoticeRootCauseDetailModel[]] The notice root causes you wish to create.
@@ -74,6 +98,12 @@ module AvaTax
74
98
  # Create one or more new notice objects.
75
99
  # A 'notice' represents a letter sent to a business by a tax authority regarding tax filing issues. Avalara
76
100
  # Returns customers often receive support and assistance from the Compliance Notices team in handling notices received by taxing authorities.
101
+ #
102
+ # ### Security Policies
103
+ #
104
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, Compliance Operator, Compliance Root User, Compliance Temp User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, ProStoresOperator, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, SystemOperator, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
105
+ # * This API depends on the following active services<br />*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.
106
+ # * This API is available by invitation only. To request access to this feature, please speak to a business development manager and request host address whitelisting for [Returns] for your servers.
77
107
  # @param companyId [Integer] The ID of the company that owns this notice.
78
108
  # @param model [NoticeModel[]] The notice object you wish to create.
79
109
  # @return [NoticeModel[]]
@@ -89,6 +119,12 @@ module AvaTax
89
119
  # 'Notice comments' are updates by the notice team on the work to be done and that has been done so far on a notice.
90
120
  # A 'notice' represents a letter sent to a business by a tax authority regarding tax filing issues. Avalara
91
121
  # Returns customers often receive support and assistance from the Compliance Notices team in handling notices received by taxing authorities.
122
+ #
123
+ # ### Security Policies
124
+ #
125
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, Compliance Operator, Compliance Root User, Compliance Temp User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, ProStoresOperator, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, SystemOperator, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
126
+ # * This API depends on the following active services<br />*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.
127
+ # * This API is available by invitation only. To request access to this feature, please speak to a business development manager and request host address whitelisting for [Returns] for your servers.
92
128
  # @param companyId [Integer] The ID of the company that owns this notice.
93
129
  # @param id [Integer] The ID of the notice you wish to delete the finance detail from.
94
130
  # @param commentDetailsId [Integer] The ID of the comment you wish to delete.
@@ -106,6 +142,12 @@ module AvaTax
106
142
  # as broken down in our "notice log" found in Workflow. Main examples of the categories are 'Tax Due', 'Interest', 'Penalty', 'Total Abated'.
107
143
  # A 'notice' represents a letter sent to a business by a tax authority regarding tax filing issues. Avalara
108
144
  # Returns customers often receive support and assistance from the Compliance Notices team in handling notices received by taxing authorities.
145
+ #
146
+ # ### Security Policies
147
+ #
148
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, Compliance Operator, Compliance Root User, Compliance Temp User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, ProStoresOperator, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, SystemOperator, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
149
+ # * This API depends on the following active services<br />*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.
150
+ # * This API is available by invitation only. To request access to this feature, please speak to a business development manager and request host address whitelisting for [Returns] for your servers.
109
151
  # @param companyId [Integer] The ID of the company that owns this notice.
110
152
  # @param id [Integer] The ID of the notice you wish to delete the finance detail from.
111
153
  # @param financeDetailsId [Integer] The ID of the finance detail you wish to delete.
@@ -122,6 +164,12 @@ module AvaTax
122
164
  # Mark the existing notice object at this URL as deleted.
123
165
  # A 'notice' represents a letter sent to a business by a tax authority regarding tax filing issues. Avalara
124
166
  # Returns customers often receive support and assistance from the Compliance Notices team in handling notices received by taxing authorities.
167
+ #
168
+ # ### Security Policies
169
+ #
170
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, Compliance Operator, Compliance Root User, Compliance Temp User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, ProStoresOperator, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, SystemOperator, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
171
+ # * This API depends on the following active services<br />*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.
172
+ # * This API is available by invitation only. To request access to this feature, please speak to a business development manager and request host address whitelisting for [Returns] for your servers.
125
173
  # @param companyId [Integer] The ID of the company that owns this notice.
126
174
  # @param id [Integer] The ID of the notice you wish to delete.
127
175
  # @return [ErrorDetail[]]
@@ -137,6 +185,12 @@ module AvaTax
137
185
  # Mark the existing notice object at this URL as deleted.
138
186
  # A 'notice' represents a letter sent to a business by a tax authority regarding tax filing issues. Avalara
139
187
  # Returns customers often receive support and assistance from the Compliance Notices team in handling notices received by taxing authorities.
188
+ #
189
+ # ### Security Policies
190
+ #
191
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, Compliance Operator, Compliance Root User, Compliance Temp User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, ProStoresOperator, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, SystemOperator, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
192
+ # * This API depends on the following active services<br />*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.
193
+ # * This API is available by invitation only. To request access to this feature, please speak to a business development manager and request host address whitelisting for [Returns] for your servers.
140
194
  # @param companyId [Integer] The ID of the company that owns this notice.
141
195
  # @param noticeId [Integer] The ID of the notice you wish to delete.
142
196
  # @param id [Integer] The ID of the responsibility you wish to delete.
@@ -153,6 +207,12 @@ module AvaTax
153
207
  # Mark the existing notice object at this URL as deleted.
154
208
  # A 'notice' represents a letter sent to a business by a tax authority regarding tax filing issues. Avalara
155
209
  # Returns customers often receive support and assistance from the Compliance Notices team in handling notices received by taxing authorities.
210
+ #
211
+ # ### Security Policies
212
+ #
213
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, Compliance Operator, Compliance Root User, Compliance Temp User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, ProStoresOperator, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, SystemOperator, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
214
+ # * This API depends on the following active services<br />*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.
215
+ # * This API is available by invitation only. To request access to this feature, please speak to a business development manager and request host address whitelisting for [Returns] for your servers.
156
216
  # @param companyId [Integer] The ID of the company that owns this notice.
157
217
  # @param noticeId [Integer] The ID of the notice you wish to delete.
158
218
  # @param id [Integer] The ID of the root cause you wish to delete.
@@ -167,6 +227,12 @@ module AvaTax
167
227
  #
168
228
  # This API is available by invitation only.
169
229
  # Get the file attachment identified by this URL.
230
+ #
231
+ # ### Security Policies
232
+ #
233
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, Compliance Operator, Compliance Root User, Compliance Temp User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, ProStoresOperator, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, SystemOperator, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
234
+ # * This API depends on the following active services<br />*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.
235
+ # * This API is available by invitation only. To request access to this feature, please speak to a business development manager and request host address whitelisting for [Returns] for your servers.
170
236
  # @param companyId [Integer] The ID of the company for this attachment.
171
237
  # @param id [Integer] The ResourceFileId of the attachment to download.
172
238
  # @return [Object]
@@ -182,6 +248,12 @@ module AvaTax
182
248
  # Get the tax notice object identified by this URL.
183
249
  # A 'notice' represents a letter sent to a business by a tax authority regarding tax filing issues. Avalara
184
250
  # Returns customers often receive support and assistance from the Compliance Notices team in handling notices received by taxing authorities.
251
+ #
252
+ # ### Security Policies
253
+ #
254
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, Compliance Operator, Compliance Root User, Compliance Temp User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, ProStoresOperator, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, SystemOperator, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
255
+ # * This API depends on the following active services<br />*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.
256
+ # * This API is available by invitation only. To request access to this feature, please speak to a business development manager and request host address whitelisting for [Returns] for your servers.
185
257
  # @param companyId [Integer] The ID of the company for this notice.
186
258
  # @param id [Integer] The ID of this notice.
187
259
  # @return [Object]
@@ -197,6 +269,12 @@ module AvaTax
197
269
  # 'Notice comments' are updates by the notice team on the work to be done and that has been done so far on a notice.
198
270
  # A 'notice' represents a letter sent to a business by a tax authority regarding tax filing issues. Avalara
199
271
  # Returns customers often receive support and assistance from the Compliance Notices team in handling notices received by taxing authorities.
272
+ #
273
+ # ### Security Policies
274
+ #
275
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, Compliance Operator, Compliance Root User, Compliance Temp User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, ProStoresOperator, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, SystemOperator, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
276
+ # * This API depends on the following active services<br />*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.
277
+ # * This API is available by invitation only. To request access to this feature, please speak to a business development manager and request host address whitelisting for [Returns] for your servers.
200
278
  # @param id [Integer] The ID of the notice.
201
279
  # @param companyId [Integer] The ID of the company that owns these notices.
202
280
  # @return [FetchResult]
@@ -213,6 +291,12 @@ module AvaTax
213
291
  # as broken down in our "notice log" found in Workflow. Main examples of the categories are 'Tax Due', 'Interest', 'Penalty', 'Total Abated'.
214
292
  # A 'notice' represents a letter sent to a business by a tax authority regarding tax filing issues. Avalara
215
293
  # Returns customers often receive support and assistance from the Compliance Notices team in handling notices received by taxing authorities.
294
+ #
295
+ # ### Security Policies
296
+ #
297
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, Compliance Operator, Compliance Root User, Compliance Temp User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, ProStoresOperator, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, SystemOperator, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
298
+ # * This API depends on the following active services<br />*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.
299
+ # * This API is available by invitation only. To request access to this feature, please speak to a business development manager and request host address whitelisting for [Returns] for your servers.
216
300
  # @param id [Integer] The ID of the company that owns these notices.
217
301
  # @param companyId [Integer] The ID of the company that owns these notices.
218
302
  # @return [FetchResult]
@@ -228,6 +312,12 @@ module AvaTax
228
312
  # 'Notice responsibilities' are are those who are responsible for the notice.
229
313
  # A 'notice' represents a letter sent to a business by a tax authority regarding tax filing issues. Avalara
230
314
  # Returns customers often receive support and assistance from the Compliance Notices team in handling notices received by taxing authorities.
315
+ #
316
+ # ### Security Policies
317
+ #
318
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, Compliance Operator, Compliance Root User, Compliance Temp User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, ProStoresOperator, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, SystemOperator, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
319
+ # * This API depends on the following active services<br />*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.
320
+ # * This API is available by invitation only. To request access to this feature, please speak to a business development manager and request host address whitelisting for [Returns] for your servers.
231
321
  # @param id [Integer] The ID of the notice.
232
322
  # @param companyId [Integer] The ID of the company that owns these notices.
233
323
  # @return [FetchResult]
@@ -243,6 +333,12 @@ module AvaTax
243
333
  # 'Notice root causes' are are those who are responsible for the notice.
244
334
  # A 'notice' represents a letter sent to a business by a tax authority regarding tax filing issues. Avalara
245
335
  # Returns customers often receive support and assistance from the Compliance Notices team in handling notices received by taxing authorities.
336
+ #
337
+ # ### Security Policies
338
+ #
339
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, Compliance Operator, Compliance Root User, Compliance Temp User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, ProStoresOperator, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, SystemOperator, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
340
+ # * This API depends on the following active services<br />*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.
341
+ # * This API is available by invitation only. To request access to this feature, please speak to a business development manager and request host address whitelisting for [Returns] for your servers.
246
342
  # @param id [Integer] The ID of the notice.
247
343
  # @param companyId [Integer] The ID of the company that owns these notices.
248
344
  # @return [FetchResult]
@@ -261,6 +357,12 @@ module AvaTax
261
357
  #
262
358
  # 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/) .
263
359
  # Paginate your results using the `$top`, `$skip`, and `$orderby` parameters.
360
+ #
361
+ # ### Security Policies
362
+ #
363
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, Compliance Operator, Compliance Root User, Compliance Temp User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, ProStoresOperator, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, SystemOperator, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
364
+ # * This API depends on the following active services<br />*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.
365
+ # * This API is available by invitation only. To request access to this feature, please speak to a business development manager and request host address whitelisting for [Returns] for your servers.
264
366
  # @param companyId [Integer] The ID of the company that owns these notices.
265
367
  # @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:* status, totalRemit, ticketReferenceNo, ticketReferenceUrl, reason, type, createdByUserName, documentReference, jurisdictionName, jurisdictionType, comments, finances, responsibility, rootCause
266
368
  # @param include [String] A comma separated list of additional data to retrieve.
@@ -286,6 +388,12 @@ module AvaTax
286
388
  #
287
389
  # 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/) .
288
390
  # Paginate your results using the `$top`, `$skip`, and `$orderby` parameters.
391
+ #
392
+ # ### Security Policies
393
+ #
394
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, Compliance Operator, Compliance Root User, Compliance Temp User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, ProStoresOperator, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, SystemOperator, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
395
+ # * This API depends on the following active services<br />*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.
396
+ # * This API is available by invitation only. To request access to this feature, please speak to a business development manager and request host address whitelisting for [Returns] for your servers.
289
397
  # @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:* status, totalRemit, ticketReferenceNo, ticketReferenceUrl, reason, type, createdByUserName, documentReference, jurisdictionName, jurisdictionType, comments, finances, responsibility, rootCause
290
398
  # @param include [String] A comma separated list of additional data to retrieve.
291
399
  # @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.
@@ -304,6 +412,12 @@ module AvaTax
304
412
  #
305
413
  # This API is intended to replace the GET `/api/v2/notices` API. The fetch request object is posted on the body of the request instead of the URI, so it's not limited by a set number of characters.
306
414
  # The documentation of the GET API shows how filtering, sorting and pagination works.
415
+ #
416
+ # ### Security Policies
417
+ #
418
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, Compliance Operator, Compliance Root User, Compliance Temp User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, ProStoresOperator, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, SystemOperator, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
419
+ # * This API depends on the following active services<br />*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.
420
+ # * This API is available by invitation only. To request access to this feature, please speak to a business development manager and request host address whitelisting for [Returns] for your servers.
307
421
  # @param model [Object] Query object to filter, sort and paginate the filing calendars.
308
422
  # @return [FetchResult]
309
423
  def query_notices_post(model)
@@ -317,6 +431,12 @@ module AvaTax
317
431
  # This API is available by invitation only.
318
432
  # All data from the existing object will be replaced with data in the object you PUT.
319
433
  # 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.
434
+ #
435
+ # ### Security Policies
436
+ #
437
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, Compliance Operator, Compliance Root User, Compliance Temp User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, ProStoresOperator, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, SystemOperator, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
438
+ # * This API depends on the following active services<br />*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.
439
+ # * This API is available by invitation only. To request access to this feature, please speak to a business development manager and request host address whitelisting for [Returns] for your servers.
320
440
  # @param companyId [Integer] The ID of the company that this notice finance detail belongs to.
321
441
  # @param noticeid [Integer] The ID of the notice finance detail you wish to update.
322
442
  # @param financeDetailsId [Integer] The ID of the finance detail you wish to delete.
@@ -336,6 +456,12 @@ module AvaTax
336
456
  # Returns customers often receive support and assistance from the Compliance Notices team in handling notices received by taxing authorities.
337
457
  # All data from the existing object will be replaced with data in the object you PUT.
338
458
  # 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.
459
+ #
460
+ # ### Security Policies
461
+ #
462
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, Compliance Operator, Compliance Root User, Compliance Temp User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, ProStoresOperator, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, SystemOperator, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
463
+ # * This API depends on the following active services<br />*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.
464
+ # * This API is available by invitation only. To request access to this feature, please speak to a business development manager and request host address whitelisting for [Returns] for your servers.
339
465
  # @param companyId [Integer] The ID of the company that this notice belongs to.
340
466
  # @param id [Integer] The ID of the notice you wish to update.
341
467
  # @param model [Object] The notice object you wish to update.
@@ -351,6 +477,12 @@ module AvaTax
351
477
  # This API is available by invitation only.
352
478
  # All data from the existing object will be replaced with data in the object you PUT.
353
479
  # 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.
480
+ #
481
+ # ### Security Policies
482
+ #
483
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, Compliance Operator, Compliance Root User, Compliance Temp User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, ProStoresOperator, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, SystemOperator, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
484
+ # * This API depends on the following active services<br />*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.
485
+ # * This API is available by invitation only. To request access to this feature, please speak to a business development manager and request host address whitelisting for [Returns] for your servers.
354
486
  # @param companyId [Integer] The ID of the company that this notice comment belongs to.
355
487
  # @param noticeid [Integer] The ID of the notice you wish to update.
356
488
  # @param commentDetailsId [Integer] The ID of the comment you wish to update.
@@ -365,9 +497,16 @@ module AvaTax
365
497
  # Retrieve a single attachment
366
498
  #
367
499
  # This API is available by invitation only.
368
- # Get the file attachment identified by this URL.
500
+ #
501
+ # Uploads a file attachment for a tax notice.
502
+ #
503
+ # ### Security Policies
504
+ #
505
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, Compliance Operator, Compliance Root User, Compliance Temp User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, ProStoresOperator, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, SystemOperator, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
506
+ # * This API depends on the following active services<br />*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.
507
+ # * This API is available by invitation only. To request access to this feature, please speak to a business development manager and request host address whitelisting for [Returns] for your servers.
369
508
  # @param companyId [Integer] The ID of the company for this attachment.
370
- # @param model [Object] The ResourceFileId of the attachment to download.
509
+ # @param model [Object] The upload request.
371
510
  # @return [Object]
372
511
  def upload_attachment(companyId, model)
373
512
  path = "/api/v2/companies/#{companyId}/notices/files/attachment"
@@ -17,6 +17,10 @@ module AvaTax
17
17
  # When you dismiss a notification, the notification will track the user and time when it was
18
18
  # dismissed. You can then later review which employees of your company dismissed notifications to
19
19
  # determine if they were resolved appropriately.
20
+ #
21
+ # ### Security Policies
22
+ #
23
+ # * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
20
24
  # @param id [Integer] The id of the notification you wish to mark as dismissed.
21
25
  # @return [Object]
22
26
  def dismiss_notification(id)
@@ -35,6 +39,10 @@ module AvaTax
35
39
  #
36
40
  # An example of a notification would be a message about new software, or a change to AvaTax that may
37
41
  # affect you, or a potential issue with your company's tax profile.
42
+ #
43
+ # ### Security Policies
44
+ #
45
+ # * 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.
38
46
  # @param id [Integer] The id of the notification to retrieve.
39
47
  # @return [Object]
40
48
  def get_notification(id)
@@ -56,6 +64,10 @@ module AvaTax
56
64
  #
57
65
  # You may 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/) .
58
66
  # Paginate your results using the `$top`, `$skip`, and `$orderby` parameters.
67
+ #
68
+ # ### Security Policies
69
+ #
70
+ # * 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.
59
71
  # @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/).
60
72
  # @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.
61
73
  # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
@@ -19,6 +19,12 @@ module AvaTax
19
19
  # API will be created in `Active` status. If the customer has not yet read and accepted these terms and
20
20
  # conditions, the account will be created in `New` status and they can receive a license key by logging
21
21
  # onto the AvaTax website and reviewing terms and conditions online.
22
+ #
23
+ # ### Security Policies
24
+ #
25
+ # * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
26
+ # * This API is available by invitation only. To request access to this feature, please speak to a business development manager and request host address whitelisting for [Onboarding] for your servers.
27
+ # * This API is available by invitation only. To request access to this feature, please speak to a business development manager and request access to [Onboarding:RequestNewAccount].
22
28
  # @param model [Object] Information about the account you wish to create and the selected product offerings.
23
29
  # @return [Object]
24
30
  def request_new_account(model)
@@ -31,6 +37,12 @@ module AvaTax
31
37
  #
32
38
  # This API is for use by partner onboarding services customers only. This will allow the partners to allow
33
39
  # the add new entitlement to an existing customer
40
+ #
41
+ # ### Security Policies
42
+ #
43
+ # * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
44
+ # * This API is available by invitation only. To request access to this feature, please speak to a business development manager and request host address whitelisting for [Onboarding] for your servers.
45
+ # * This API is available by invitation only. To request access to this feature, please speak to a business development manager and request access to [Onboarding:RequestNewAccount].
34
46
  # @param id [Integer] The avatax account id of the customer
35
47
  # @param offer [String] The offer to be added to an already existing customer
36
48
  # @return [Object]