avatax 20.5.0 → 20.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/lib/avatax/client/accounts.rb +116 -83
  3. data/lib/avatax/client/addresses.rb +26 -20
  4. data/lib/avatax/client/advancedrules.rb +56 -41
  5. data/lib/avatax/client/avafileforms.rb +56 -41
  6. data/lib/avatax/client/batches.rb +125 -48
  7. data/lib/avatax/client/certexpressinvites.rb +36 -27
  8. data/lib/avatax/client/certificates.rb +156 -111
  9. data/lib/avatax/client/companies.rb +166 -118
  10. data/lib/avatax/client/compliance.rb +16 -13
  11. data/lib/avatax/client/contacts.rb +66 -48
  12. data/lib/avatax/client/customers.rb +136 -97
  13. data/lib/avatax/client/datasources.rb +66 -48
  14. data/lib/avatax/client/definitions.rb +596 -419
  15. data/lib/avatax/client/distancethresholds.rb +66 -48
  16. data/lib/avatax/client/filingcalendars.rb +16 -13
  17. data/lib/avatax/client/filings.rb +16 -13
  18. data/lib/avatax/client/firmclientlinkages.rb +96 -69
  19. data/lib/avatax/client/free.rb +36 -27
  20. data/lib/avatax/client/fundingrequests.rb +26 -20
  21. data/lib/avatax/client/items.rb +196 -139
  22. data/lib/avatax/client/jurisdictionoverrides.rb +66 -48
  23. data/lib/avatax/client/locations.rb +76 -55
  24. data/lib/avatax/client/multidocument.rb +106 -76
  25. data/lib/avatax/client/nexus.rb +82 -183
  26. data/lib/avatax/client/notifications.rb +36 -27
  27. data/lib/avatax/client/provisioning.rb +26 -20
  28. data/lib/avatax/client/registrar.rb +106 -76
  29. data/lib/avatax/client/reports.rb +46 -34
  30. data/lib/avatax/client/settings.rb +66 -48
  31. data/lib/avatax/client/subscriptions.rb +36 -27
  32. data/lib/avatax/client/taxcodes.rb +66 -48
  33. data/lib/avatax/client/taxcontent.rb +36 -27
  34. data/lib/avatax/client/taxrules.rb +66 -48
  35. data/lib/avatax/client/transactions.rb +216 -153
  36. data/lib/avatax/client/upcs.rb +66 -48
  37. data/lib/avatax/client/users.rb +86 -62
  38. data/lib/avatax/client/utilities.rb +36 -27
  39. data/lib/avatax/version.rb +1 -1
  40. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 919361911b2c607af6a9f0e004c164e68f3a66ae2bcb2617a5dc40b0aa881dc8
4
- data.tar.gz: 971f945593297cd7b5084b231b93e1b2916e21e5584778cd2035bb39eec1f2d6
3
+ metadata.gz: 6ef7307b17dd1599496ed59f0082b8f4a5c550e314d2158859869019114557b7
4
+ data.tar.gz: 61c2b84e2f1a241482786ea18576061517086c124cac6dfa0cf8b03bb889fe3a
5
5
  SHA512:
6
- metadata.gz: cb706706f40d263e52744854ef1dea8ef62094bfa525b5ba65e4a1b9fae2f9f06f344f80fd723b196a1f3ed6156c6dff1c5018eb5b2f07c400fbebaadbc08f9d
7
- data.tar.gz: 87f68816e16ae20f3079bd9c27a058c484f98c90f976a1a636b67fb294888b9b76802669b62caddc7fa6ff050b3e84a6fd237be0c498715a6e7b39d19feddfff
6
+ metadata.gz: d40eca5e62391fb14ececa093915fbac5554dab803c2c1516fa310ad8063060b07bc448377fa4e8bc6e3bcd0f4fa2f003e8cc8a90b67a54eca0d3d8bdbbcdd9c
7
+ data.tar.gz: b02b8f1e8fa85437980bf7cf508085a8155565c822e19e48d9c91069d72e5d90f1752db962be1441896ec5cf362f3dc58bb3449b78844a5eb2fd48ebd21a5e96
@@ -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,18 @@ 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)
30
+ path = "/api/v2/accounts/#{id}/resetlicensekey"
31
+ post(path, model)
32
+ end
33
+
34
+
35
+ # Activate an account by accepting terms and conditions
36
+ #
34
37
  # Activate the account specified by the unique accountId number.
35
38
  #
36
39
  # This activation request can only be called by account administrators. You must indicate
@@ -44,15 +47,18 @@ module AvaTax
44
47
  #
45
48
  # ### Security Policies
46
49
  #
47
- # * This API requires one of the following user roles: AccountAdmin, FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
50
+ # * This API requires one of the following user roles: AccountAdmin, FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
48
51
  # @param id [Integer] The ID of the account to activate
49
52
  # @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
- #
53
+ # @return [Object]
54
+ def activate_account(id, model)
55
+ path = "/api/v2/accounts/#{id}/activate"
56
+ post(path, model)
57
+ end
58
+
59
+
60
+ # Retrieve audit history for an account.
61
+ #
56
62
  # Retrieve audit trace history for an account.
57
63
  #
58
64
  # 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 +76,21 @@ module AvaTax
70
76
  #
71
77
  # ### Security Policies
72
78
  #
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.
79
+ # * 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
80
  # @param id [Integer] The ID of the account you wish to audit.
75
81
  # @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
82
  # @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
83
  # @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
84
  # @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
- #
85
+ # @return [FetchResult]
86
+ def audit_account(id, options={})
87
+ path = "/api/v2/accounts/#{id}/audit"
88
+ get(path, options)
89
+ end
90
+
91
+
92
+ # Create license key for this account
93
+ #
85
94
  # Creates a new license key for this account.
86
95
  #
87
96
  # To create a license key for your account, you must specify the ID of the account and license key name.
@@ -95,15 +104,18 @@ module AvaTax
95
104
  #
96
105
  # ### Security Policies
97
106
  #
98
- # * This API requires one of the following user roles: AccountAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
107
+ # * This API requires one of the following user roles: AccountAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
99
108
  # @param id [Integer] The ID of the account you wish to update.
100
109
  # @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
- #
110
+ # @return [Object]
111
+ def create_license_key(id, model)
112
+ path = "/api/v2/accounts/#{id}/licensekey"
113
+ post(path, model)
114
+ end
115
+
116
+
117
+ # Delete license key for this account by license key name
118
+ #
107
119
  # Deletes the license key for this account using license key name.
108
120
  #
109
121
  # To delete a license key for your account, you must specify the accountID of the account and license key name.
@@ -112,15 +124,18 @@ module AvaTax
112
124
  #
113
125
  # ### Security Policies
114
126
  #
115
- # * This API requires one of the following user roles: AccountAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
127
+ # * This API requires one of the following user roles: AccountAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
116
128
  # @param id [Integer] The ID of the account you wish to update.
117
129
  # @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
- #
130
+ # @return [ErrorDetail[]]
131
+ def delete_license_key(id, licensekeyname)
132
+ path = "/api/v2/accounts/#{id}/licensekey/#{licensekeyname}"
133
+ delete(path)
134
+ end
135
+
136
+
137
+ # Retrieve a single account
138
+ #
124
139
  # Get the account object identified by this URL.
125
140
  # You may use the '$include' parameter to fetch additional nested data:
126
141
  #
@@ -129,15 +144,18 @@ module AvaTax
129
144
  #
130
145
  # ### Security Policies
131
146
  #
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.
147
+ # * 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
148
  # @param id [Integer] The ID of the account to retrieve
134
149
  # @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
- #
150
+ # @return [Object]
151
+ def get_account(id, options={})
152
+ path = "/api/v2/accounts/#{id}"
153
+ get(path, options)
154
+ end
155
+
156
+
157
+ # Get configuration settings for this account
158
+ #
141
159
  # Retrieve a list of all configuration settings tied to this account.
142
160
  #
143
161
  # Configuration settings provide you with the ability to control features of your account and of your
@@ -153,37 +171,46 @@ module AvaTax
153
171
  #
154
172
  # ### Security Policies
155
173
  #
156
- # * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
174
+ # * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
157
175
  # @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
- #
176
+ # @return [AccountConfigurationModel[]]
177
+ def get_account_configuration(id)
178
+ path = "/api/v2/accounts/#{id}/configuration"
179
+ get(path)
180
+ end
181
+
182
+
183
+ # Retrieve license key by license key name
184
+ #
164
185
  # ### Security Policies
165
186
  #
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.
187
+ # * 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
188
  # @param id [Integer] The ID of the account to retrieve
168
189
  # @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
- #
190
+ # @return [Object]
191
+ def get_license_key(id, licensekeyname)
192
+ path = "/api/v2/accounts/#{id}/licensekey/#{licensekeyname}"
193
+ get(path)
194
+ end
195
+
196
+
197
+ # Retrieve all license keys for this account
198
+ #
175
199
  # Gets list of all the license keys used by the account.
176
200
  #
177
201
  # ### Security Policies
178
202
  #
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.
203
+ # * 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
204
  # @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
- #
205
+ # @return [AccountLicenseKeyModel[]]
206
+ def get_license_keys(id)
207
+ path = "/api/v2/accounts/#{id}/licensekeys"
208
+ get(path)
209
+ end
210
+
211
+
212
+ # Retrieve all accounts
213
+ #
187
214
  # List all account objects that can be seen by the current user.
188
215
  #
189
216
  # 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 +226,21 @@ module AvaTax
199
226
  #
200
227
  # ### Security Policies
201
228
  #
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.
229
+ # * 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
230
  # @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
231
  # @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
232
  # @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
233
  # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
207
234
  # @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
- #
235
+ # @return [FetchResult]
236
+ def query_accounts(options={})
237
+ path = "/api/v2/accounts"
238
+ get(path, options)
239
+ end
240
+
241
+
242
+ # Change configuration settings for this account
243
+ #
214
244
  # Update configuration settings tied to this account.
215
245
  #
216
246
  # Configuration settings provide you with the ability to control features of your account and of your
@@ -226,12 +256,15 @@ module AvaTax
226
256
  #
227
257
  # ### Security Policies
228
258
  #
229
- # * This API requires one of the following user roles: AccountAdmin, CSPTester, SSTAdmin, TechnicalSupportAdmin.
259
+ # * This API requires one of the following user roles: AccountAdmin, CSPTester, SSTAdmin, TechnicalSupportAdmin.
230
260
  # @param id [Integer]
231
261
  # @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
262
+ # @return [AccountConfigurationModel[]]
263
+ def set_account_configuration(id, model)
264
+ path = "/api/v2/accounts/#{id}/configuration"
265
+ post(path, model)
266
+ end
267
+
268
+ end
269
+ end
237
270
  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
@@ -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<br />*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,15 @@ 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={})
34
+ path = "/api/v2/addresses/resolve"
35
+ get(path, options)
36
+ end
37
+
38
+
39
+ # Retrieve geolocation information for a specified address
40
+ #
38
41
  # Resolve an address against Avalara's address-validation system. If the address can be resolved, this API
39
42
  # provides the latitude and longitude of the resolved location. The value 'resolutionQuality' can be used
40
43
  # to identify how closely this address can be located. If the address cannot be clearly located, use the
@@ -45,11 +48,14 @@ module AvaTax
45
48
  # ### Security Policies
46
49
  #
47
50
  # * 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.
51
+ # * This API depends on the following active services<br />*Required* (all): AutoAddress.
49
52
  # @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
53
+ # @return [Object]
54
+ def resolve_address_post(model)
55
+ path = "/api/v2/addresses/resolve"
56
+ post(path, model)
57
+ end
58
+
59
+ end
60
+ end
55
61
  end
@@ -1,54 +1,69 @@
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)
14
+ path = "/api/v2/advancedrules/accounts/#{accountId}/companies/#{companyId}/lookupFiles"
15
+ post(path, model)
16
+ end
17
+
18
+
19
+ # Delete a lookup file
20
+ #
21
+ #
19
22
  # @param accountId [Integer] The ID of the account for the company the lookup file is for
20
23
  # @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
- #
24
+ # @return [ErrorDetail[]]
25
+ def delete_lookup_file(accountId, id)
26
+ path = "/api/v2/advancedrules/accounts/#{accountId}/lookupFiles/#{id}"
27
+ delete(path)
28
+ end
29
+
30
+
31
+ # Get the lookup files for a company
32
+ #
33
+ #
28
34
  # @param accountId [Integer] The account ID for the company
29
35
  # @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
- #
36
+ # @return [FetchResult]
37
+ def get_company_lookup_files(accountId, companyId)
38
+ path = "/api/v2/advancedrules/accounts/#{accountId}/companies/#{companyId}/lookupFiles"
39
+ get(path)
40
+ end
41
+
42
+
43
+ # Get a lookup file for an accountId and companyLookupFileId
44
+ #
45
+ #
37
46
  # @param accountId [Integer] The ID of the account for the lookup file
38
47
  # @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
- #
48
+ # @return [Object]
49
+ def get_lookup_file(accountId, id)
50
+ path = "/api/v2/advancedrules/accounts/#{accountId}/lookupFiles/#{id}"
51
+ get(path)
52
+ end
53
+
54
+
55
+ # Update a lookup file
56
+ #
57
+ #
46
58
  # @param accountId [Integer] The ID of the account for the company the lookup file is for
47
59
  # @param id [String] The unique ID/GUID of the company lookup file to be updated
48
60
  # @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
61
+ # @return [Object]
62
+ def update_lookup_file(accountId, id, model)
63
+ path = "/api/v2/advancedrules/accounts/#{accountId}/lookupFiles/#{id}"
64
+ put(path, model)
65
+ end
66
+
67
+ end
68
+ end
54
69
  end