avatax 21.6.0 → 21.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/avatax/client/accounts.rb +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 +558 -443
- data/lib/avatax/client/distancethresholds.rb +48 -48
- data/lib/avatax/client/ecommercetoken.rb +16 -16
- data/lib/avatax/client/filingcalendars.rb +41 -20
- data/lib/avatax/client/filings.rb +22 -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 +185 -181
- 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 +22 -22
- 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 +34 -34
- data/lib/avatax/client/settings.rb +48 -48
- 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 +153 -153
- data/lib/avatax/client/upcs.rb +48 -48
- data/lib/avatax/client/users.rb +62 -62
- data/lib/avatax/client/utilities.rb +27 -27
- data/lib/avatax/request.rb +11 -3
- data/lib/avatax/version.rb +1 -1
- metadata +11 -4
@@ -1,10 +1,10 @@
|
|
1
|
-
module AvaTax
|
2
|
-
class Client
|
3
|
-
module Companies
|
4
|
-
|
5
|
-
|
6
|
-
# Checks whether the integration being used to set up this company and run transactions onto this company is compliant to all requirements.
|
7
|
-
#
|
1
|
+
module AvaTax
|
2
|
+
class Client
|
3
|
+
module Companies
|
4
|
+
|
5
|
+
|
6
|
+
# Checks whether the integration being used to set up this company and run transactions onto this company is compliant to all requirements.
|
7
|
+
#
|
8
8
|
# Examines the most recent 100 transactions or data from the last month when verifying transaction-related integrations.
|
9
9
|
# For partners who write integrations against AvaTax for many clients, this API is a way to do a quick self testing to verify whether the
|
10
10
|
# written integrations for a company are sufficient enough to be delivered to the respective customers to start using it.
|
@@ -31,14 +31,14 @@ module AvaTax
|
|
31
31
|
#
|
32
32
|
# ### Security Policies
|
33
33
|
#
|
34
|
-
# * 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.
|
34
|
+
# * 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.
|
35
35
|
# @param id [Integer] The ID of the company to check if its integration is certified.
|
36
|
-
# @return [String]
|
37
|
-
def certify_integration(id) path = "/api/v2/companies/#{id}/certify"
|
38
|
-
get(path) end
|
39
|
-
|
40
|
-
# Change the filing status of this company
|
41
|
-
#
|
36
|
+
# @return [String]
|
37
|
+
def certify_integration(id) path = "/api/v2/companies/#{id}/certify"
|
38
|
+
get(path) end
|
39
|
+
|
40
|
+
# Change the filing status of this company
|
41
|
+
#
|
42
42
|
# Changes the current filing status of this company.
|
43
43
|
#
|
44
44
|
# For customers using Avalara's Managed Returns Service, each company within their account can request
|
@@ -55,15 +55,15 @@ module AvaTax
|
|
55
55
|
#
|
56
56
|
# ### Security Policies
|
57
57
|
#
|
58
|
-
# * 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.
|
58
|
+
# * 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
59
|
# @param id [Integer]
|
60
60
|
# @param model [Object]
|
61
|
-
# @return [String]
|
62
|
-
def change_filing_status(id, model) path = "/api/v2/companies/#{id}/filingstatus"
|
63
|
-
post(path, model) end
|
64
|
-
|
65
|
-
# Quick setup for a company with a single physical address
|
66
|
-
#
|
61
|
+
# @return [String]
|
62
|
+
def change_filing_status(id, model) path = "/api/v2/companies/#{id}/filingstatus"
|
63
|
+
post(path, model) end
|
64
|
+
|
65
|
+
# Quick setup for a company with a single physical address
|
66
|
+
#
|
67
67
|
# Shortcut to quickly setup a single-physical-location company with critical information and activate it.
|
68
68
|
# This API provides quick and simple company setup functionality and does the following things:
|
69
69
|
#
|
@@ -79,14 +79,14 @@ module AvaTax
|
|
79
79
|
#
|
80
80
|
# ### Security Policies
|
81
81
|
#
|
82
|
-
# * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
|
82
|
+
# * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
|
83
83
|
# @param model [Object] Information about the company you wish to create.
|
84
|
-
# @return [Object]
|
85
|
-
def company_initialize(model) path = "/api/v2/companies/initialize"
|
86
|
-
post(path, model) end
|
87
|
-
|
88
|
-
# Create new companies
|
89
|
-
#
|
84
|
+
# @return [Object]
|
85
|
+
def company_initialize(model) path = "/api/v2/companies/initialize"
|
86
|
+
post(path, model) end
|
87
|
+
|
88
|
+
# Create new companies
|
89
|
+
#
|
90
90
|
# Create one or more new company objects.
|
91
91
|
# A 'company' represents a single corporation or individual that is registered to handle transactional taxes.
|
92
92
|
# You may attach nested data objects such as contacts, locations, and nexus with this CREATE call, and those objects will be created with the company.
|
@@ -95,14 +95,14 @@ module AvaTax
|
|
95
95
|
#
|
96
96
|
# ### Security Policies
|
97
97
|
#
|
98
|
-
# * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
|
98
|
+
# * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
|
99
99
|
# @param model [CompanyModel[]] Either a single company object or an array of companies to create
|
100
|
-
# @return [CompanyModel[]]
|
101
|
-
def create_companies(model) path = "/api/v2/companies"
|
102
|
-
post(path, model) end
|
103
|
-
|
104
|
-
# Add parameters to a company.
|
105
|
-
#
|
100
|
+
# @return [CompanyModel[]]
|
101
|
+
def create_companies(model) path = "/api/v2/companies"
|
102
|
+
post(path, model) end
|
103
|
+
|
104
|
+
# Add parameters to a company.
|
105
|
+
#
|
106
106
|
# Add parameters to a company.
|
107
107
|
#
|
108
108
|
# Some companies can be taxed and reported differently depending on the properties of the company, such as IsPrimaryAddress. In AvaTax, these tax-affecting properties are called "parameters".
|
@@ -117,15 +117,15 @@ module AvaTax
|
|
117
117
|
#
|
118
118
|
# ### Security Policies
|
119
119
|
#
|
120
|
-
# * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
|
120
|
+
# * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
|
121
121
|
# @param companyId [Integer] The ID of the company that owns this company parameter.
|
122
122
|
# @param model [CompanyParameterDetailModel[]] The company parameters you wish to create.
|
123
|
-
# @return [CompanyParameterDetailModel[]]
|
124
|
-
def create_company_parameters(companyId, model) path = "/api/v2/companies/#{companyId}/parameters"
|
125
|
-
post(path, model) end
|
126
|
-
|
127
|
-
# Request managed returns funding setup for a company
|
128
|
-
#
|
123
|
+
# @return [CompanyParameterDetailModel[]]
|
124
|
+
def create_company_parameters(companyId, model) path = "/api/v2/companies/#{companyId}/parameters"
|
125
|
+
post(path, model) end
|
126
|
+
|
127
|
+
# Request managed returns funding setup for a company
|
128
|
+
#
|
129
129
|
# This API is available by invitation only.
|
130
130
|
# Companies that use the Avalara Managed Returns or the SST Certified Service Provider services are
|
131
131
|
# required to setup their funding configuration before Avalara can begin filing tax returns on their
|
@@ -140,27 +140,27 @@ module AvaTax
|
|
140
140
|
# ### Security Policies
|
141
141
|
#
|
142
142
|
# * This API depends on the following active services:*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.
|
143
|
-
# * 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.
|
143
|
+
# * 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.
|
144
144
|
# @param id [Integer] The unique identifier of the company
|
145
145
|
# @param model [Object] The funding initialization request
|
146
|
-
# @return [Object]
|
147
|
-
def create_funding_request(id, model) path = "/api/v2/companies/#{id}/funding/setup"
|
148
|
-
post(path, model) end
|
149
|
-
|
150
|
-
# Delete a single company
|
151
|
-
#
|
146
|
+
# @return [Object]
|
147
|
+
def create_funding_request(id, model) path = "/api/v2/companies/#{id}/funding/setup"
|
148
|
+
post(path, model) end
|
149
|
+
|
150
|
+
# Delete a single company
|
151
|
+
#
|
152
152
|
# Deleting a company will delete all child companies, and all users attached to this company.
|
153
153
|
#
|
154
154
|
# ### Security Policies
|
155
155
|
#
|
156
|
-
# * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, FirmAdmin, SSTAdmin, TechnicalSupportAdmin.
|
156
|
+
# * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, FirmAdmin, SSTAdmin, TechnicalSupportAdmin.
|
157
157
|
# @param id [Integer] The ID of the company you wish to delete.
|
158
|
-
# @return [ErrorDetail[]]
|
159
|
-
def delete_company(id) path = "/api/v2/companies/#{id}"
|
160
|
-
delete(path) end
|
161
|
-
|
162
|
-
# Delete a single company parameter
|
163
|
-
#
|
158
|
+
# @return [ErrorDetail[]]
|
159
|
+
def delete_company(id) path = "/api/v2/companies/#{id}"
|
160
|
+
delete(path) end
|
161
|
+
|
162
|
+
# Delete a single company parameter
|
163
|
+
#
|
164
164
|
# Delete a parameter of a company.
|
165
165
|
# Some companies can be taxed and reported differently depending on the properties of the company, such as IsPrimaryAddress. In AvaTax, these tax-affecting properties are called "parameters".
|
166
166
|
#
|
@@ -170,15 +170,15 @@ module AvaTax
|
|
170
170
|
#
|
171
171
|
# ### Security Policies
|
172
172
|
#
|
173
|
-
# * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, FirmAdmin, SSTAdmin, TechnicalSupportAdmin.
|
173
|
+
# * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, FirmAdmin, SSTAdmin, TechnicalSupportAdmin.
|
174
174
|
# @param companyId [Integer] The company id
|
175
175
|
# @param id [Integer] The parameter id
|
176
|
-
# @return [ErrorDetail[]]
|
177
|
-
def delete_company_parameter(companyId, id) path = "/api/v2/companies/#{companyId}/parameters/#{id}"
|
178
|
-
delete(path) end
|
179
|
-
|
180
|
-
# Check the funding configuration of a company
|
181
|
-
#
|
176
|
+
# @return [ErrorDetail[]]
|
177
|
+
def delete_company_parameter(companyId, id) path = "/api/v2/companies/#{companyId}/parameters/#{id}"
|
178
|
+
delete(path) end
|
179
|
+
|
180
|
+
# Check the funding configuration of a company
|
181
|
+
#
|
182
182
|
# This API is available by invitation only.
|
183
183
|
# Requires a subscription to Avalara Managed Returns or SST Certified Service Provider.
|
184
184
|
# Returns the funding configuration of the requested company.
|
@@ -187,14 +187,14 @@ module AvaTax
|
|
187
187
|
# ### Security Policies
|
188
188
|
#
|
189
189
|
# * 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.
|
190
|
-
# * This API depends on the following active services:*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.*Firm Managed* (for accounts managed by a firm): ARA, ARAManaged.
|
190
|
+
# * This API depends on the following active services:*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.*Firm Managed* (for accounts managed by a firm): ARA, ARAManaged.
|
191
191
|
# @param companyId [Integer] The unique identifier of the company
|
192
|
-
# @return [Object]
|
193
|
-
def funding_configuration_by_company(companyId) path = "/api/v2/companies/#{companyId}/funding/configuration"
|
194
|
-
get(path) end
|
195
|
-
|
196
|
-
# Check the funding configuration of a company
|
197
|
-
#
|
192
|
+
# @return [Object]
|
193
|
+
def funding_configuration_by_company(companyId) path = "/api/v2/companies/#{companyId}/funding/configuration"
|
194
|
+
get(path) end
|
195
|
+
|
196
|
+
# Check the funding configuration of a company
|
197
|
+
#
|
198
198
|
# This API is available by invitation only.
|
199
199
|
# Requires a subscription to Avalara Managed Returns or SST Certified Service Provider.
|
200
200
|
# Returns the funding configuration of the requested company.
|
@@ -203,15 +203,15 @@ module AvaTax
|
|
203
203
|
# ### Security Policies
|
204
204
|
#
|
205
205
|
# * 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.
|
206
|
-
# * This API depends on the following active services:*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.*Firm Managed* (for accounts managed by a firm): ARA, ARAManaged.
|
206
|
+
# * This API depends on the following active services:*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.*Firm Managed* (for accounts managed by a firm): ARA, ARAManaged.
|
207
207
|
# @param companyId [Integer] The unique identifier of the company
|
208
208
|
# @param currency [String] The currency of the funding. USD and CAD are the only valid currencies
|
209
|
-
# @return [FundingConfigurationModel[]]
|
210
|
-
def funding_configurations_by_company_and_currency(companyId, options={}) path = "/api/v2/companies/#{companyId}/funding/configurations"
|
211
|
-
get(path, options) end
|
212
|
-
|
213
|
-
# Retrieve a single company
|
214
|
-
#
|
209
|
+
# @return [FundingConfigurationModel[]]
|
210
|
+
def funding_configurations_by_company_and_currency(companyId, options={}) path = "/api/v2/companies/#{companyId}/funding/configurations"
|
211
|
+
get(path, options) end
|
212
|
+
|
213
|
+
# Retrieve a single company
|
214
|
+
#
|
215
215
|
# Get the company object identified by this URL.
|
216
216
|
# A 'company' represents a single corporation or individual that is registered to handle transactional taxes.
|
217
217
|
# You may specify one or more of the following values in the '$include' parameter to fetch additional nested data, using commas to separate multiple values:
|
@@ -228,15 +228,15 @@ module AvaTax
|
|
228
228
|
#
|
229
229
|
# ### Security Policies
|
230
230
|
#
|
231
|
-
# * 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.
|
231
|
+
# * 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.
|
232
232
|
# @param id [Integer] The ID of the company to retrieve.
|
233
233
|
# @param include [String] OPTIONAL: A comma separated list of special fetch options. * Child objects - Specify one or more of the following to retrieve objects related to each company: "Contacts", "FilingCalendars", "Items", "Locations", "Nexus", "TaxCodes", "NonReportingChildren" or "TaxRules". * Deleted objects - Specify "FetchDeleted" to retrieve information about previously deleted objects.
|
234
|
-
# @return [Object]
|
235
|
-
def get_company(id, options={}) path = "/api/v2/companies/#{id}"
|
236
|
-
get(path, options) end
|
237
|
-
|
238
|
-
# Get configuration settings for this company
|
239
|
-
#
|
234
|
+
# @return [Object]
|
235
|
+
def get_company(id, options={}) path = "/api/v2/companies/#{id}"
|
236
|
+
get(path, options) end
|
237
|
+
|
238
|
+
# Get configuration settings for this company
|
239
|
+
#
|
240
240
|
# Retrieve a list of all configuration settings tied to this company.
|
241
241
|
#
|
242
242
|
# Configuration settings provide you with the ability to control features of your account and of your
|
@@ -252,14 +252,14 @@ module AvaTax
|
|
252
252
|
#
|
253
253
|
# ### Security Policies
|
254
254
|
#
|
255
|
-
# * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
|
255
|
+
# * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
|
256
256
|
# @param id [Integer]
|
257
|
-
# @return [CompanyConfigurationModel[]]
|
258
|
-
def get_company_configuration(id) path = "/api/v2/companies/#{id}/configuration"
|
259
|
-
get(path) end
|
260
|
-
|
261
|
-
# Retrieve a single company parameter
|
262
|
-
#
|
257
|
+
# @return [CompanyConfigurationModel[]]
|
258
|
+
def get_company_configuration(id) path = "/api/v2/companies/#{id}/configuration"
|
259
|
+
get(path) end
|
260
|
+
|
261
|
+
# Retrieve a single company parameter
|
262
|
+
#
|
263
263
|
# Retrieves a single parameter of a company.
|
264
264
|
#
|
265
265
|
# Some companies can be taxed and reported differently depending on the properties of the company, such as IsPrimaryAddress. In AvaTax, these tax-affecting properties are called "parameters".
|
@@ -270,15 +270,15 @@ module AvaTax
|
|
270
270
|
#
|
271
271
|
# ### Security Policies
|
272
272
|
#
|
273
|
-
# * 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.
|
273
|
+
# * 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.
|
274
274
|
# @param companyId [Integer]
|
275
275
|
# @param id [Integer]
|
276
|
-
# @return [Object]
|
277
|
-
def get_company_parameter_detail(companyId, id) path = "/api/v2/companies/#{companyId}/parameters/#{id}"
|
278
|
-
get(path) end
|
279
|
-
|
280
|
-
# Get this company's filing status
|
281
|
-
#
|
276
|
+
# @return [Object]
|
277
|
+
def get_company_parameter_detail(companyId, id) path = "/api/v2/companies/#{companyId}/parameters/#{id}"
|
278
|
+
get(path) end
|
279
|
+
|
280
|
+
# Get this company's filing status
|
281
|
+
#
|
282
282
|
# Retrieve the current filing status of this company.
|
283
283
|
#
|
284
284
|
# For customers using Avalara's Managed Returns Service, each company within their account can request
|
@@ -296,14 +296,14 @@ module AvaTax
|
|
296
296
|
#
|
297
297
|
# ### Security Policies
|
298
298
|
#
|
299
|
-
# * 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.
|
299
|
+
# * 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.
|
300
300
|
# @param id [Integer]
|
301
|
-
# @return [String]
|
302
|
-
def get_filing_status(id) path = "/api/v2/companies/#{id}/filingstatus"
|
303
|
-
get(path) end
|
304
|
-
|
305
|
-
# Retrieve parameters for a company
|
306
|
-
#
|
301
|
+
# @return [String]
|
302
|
+
def get_filing_status(id) path = "/api/v2/companies/#{id}/filingstatus"
|
303
|
+
get(path) end
|
304
|
+
|
305
|
+
# Retrieve parameters for a company
|
306
|
+
#
|
307
307
|
# Retrieve all parameters of a company.
|
308
308
|
#
|
309
309
|
# Some companies can be taxed and reported differently depending on the properties of the company, such as IsPrimaryAddress. In AvaTax, these tax-affecting properties are called "parameters".
|
@@ -317,18 +317,18 @@ module AvaTax
|
|
317
317
|
#
|
318
318
|
# ### Security Policies
|
319
319
|
#
|
320
|
-
# * 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.
|
320
|
+
# * 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.
|
321
321
|
# @param companyId [Integer] The company id
|
322
322
|
# @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:* name, unit
|
323
323
|
# @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.
|
324
324
|
# @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
|
325
325
|
# @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
|
326
|
-
# @return [FetchResult]
|
327
|
-
def list_company_parameter_details(companyId, options={}) path = "/api/v2/companies/#{companyId}/parameters"
|
328
|
-
get(path, options) end
|
329
|
-
|
330
|
-
# Check managed returns funding status for a company
|
331
|
-
#
|
326
|
+
# @return [FetchResult]
|
327
|
+
def list_company_parameter_details(companyId, options={}) path = "/api/v2/companies/#{companyId}/parameters"
|
328
|
+
get(path, options) end
|
329
|
+
|
330
|
+
# Check managed returns funding status for a company
|
331
|
+
#
|
332
332
|
# This API is available by invitation only.
|
333
333
|
# Requires a subscription to Avalara Managed Returns or SST Certified Service Provider.
|
334
334
|
# Returns a list of funding setup requests and their current status.
|
@@ -337,27 +337,27 @@ module AvaTax
|
|
337
337
|
# ### Security Policies
|
338
338
|
#
|
339
339
|
# * This API depends on the following active services:*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.
|
340
|
-
# * 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.
|
340
|
+
# * 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.
|
341
341
|
# @param id [Integer] The unique identifier of the company
|
342
|
-
# @return [FundingStatusModel[]]
|
343
|
-
def list_funding_requests_by_company(id) path = "/api/v2/companies/#{id}/funding"
|
344
|
-
get(path) end
|
345
|
-
|
346
|
-
# Retrieve a list of MRS Companies with account
|
347
|
-
#
|
342
|
+
# @return [FundingStatusModel[]]
|
343
|
+
def list_funding_requests_by_company(id) path = "/api/v2/companies/#{id}/funding"
|
344
|
+
get(path) end
|
345
|
+
|
346
|
+
# Retrieve a list of MRS Companies with account
|
347
|
+
#
|
348
348
|
# This API is available by invitation only.
|
349
349
|
#
|
350
350
|
# Get a list of companies with an active MRS service.
|
351
351
|
#
|
352
352
|
# ### Security Policies
|
353
353
|
#
|
354
|
-
# * 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.
|
355
|
-
# @return [FetchResult]
|
356
|
-
def list_mrs_companies() path = "/api/v2/companies/mrs"
|
357
|
-
get(path) end
|
358
|
-
|
359
|
-
# Retrieve all companies
|
360
|
-
#
|
354
|
+
# * 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.
|
355
|
+
# @return [FetchResult]
|
356
|
+
def list_mrs_companies() path = "/api/v2/companies/mrs"
|
357
|
+
get(path) end
|
358
|
+
|
359
|
+
# Retrieve all companies
|
360
|
+
#
|
361
361
|
# Get multiple company objects.
|
362
362
|
#
|
363
363
|
# A `company` represents a single corporation or individual that is registered to handle transactional taxes.
|
@@ -378,18 +378,18 @@ module AvaTax
|
|
378
378
|
#
|
379
379
|
# ### Security Policies
|
380
380
|
#
|
381
|
-
# * 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.
|
381
|
+
# * 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.
|
382
382
|
# @param include [String] A comma separated list of objects to fetch underneath this company. Any object with a URL path underneath this company can be fetched by specifying its name.
|
383
383
|
# @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:* IsFein, contacts, items, locations, nexus, settings, taxCodes, taxRules, upcs, nonReportingChildCompanies, exemptCerts, parameters, supplierandcustomers
|
384
384
|
# @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.
|
385
385
|
# @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
|
386
386
|
# @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
|
387
|
-
# @return [FetchResult]
|
388
|
-
def query_companies(options={}) path = "/api/v2/companies"
|
389
|
-
get(path, options) end
|
390
|
-
|
391
|
-
# Change configuration settings for this company
|
392
|
-
#
|
387
|
+
# @return [FetchResult]
|
388
|
+
def query_companies(options={}) path = "/api/v2/companies"
|
389
|
+
get(path, options) end
|
390
|
+
|
391
|
+
# Change configuration settings for this company
|
392
|
+
#
|
393
393
|
# Update configuration settings tied to this company.
|
394
394
|
#
|
395
395
|
# Configuration settings provide you with the ability to control features of your account and of your
|
@@ -405,15 +405,15 @@ module AvaTax
|
|
405
405
|
#
|
406
406
|
# ### Security Policies
|
407
407
|
#
|
408
|
-
# * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, SSTAdmin, TechnicalSupportAdmin.
|
408
|
+
# * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, SSTAdmin, TechnicalSupportAdmin.
|
409
409
|
# @param id [Integer]
|
410
410
|
# @param model [CompanyConfigurationModel[]]
|
411
|
-
# @return [CompanyConfigurationModel[]]
|
412
|
-
def set_company_configuration(id, model) path = "/api/v2/companies/#{id}/configuration"
|
413
|
-
post(path, model) end
|
414
|
-
|
415
|
-
# Update a single company
|
416
|
-
#
|
411
|
+
# @return [CompanyConfigurationModel[]]
|
412
|
+
def set_company_configuration(id, model) path = "/api/v2/companies/#{id}/configuration"
|
413
|
+
post(path, model) end
|
414
|
+
|
415
|
+
# Update a single company
|
416
|
+
#
|
417
417
|
# Replace the existing company object at this URL with an updated object.
|
418
418
|
#
|
419
419
|
# A `CompanyModel` represents a single corporation or individual that is registered to handle transactional taxes.
|
@@ -428,15 +428,15 @@ module AvaTax
|
|
428
428
|
#
|
429
429
|
# ### Security Policies
|
430
430
|
#
|
431
|
-
# * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
|
431
|
+
# * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
|
432
432
|
# @param id [Integer] The ID of the company you wish to update.
|
433
433
|
# @param model [Object] The company object you wish to update.
|
434
|
-
# @return [Object]
|
435
|
-
def update_company(id, model) path = "/api/v2/companies/#{id}"
|
436
|
-
put(path, model) end
|
437
|
-
|
438
|
-
# Update a company parameter
|
439
|
-
#
|
434
|
+
# @return [Object]
|
435
|
+
def update_company(id, model) path = "/api/v2/companies/#{id}"
|
436
|
+
put(path, model) end
|
437
|
+
|
438
|
+
# Update a company parameter
|
439
|
+
#
|
440
440
|
# Update a parameter of a company.
|
441
441
|
#
|
442
442
|
# Some companies can be taxed and reported differently depending on the properties of the company, such as IsPrimaryAddress. In AvaTax, these tax-affecting properties are called "parameters".
|
@@ -447,13 +447,13 @@ module AvaTax
|
|
447
447
|
#
|
448
448
|
# ### Security Policies
|
449
449
|
#
|
450
|
-
# * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
|
450
|
+
# * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
|
451
451
|
# @param companyId [Integer] The company id.
|
452
452
|
# @param id [Integer] The company parameter id
|
453
453
|
# @param model [Object] The company parameter object you wish to update.
|
454
|
-
# @return [Object]
|
455
|
-
def update_company_parameter_detail(companyId, id, model) path = "/api/v2/companies/#{companyId}/parameters/#{id}"
|
456
|
-
put(path, model) end
|
457
|
-
end
|
458
|
-
end
|
454
|
+
# @return [Object]
|
455
|
+
def update_company_parameter_detail(companyId, id, model) path = "/api/v2/companies/#{companyId}/parameters/#{id}"
|
456
|
+
put(path, model) end
|
457
|
+
end
|
458
|
+
end
|
459
459
|
end
|
@@ -1,53 +1,53 @@
|
|
1
|
-
module AvaTax
|
2
|
-
class Client
|
3
|
-
module Contacts
|
4
|
-
|
5
|
-
|
6
|
-
# Create a new contact
|
7
|
-
#
|
1
|
+
module AvaTax
|
2
|
+
class Client
|
3
|
+
module Contacts
|
4
|
+
|
5
|
+
|
6
|
+
# Create a new contact
|
7
|
+
#
|
8
8
|
# Create one or more new contact objects.
|
9
9
|
# A 'contact' is a person associated with a company who is designated to handle certain responsibilities of
|
10
10
|
# a tax collecting and filing entity.
|
11
11
|
#
|
12
12
|
# ### Security Policies
|
13
13
|
#
|
14
|
-
# * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, FirmAdmin, SSTAdmin, TechnicalSupportAdmin.
|
14
|
+
# * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, FirmAdmin, SSTAdmin, TechnicalSupportAdmin.
|
15
15
|
# @param companyId [Integer] The ID of the company that owns this contact.
|
16
16
|
# @param model [ContactModel[]] The contacts you wish to create.
|
17
|
-
# @return [ContactModel[]]
|
18
|
-
def create_contacts(companyId, model) path = "/api/v2/companies/#{companyId}/contacts"
|
19
|
-
post(path, model) end
|
20
|
-
|
21
|
-
# Delete a single contact
|
22
|
-
#
|
17
|
+
# @return [ContactModel[]]
|
18
|
+
def create_contacts(companyId, model) path = "/api/v2/companies/#{companyId}/contacts"
|
19
|
+
post(path, model) end
|
20
|
+
|
21
|
+
# Delete a single contact
|
22
|
+
#
|
23
23
|
# Mark the existing contact object at this URL as deleted.
|
24
24
|
#
|
25
25
|
# ### Security Policies
|
26
26
|
#
|
27
|
-
# * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, FirmAdmin, SSTAdmin, TechnicalSupportAdmin.
|
27
|
+
# * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, FirmAdmin, SSTAdmin, TechnicalSupportAdmin.
|
28
28
|
# @param companyId [Integer] The ID of the company that owns this contact.
|
29
29
|
# @param id [Integer] The ID of the contact you wish to delete.
|
30
|
-
# @return [ErrorDetail[]]
|
31
|
-
def delete_contact(companyId, id) path = "/api/v2/companies/#{companyId}/contacts/#{id}"
|
32
|
-
delete(path) end
|
33
|
-
|
34
|
-
# Retrieve a single contact
|
35
|
-
#
|
30
|
+
# @return [ErrorDetail[]]
|
31
|
+
def delete_contact(companyId, id) path = "/api/v2/companies/#{companyId}/contacts/#{id}"
|
32
|
+
delete(path) end
|
33
|
+
|
34
|
+
# Retrieve a single contact
|
35
|
+
#
|
36
36
|
# Get the contact object identified by this URL.
|
37
37
|
# A 'contact' is a person associated with a company who is designated to handle certain responsibilities of
|
38
38
|
# a tax collecting and filing entity.
|
39
39
|
#
|
40
40
|
# ### Security Policies
|
41
41
|
#
|
42
|
-
# * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, FirmAdmin, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
|
42
|
+
# * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, FirmAdmin, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
|
43
43
|
# @param companyId [Integer] The ID of the company for this contact
|
44
44
|
# @param id [Integer] The primary key of this contact
|
45
|
-
# @return [Object]
|
46
|
-
def get_contact(companyId, id) path = "/api/v2/companies/#{companyId}/contacts/#{id}"
|
47
|
-
get(path) end
|
48
|
-
|
49
|
-
# Retrieve contacts for this company
|
50
|
-
#
|
45
|
+
# @return [Object]
|
46
|
+
def get_contact(companyId, id) path = "/api/v2/companies/#{companyId}/contacts/#{id}"
|
47
|
+
get(path) end
|
48
|
+
|
49
|
+
# Retrieve contacts for this company
|
50
|
+
#
|
51
51
|
# List all contact objects assigned to this company.
|
52
52
|
#
|
53
53
|
# 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/) .
|
@@ -55,18 +55,18 @@ module AvaTax
|
|
55
55
|
#
|
56
56
|
# ### Security Policies
|
57
57
|
#
|
58
|
-
# * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, FirmAdmin, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
|
58
|
+
# * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, FirmAdmin, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
|
59
59
|
# @param companyId [Integer] The ID of the company that owns these contacts
|
60
60
|
# @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/).
|
61
61
|
# @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.
|
62
62
|
# @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
|
63
63
|
# @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
|
64
|
-
# @return [FetchResult]
|
65
|
-
def list_contacts_by_company(companyId, options={}) path = "/api/v2/companies/#{companyId}/contacts"
|
66
|
-
get(path, options) end
|
67
|
-
|
68
|
-
# Retrieve all contacts
|
69
|
-
#
|
64
|
+
# @return [FetchResult]
|
65
|
+
def list_contacts_by_company(companyId, options={}) path = "/api/v2/companies/#{companyId}/contacts"
|
66
|
+
get(path, options) end
|
67
|
+
|
68
|
+
# Retrieve all contacts
|
69
|
+
#
|
70
70
|
# Get multiple contact objects across all companies.
|
71
71
|
# A 'contact' is a person associated with a company who is designated to handle certain responsibilities of
|
72
72
|
# a tax collecting and filing entity.
|
@@ -76,17 +76,17 @@ module AvaTax
|
|
76
76
|
#
|
77
77
|
# ### Security Policies
|
78
78
|
#
|
79
|
-
# * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, FirmAdmin, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
|
79
|
+
# * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, FirmAdmin, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
|
80
80
|
# @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/).
|
81
81
|
# @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.
|
82
82
|
# @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
|
83
83
|
# @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
|
84
|
-
# @return [FetchResult]
|
85
|
-
def query_contacts(options={}) path = "/api/v2/contacts"
|
86
|
-
get(path, options) end
|
87
|
-
|
88
|
-
# Update a single contact
|
89
|
-
#
|
84
|
+
# @return [FetchResult]
|
85
|
+
def query_contacts(options={}) path = "/api/v2/contacts"
|
86
|
+
get(path, options) end
|
87
|
+
|
88
|
+
# Update a single contact
|
89
|
+
#
|
90
90
|
# Replace the existing contact object at this URL with an updated object.
|
91
91
|
# A 'contact' is a person associated with a company who is designated to handle certain responsibilities of
|
92
92
|
# a tax collecting and filing entity.
|
@@ -95,13 +95,13 @@ module AvaTax
|
|
95
95
|
#
|
96
96
|
# ### Security Policies
|
97
97
|
#
|
98
|
-
# * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, FirmAdmin, SSTAdmin, TechnicalSupportAdmin.
|
98
|
+
# * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, FirmAdmin, SSTAdmin, TechnicalSupportAdmin.
|
99
99
|
# @param companyId [Integer] The ID of the company that this contact belongs to.
|
100
100
|
# @param id [Integer] The ID of the contact you wish to update
|
101
101
|
# @param model [Object] The contact you wish to update.
|
102
|
-
# @return [Object]
|
103
|
-
def update_contact(companyId, id, model) path = "/api/v2/companies/#{companyId}/contacts/#{id}"
|
104
|
-
put(path, model) end
|
105
|
-
end
|
106
|
-
end
|
102
|
+
# @return [Object]
|
103
|
+
def update_contact(companyId, id, model) path = "/api/v2/companies/#{companyId}/contacts/#{id}"
|
104
|
+
put(path, model) end
|
105
|
+
end
|
106
|
+
end
|
107
107
|
end
|