avatax 19.12.1 → 20.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/lib/avatax/client/accounts.rb +14 -35
  3. data/lib/avatax/client/addresses.rb +4 -10
  4. data/lib/avatax/client/avafileforms.rb +10 -25
  5. data/lib/avatax/client/batches.rb +12 -30
  6. data/lib/avatax/client/certexpressinvites.rb +6 -15
  7. data/lib/avatax/client/certificates.rb +31 -76
  8. data/lib/avatax/client/companies.rb +32 -80
  9. data/lib/avatax/client/compliance.rb +2 -5
  10. data/lib/avatax/client/contacts.rb +12 -30
  11. data/lib/avatax/client/customers.rb +26 -65
  12. data/lib/avatax/client/datasources.rb +12 -30
  13. data/lib/avatax/client/definitions.rb +124 -284
  14. data/lib/avatax/client/distancethresholds.rb +12 -30
  15. data/lib/avatax/client/filings.rb +2 -5
  16. data/lib/avatax/client/firmclientlinkages.rb +18 -45
  17. data/lib/avatax/client/free.rb +6 -15
  18. data/lib/avatax/client/fundingrequests.rb +4 -10
  19. data/lib/avatax/client/items.rb +38 -95
  20. data/lib/avatax/client/jurisdictionoverrides.rb +12 -30
  21. data/lib/avatax/client/locations.rb +14 -35
  22. data/lib/avatax/client/multidocument.rb +20 -50
  23. data/lib/avatax/client/nexus.rb +16 -40
  24. data/lib/avatax/client/notifications.rb +6 -15
  25. data/lib/avatax/client/provisioning.rb +4 -10
  26. data/lib/avatax/client/registrar.rb +20 -50
  27. data/lib/avatax/client/reports.rb +8 -20
  28. data/lib/avatax/client/settings.rb +12 -30
  29. data/lib/avatax/client/subscriptions.rb +6 -15
  30. data/lib/avatax/client/taxcodes.rb +12 -30
  31. data/lib/avatax/client/taxcontent.rb +6 -15
  32. data/lib/avatax/client/taxrules.rb +12 -30
  33. data/lib/avatax/client/transactions.rb +49 -112
  34. data/lib/avatax/client/upcs.rb +12 -30
  35. data/lib/avatax/client/users.rb +16 -40
  36. data/lib/avatax/client/utilities.rb +6 -15
  37. data/lib/avatax/version.rb +1 -1
  38. metadata +2 -2
@@ -34,11 +34,8 @@ module AvaTax
34
34
  # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, ProStoresOperator, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
35
35
  # @param id [Integer] The ID of the company to check if its integration is certified.
36
36
  # @return [String]
37
- def certify_integration(id)
38
- path = "/api/v2/companies/#{id}/certify"
39
- get(path)
40
- end
41
-
37
+ def certify_integration(id) path = "/api/v2/companies/#{id}/certify"
38
+ get(path) end
42
39
 
43
40
  # Change the filing status of this company
44
41
  #
@@ -62,11 +59,8 @@ module AvaTax
62
59
  # @param id [Integer]
63
60
  # @param model [Object]
64
61
  # @return [String]
65
- def change_filing_status(id, model)
66
- path = "/api/v2/companies/#{id}/filingstatus"
67
- post(path, model)
68
- end
69
-
62
+ def change_filing_status(id, model) path = "/api/v2/companies/#{id}/filingstatus"
63
+ post(path, model) end
70
64
 
71
65
  # Quick setup for a company with a single physical address
72
66
  #
@@ -88,11 +82,8 @@ module AvaTax
88
82
  # * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
89
83
  # @param model [Object] Information about the company you wish to create.
90
84
  # @return [Object]
91
- def company_initialize(model)
92
- path = "/api/v2/companies/initialize"
93
- post(path, model)
94
- end
95
-
85
+ def company_initialize(model) path = "/api/v2/companies/initialize"
86
+ post(path, model) end
96
87
 
97
88
  # Create new companies
98
89
  #
@@ -107,11 +98,8 @@ module AvaTax
107
98
  # * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
108
99
  # @param model [CompanyModel[]] Either a single company object or an array of companies to create
109
100
  # @return [CompanyModel[]]
110
- def create_companies(model)
111
- path = "/api/v2/companies"
112
- post(path, model)
113
- end
114
-
101
+ def create_companies(model) path = "/api/v2/companies"
102
+ post(path, model) end
115
103
 
116
104
  # Request managed returns funding setup for a company
117
105
  #
@@ -133,11 +121,8 @@ module AvaTax
133
121
  # @param id [Integer] The unique identifier of the company
134
122
  # @param model [Object] The funding initialization request
135
123
  # @return [Object]
136
- def create_funding_request(id, model)
137
- path = "/api/v2/companies/#{id}/funding/setup"
138
- post(path, model)
139
- end
140
-
124
+ def create_funding_request(id, model) path = "/api/v2/companies/#{id}/funding/setup"
125
+ post(path, model) end
141
126
 
142
127
  # Delete a single company
143
128
  #
@@ -148,11 +133,8 @@ module AvaTax
148
133
  # * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, FirmAdmin, SSTAdmin, TechnicalSupportAdmin.
149
134
  # @param id [Integer] The ID of the company you wish to delete.
150
135
  # @return [ErrorDetail[]]
151
- def delete_company(id)
152
- path = "/api/v2/companies/#{id}"
153
- delete(path)
154
- end
155
-
136
+ def delete_company(id) path = "/api/v2/companies/#{id}"
137
+ delete(path) end
156
138
 
157
139
  # Check the funding configuration of a company
158
140
  #
@@ -167,11 +149,8 @@ module AvaTax
167
149
  # * 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.
168
150
  # @param companyId [Integer] The unique identifier of the company
169
151
  # @return [Object]
170
- def funding_configuration_by_company(companyId)
171
- path = "/api/v2/companies/#{companyId}/funding/configuration"
172
- get(path)
173
- end
174
-
152
+ def funding_configuration_by_company(companyId) path = "/api/v2/companies/#{companyId}/funding/configuration"
153
+ get(path) end
175
154
 
176
155
  # Check the funding configuration of a company
177
156
  #
@@ -187,11 +166,8 @@ module AvaTax
187
166
  # @param companyId [Integer] The unique identifier of the company
188
167
  # @param currency [String] The currency of the funding. USD and CAD are the only valid currencies
189
168
  # @return [FundingConfigurationModel[]]
190
- def funding_configurations_by_company_and_currency(companyId, options={})
191
- path = "/api/v2/companies/#{companyId}/funding/configurations"
192
- get(path, options)
193
- end
194
-
169
+ def funding_configurations_by_company_and_currency(companyId, options={}) path = "/api/v2/companies/#{companyId}/funding/configurations"
170
+ get(path, options) end
195
171
 
196
172
  # Retrieve a single company
197
173
  #
@@ -214,11 +190,8 @@ module AvaTax
214
190
  # @param id [Integer] The ID of the company to retrieve.
215
191
  # @param include [String] OPTIONAL: A comma separated list of special fetch options. * Child objects - Specify one or more of the following to retrieve objects related to each company: "Contacts", "FilingCalendars", "Items", "Locations", "Nexus", "TaxCodes", "NonReportingChildren" or "TaxRules". * Deleted objects - Specify "FetchDeleted" to retrieve information about previously deleted objects.
216
192
  # @return [Object]
217
- def get_company(id, options={})
218
- path = "/api/v2/companies/#{id}"
219
- get(path, options)
220
- end
221
-
193
+ def get_company(id, options={}) path = "/api/v2/companies/#{id}"
194
+ get(path, options) end
222
195
 
223
196
  # Get configuration settings for this company
224
197
  #
@@ -240,11 +213,8 @@ module AvaTax
240
213
  # * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
241
214
  # @param id [Integer]
242
215
  # @return [CompanyConfigurationModel[]]
243
- def get_company_configuration(id)
244
- path = "/api/v2/companies/#{id}/configuration"
245
- get(path)
246
- end
247
-
216
+ def get_company_configuration(id) path = "/api/v2/companies/#{id}/configuration"
217
+ get(path) end
248
218
 
249
219
  # Get this company's filing status
250
220
  #
@@ -267,11 +237,8 @@ module AvaTax
267
237
  # * 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.
268
238
  # @param id [Integer]
269
239
  # @return [String]
270
- def get_filing_status(id)
271
- path = "/api/v2/companies/#{id}/filingstatus"
272
- get(path)
273
- end
274
-
240
+ def get_filing_status(id) path = "/api/v2/companies/#{id}/filingstatus"
241
+ get(path) end
275
242
 
276
243
  # Check managed returns funding status for a company
277
244
  #
@@ -286,11 +253,8 @@ module AvaTax
286
253
  # * 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.
287
254
  # @param id [Integer] The unique identifier of the company
288
255
  # @return [FundingStatusModel[]]
289
- def list_funding_requests_by_company(id)
290
- path = "/api/v2/companies/#{id}/funding"
291
- get(path)
292
- end
293
-
256
+ def list_funding_requests_by_company(id) path = "/api/v2/companies/#{id}/funding"
257
+ get(path) end
294
258
 
295
259
  # Retrieve a list of MRS Companies with account
296
260
  #
@@ -302,11 +266,8 @@ module AvaTax
302
266
  #
303
267
  # * 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.
304
268
  # @return [FetchResult]
305
- def list_mrs_companies()
306
- path = "/api/v2/companies/mrs"
307
- get(path)
308
- end
309
-
269
+ def list_mrs_companies() path = "/api/v2/companies/mrs"
270
+ get(path) end
310
271
 
311
272
  # Retrieve all companies
312
273
  #
@@ -336,11 +297,8 @@ module AvaTax
336
297
  # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
337
298
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
338
299
  # @return [FetchResult]
339
- def query_companies(options={})
340
- path = "/api/v2/companies"
341
- get(path, options)
342
- end
343
-
300
+ def query_companies(options={}) path = "/api/v2/companies"
301
+ get(path, options) end
344
302
 
345
303
  # Change configuration settings for this company
346
304
  #
@@ -363,11 +321,8 @@ module AvaTax
363
321
  # @param id [Integer]
364
322
  # @param model [CompanyConfigurationModel[]]
365
323
  # @return [CompanyConfigurationModel[]]
366
- def set_company_configuration(id, model)
367
- path = "/api/v2/companies/#{id}/configuration"
368
- post(path, model)
369
- end
370
-
324
+ def set_company_configuration(id, model) path = "/api/v2/companies/#{id}/configuration"
325
+ post(path, model) end
371
326
 
372
327
  # Update a single company
373
328
  #
@@ -389,11 +344,8 @@ module AvaTax
389
344
  # @param id [Integer] The ID of the company you wish to update.
390
345
  # @param model [Object] The company object you wish to update.
391
346
  # @return [Object]
392
- def update_company(id, model)
393
- path = "/api/v2/companies/#{id}"
394
- put(path, model)
395
- end
396
-
347
+ def update_company(id, model) path = "/api/v2/companies/#{id}"
348
+ put(path, model) end
397
349
  end
398
350
  end
399
351
  end
@@ -9,11 +9,8 @@ module AvaTax
9
9
  # @param companyId [Integer]
10
10
  # @param model [TransactionReferenceFieldModel[]]
11
11
  # @return [FetchResult]
12
- def tag_transaction(companyId, model)
13
- path = "/api/v2/companies/#{companyId}/transactions/tag"
14
- put(path, model)
15
- end
16
-
12
+ def tag_transaction(companyId, model) path = "/api/v2/companies/#{companyId}/transactions/tag"
13
+ put(path, model) end
17
14
  end
18
15
  end
19
16
  end
@@ -15,11 +15,8 @@ module AvaTax
15
15
  # @param companyId [Integer] The ID of the company that owns this contact.
16
16
  # @param model [ContactModel[]] The contacts you wish to create.
17
17
  # @return [ContactModel[]]
18
- def create_contacts(companyId, model)
19
- path = "/api/v2/companies/#{companyId}/contacts"
20
- post(path, model)
21
- end
22
-
18
+ def create_contacts(companyId, model) path = "/api/v2/companies/#{companyId}/contacts"
19
+ post(path, model) end
23
20
 
24
21
  # Delete a single contact
25
22
  #
@@ -31,11 +28,8 @@ module AvaTax
31
28
  # @param companyId [Integer] The ID of the company that owns this contact.
32
29
  # @param id [Integer] The ID of the contact you wish to delete.
33
30
  # @return [ErrorDetail[]]
34
- def delete_contact(companyId, id)
35
- path = "/api/v2/companies/#{companyId}/contacts/#{id}"
36
- delete(path)
37
- end
38
-
31
+ def delete_contact(companyId, id) path = "/api/v2/companies/#{companyId}/contacts/#{id}"
32
+ delete(path) end
39
33
 
40
34
  # Retrieve a single contact
41
35
  #
@@ -49,11 +43,8 @@ module AvaTax
49
43
  # @param companyId [Integer] The ID of the company for this contact
50
44
  # @param id [Integer] The primary key of this contact
51
45
  # @return [Object]
52
- def get_contact(companyId, id)
53
- path = "/api/v2/companies/#{companyId}/contacts/#{id}"
54
- get(path)
55
- end
56
-
46
+ def get_contact(companyId, id) path = "/api/v2/companies/#{companyId}/contacts/#{id}"
47
+ get(path) end
57
48
 
58
49
  # Retrieve contacts for this company
59
50
  #
@@ -71,11 +62,8 @@ module AvaTax
71
62
  # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
72
63
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
73
64
  # @return [FetchResult]
74
- def list_contacts_by_company(companyId, options={})
75
- path = "/api/v2/companies/#{companyId}/contacts"
76
- get(path, options)
77
- end
78
-
65
+ def list_contacts_by_company(companyId, options={}) path = "/api/v2/companies/#{companyId}/contacts"
66
+ get(path, options) end
79
67
 
80
68
  # Retrieve all contacts
81
69
  #
@@ -94,11 +82,8 @@ module AvaTax
94
82
  # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
95
83
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
96
84
  # @return [FetchResult]
97
- def query_contacts(options={})
98
- path = "/api/v2/contacts"
99
- get(path, options)
100
- end
101
-
85
+ def query_contacts(options={}) path = "/api/v2/contacts"
86
+ get(path, options) end
102
87
 
103
88
  # Update a single contact
104
89
  #
@@ -115,11 +100,8 @@ module AvaTax
115
100
  # @param id [Integer] The ID of the contact you wish to update
116
101
  # @param model [Object] The contact you wish to update.
117
102
  # @return [Object]
118
- def update_contact(companyId, id, model)
119
- path = "/api/v2/companies/#{companyId}/contacts/#{id}"
120
- put(path, model)
121
- end
122
-
103
+ def update_contact(companyId, id, model) path = "/api/v2/companies/#{companyId}/contacts/#{id}"
104
+ put(path, model) end
123
105
  end
124
106
  end
125
107
  end
@@ -28,11 +28,8 @@ module AvaTax
28
28
  # @param companyId [Integer] The unique ID number of the company that recorded this customer
29
29
  # @param model [CustomerModel[]] The list of customer objects to be created
30
30
  # @return [CustomerModel[]]
31
- def create_customers(companyId, model)
32
- path = "/api/v2/companies/#{companyId}/customers"
33
- post(path, model)
34
- end
35
-
31
+ def create_customers(companyId, model) path = "/api/v2/companies/#{companyId}/customers"
32
+ post(path, model) end
36
33
 
37
34
  # Delete a customer record
38
35
  #
@@ -56,11 +53,8 @@ module AvaTax
56
53
  # @param companyId [Integer] The unique ID number of the company that recorded this customer
57
54
  # @param customerCode [String] The unique code representing this customer
58
55
  # @return [Object]
59
- def delete_customer(companyId, customerCode)
60
- path = "/api/v2/companies/#{companyId}/customers/#{customerCode}"
61
- delete(path)
62
- end
63
-
56
+ def delete_customer(companyId, customerCode) path = "/api/v2/companies/#{companyId}/customers/#{customerCode}"
57
+ delete(path) end
64
58
 
65
59
  # Retrieve a single customer
66
60
  #
@@ -91,11 +85,8 @@ module AvaTax
91
85
  # @param customerCode [String] The unique code representing this customer
92
86
  # @param include [String] Specify optional additional objects to include in this fetch request
93
87
  # @return [Object]
94
- def get_customer(companyId, customerCode, options={})
95
- path = "/api/v2/companies/#{companyId}/customers/#{customerCode}"
96
- get(path, options)
97
- end
98
-
88
+ def get_customer(companyId, customerCode, options={}) path = "/api/v2/companies/#{companyId}/customers/#{customerCode}"
89
+ get(path, options) end
99
90
 
100
91
  # Link attributes to a customer
101
92
  #
@@ -123,11 +114,8 @@ module AvaTax
123
114
  # @param customerCode [String] The unique code representing the current customer
124
115
  # @param model [CustomerAttributeModel[]] The list of attributes to link to the customer.
125
116
  # @return [FetchResult]
126
- def link_attributes_to_customer(companyId, customerCode, model)
127
- path = "/api/v2/companies/#{companyId}/customers/#{customerCode}/attributes/link"
128
- put(path, model)
129
- end
130
-
117
+ def link_attributes_to_customer(companyId, customerCode, model) path = "/api/v2/companies/#{companyId}/customers/#{customerCode}/attributes/link"
118
+ put(path, model) end
131
119
 
132
120
  # Link certificates to a customer
133
121
  #
@@ -152,11 +140,8 @@ module AvaTax
152
140
  # @param customerCode [String] The unique code representing this customer
153
141
  # @param model [Object] The list of certificates to link to this customer
154
142
  # @return [FetchResult]
155
- def link_certificates_to_customer(companyId, customerCode, model)
156
- path = "/api/v2/companies/#{companyId}/customers/#{customerCode}/certificates/link"
157
- post(path, model)
158
- end
159
-
143
+ def link_certificates_to_customer(companyId, customerCode, model) path = "/api/v2/companies/#{companyId}/customers/#{customerCode}/certificates/link"
144
+ post(path, model) end
160
145
 
161
146
  # Link two customer records together
162
147
  #
@@ -182,11 +167,8 @@ module AvaTax
182
167
  # @param code [String] The code of the bill-to customer to link.
183
168
  # @param model [Object] A list of information about ship-to customers to link to this bill-to customer.
184
169
  # @return [Object]
185
- def link_ship_to_customers_to_bill_customer(companyId, code, model)
186
- path = "/api/v2/companies/#{companyId}/customers/billto/#{code}/shipto/link"
187
- post(path, model)
188
- end
189
-
170
+ def link_ship_to_customers_to_bill_customer(companyId, code, model) path = "/api/v2/companies/#{companyId}/customers/billto/#{code}/shipto/link"
171
+ post(path, model) end
190
172
 
191
173
  # Retrieve a customer's attributes
192
174
  #
@@ -213,11 +195,8 @@ module AvaTax
213
195
  # @param companyId [Integer] The unique ID number of the company that recorded the provided customer
214
196
  # @param customerCode [String] The unique code representing the current customer
215
197
  # @return [FetchResult]
216
- def list_attributes_for_customer(companyId, customerCode)
217
- path = "/api/v2/companies/#{companyId}/customers/#{customerCode}/attributes"
218
- get(path)
219
- end
220
-
198
+ def list_attributes_for_customer(companyId, customerCode) path = "/api/v2/companies/#{companyId}/customers/#{customerCode}/attributes"
199
+ get(path) end
221
200
 
222
201
  # List certificates linked to a customer
223
202
  #
@@ -246,11 +225,8 @@ module AvaTax
246
225
  # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
247
226
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
248
227
  # @return [FetchResult]
249
- def list_certificates_for_customer(companyId, customerCode, options={})
250
- path = "/api/v2/companies/#{companyId}/customers/#{customerCode}/certificates"
251
- get(path, options)
252
- end
253
-
228
+ def list_certificates_for_customer(companyId, customerCode, options={}) path = "/api/v2/companies/#{companyId}/customers/#{customerCode}/certificates"
229
+ get(path, options) end
254
230
 
255
231
  # List valid certificates for a location
256
232
  #
@@ -279,11 +255,8 @@ module AvaTax
279
255
  # @param country [String] Search for certificates matching this country. Uses the ISO 3166 two character country code.
280
256
  # @param region [String] Search for certificates matching this region. Uses the ISO 3166 two or three character state, region, or province code.
281
257
  # @return [Object]
282
- def list_valid_certificates_for_customer(companyId, customerCode, country, region)
283
- path = "/api/v2/companies/#{companyId}/customers/#{customerCode}/certificates/#{country}/#{region}"
284
- get(path)
285
- end
286
-
258
+ def list_valid_certificates_for_customer(companyId, customerCode, country, region) path = "/api/v2/companies/#{companyId}/customers/#{customerCode}/certificates/#{country}/#{region}"
259
+ get(path) end
287
260
 
288
261
  # List all customers for this company
289
262
  #
@@ -316,11 +289,8 @@ module AvaTax
316
289
  # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
317
290
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
318
291
  # @return [FetchResult]
319
- def query_customers(companyId, options={})
320
- path = "/api/v2/companies/#{companyId}/customers"
321
- get(path, options)
322
- end
323
-
292
+ def query_customers(companyId, options={}) path = "/api/v2/companies/#{companyId}/customers"
293
+ get(path, options) end
324
294
 
325
295
  # Unlink attributes from a customer
326
296
  #
@@ -348,11 +318,8 @@ module AvaTax
348
318
  # @param customerCode [String] The unique code representing the current customer
349
319
  # @param model [CustomerAttributeModel[]] The list of attributes to unlink from the customer.
350
320
  # @return [FetchResult]
351
- def unlink_attributes_from_customer(companyId, customerCode, model)
352
- path = "/api/v2/companies/#{companyId}/customers/#{customerCode}/attributes/unlink"
353
- put(path, model)
354
- end
355
-
321
+ def unlink_attributes_from_customer(companyId, customerCode, model) path = "/api/v2/companies/#{companyId}/customers/#{customerCode}/attributes/unlink"
322
+ put(path, model) end
356
323
 
357
324
  # Unlink certificates from a customer
358
325
  #
@@ -377,11 +344,8 @@ module AvaTax
377
344
  # @param customerCode [String] The unique code representing this customer
378
345
  # @param model [Object] The list of certificates to link to this customer
379
346
  # @return [FetchResult]
380
- def unlink_certificates_from_customer(companyId, customerCode, model)
381
- path = "/api/v2/companies/#{companyId}/customers/#{customerCode}/certificates/unlink"
382
- post(path, model)
383
- end
384
-
347
+ def unlink_certificates_from_customer(companyId, customerCode, model) path = "/api/v2/companies/#{companyId}/customers/#{customerCode}/certificates/unlink"
348
+ post(path, model) end
385
349
 
386
350
  # Update a single customer
387
351
  #
@@ -406,11 +370,8 @@ module AvaTax
406
370
  # @param customerCode [String] The unique code representing this customer
407
371
  # @param model [Object] The new customer model that will replace the existing record at this URL
408
372
  # @return [Object]
409
- def update_customer(companyId, customerCode, model)
410
- path = "/api/v2/companies/#{companyId}/customers/#{customerCode}"
411
- put(path, model)
412
- end
413
-
373
+ def update_customer(companyId, customerCode, model) path = "/api/v2/companies/#{companyId}/customers/#{customerCode}"
374
+ put(path, model) end
414
375
  end
415
376
  end
416
377
  end