avatax 20.7.0 → 21.3.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 (49) hide show
  1. checksums.yaml +4 -4
  2. data/.vs/slnx.sqlite +0 -0
  3. data/lib/avatax/client/accounts.rb +22 -55
  4. data/lib/avatax/client/addresses.rb +7 -13
  5. data/lib/avatax/client/advancedrules.rb +10 -38
  6. data/lib/avatax/client/avafileforms.rb +15 -30
  7. data/lib/avatax/client/batches.rb +16 -40
  8. data/lib/avatax/client/certexpressinvites.rb +21 -30
  9. data/lib/avatax/client/certificates.rb +97 -142
  10. data/lib/avatax/client/companies.rb +137 -80
  11. data/lib/avatax/client/compliance.rb +2 -5
  12. data/lib/avatax/client/contacts.rb +12 -30
  13. data/lib/avatax/client/customers.rb +87 -126
  14. data/lib/avatax/client/datasources.rb +18 -36
  15. data/lib/avatax/client/definitions.rb +126 -303
  16. data/lib/avatax/client/distancethresholds.rb +12 -30
  17. data/lib/avatax/client/ecms.rb +26 -31
  18. data/lib/avatax/client/ecommercetoken.rb +37 -0
  19. data/lib/avatax/client/errortransactions.rb +27 -15
  20. data/lib/avatax/client/filingcalendars.rb +17 -5
  21. data/lib/avatax/client/filings.rb +15 -7
  22. data/lib/avatax/client/firmclientlinkages.rb +18 -45
  23. data/lib/avatax/client/free.rb +2 -84
  24. data/lib/avatax/client/fundingrequests.rb +6 -12
  25. data/lib/avatax/client/items.rb +38 -95
  26. data/lib/avatax/client/jurisdictionoverrides.rb +12 -30
  27. data/lib/avatax/client/locations.rb +128 -38
  28. data/lib/avatax/client/multidocument.rb +32 -62
  29. data/lib/avatax/client/nexus.rb +138 -37
  30. data/lib/avatax/client/notices.rb +47 -139
  31. data/lib/avatax/client/notifications.rb +6 -15
  32. data/lib/avatax/client/provisioning.rb +4 -10
  33. data/lib/avatax/client/registrar.rb +20 -50
  34. data/lib/avatax/client/reports.rb +17 -20
  35. data/lib/avatax/client/settings.rb +12 -30
  36. data/lib/avatax/client/subscriptions.rb +6 -15
  37. data/lib/avatax/client/taxcodes.rb +12 -30
  38. data/lib/avatax/client/taxcontent.rb +70 -16
  39. data/lib/avatax/client/taxprofiles.rb +14 -10
  40. data/lib/avatax/client/taxrules.rb +12 -30
  41. data/lib/avatax/client/transactions.rb +63 -126
  42. data/lib/avatax/client/upcs.rb +18 -36
  43. data/lib/avatax/client/users.rb +16 -40
  44. data/lib/avatax/client/utilities.rb +6 -15
  45. data/lib/avatax/configuration.rb +1 -1
  46. data/lib/avatax/request.rb +0 -2
  47. data/lib/avatax/version.rb +1 -1
  48. data/spec/avatax/request_spec.rb +25 -0
  49. metadata +4 -2
@@ -21,90 +21,8 @@ module AvaTax
21
21
  # * This API may be called without providing authentication credentials.
22
22
  # @param model [Object] Required information to provision a free trial account.
23
23
  # @return [Object]
24
- def request_free_trial(model)
25
- path = "/api/v2/accounts/freetrials/request"
26
- post(path, model)
27
- end
28
-
29
-
30
- # FREE API - Sales tax rates for a specified address
31
- #
32
- # # Free-To-Use
33
- #
34
- # The TaxRates API is a free-to-use, no cost option for estimating sales tax rates.
35
- # Any customer can request a free AvaTax account and make use of the TaxRates API.
36
- #
37
- # Usage of this API is subject to rate limits. Users who exceed the rate limit will receive HTTP
38
- # response code 429 - `Too Many Requests`.
39
- #
40
- # This API assumes that you are selling general tangible personal property at a retail point-of-sale
41
- # location in the United States only.
42
- #
43
- # For more powerful tax calculation, please consider upgrading to the `CreateTransaction` API,
44
- # which supports features including, but not limited to:
45
- #
46
- # * Nexus declarations
47
- # * Taxability based on product/service type
48
- # * Sourcing rules affecting origin/destination states
49
- # * Customers who are exempt from certain taxes
50
- # * States that have dollar value thresholds for tax amounts
51
- # * Refunds for products purchased on a different date
52
- # * Detailed jurisdiction names and state assigned codes
53
- # * And more!
54
- #
55
- # Please see [Estimating Tax with REST v2](http://developer.avalara.com/blog/2016/11/04/estimating-tax-with-rest-v2/)
56
- # for information on how to upgrade to the full AvaTax CreateTransaction API.
57
- # @param line1 [String] The street address of the location.
58
- # @param line2 [String] The street address of the location.
59
- # @param line3 [String] The street address of the location.
60
- # @param city [String] The city name of the location.
61
- # @param region [String] Name or ISO 3166 code identifying the region within the country. This field supports many different region identifiers: * Two and three character ISO 3166 region codes * Fully spelled out names of the region in ISO supported languages * Common alternative spellings for many regions For a full list of all supported codes and names, please see the Definitions API `ListRegions`.
62
- # @param postalCode [String] The postal code of the location.
63
- # @param country [String] Name or ISO 3166 code identifying the country. This field supports many different country identifiers: * Two character ISO 3166 codes * Three character ISO 3166 codes * Fully spelled out names of the country in ISO supported languages * Common alternative spellings for many countries For a full list of all supported codes and names, please see the Definitions API `ListCountries`.
64
- # @return [Object]
65
- def tax_rates_by_address(options={})
66
- path = "/api/v2/taxrates/byaddress"
67
- get(path, options)
68
- end
69
-
70
-
71
- # FREE API - Sales tax rates for a specified country and postal code. This API is only available for US postal codes.
72
- #
73
- # # Free-To-Use
74
- #
75
- # This API is only available for a US postal codes.
76
- #
77
- # The TaxRates API is a free-to-use, no cost option for estimating sales tax rates.
78
- # Any customer can request a free AvaTax account and make use of the TaxRates API.
79
- #
80
- # Usage of this API is subject to rate limits. Users who exceed the rate limit will receive HTTP
81
- # response code 429 - `Too Many Requests`.
82
- #
83
- # This API assumes that you are selling general tangible personal property at a retail point-of-sale
84
- # location in the United States only.
85
- #
86
- # For more powerful tax calculation, please consider upgrading to the `CreateTransaction` API,
87
- # which supports features including, but not limited to:
88
- #
89
- # * Nexus declarations
90
- # * Taxability based on product/service type
91
- # * Sourcing rules affecting origin/destination states
92
- # * Customers who are exempt from certain taxes
93
- # * States that have dollar value thresholds for tax amounts
94
- # * Refunds for products purchased on a different date
95
- # * Detailed jurisdiction names and state assigned codes
96
- # * And more!
97
- #
98
- # Please see [Estimating Tax with REST v2](http://developer.avalara.com/blog/2016/11/04/estimating-tax-with-rest-v2/)
99
- # for information on how to upgrade to the full AvaTax CreateTransaction API.
100
- # @param country [String] Name or ISO 3166 code identifying the country. This field supports many different country identifiers: * Two character ISO 3166 codes * Three character ISO 3166 codes * Fully spelled out names of the country in ISO supported languages * Common alternative spellings for many countries For a full list of all supported codes and names, please see the Definitions API `ListCountries`.
101
- # @param postalCode [String] The postal code of the location.
102
- # @return [Object]
103
- def tax_rates_by_postal_code(options={})
104
- path = "/api/v2/taxrates/bypostalcode"
105
- get(path, options)
106
- end
107
-
24
+ def request_free_trial(model) path = "/api/v2/accounts/freetrials/request"
25
+ post(path, model) end
108
26
  end
109
27
  end
110
28
  end
@@ -21,14 +21,11 @@ module AvaTax
21
21
  # ### Security Policies
22
22
  #
23
23
  # * 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.
24
- # * This API depends on the following active services<br />*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.<br />*Firm Managed* (for accounts managed by a firm): ARA, ARAManaged.
24
+ # * 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.
25
25
  # @param id [Integer] The unique ID number of this funding request
26
26
  # @return [Object]
27
- def activate_funding_request(id)
28
- path = "/api/v2/fundingrequests/#{id}/widget"
29
- get(path)
30
- end
31
-
27
+ def activate_funding_request(id) path = "/api/v2/fundingrequests/#{id}/widget"
28
+ get(path) end
32
29
 
33
30
  # Retrieve status about a funding setup request
34
31
  #
@@ -46,14 +43,11 @@ module AvaTax
46
43
  # ### Security Policies
47
44
  #
48
45
  # * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
49
- # * This API depends on the following active services<br />*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.<br />*Firm Managed* (for accounts managed by a firm): ARA, ARAManaged.
46
+ # * 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.
50
47
  # @param id [Integer] The unique ID number of this funding request
51
48
  # @return [Object]
52
- def funding_request_status(id)
53
- path = "/api/v2/fundingrequests/#{id}"
54
- get(path)
55
- end
56
-
49
+ def funding_request_status(id) path = "/api/v2/fundingrequests/#{id}"
50
+ get(path) end
57
51
  end
58
52
  end
59
53
  end
@@ -17,11 +17,8 @@ module AvaTax
17
17
  # @param companyId [Integer] The ID of the company that owns this item.
18
18
  # @param itemId [Integer] The ID of the item you wish to delete the classifications.
19
19
  # @return [ErrorDetail[]]
20
- def batch_delete_item_classifications(companyId, itemId)
21
- path = "/api/v2/companies/#{companyId}/items/#{itemId}/classifications"
22
- delete(path)
23
- end
24
-
20
+ def batch_delete_item_classifications(companyId, itemId) path = "/api/v2/companies/#{companyId}/items/#{itemId}/classifications"
21
+ delete(path) end
25
22
 
26
23
  # Delete all parameters for an item
27
24
  #
@@ -39,11 +36,8 @@ module AvaTax
39
36
  # @param companyId [Integer] The ID of the company that owns this item.
40
37
  # @param itemId [Integer] The ID of the item you wish to delete the parameters.
41
38
  # @return [ErrorDetail[]]
42
- def batch_delete_item_parameters(companyId, itemId)
43
- path = "/api/v2/companies/#{companyId}/items/#{itemId}/parameters"
44
- delete(path)
45
- end
46
-
39
+ def batch_delete_item_parameters(companyId, itemId) path = "/api/v2/companies/#{companyId}/items/#{itemId}/parameters"
40
+ delete(path) end
47
41
 
48
42
  # Add classifications to an item.
49
43
  #
@@ -62,11 +56,8 @@ module AvaTax
62
56
  # @param itemId [Integer] The item id.
63
57
  # @param model [ItemClassificationInputModel[]] The item classifications you wish to create.
64
58
  # @return [ItemClassificationOutputModel[]]
65
- def create_item_classifications(companyId, itemId, model)
66
- path = "/api/v2/companies/#{companyId}/items/#{itemId}/classifications"
67
- post(path, model)
68
- end
69
-
59
+ def create_item_classifications(companyId, itemId, model) path = "/api/v2/companies/#{companyId}/items/#{itemId}/classifications"
60
+ post(path, model) end
70
61
 
71
62
  # Add parameters to an item.
72
63
  #
@@ -89,11 +80,8 @@ module AvaTax
89
80
  # @param itemId [Integer] The item id.
90
81
  # @param model [ItemParameterModel[]] The item parameters you wish to create.
91
82
  # @return [ItemParameterModel[]]
92
- def create_item_parameters(companyId, itemId, model)
93
- path = "/api/v2/companies/#{companyId}/items/#{itemId}/parameters"
94
- post(path, model)
95
- end
96
-
83
+ def create_item_parameters(companyId, itemId, model) path = "/api/v2/companies/#{companyId}/items/#{itemId}/parameters"
84
+ post(path, model) end
97
85
 
98
86
  # Create a new item
99
87
  #
@@ -113,11 +101,8 @@ module AvaTax
113
101
  # @param companyId [Integer] The ID of the company that owns this item.
114
102
  # @param model [ItemModel[]] The item you wish to create.
115
103
  # @return [ItemModel[]]
116
- def create_items(companyId, model)
117
- path = "/api/v2/companies/#{companyId}/items"
118
- post(path, model)
119
- end
120
-
104
+ def create_items(companyId, model) path = "/api/v2/companies/#{companyId}/items"
105
+ post(path, model) end
121
106
 
122
107
  # Delete a single item
123
108
  #
@@ -137,11 +122,8 @@ module AvaTax
137
122
  # @param companyId [Integer] The ID of the company that owns this item.
138
123
  # @param id [Integer] The ID of the item you wish to delete.
139
124
  # @return [ErrorDetail[]]
140
- def delete_item(companyId, id)
141
- path = "/api/v2/companies/#{companyId}/items/#{id}"
142
- delete(path)
143
- end
144
-
125
+ def delete_item(companyId, id) path = "/api/v2/companies/#{companyId}/items/#{id}"
126
+ delete(path) end
145
127
 
146
128
  # Delete a single item classification.
147
129
  #
@@ -158,11 +140,8 @@ module AvaTax
158
140
  # @param itemId [Integer] The item id.
159
141
  # @param id [Integer] The item classification id.
160
142
  # @return [ErrorDetail[]]
161
- def delete_item_classification(companyId, itemId, id)
162
- path = "/api/v2/companies/#{companyId}/items/#{itemId}/classifications/#{id}"
163
- delete(path)
164
- end
165
-
143
+ def delete_item_classification(companyId, itemId, id) path = "/api/v2/companies/#{companyId}/items/#{itemId}/classifications/#{id}"
144
+ delete(path) end
166
145
 
167
146
  # Delete a single item parameter
168
147
  #
@@ -181,11 +160,8 @@ module AvaTax
181
160
  # @param itemId [Integer] The item id
182
161
  # @param id [Integer] The parameter id
183
162
  # @return [ErrorDetail[]]
184
- def delete_item_parameter(companyId, itemId, id)
185
- path = "/api/v2/companies/#{companyId}/items/#{itemId}/parameters/#{id}"
186
- delete(path)
187
- end
188
-
163
+ def delete_item_parameter(companyId, itemId, id) path = "/api/v2/companies/#{companyId}/items/#{itemId}/parameters/#{id}"
164
+ delete(path) end
189
165
 
190
166
  # Retrieve a single item
191
167
  #
@@ -204,11 +180,8 @@ module AvaTax
204
180
  # @param id [Integer] The primary key of this item
205
181
  # @param include [String] A comma separated list of additional data to retrieve.
206
182
  # @return [Object]
207
- def get_item(companyId, id, options={})
208
- path = "/api/v2/companies/#{companyId}/items/#{id}"
209
- get(path, options)
210
- end
211
-
183
+ def get_item(companyId, id, options={}) path = "/api/v2/companies/#{companyId}/items/#{id}"
184
+ get(path, options) end
212
185
 
213
186
  # Retrieve a single item classification.
214
187
  #
@@ -225,11 +198,8 @@ module AvaTax
225
198
  # @param itemId [Integer] The item id.
226
199
  # @param id [Integer] The item classification id.
227
200
  # @return [Object]
228
- def get_item_classification(companyId, itemId, id)
229
- path = "/api/v2/companies/#{companyId}/items/#{itemId}/classifications/#{id}"
230
- get(path)
231
- end
232
-
201
+ def get_item_classification(companyId, itemId, id) path = "/api/v2/companies/#{companyId}/items/#{itemId}/classifications/#{id}"
202
+ get(path) end
233
203
 
234
204
  # Retrieve a single item parameter
235
205
  #
@@ -248,11 +218,8 @@ module AvaTax
248
218
  # @param itemId [Integer] The item id
249
219
  # @param id [Integer] The parameter id
250
220
  # @return [Object]
251
- def get_item_parameter(companyId, itemId, id)
252
- path = "/api/v2/companies/#{companyId}/items/#{itemId}/parameters/#{id}"
253
- get(path)
254
- end
255
-
221
+ def get_item_parameter(companyId, itemId, id) path = "/api/v2/companies/#{companyId}/items/#{itemId}/parameters/#{id}"
222
+ get(path) end
256
223
 
257
224
  # Retrieve classifications for an item.
258
225
  #
@@ -275,11 +242,8 @@ module AvaTax
275
242
  # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
276
243
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
277
244
  # @return [FetchResult]
278
- def list_item_classifications(companyId, itemId, options={})
279
- path = "/api/v2/companies/#{companyId}/items/#{itemId}/classifications"
280
- get(path, options)
281
- end
282
-
245
+ def list_item_classifications(companyId, itemId, options={}) path = "/api/v2/companies/#{companyId}/items/#{itemId}/classifications"
246
+ get(path, options) end
283
247
 
284
248
  # Retrieve parameters for an item
285
249
  #
@@ -304,11 +268,8 @@ module AvaTax
304
268
  # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
305
269
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
306
270
  # @return [FetchResult]
307
- def list_item_parameters(companyId, itemId, options={})
308
- path = "/api/v2/companies/#{companyId}/items/#{itemId}/parameters"
309
- get(path, options)
310
- end
311
-
271
+ def list_item_parameters(companyId, itemId, options={}) path = "/api/v2/companies/#{companyId}/items/#{itemId}/parameters"
272
+ get(path, options) end
312
273
 
313
274
  # Retrieve items for this company
314
275
  #
@@ -339,11 +300,8 @@ module AvaTax
339
300
  # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
340
301
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
341
302
  # @return [FetchResult]
342
- def list_items_by_company(companyId, options={})
343
- path = "/api/v2/companies/#{companyId}/items"
344
- get(path, options)
345
- end
346
-
303
+ def list_items_by_company(companyId, options={}) path = "/api/v2/companies/#{companyId}/items"
304
+ get(path, options) end
347
305
 
348
306
  # Retrieve all items
349
307
  #
@@ -368,11 +326,8 @@ module AvaTax
368
326
  # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
369
327
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
370
328
  # @return [FetchResult]
371
- def query_items(options={})
372
- path = "/api/v2/items"
373
- get(path, options)
374
- end
375
-
329
+ def query_items(options={}) path = "/api/v2/items"
330
+ get(path, options) end
376
331
 
377
332
  # Sync items from a product catalog
378
333
  #
@@ -395,11 +350,8 @@ module AvaTax
395
350
  # @param companyId [Integer] The ID of the company that owns this item.
396
351
  # @param model [Object] The request object.
397
352
  # @return [Object]
398
- def sync_items(companyId, model)
399
- path = "/api/v2/companies/#{companyId}/items/sync"
400
- post(path, model)
401
- end
402
-
353
+ def sync_items(companyId, model) path = "/api/v2/companies/#{companyId}/items/sync"
354
+ post(path, model) end
403
355
 
404
356
  # Update a single item
405
357
  #
@@ -423,11 +375,8 @@ module AvaTax
423
375
  # @param id [Integer] The ID of the item you wish to update
424
376
  # @param model [Object] The item object you wish to update.
425
377
  # @return [Object]
426
- def update_item(companyId, id, model)
427
- path = "/api/v2/companies/#{companyId}/items/#{id}"
428
- put(path, model)
429
- end
430
-
378
+ def update_item(companyId, id, model) path = "/api/v2/companies/#{companyId}/items/#{id}"
379
+ put(path, model) end
431
380
 
432
381
  # Update an item classification.
433
382
  #
@@ -447,11 +396,8 @@ module AvaTax
447
396
  # @param id [Integer] The item classification id.
448
397
  # @param model [Object] The item object you wish to update.
449
398
  # @return [Object]
450
- def update_item_classification(companyId, itemId, id, model)
451
- path = "/api/v2/companies/#{companyId}/items/#{itemId}/classifications/#{id}"
452
- put(path, model)
453
- end
454
-
399
+ def update_item_classification(companyId, itemId, id, model) path = "/api/v2/companies/#{companyId}/items/#{itemId}/classifications/#{id}"
400
+ put(path, model) end
455
401
 
456
402
  # Update an item parameter
457
403
  #
@@ -471,11 +417,8 @@ module AvaTax
471
417
  # @param id [Integer] The item parameter id
472
418
  # @param model [Object] The item object you wish to update.
473
419
  # @return [Object]
474
- def update_item_parameter(companyId, itemId, id, model)
475
- path = "/api/v2/companies/#{companyId}/items/#{itemId}/parameters/#{id}"
476
- put(path, model)
477
- end
478
-
420
+ def update_item_parameter(companyId, itemId, id, model) path = "/api/v2/companies/#{companyId}/items/#{itemId}/parameters/#{id}"
421
+ put(path, model) end
479
422
  end
480
423
  end
481
424
  end
@@ -18,11 +18,8 @@ module AvaTax
18
18
  # @param accountId [Integer] The ID of the account that owns this override
19
19
  # @param model [JurisdictionOverrideModel[]] The jurisdiction override objects to create
20
20
  # @return [JurisdictionOverrideModel[]]
21
- def create_jurisdiction_overrides(accountId, model)
22
- path = "/api/v2/accounts/#{accountId}/jurisdictionoverrides"
23
- post(path, model)
24
- end
25
-
21
+ def create_jurisdiction_overrides(accountId, model) path = "/api/v2/accounts/#{accountId}/jurisdictionoverrides"
22
+ post(path, model) end
26
23
 
27
24
  # Delete a single override
28
25
  #
@@ -34,11 +31,8 @@ module AvaTax
34
31
  # @param accountId [Integer] The ID of the account that owns this override
35
32
  # @param id [Integer] The ID of the override you wish to delete
36
33
  # @return [ErrorDetail[]]
37
- def delete_jurisdiction_override(accountId, id)
38
- path = "/api/v2/accounts/#{accountId}/jurisdictionoverrides/#{id}"
39
- delete(path)
40
- end
41
-
34
+ def delete_jurisdiction_override(accountId, id) path = "/api/v2/accounts/#{accountId}/jurisdictionoverrides/#{id}"
35
+ delete(path) end
42
36
 
43
37
  # Retrieve a single override
44
38
  #
@@ -55,11 +49,8 @@ module AvaTax
55
49
  # @param accountId [Integer] The ID of the account that owns this override
56
50
  # @param id [Integer] The primary key of this override
57
51
  # @return [Object]
58
- def get_jurisdiction_override(accountId, id)
59
- path = "/api/v2/accounts/#{accountId}/jurisdictionoverrides/#{id}"
60
- get(path)
61
- end
62
-
52
+ def get_jurisdiction_override(accountId, id) path = "/api/v2/accounts/#{accountId}/jurisdictionoverrides/#{id}"
53
+ get(path) end
63
54
 
64
55
  # Retrieve overrides for this account
65
56
  #
@@ -83,11 +74,8 @@ module AvaTax
83
74
  # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
84
75
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
85
76
  # @return [FetchResult]
86
- def list_jurisdiction_overrides_by_account(accountId, options={})
87
- path = "/api/v2/accounts/#{accountId}/jurisdictionoverrides"
88
- get(path, options)
89
- end
90
-
77
+ def list_jurisdiction_overrides_by_account(accountId, options={}) path = "/api/v2/accounts/#{accountId}/jurisdictionoverrides"
78
+ get(path, options) end
91
79
 
92
80
  # Retrieve all overrides
93
81
  #
@@ -110,11 +98,8 @@ module AvaTax
110
98
  # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
111
99
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
112
100
  # @return [FetchResult]
113
- def query_jurisdiction_overrides(options={})
114
- path = "/api/v2/jurisdictionoverrides"
115
- get(path, options)
116
- end
117
-
101
+ def query_jurisdiction_overrides(options={}) path = "/api/v2/jurisdictionoverrides"
102
+ get(path, options) end
118
103
 
119
104
  # Update a single jurisdictionoverride
120
105
  #
@@ -127,11 +112,8 @@ module AvaTax
127
112
  # @param id [Integer] The ID of the jurisdictionoverride you wish to update
128
113
  # @param model [Object] The jurisdictionoverride object you wish to update.
129
114
  # @return [Object]
130
- def update_jurisdiction_override(accountId, id, model)
131
- path = "/api/v2/accounts/#{accountId}/jurisdictionoverrides/#{id}"
132
- put(path, model)
133
- end
134
-
115
+ def update_jurisdiction_override(accountId, id, model) path = "/api/v2/accounts/#{accountId}/jurisdictionoverrides/#{id}"
116
+ put(path, model) end
135
117
  end
136
118
  end
137
119
  end