avatax 22.5.0 → 22.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/gem-push.yml +31 -0
  3. data/.gitignore +55 -55
  4. data/.rspec +1 -1
  5. data/.vs/VSWorkspaceState.json +5 -5
  6. data/.yardopts +4 -4
  7. data/Gemfile +2 -2
  8. data/LICENSE +201 -201
  9. data/README.md +98 -98
  10. data/Rakefile +9 -9
  11. data/avatax.gemspec +38 -38
  12. data/example/avatax.rb +47 -47
  13. data/example/credentials.example.yaml +5 -5
  14. data/lib/avatax/api.rb +27 -27
  15. data/lib/avatax/client/accounts.rb +22 -22
  16. data/lib/avatax/client/addresses.rb +4 -4
  17. data/lib/avatax/client/advancedrules.rb +5 -5
  18. data/lib/avatax/client/avafileforms.rb +7 -7
  19. data/lib/avatax/client/batches.rb +16 -16
  20. data/lib/avatax/client/certexpressinvites.rb +6 -6
  21. data/lib/avatax/client/certificates.rb +30 -30
  22. data/lib/avatax/client/companies.rb +47 -45
  23. data/lib/avatax/client/compliance.rb +1 -1
  24. data/lib/avatax/client/contacts.rb +12 -12
  25. data/lib/avatax/client/customers.rb +26 -26
  26. data/lib/avatax/client/datasources.rb +12 -12
  27. data/lib/avatax/client/definitions.rb +90 -75
  28. data/lib/avatax/client/distancethresholds.rb +12 -12
  29. data/lib/avatax/client/ecms.rb +73 -73
  30. data/lib/avatax/client/ecommercetoken.rb +4 -4
  31. data/lib/avatax/client/errortransactions.rb +61 -61
  32. data/lib/avatax/client/firmclientlinkages.rb +17 -17
  33. data/lib/avatax/client/free.rb +1 -1
  34. data/lib/avatax/client/fundingrequests.rb +10 -6
  35. data/lib/avatax/client/items.rb +64 -64
  36. data/lib/avatax/client/jurisdictionoverrides.rb +12 -12
  37. data/lib/avatax/client/locations.rb +24 -24
  38. data/lib/avatax/client/multidocument.rb +20 -20
  39. data/lib/avatax/client/nexus.rb +30 -30
  40. data/lib/avatax/client/notices.rb +8 -8
  41. data/lib/avatax/client/notifications.rb +6 -6
  42. data/lib/avatax/client/onboarding.rb +55 -55
  43. data/lib/avatax/client/pointofsale.rb +21 -21
  44. data/lib/avatax/client/provisioning.rb +4 -4
  45. data/lib/avatax/client/registrar.rb +19 -19
  46. data/lib/avatax/client/reports.rb +7 -7
  47. data/lib/avatax/client/settings.rb +12 -12
  48. data/lib/avatax/client/subscriptions.rb +6 -6
  49. data/lib/avatax/client/taxcodes.rb +12 -12
  50. data/lib/avatax/client/taxcontent.rb +8 -8
  51. data/lib/avatax/client/taxprofiles.rb +42 -42
  52. data/lib/avatax/client/taxrules.rb +12 -12
  53. data/lib/avatax/client/transactions.rb +41 -41
  54. data/lib/avatax/client/upcs.rb +12 -12
  55. data/lib/avatax/client/userdefinedfields.rb +6 -6
  56. data/lib/avatax/client/users.rb +16 -16
  57. data/lib/avatax/client/utilities.rb +3 -3
  58. data/lib/avatax/client.rb +37 -37
  59. data/lib/avatax/configuration.rb +76 -76
  60. data/lib/avatax/connection.rb +53 -53
  61. data/lib/avatax/request.rb +51 -51
  62. data/lib/avatax/version.rb +3 -3
  63. data/lib/avatax.rb +26 -26
  64. data/spec/avatax/client/accounts_spec.rb +13 -13
  65. data/spec/avatax/client/transactions_spec.rb +80 -80
  66. data/spec/avatax/request_spec.rb +25 -25
  67. data/spec/avatax_spec.rb +45 -45
  68. data/spec/credentials.yaml.example +4 -4
  69. data/spec/fixtures/accounts.json +15 -15
  70. data/spec/spec_helper.rb +27 -27
  71. metadata +6 -6
  72. data/.travis.yml +0 -19
@@ -23,14 +23,14 @@ module AvaTax
23
23
  #
24
24
  # ### Security Policies
25
25
  #
26
- # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin.
26
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin.
27
27
  # * This API depends on the following active services:*Required* (all): AvaTaxPro.
28
28
  # Swagger Name: AvaTaxClient
29
29
  # @param companyId [Integer] The unique ID number of the company that recorded this customer
30
30
  # @param model [CustomerModel[]] The list of customer objects to be created
31
31
  # @return [CustomerModel[]]
32
32
  def create_customers(companyId, model) path = "/api/v2/companies/#{companyId}/customers"
33
- post(path, model, {}, "22.5.0") end
33
+ post(path, model, {}, "22.8.0") end
34
34
 
35
35
  # Delete a customer record
36
36
  #
@@ -49,14 +49,14 @@ module AvaTax
49
49
  #
50
50
  # ### Security Policies
51
51
  #
52
- # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin.
52
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin.
53
53
  # * This API depends on the following active services:*Required* (all): AvaTaxPro.
54
54
  # Swagger Name: AvaTaxClient
55
55
  # @param companyId [Integer] The unique ID number of the company that recorded this customer
56
56
  # @param customerCode [String] The unique code representing this customer
57
57
  # @return [Object]
58
58
  def delete_customer(companyId, customerCode) path = "/api/v2/companies/#{companyId}/customers/#{customerCode}"
59
- delete(path, {}, "22.5.0") end
59
+ delete(path, {}, "22.8.0") end
60
60
 
61
61
  # Retrieve a single customer
62
62
  #
@@ -81,7 +81,7 @@ module AvaTax
81
81
  #
82
82
  # ### Security Policies
83
83
  #
84
- # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
84
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
85
85
  # * This API depends on the following active services:*Required* (all): AvaTaxPro.
86
86
  # Swagger Name: AvaTaxClient
87
87
  # @param companyId [Integer] The unique ID number of the company that recorded this customer
@@ -89,7 +89,7 @@ module AvaTax
89
89
  # @param include [String] Specify optional additional objects to include in this fetch request
90
90
  # @return [Object]
91
91
  def get_customer(companyId, customerCode, options={}) path = "/api/v2/companies/#{companyId}/customers/#{customerCode}"
92
- get(path, options, "22.5.0") end
92
+ get(path, options, "22.8.0") end
93
93
 
94
94
  # Link attributes to a customer
95
95
  #
@@ -111,7 +111,7 @@ module AvaTax
111
111
  #
112
112
  # ### Security Policies
113
113
  #
114
- # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin.
114
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin.
115
115
  # * This API depends on the following active services:*Required* (all): AvaTaxPro.
116
116
  # Swagger Name: AvaTaxClient
117
117
  # @param companyId [Integer] The unique ID number of the company that recorded the provided customer
@@ -119,7 +119,7 @@ module AvaTax
119
119
  # @param model [CustomerAttributeModel[]] The list of attributes to link to the customer.
120
120
  # @return [FetchResult]
121
121
  def link_attributes_to_customer(companyId, customerCode, model) path = "/api/v2/companies/#{companyId}/customers/#{customerCode}/attributes/link"
122
- put(path, model, {}, "22.5.0") end
122
+ put(path, model, {}, "22.8.0") end
123
123
 
124
124
  # Link certificates to a customer
125
125
  #
@@ -138,7 +138,7 @@ module AvaTax
138
138
  #
139
139
  # ### Security Policies
140
140
  #
141
- # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
141
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
142
142
  # * This API depends on the following active services:*Required* (all): AvaTaxPro.
143
143
  # Swagger Name: AvaTaxClient
144
144
  # @param companyId [Integer] The unique ID number of the company that recorded this customer
@@ -146,7 +146,7 @@ module AvaTax
146
146
  # @param model [Object] The list of certificates to link to this customer
147
147
  # @return [FetchResult]
148
148
  def link_certificates_to_customer(companyId, customerCode, model) path = "/api/v2/companies/#{companyId}/customers/#{customerCode}/certificates/link"
149
- post(path, model, {}, "22.5.0") end
149
+ post(path, model, {}, "22.8.0") end
150
150
 
151
151
  # Link two customer records together
152
152
  #
@@ -166,7 +166,7 @@ module AvaTax
166
166
  #
167
167
  # ### Security Policies
168
168
  #
169
- # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
169
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
170
170
  # * This API depends on the following active services:*Required* (all): AvaTaxPro.
171
171
  # Swagger Name: AvaTaxClient
172
172
  # @param companyId [Integer] The unique ID number of the company defining customers.
@@ -174,7 +174,7 @@ module AvaTax
174
174
  # @param model [Object] A list of information about ship-to customers to link to this bill-to customer.
175
175
  # @return [Object]
176
176
  def link_ship_to_customers_to_bill_customer(companyId, code, model) path = "/api/v2/companies/#{companyId}/customers/billto/#{code}/shipto/link"
177
- post(path, model, {}, "22.5.0") end
177
+ post(path, model, {}, "22.8.0") end
178
178
 
179
179
  # Retrieve a customer's attributes
180
180
  #
@@ -196,14 +196,14 @@ module AvaTax
196
196
  #
197
197
  # ### Security Policies
198
198
  #
199
- # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
199
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
200
200
  # * This API depends on the following active services:*Required* (all): AvaTaxPro.
201
201
  # Swagger Name: AvaTaxClient
202
202
  # @param companyId [Integer] The unique ID number of the company that recorded the provided customer
203
203
  # @param customerCode [String] The unique code representing the current customer
204
204
  # @return [FetchResult]
205
205
  def list_attributes_for_customer(companyId, customerCode) path = "/api/v2/companies/#{companyId}/customers/#{customerCode}/attributes"
206
- get(path, {}, "22.5.0") end
206
+ get(path, {}, "22.8.0") end
207
207
 
208
208
  # List certificates linked to a customer
209
209
  #
@@ -222,7 +222,7 @@ module AvaTax
222
222
  #
223
223
  # ### Security Policies
224
224
  #
225
- # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
225
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
226
226
  # * This API depends on the following active services:*Required* (all): AvaTaxPro.
227
227
  # Swagger Name: AvaTaxClient
228
228
  # @param companyId [Integer] The unique ID number of the company that recorded this customer
@@ -234,7 +234,7 @@ module AvaTax
234
234
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
235
235
  # @return [FetchResult]
236
236
  def list_certificates_for_customer(companyId, customerCode, options={}) path = "/api/v2/companies/#{companyId}/customers/#{customerCode}/certificates"
237
- get(path, options, "22.5.0") end
237
+ get(path, options, "22.8.0") end
238
238
 
239
239
  # List valid certificates for a location
240
240
  #
@@ -256,7 +256,7 @@ module AvaTax
256
256
  #
257
257
  # ### Security Policies
258
258
  #
259
- # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
259
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
260
260
  # * This API depends on the following active services:*Required* (all): AvaTaxPro.
261
261
  # Swagger Name: AvaTaxClient
262
262
  # @param companyId [Integer] The unique ID number of the company that recorded this customer
@@ -265,7 +265,7 @@ module AvaTax
265
265
  # @param region [String] Search for certificates matching this region. Uses the ISO 3166 two or three character state, region, or province code.
266
266
  # @return [Object]
267
267
  def list_valid_certificates_for_customer(companyId, customerCode, country, region) path = "/api/v2/companies/#{companyId}/customers/#{customerCode}/certificates/#{country}/#{region}"
268
- get(path, {}, "22.5.0") end
268
+ get(path, {}, "22.8.0") end
269
269
 
270
270
  # List all customers for this company
271
271
  #
@@ -289,7 +289,7 @@ module AvaTax
289
289
  #
290
290
  # ### Security Policies
291
291
  #
292
- # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
292
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
293
293
  # * This API depends on the following active services:*Required* (all): AvaTaxPro.
294
294
  # Swagger Name: AvaTaxClient
295
295
  # @param companyId [Integer] The unique ID number of the company that recorded this customer
@@ -300,7 +300,7 @@ module AvaTax
300
300
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
301
301
  # @return [FetchResult]
302
302
  def query_customers(companyId, options={}) path = "/api/v2/companies/#{companyId}/customers"
303
- get(path, options, "22.5.0") end
303
+ get(path, options, "22.8.0") end
304
304
 
305
305
  # Unlink attributes from a customer
306
306
  #
@@ -322,7 +322,7 @@ module AvaTax
322
322
  #
323
323
  # ### Security Policies
324
324
  #
325
- # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin.
325
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin.
326
326
  # * This API depends on the following active services:*Required* (all): AvaTaxPro.
327
327
  # Swagger Name: AvaTaxClient
328
328
  # @param companyId [Integer] The unique ID number of the company that recorded the customer
@@ -330,7 +330,7 @@ module AvaTax
330
330
  # @param model [CustomerAttributeModel[]] The list of attributes to unlink from the customer.
331
331
  # @return [FetchResult]
332
332
  def unlink_attributes_from_customer(companyId, customerCode, model) path = "/api/v2/companies/#{companyId}/customers/#{customerCode}/attributes/unlink"
333
- put(path, model, {}, "22.5.0") end
333
+ put(path, model, {}, "22.8.0") end
334
334
 
335
335
  # Unlink certificates from a customer
336
336
  #
@@ -349,7 +349,7 @@ module AvaTax
349
349
  #
350
350
  # ### Security Policies
351
351
  #
352
- # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
352
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
353
353
  # * This API depends on the following active services:*Required* (all): AvaTaxPro.
354
354
  # Swagger Name: AvaTaxClient
355
355
  # @param companyId [Integer] The unique ID number of the company that recorded this customer
@@ -357,7 +357,7 @@ module AvaTax
357
357
  # @param model [Object] The list of certificates to link to this customer
358
358
  # @return [FetchResult]
359
359
  def unlink_certificates_from_customer(companyId, customerCode, model) path = "/api/v2/companies/#{companyId}/customers/#{customerCode}/certificates/unlink"
360
- post(path, model, {}, "22.5.0") end
360
+ post(path, model, {}, "22.8.0") end
361
361
 
362
362
  # Update a single customer
363
363
  #
@@ -376,7 +376,7 @@ module AvaTax
376
376
  #
377
377
  # ### Security Policies
378
378
  #
379
- # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin.
379
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin.
380
380
  # * This API depends on the following active services:*Required* (all): AvaTaxPro.
381
381
  # Swagger Name: AvaTaxClient
382
382
  # @param companyId [Integer] The unique ID number of the company that recorded this customer
@@ -384,7 +384,7 @@ module AvaTax
384
384
  # @param model [Object] The new customer model that will replace the existing record at this URL
385
385
  # @return [Object]
386
386
  def update_customer(companyId, customerCode, model) path = "/api/v2/companies/#{companyId}/customers/#{customerCode}"
387
- put(path, model, {}, "22.5.0") end
387
+ put(path, model, {}, "22.8.0") end
388
388
  end
389
389
  end
390
390
  end
@@ -9,14 +9,14 @@ module AvaTax
9
9
  #
10
10
  # ### Security Policies
11
11
  #
12
- # * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
12
+ # * This API requires one of the following user roles: AccountAdmin, BatchServiceAdmin, CompanyAdmin, CSPTester, FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
13
13
  # * This API depends on the following active services:*Required* (all): AvaTaxPro, BasicReturns.
14
14
  # Swagger Name: AvaTaxClient
15
15
  # @param companyId [Integer] The id of the company you which to create the datasources
16
16
  # @param model [DataSourceModel[]]
17
17
  # @return [DataSourceModel[]]
18
18
  def create_data_sources(companyId, model) path = "/api/v2/companies/#{companyId}/datasources"
19
- post(path, model, {}, "22.5.0") end
19
+ post(path, model, {}, "22.8.0") end
20
20
 
21
21
  # Delete a datasource by datasource id for a company.
22
22
  #
@@ -24,14 +24,14 @@ module AvaTax
24
24
  #
25
25
  # ### Security Policies
26
26
  #
27
- # * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
27
+ # * This API requires one of the following user roles: AccountAdmin, BatchServiceAdmin, CompanyAdmin, CSPTester, FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
28
28
  # * This API depends on the following active services:*Required* (all): AvaTaxPro, BasicReturns.
29
29
  # Swagger Name: AvaTaxClient
30
30
  # @param companyId [Integer] The id of the company the datasource belongs to.
31
31
  # @param id [Integer] The id of the datasource you wish to delete.
32
32
  # @return [ErrorDetail[]]
33
33
  def delete_data_source(companyId, id) path = "/api/v2/companies/#{companyId}/datasources/#{id}"
34
- delete(path, {}, "22.5.0") end
34
+ delete(path, {}, "22.8.0") end
35
35
 
36
36
  # Get data source by data source id
37
37
  #
@@ -39,14 +39,14 @@ module AvaTax
39
39
  #
40
40
  # ### Security Policies
41
41
  #
42
- # * 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.
42
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, ProStoresOperator, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
43
43
  # * This API depends on the following active services:*Required* (all): AvaTaxPro, BasicReturns.
44
44
  # Swagger Name: AvaTaxClient
45
45
  # @param companyId [Integer]
46
46
  # @param id [Integer] data source id
47
47
  # @return [Object]
48
48
  def get_data_source_by_id(companyId, id) path = "/api/v2/companies/#{companyId}/datasources/#{id}"
49
- get(path, {}, "22.5.0") end
49
+ get(path, {}, "22.8.0") end
50
50
 
51
51
  # Retrieve all datasources for this company
52
52
  #
@@ -54,7 +54,7 @@ module AvaTax
54
54
  #
55
55
  # ### Security Policies
56
56
  #
57
- # * 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.
57
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, ProStoresOperator, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
58
58
  # * This API depends on the following active services:*Required* (all): AvaTaxPro, BasicReturns.
59
59
  # Swagger Name: AvaTaxClient
60
60
  # @param companyId [Integer] The id of the company you wish to retrieve the datasources.
@@ -64,7 +64,7 @@ module AvaTax
64
64
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
65
65
  # @return [FetchResult]
66
66
  def list_data_sources(companyId, options={}) path = "/api/v2/companies/#{companyId}/datasources"
67
- get(path, options, "22.5.0") end
67
+ get(path, options, "22.8.0") end
68
68
 
69
69
  # Retrieve all datasources
70
70
  #
@@ -75,7 +75,7 @@ module AvaTax
75
75
  #
76
76
  # ### Security Policies
77
77
  #
78
- # * 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.
78
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, ProStoresOperator, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
79
79
  # * This API depends on the following active services:*Required* (all): AvaTaxPro, BasicReturns.
80
80
  # Swagger Name: AvaTaxClient
81
81
  # @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:* isEnabled, isSynced, isAuthorized, name, externalState
@@ -84,7 +84,7 @@ module AvaTax
84
84
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
85
85
  # @return [FetchResult]
86
86
  def query_data_sources(options={}) path = "/api/v2/datasources"
87
- get(path, options, "22.5.0") end
87
+ get(path, options, "22.8.0") end
88
88
 
89
89
  # Update a datasource identified by id for a company
90
90
  #
@@ -92,7 +92,7 @@ module AvaTax
92
92
  #
93
93
  # ### Security Policies
94
94
  #
95
- # * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
95
+ # * This API requires one of the following user roles: AccountAdmin, BatchServiceAdmin, CompanyAdmin, CSPTester, FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
96
96
  # * This API depends on the following active services:*Required* (all): AvaTaxPro, BasicReturns.
97
97
  # Swagger Name: AvaTaxClient
98
98
  # @param companyId [Integer] The id of the company the datasource belongs to.
@@ -100,7 +100,7 @@ module AvaTax
100
100
  # @param model [Object]
101
101
  # @return [Object]
102
102
  def update_data_source(companyId, id, model) path = "/api/v2/companies/#{companyId}/datasources/#{id}"
103
- put(path, model, {}, "22.5.0") end
103
+ put(path, model, {}, "22.8.0") end
104
104
  end
105
105
  end
106
106
  end