avatax 20.5.0 → 20.12.1

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 (48) hide show
  1. checksums.yaml +4 -4
  2. data/.vs/slnx.sqlite +0 -0
  3. data/avatax.gemspec +0 -1
  4. data/lib/avatax/client/accounts.rb +83 -83
  5. data/lib/avatax/client/addresses.rb +21 -21
  6. data/lib/avatax/client/advancedrules.rb +51 -41
  7. data/lib/avatax/client/avafileforms.rb +41 -41
  8. data/lib/avatax/client/batches.rb +101 -48
  9. data/lib/avatax/client/certexpressinvites.rb +39 -39
  10. data/lib/avatax/client/certificates.rb +163 -163
  11. data/lib/avatax/client/companies.rb +226 -121
  12. data/lib/avatax/client/compliance.rb +13 -13
  13. data/lib/avatax/client/contacts.rb +48 -48
  14. data/lib/avatax/client/customers.rb +145 -145
  15. data/lib/avatax/client/datasources.rb +48 -48
  16. data/lib/avatax/client/definitions.rb +422 -420
  17. data/lib/avatax/client/distancethresholds.rb +48 -48
  18. data/lib/avatax/client/ecms.rb +26 -31
  19. data/lib/avatax/client/ecommercetoken.rb +37 -0
  20. data/lib/avatax/client/errortransactions.rb +27 -15
  21. data/lib/avatax/client/filingcalendars.rb +28 -13
  22. data/lib/avatax/client/filings.rb +25 -14
  23. data/lib/avatax/client/firmclientlinkages.rb +69 -69
  24. data/lib/avatax/client/free.rb +27 -27
  25. data/lib/avatax/client/fundingrequests.rb +20 -20
  26. data/lib/avatax/client/items.rb +139 -139
  27. data/lib/avatax/client/jurisdictionoverrides.rb +48 -48
  28. data/lib/avatax/client/locations.rb +168 -57
  29. data/lib/avatax/client/multidocument.rb +98 -78
  30. data/lib/avatax/client/nexus.rb +104 -104
  31. data/lib/avatax/client/notices.rb +47 -139
  32. data/lib/avatax/client/notifications.rb +27 -27
  33. data/lib/avatax/client/provisioning.rb +20 -20
  34. data/lib/avatax/client/registrar.rb +76 -76
  35. data/lib/avatax/client/reports.rb +34 -34
  36. data/lib/avatax/client/settings.rb +48 -48
  37. data/lib/avatax/client/subscriptions.rb +27 -27
  38. data/lib/avatax/client/taxcodes.rb +48 -48
  39. data/lib/avatax/client/taxcontent.rb +27 -27
  40. data/lib/avatax/client/taxprofiles.rb +14 -10
  41. data/lib/avatax/client/taxrules.rb +48 -48
  42. data/lib/avatax/client/transactions.rb +185 -155
  43. data/lib/avatax/client/upcs.rb +48 -48
  44. data/lib/avatax/client/users.rb +62 -62
  45. data/lib/avatax/client/utilities.rb +27 -27
  46. data/lib/avatax/connection.rb +2 -2
  47. data/lib/avatax/version.rb +1 -1
  48. metadata +3 -16
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 919361911b2c607af6a9f0e004c164e68f3a66ae2bcb2617a5dc40b0aa881dc8
4
- data.tar.gz: 971f945593297cd7b5084b231b93e1b2916e21e5584778cd2035bb39eec1f2d6
3
+ metadata.gz: d81263d9280d34bc49e5e2b7a4ef48c3fc2992855e0a3f84fe2a135d8118dff8
4
+ data.tar.gz: 6d504bc98c8e00570133858e195e5e133f3607050e9aefc2deabe725f5a90755
5
5
  SHA512:
6
- metadata.gz: cb706706f40d263e52744854ef1dea8ef62094bfa525b5ba65e4a1b9fae2f9f06f344f80fd723b196a1f3ed6156c6dff1c5018eb5b2f07c400fbebaadbc08f9d
7
- data.tar.gz: 87f68816e16ae20f3079bd9c27a058c484f98c90f976a1a636b67fb294888b9b76802669b62caddc7fa6ff050b3e84a6fd237be0c498715a6e7b39d19feddfff
6
+ metadata.gz: 9876aa4f7baf8b338485a22d00a4d0f44fa4179a3d496a3657925e61decb4e233086dd5e147efdbda1da4e07060a389d9246eb6c5be1c1303442f4c5b5211c82
7
+ data.tar.gz: ddf483cfe935d3ff293b6c30e702a343d127bfe41d98f21af14fa330c950a9d65ed737bcb3363178be213efd6c6c0bcfad74a9cd9afd39442b42654b3440ea18
Binary file
@@ -7,7 +7,6 @@ Gem::Specification.new do |s|
7
7
  s.add_runtime_dependency('faraday', '>= 0.10')
8
8
  s.add_runtime_dependency('faraday_middleware', '>= 0.10')
9
9
  s.add_runtime_dependency('multi_json', '>= 1.0.3')
10
- s.add_runtime_dependency('faraday_middleware-parse_oj', '~> 0.3.2')
11
10
  s.authors = ["Marcus Vorwaller"]
12
11
  s.description = %q{A Ruby wrapper for the AvaTax REST and Search APIs}
13
12
  s.post_install_message =<<eos
@@ -1,10 +1,10 @@
1
- module AvaTax
2
- class Client
3
- module Accounts
4
-
5
-
6
- # Reset this account's license key
7
- #
1
+ module AvaTax
2
+ class Client
3
+ module Accounts
4
+
5
+
6
+ # Reset this account's license key
7
+ #
8
8
  # Resets the existing license key for this account to a new key.
9
9
  #
10
10
  # To reset your account, you must specify the ID of the account you wish to reset and confirm the action.
@@ -22,15 +22,15 @@ module AvaTax
22
22
  #
23
23
  # ### Security Policies
24
24
  #
25
- # * This API requires one of the following user roles: AccountAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
25
+ # * This API requires one of the following user roles: AccountAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
26
26
  # @param id [Integer] The ID of the account you wish to update.
27
27
  # @param model [Object] A request confirming that you wish to reset the license key of this account.
28
- # @return [Object]
29
- def account_reset_license_key(id, model) path = "/api/v2/accounts/#{id}/resetlicensekey"
30
- post(path, model) end
31
-
32
- # Activate an account by accepting terms and conditions
33
- #
28
+ # @return [Object]
29
+ def account_reset_license_key(id, model) path = "/api/v2/accounts/#{id}/resetlicensekey"
30
+ post(path, model) end
31
+
32
+ # Activate an account by accepting terms and conditions
33
+ #
34
34
  # Activate the account specified by the unique accountId number.
35
35
  #
36
36
  # This activation request can only be called by account administrators. You must indicate
@@ -44,15 +44,15 @@ module AvaTax
44
44
  #
45
45
  # ### Security Policies
46
46
  #
47
- # * This API requires one of the following user roles: AccountAdmin, FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
47
+ # * This API requires one of the following user roles: AccountAdmin, FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
48
48
  # @param id [Integer] The ID of the account to activate
49
49
  # @param model [Object] The activation request
50
- # @return [Object]
51
- def activate_account(id, model) path = "/api/v2/accounts/#{id}/activate"
52
- post(path, model) end
53
-
54
- # Retrieve audit history for an account.
55
- #
50
+ # @return [Object]
51
+ def activate_account(id, model) path = "/api/v2/accounts/#{id}/activate"
52
+ post(path, model) end
53
+
54
+ # Retrieve audit history for an account.
55
+ #
56
56
  # Retrieve audit trace history for an account.
57
57
  #
58
58
  # Your audit trace history contains a record of all API calls made against the AvaTax REST API that returned an error. You can use this API to investigate
@@ -70,18 +70,18 @@ module AvaTax
70
70
  #
71
71
  # ### Security Policies
72
72
  #
73
- # * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
73
+ # * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
74
74
  # @param id [Integer] The ID of the account you wish to audit.
75
75
  # @param start [DateTime] The start datetime of audit history you with to retrieve, e.g. "2018-06-08T17:00:00Z". Defaults to the past 15 minutes.
76
76
  # @param end [DateTime] The end datetime of audit history you with to retrieve, e.g. "2018-06-08T17:15:00Z. Defaults to the current time. Maximum of an hour after the start time.
77
77
  # @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.
78
78
  # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
79
- # @return [FetchResult]
80
- def audit_account(id, options={}) path = "/api/v2/accounts/#{id}/audit"
81
- get(path, options) end
82
-
83
- # Create license key for this account
84
- #
79
+ # @return [FetchResult]
80
+ def audit_account(id, options={}) path = "/api/v2/accounts/#{id}/audit"
81
+ get(path, options) end
82
+
83
+ # Create license key for this account
84
+ #
85
85
  # Creates a new license key for this account.
86
86
  #
87
87
  # To create a license key for your account, you must specify the ID of the account and license key name.
@@ -95,15 +95,15 @@ module AvaTax
95
95
  #
96
96
  # ### Security Policies
97
97
  #
98
- # * This API requires one of the following user roles: AccountAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
98
+ # * This API requires one of the following user roles: AccountAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
99
99
  # @param id [Integer] The ID of the account you wish to update.
100
100
  # @param model [Object]
101
- # @return [Object]
102
- def create_license_key(id, model) path = "/api/v2/accounts/#{id}/licensekey"
103
- post(path, model) end
104
-
105
- # Delete license key for this account by license key name
106
- #
101
+ # @return [Object]
102
+ def create_license_key(id, model) path = "/api/v2/accounts/#{id}/licensekey"
103
+ post(path, model) end
104
+
105
+ # Delete license key for this account by license key name
106
+ #
107
107
  # Deletes the license key for this account using license key name.
108
108
  #
109
109
  # To delete a license key for your account, you must specify the accountID of the account and license key name.
@@ -112,15 +112,15 @@ module AvaTax
112
112
  #
113
113
  # ### Security Policies
114
114
  #
115
- # * This API requires one of the following user roles: AccountAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
115
+ # * This API requires one of the following user roles: AccountAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
116
116
  # @param id [Integer] The ID of the account you wish to update.
117
117
  # @param licensekeyname [String] The license key name you wish to update.
118
- # @return [ErrorDetail[]]
119
- def delete_license_key(id, licensekeyname) path = "/api/v2/accounts/#{id}/licensekey/#{licensekeyname}"
120
- delete(path) end
121
-
122
- # Retrieve a single account
123
- #
118
+ # @return [ErrorDetail[]]
119
+ def delete_license_key(id, licensekeyname) path = "/api/v2/accounts/#{id}/licensekey/#{licensekeyname}"
120
+ delete(path) end
121
+
122
+ # Retrieve a single account
123
+ #
124
124
  # Get the account object identified by this URL.
125
125
  # You may use the '$include' parameter to fetch additional nested data:
126
126
  #
@@ -129,15 +129,15 @@ module AvaTax
129
129
  #
130
130
  # ### Security Policies
131
131
  #
132
- # * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
132
+ # * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
133
133
  # @param id [Integer] The ID of the account to retrieve
134
134
  # @param include [String] A comma separated list of special fetch options
135
- # @return [Object]
136
- def get_account(id, options={}) path = "/api/v2/accounts/#{id}"
137
- get(path, options) end
138
-
139
- # Get configuration settings for this account
140
- #
135
+ # @return [Object]
136
+ def get_account(id, options={}) path = "/api/v2/accounts/#{id}"
137
+ get(path, options) end
138
+
139
+ # Get configuration settings for this account
140
+ #
141
141
  # Retrieve a list of all configuration settings tied to this account.
142
142
  #
143
143
  # Configuration settings provide you with the ability to control features of your account and of your
@@ -153,37 +153,37 @@ module AvaTax
153
153
  #
154
154
  # ### Security Policies
155
155
  #
156
- # * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
156
+ # * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
157
157
  # @param id [Integer]
158
- # @return [AccountConfigurationModel[]]
159
- def get_account_configuration(id) path = "/api/v2/accounts/#{id}/configuration"
160
- get(path) end
161
-
162
- # Retrieve license key by license key name
163
- #
158
+ # @return [AccountConfigurationModel[]]
159
+ def get_account_configuration(id) path = "/api/v2/accounts/#{id}/configuration"
160
+ get(path) end
161
+
162
+ # Retrieve license key by license key name
163
+ #
164
164
  # ### Security Policies
165
165
  #
166
- # * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
166
+ # * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
167
167
  # @param id [Integer] The ID of the account to retrieve
168
168
  # @param licensekeyname [String] The ID of the account to retrieve
169
- # @return [Object]
170
- def get_license_key(id, licensekeyname) path = "/api/v2/accounts/#{id}/licensekey/#{licensekeyname}"
171
- get(path) end
172
-
173
- # Retrieve all license keys for this account
174
- #
169
+ # @return [Object]
170
+ def get_license_key(id, licensekeyname) path = "/api/v2/accounts/#{id}/licensekey/#{licensekeyname}"
171
+ get(path) end
172
+
173
+ # Retrieve all license keys for this account
174
+ #
175
175
  # Gets list of all the license keys used by the account.
176
176
  #
177
177
  # ### Security Policies
178
178
  #
179
- # * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
179
+ # * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
180
180
  # @param id [Integer] The ID of the account to retrieve
181
- # @return [AccountLicenseKeyModel[]]
182
- def get_license_keys(id) path = "/api/v2/accounts/#{id}/licensekeys"
183
- get(path) end
184
-
185
- # Retrieve all accounts
186
- #
181
+ # @return [AccountLicenseKeyModel[]]
182
+ def get_license_keys(id) path = "/api/v2/accounts/#{id}/licensekeys"
183
+ get(path) end
184
+
185
+ # Retrieve all accounts
186
+ #
187
187
  # List all account objects that can be seen by the current user.
188
188
  #
189
189
  # This API lists all accounts you are allowed to see. In general, most users will only be able to see their own account.
@@ -199,18 +199,18 @@ module AvaTax
199
199
  #
200
200
  # ### Security Policies
201
201
  #
202
- # * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
202
+ # * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
203
203
  # @param include [String] A comma separated list of objects to fetch underneath this account. Any object with a URL path underneath this account can be fetched by specifying its name.
204
204
  # @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:* subscriptions, users
205
205
  # @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.
206
206
  # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
207
207
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
208
- # @return [FetchResult]
209
- def query_accounts(options={}) path = "/api/v2/accounts"
210
- get(path, options) end
211
-
212
- # Change configuration settings for this account
213
- #
208
+ # @return [FetchResult]
209
+ def query_accounts(options={}) path = "/api/v2/accounts"
210
+ get(path, options) end
211
+
212
+ # Change configuration settings for this account
213
+ #
214
214
  # Update configuration settings tied to this account.
215
215
  #
216
216
  # Configuration settings provide you with the ability to control features of your account and of your
@@ -226,12 +226,12 @@ module AvaTax
226
226
  #
227
227
  # ### Security Policies
228
228
  #
229
- # * This API requires one of the following user roles: AccountAdmin, CSPTester, SSTAdmin, TechnicalSupportAdmin.
229
+ # * This API requires one of the following user roles: AccountAdmin, CSPTester, SSTAdmin, TechnicalSupportAdmin.
230
230
  # @param id [Integer]
231
231
  # @param model [AccountConfigurationModel[]]
232
- # @return [AccountConfigurationModel[]]
233
- def set_account_configuration(id, model) path = "/api/v2/accounts/#{id}/configuration"
234
- post(path, model) end
235
- end
236
- end
232
+ # @return [AccountConfigurationModel[]]
233
+ def set_account_configuration(id, model) path = "/api/v2/accounts/#{id}/configuration"
234
+ post(path, model) end
235
+ end
236
+ end
237
237
  end
@@ -1,10 +1,10 @@
1
- module AvaTax
2
- class Client
3
- module Addresses
4
-
5
-
6
- # Retrieve geolocation information for a specified address
7
- #
1
+ module AvaTax
2
+ class Client
3
+ module Addresses
4
+
5
+
6
+ # Retrieve geolocation information for a specified address
7
+ #
8
8
  # Resolve an address against Avalara's address-validation system. If the address can be resolved, this API
9
9
  # provides the latitude and longitude of the resolved location. The value 'resolutionQuality' can be used
10
10
  # to identify how closely this address can be located. If the address cannot be clearly located, use the
@@ -12,7 +12,7 @@ module AvaTax
12
12
  # This is the same API as the POST /api/v2/addresses/resolve endpoint.
13
13
  # Both verbs are supported to provide for flexible implementation.
14
14
  #
15
- # Inorder to get any evaluation for an address please provide atleast one of the following fields/pairs:
15
+ # In order to get any evaluation for an address, please provide at least one of the following fields/pairs:
16
16
  # 1. postal code
17
17
  # 2. line1 + city + region
18
18
  # 3. line1 + postal code
@@ -20,7 +20,7 @@ module AvaTax
20
20
  # ### Security Policies
21
21
  #
22
22
  # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
23
- # * This API depends on the following active services<br />*Required* (all): AutoAddress.
23
+ # * This API depends on the following active services:*Required* (all): AutoAddress.
24
24
  # @param line1 [String] Line 1
25
25
  # @param line2 [String] Line 2
26
26
  # @param line3 [String] Line 3
@@ -29,12 +29,12 @@ module AvaTax
29
29
  # @param postalCode [String] Postal Code / Zip Code
30
30
  # @param country [String] Two character ISO 3166 Country Code (see /api/v2/definitions/countries for a full list)
31
31
  # @param textCase [String] selectable text case for address validation (See TextCase::* for a list of allowable values)
32
- # @return [Object]
33
- def resolve_address(options={}) path = "/api/v2/addresses/resolve"
34
- get(path, options) end
35
-
36
- # Retrieve geolocation information for a specified address
37
- #
32
+ # @return [Object]
33
+ def resolve_address(options={}) path = "/api/v2/addresses/resolve"
34
+ get(path, options) end
35
+
36
+ # Retrieve geolocation information for a specified address
37
+ #
38
38
  # Resolve an address against Avalara's address-validation system. If the address can be resolved, this API
39
39
  # provides the latitude and longitude of the resolved location. The value 'resolutionQuality' can be used
40
40
  # to identify how closely this address can be located. If the address cannot be clearly located, use the
@@ -45,11 +45,11 @@ module AvaTax
45
45
  # ### Security Policies
46
46
  #
47
47
  # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
48
- # * This API depends on the following active services<br />*Required* (all): AutoAddress.
48
+ # * This API depends on the following active services:*Required* (all): AutoAddress.
49
49
  # @param model [Object] The address to resolve
50
- # @return [Object]
51
- def resolve_address_post(model) path = "/api/v2/addresses/resolve"
52
- post(path, model) end
53
- end
54
- end
50
+ # @return [Object]
51
+ def resolve_address_post(model) path = "/api/v2/addresses/resolve"
52
+ post(path, model) end
53
+ end
54
+ end
55
55
  end
@@ -1,54 +1,64 @@
1
- module AvaTax
2
- class Client
3
- module AdvancedRules
4
-
5
-
6
- # Create a lookup file for a company
7
- #
8
- #
1
+ module AvaTax
2
+ class Client
3
+ module AdvancedRules
4
+
5
+
6
+ # Create a lookup file for a company
7
+ #
8
+ #
9
9
  # @param accountId [Integer] The ID of the account for the company
10
10
  # @param companyId [Integer] The ID of the company for which the lookup file is to be created
11
11
  # @param model [Object] The lookup file you wish to create
12
- # @return [Object]
13
- def create_company_lookup_file(accountId, companyId, model) path = "/api/v2/advancedrules/accounts/#{accountId}/companies/#{companyId}/lookupFiles"
14
- post(path, model) end
15
-
16
- # Delete a lookup file
17
- #
18
- #
12
+ # @return [Object]
13
+ def create_company_lookup_file(accountId, companyId, model) path = "/api/v2/advancedrules/accounts/#{accountId}/companies/#{companyId}/lookupFiles"
14
+ post(path, model) end
15
+
16
+ # Delete a lookup file
17
+ #
18
+ #
19
19
  # @param accountId [Integer] The ID of the account for the company the lookup file is for
20
20
  # @param id [String] The unique ID/GUID for the company lookup file to be deleted
21
- # @return [ErrorDetail[]]
22
- def delete_lookup_file(accountId, id) path = "/api/v2/advancedrules/accounts/#{accountId}/lookupFiles/#{id}"
23
- delete(path) end
24
-
25
- # Get the lookup files for a company
26
- #
27
- #
21
+ # @return [ErrorDetail[]]
22
+ def delete_lookup_file(accountId, id) path = "/api/v2/advancedrules/accounts/#{accountId}/lookupFiles/#{id}"
23
+ delete(path) end
24
+
25
+ # Get audit records by account id and date range.
26
+ #
27
+ #
28
+ # @param accountId [Integer] The ID of the account
29
+ # @param fromDate [String] Date
30
+ # @param toDate [String] Date
31
+ # @return [Object]
32
+ def get_audit_records(accountId, fromDate, toDate) path = "/api/v2/advancedrules/audits/accounts/#{accountId}/from/#{fromDate}/to/#{toDate}"
33
+ get(path) end
34
+
35
+ # Get the lookup files for a company
36
+ #
37
+ #
28
38
  # @param accountId [Integer] The account ID for the company
29
39
  # @param companyId [Integer] The ID of the company for which to retrieve lookup files
30
- # @return [FetchResult]
31
- def get_company_lookup_files(accountId, companyId) path = "/api/v2/advancedrules/accounts/#{accountId}/companies/#{companyId}/lookupFiles"
32
- get(path) end
33
-
34
- # Get a lookup file for an accountId and companyLookupFileId
35
- #
36
- #
40
+ # @return [FetchResult]
41
+ def get_company_lookup_files(accountId, companyId) path = "/api/v2/advancedrules/accounts/#{accountId}/companies/#{companyId}/lookupFiles"
42
+ get(path) end
43
+
44
+ # Get a lookup file for an accountId and companyLookupFileId
45
+ #
46
+ #
37
47
  # @param accountId [Integer] The ID of the account for the lookup file
38
48
  # @param id [String] The unique ID/GUID of the company lookup file to return
39
- # @return [Object]
40
- def get_lookup_file(accountId, id) path = "/api/v2/advancedrules/accounts/#{accountId}/lookupFiles/#{id}"
41
- get(path) end
42
-
43
- # Update a lookup file
44
- #
45
- #
49
+ # @return [Object]
50
+ def get_lookup_file(accountId, id) path = "/api/v2/advancedrules/accounts/#{accountId}/lookupFiles/#{id}"
51
+ get(path) end
52
+
53
+ # Update a lookup file
54
+ #
55
+ #
46
56
  # @param accountId [Integer] The ID of the account for the company the lookup file is for
47
57
  # @param id [String] The unique ID/GUID of the company lookup file to be updated
48
58
  # @param model [Object] The new values to update the lookup file
49
- # @return [Object]
50
- def update_lookup_file(accountId, id, model) path = "/api/v2/advancedrules/accounts/#{accountId}/lookupFiles/#{id}"
51
- put(path, model) end
52
- end
53
- end
59
+ # @return [Object]
60
+ def update_lookup_file(accountId, id, model) path = "/api/v2/advancedrules/accounts/#{accountId}/lookupFiles/#{id}"
61
+ put(path, model) end
62
+ end
63
+ end
54
64
  end