avatax 20.7.0 → 20.7.1

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 +22 -55
  3. data/lib/avatax/client/addresses.rb +4 -10
  4. data/lib/avatax/client/advancedrules.rb +12 -30
  5. data/lib/avatax/client/avafileforms.rb +10 -25
  6. data/lib/avatax/client/batches.rb +16 -40
  7. data/lib/avatax/client/certexpressinvites.rb +6 -15
  8. data/lib/avatax/client/certificates.rb +30 -75
  9. data/lib/avatax/client/companies.rb +32 -80
  10. data/lib/avatax/client/compliance.rb +2 -5
  11. data/lib/avatax/client/contacts.rb +12 -30
  12. data/lib/avatax/client/customers.rb +26 -65
  13. data/lib/avatax/client/datasources.rb +12 -30
  14. data/lib/avatax/client/definitions.rb +118 -295
  15. data/lib/avatax/client/distancethresholds.rb +12 -30
  16. data/lib/avatax/client/filingcalendars.rb +2 -5
  17. data/lib/avatax/client/filings.rb +2 -5
  18. data/lib/avatax/client/firmclientlinkages.rb +18 -45
  19. data/lib/avatax/client/free.rb +6 -15
  20. data/lib/avatax/client/fundingrequests.rb +4 -10
  21. data/lib/avatax/client/items.rb +38 -95
  22. data/lib/avatax/client/jurisdictionoverrides.rb +12 -30
  23. data/lib/avatax/client/locations.rb +14 -35
  24. data/lib/avatax/client/multidocument.rb +20 -50
  25. data/lib/avatax/client/nexus.rb +16 -40
  26. data/lib/avatax/client/notifications.rb +6 -15
  27. data/lib/avatax/client/provisioning.rb +4 -10
  28. data/lib/avatax/client/registrar.rb +20 -50
  29. data/lib/avatax/client/reports.rb +8 -20
  30. data/lib/avatax/client/settings.rb +12 -30
  31. data/lib/avatax/client/subscriptions.rb +6 -15
  32. data/lib/avatax/client/taxcodes.rb +12 -30
  33. data/lib/avatax/client/taxcontent.rb +6 -15
  34. data/lib/avatax/client/taxrules.rb +12 -30
  35. data/lib/avatax/client/transactions.rb +42 -105
  36. data/lib/avatax/client/upcs.rb +12 -30
  37. data/lib/avatax/client/users.rb +16 -40
  38. data/lib/avatax/client/utilities.rb +6 -15
  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: 8a3c2015349a64ef8875c8198e04f26a6cf2c0bd631328c9a2f885e4cf8e16e4
4
- data.tar.gz: 7d086ee2c887b48680dc53a302a7cc1c0f3e116764695518124282ca9cc2cd21
3
+ metadata.gz: 2b575079d41a5af746d91176966310a2180604ed6f60b4e38bfcda4d5da0232f
4
+ data.tar.gz: 547dcde50e3acd7e864b40fdc73b7918378e0ddc7f3b84e65ce33ca038e44110
5
5
  SHA512:
6
- metadata.gz: 1aae1f7fd0a836bbeb38ee880f2eee39783013d516e098cc5acdca753f3776d39693c6bd7feb345ba71526ff43380c4013723e67bb1893b6d472d1ce62122707
7
- data.tar.gz: 355dc16e423551083fd33180ad36d7477a5cdaf593281eb580b15366689b761a3f1885675a0dc2c37da670837f65a3b6ce4bc8351ce6f756790281b454a1f996
6
+ metadata.gz: 440edc91a21238316b08fdefbe1602ff3260805a49690e9c02a3677a6759d95107527a88fbaac985c680205ebc8ae2c63301defe44c36e0a7db5b17ee01f85c9
7
+ data.tar.gz: f761b5c7f550502da108b4fad3f51ecd90c22fd873a49ff9179d8d6dfc4cbbe06f4b594d0fe809fce42f2366932eccddd75be3f29e5e88b6369491fd0a8cf68b
@@ -26,11 +26,8 @@ module AvaTax
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
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
-
29
+ def account_reset_license_key(id, model) path = "/api/v2/accounts/#{id}/resetlicensekey"
30
+ post(path, model) end
34
31
 
35
32
  # Activate an account by accepting terms and conditions
36
33
  #
@@ -51,11 +48,8 @@ module AvaTax
51
48
  # @param id [Integer] The ID of the account to activate
52
49
  # @param model [Object] The activation request
53
50
  # @return [Object]
54
- def activate_account(id, model)
55
- path = "/api/v2/accounts/#{id}/activate"
56
- post(path, model)
57
- end
58
-
51
+ def activate_account(id, model) path = "/api/v2/accounts/#{id}/activate"
52
+ post(path, model) end
59
53
 
60
54
  # Retrieve audit history for an account.
61
55
  #
@@ -83,11 +77,8 @@ module AvaTax
83
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.
84
78
  # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
85
79
  # @return [FetchResult]
86
- def audit_account(id, options={})
87
- path = "/api/v2/accounts/#{id}/audit"
88
- get(path, options)
89
- end
90
-
80
+ def audit_account(id, options={}) path = "/api/v2/accounts/#{id}/audit"
81
+ get(path, options) end
91
82
 
92
83
  # Create license key for this account
93
84
  #
@@ -108,11 +99,8 @@ module AvaTax
108
99
  # @param id [Integer] The ID of the account you wish to update.
109
100
  # @param model [Object]
110
101
  # @return [Object]
111
- def create_license_key(id, model)
112
- path = "/api/v2/accounts/#{id}/licensekey"
113
- post(path, model)
114
- end
115
-
102
+ def create_license_key(id, model) path = "/api/v2/accounts/#{id}/licensekey"
103
+ post(path, model) end
116
104
 
117
105
  # Delete license key for this account by license key name
118
106
  #
@@ -128,11 +116,8 @@ module AvaTax
128
116
  # @param id [Integer] The ID of the account you wish to update.
129
117
  # @param licensekeyname [String] The license key name you wish to update.
130
118
  # @return [ErrorDetail[]]
131
- def delete_license_key(id, licensekeyname)
132
- path = "/api/v2/accounts/#{id}/licensekey/#{licensekeyname}"
133
- delete(path)
134
- end
135
-
119
+ def delete_license_key(id, licensekeyname) path = "/api/v2/accounts/#{id}/licensekey/#{licensekeyname}"
120
+ delete(path) end
136
121
 
137
122
  # Retrieve a single account
138
123
  #
@@ -148,11 +133,8 @@ module AvaTax
148
133
  # @param id [Integer] The ID of the account to retrieve
149
134
  # @param include [String] A comma separated list of special fetch options
150
135
  # @return [Object]
151
- def get_account(id, options={})
152
- path = "/api/v2/accounts/#{id}"
153
- get(path, options)
154
- end
155
-
136
+ def get_account(id, options={}) path = "/api/v2/accounts/#{id}"
137
+ get(path, options) end
156
138
 
157
139
  # Get configuration settings for this account
158
140
  #
@@ -174,11 +156,8 @@ module AvaTax
174
156
  # * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
175
157
  # @param id [Integer]
176
158
  # @return [AccountConfigurationModel[]]
177
- def get_account_configuration(id)
178
- path = "/api/v2/accounts/#{id}/configuration"
179
- get(path)
180
- end
181
-
159
+ def get_account_configuration(id) path = "/api/v2/accounts/#{id}/configuration"
160
+ get(path) end
182
161
 
183
162
  # Retrieve license key by license key name
184
163
  #
@@ -188,11 +167,8 @@ module AvaTax
188
167
  # @param id [Integer] The ID of the account to retrieve
189
168
  # @param licensekeyname [String] The ID of the account to retrieve
190
169
  # @return [Object]
191
- def get_license_key(id, licensekeyname)
192
- path = "/api/v2/accounts/#{id}/licensekey/#{licensekeyname}"
193
- get(path)
194
- end
195
-
170
+ def get_license_key(id, licensekeyname) path = "/api/v2/accounts/#{id}/licensekey/#{licensekeyname}"
171
+ get(path) end
196
172
 
197
173
  # Retrieve all license keys for this account
198
174
  #
@@ -203,11 +179,8 @@ module AvaTax
203
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.
204
180
  # @param id [Integer] The ID of the account to retrieve
205
181
  # @return [AccountLicenseKeyModel[]]
206
- def get_license_keys(id)
207
- path = "/api/v2/accounts/#{id}/licensekeys"
208
- get(path)
209
- end
210
-
182
+ def get_license_keys(id) path = "/api/v2/accounts/#{id}/licensekeys"
183
+ get(path) end
211
184
 
212
185
  # Retrieve all accounts
213
186
  #
@@ -233,11 +206,8 @@ module AvaTax
233
206
  # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
234
207
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
235
208
  # @return [FetchResult]
236
- def query_accounts(options={})
237
- path = "/api/v2/accounts"
238
- get(path, options)
239
- end
240
-
209
+ def query_accounts(options={}) path = "/api/v2/accounts"
210
+ get(path, options) end
241
211
 
242
212
  # Change configuration settings for this account
243
213
  #
@@ -260,11 +230,8 @@ module AvaTax
260
230
  # @param id [Integer]
261
231
  # @param model [AccountConfigurationModel[]]
262
232
  # @return [AccountConfigurationModel[]]
263
- def set_account_configuration(id, model)
264
- path = "/api/v2/accounts/#{id}/configuration"
265
- post(path, model)
266
- end
267
-
233
+ def set_account_configuration(id, model) path = "/api/v2/accounts/#{id}/configuration"
234
+ post(path, model) end
268
235
  end
269
236
  end
270
237
  end
@@ -30,11 +30,8 @@ module AvaTax
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
32
  # @return [Object]
33
- def resolve_address(options={})
34
- path = "/api/v2/addresses/resolve"
35
- get(path, options)
36
- end
37
-
33
+ def resolve_address(options={}) path = "/api/v2/addresses/resolve"
34
+ get(path, options) end
38
35
 
39
36
  # Retrieve geolocation information for a specified address
40
37
  #
@@ -51,11 +48,8 @@ module AvaTax
51
48
  # * This API depends on the following active services<br />*Required* (all): AutoAddress.
52
49
  # @param model [Object] The address to resolve
53
50
  # @return [Object]
54
- def resolve_address_post(model)
55
- path = "/api/v2/addresses/resolve"
56
- post(path, model)
57
- end
58
-
51
+ def resolve_address_post(model) path = "/api/v2/addresses/resolve"
52
+ post(path, model) end
59
53
  end
60
54
  end
61
55
  end
@@ -10,11 +10,8 @@ module AvaTax
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
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
-
13
+ def create_company_lookup_file(accountId, companyId, model) path = "/api/v2/advancedrules/accounts/#{accountId}/companies/#{companyId}/lookupFiles"
14
+ post(path, model) end
18
15
 
19
16
  # Delete a lookup file
20
17
  #
@@ -22,11 +19,8 @@ module AvaTax
22
19
  # @param accountId [Integer] The ID of the account for the company the lookup file is for
23
20
  # @param id [String] The unique ID/GUID for the company lookup file to be deleted
24
21
  # @return [ErrorDetail[]]
25
- def delete_lookup_file(accountId, id)
26
- path = "/api/v2/advancedrules/accounts/#{accountId}/lookupFiles/#{id}"
27
- delete(path)
28
- end
29
-
22
+ def delete_lookup_file(accountId, id) path = "/api/v2/advancedrules/accounts/#{accountId}/lookupFiles/#{id}"
23
+ delete(path) end
30
24
 
31
25
  # Get audit records by account id and date range.
32
26
  #
@@ -35,11 +29,8 @@ module AvaTax
35
29
  # @param fromDate [String] Date
36
30
  # @param toDate [String] Date
37
31
  # @return [Object]
38
- def get_audit_records(accountId, fromDate, toDate)
39
- path = "/api/v2/advancedrules/audits/accounts/#{accountId}/from/#{fromDate}/to/#{toDate}"
40
- get(path)
41
- end
42
-
32
+ def get_audit_records(accountId, fromDate, toDate) path = "/api/v2/advancedrules/audits/accounts/#{accountId}/from/#{fromDate}/to/#{toDate}"
33
+ get(path) end
43
34
 
44
35
  # Get the lookup files for a company
45
36
  #
@@ -47,11 +38,8 @@ module AvaTax
47
38
  # @param accountId [Integer] The account ID for the company
48
39
  # @param companyId [Integer] The ID of the company for which to retrieve lookup files
49
40
  # @return [FetchResult]
50
- def get_company_lookup_files(accountId, companyId)
51
- path = "/api/v2/advancedrules/accounts/#{accountId}/companies/#{companyId}/lookupFiles"
52
- get(path)
53
- end
54
-
41
+ def get_company_lookup_files(accountId, companyId) path = "/api/v2/advancedrules/accounts/#{accountId}/companies/#{companyId}/lookupFiles"
42
+ get(path) end
55
43
 
56
44
  # Get a lookup file for an accountId and companyLookupFileId
57
45
  #
@@ -59,11 +47,8 @@ module AvaTax
59
47
  # @param accountId [Integer] The ID of the account for the lookup file
60
48
  # @param id [String] The unique ID/GUID of the company lookup file to return
61
49
  # @return [Object]
62
- def get_lookup_file(accountId, id)
63
- path = "/api/v2/advancedrules/accounts/#{accountId}/lookupFiles/#{id}"
64
- get(path)
65
- end
66
-
50
+ def get_lookup_file(accountId, id) path = "/api/v2/advancedrules/accounts/#{accountId}/lookupFiles/#{id}"
51
+ get(path) end
67
52
 
68
53
  # Update a lookup file
69
54
  #
@@ -72,11 +57,8 @@ module AvaTax
72
57
  # @param id [String] The unique ID/GUID of the company lookup file to be updated
73
58
  # @param model [Object] The new values to update the lookup file
74
59
  # @return [Object]
75
- def update_lookup_file(accountId, id, model)
76
- path = "/api/v2/advancedrules/accounts/#{accountId}/lookupFiles/#{id}"
77
- put(path, model)
78
- end
79
-
60
+ def update_lookup_file(accountId, id, model) path = "/api/v2/advancedrules/accounts/#{accountId}/lookupFiles/#{id}"
61
+ put(path, model) end
80
62
  end
81
63
  end
82
64
  end
@@ -14,11 +14,8 @@ module AvaTax
14
14
  # * 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.
15
15
  # @param model [AvaFileFormModel[]] The AvaFileForm you wish to create.
16
16
  # @return [AvaFileFormModel[]]
17
- def create_ava_file_forms(model)
18
- path = "/api/v2/avafileforms"
19
- post(path, model)
20
- end
21
-
17
+ def create_ava_file_forms(model) path = "/api/v2/avafileforms"
18
+ post(path, model) end
22
19
 
23
20
  # Delete a single AvaFileForm
24
21
  #
@@ -30,11 +27,8 @@ module AvaTax
30
27
  # * 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.
31
28
  # @param id [Integer] The ID of the AvaFileForm you wish to delete.
32
29
  # @return [ErrorDetail[]]
33
- def delete_ava_file_form(id)
34
- path = "/api/v2/avafileforms/#{id}"
35
- delete(path)
36
- end
37
-
30
+ def delete_ava_file_form(id) path = "/api/v2/avafileforms/#{id}"
31
+ delete(path) end
38
32
 
39
33
  # Retrieve a single AvaFileForm
40
34
  #
@@ -46,11 +40,8 @@ module AvaTax
46
40
  # * 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.
47
41
  # @param id [Integer] The primary key of this AvaFileForm
48
42
  # @return [Object]
49
- def get_ava_file_form(id)
50
- path = "/api/v2/avafileforms/#{id}"
51
- get(path)
52
- end
53
-
43
+ def get_ava_file_form(id) path = "/api/v2/avafileforms/#{id}"
44
+ get(path) end
54
45
 
55
46
  # Retrieve all AvaFileForms
56
47
  #
@@ -66,11 +57,8 @@ module AvaTax
66
57
  # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
67
58
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
68
59
  # @return [FetchResult]
69
- def query_ava_file_forms(options={})
70
- path = "/api/v2/avafileforms"
71
- get(path, options)
72
- end
73
-
60
+ def query_ava_file_forms(options={}) path = "/api/v2/avafileforms"
61
+ get(path, options) end
74
62
 
75
63
  # Update a AvaFileForm
76
64
  #
@@ -84,11 +72,8 @@ module AvaTax
84
72
  # @param id [Integer] The ID of the AvaFileForm you wish to update
85
73
  # @param model [Object] The AvaFileForm model you wish to update.
86
74
  # @return [Object]
87
- def update_ava_file_form(id, model)
88
- path = "/api/v2/avafileforms/#{id}"
89
- put(path, model)
90
- end
91
-
75
+ def update_ava_file_form(id, model) path = "/api/v2/avafileforms/#{id}"
76
+ put(path, model) end
92
77
  end
93
78
  end
94
79
  end
@@ -24,11 +24,8 @@ module AvaTax
24
24
  # @param companyId [Integer] The ID of the company that owns this batch.
25
25
  # @param id [Integer] The ID of the batch to cancel.
26
26
  # @return [Object]
27
- def cancel_batch(companyId, id)
28
- path = "/api/v2/companies/#{companyId}/batches/#{id}/cancel"
29
- post(path)
30
- end
31
-
27
+ def cancel_batch(companyId, id) path = "/api/v2/companies/#{companyId}/batches/#{id}/cancel"
28
+ post(path) end
32
29
 
33
30
  # Create a new batch
34
31
  #
@@ -58,11 +55,8 @@ module AvaTax
58
55
  # @param companyId [Integer] The ID of the company that owns this batch.
59
56
  # @param model [BatchModel[]] The batch you wish to create.
60
57
  # @return [BatchModel[]]
61
- def create_batches(companyId, model)
62
- path = "/api/v2/companies/#{companyId}/batches"
63
- post(path, model)
64
- end
65
-
58
+ def create_batches(companyId, model) path = "/api/v2/companies/#{companyId}/batches"
59
+ post(path, model) end
66
60
 
67
61
  # Create a new transaction batch
68
62
  #
@@ -90,11 +84,8 @@ module AvaTax
90
84
  # @param companyId [Integer] The ID of the company that owns this batch.
91
85
  # @param model [Object] The transaction batch you wish to create.
92
86
  # @return [Object]
93
- def create_transaction_batch(companyId, model)
94
- path = "/api/v2/companies/#{companyId}/batches/transactions"
95
- post(path, model)
96
- end
97
-
87
+ def create_transaction_batch(companyId, model) path = "/api/v2/companies/#{companyId}/batches/transactions"
88
+ post(path, model) end
98
89
 
99
90
  # Delete a single batch
100
91
  #
@@ -115,11 +106,8 @@ module AvaTax
115
106
  # @param companyId [Integer] The ID of the company that owns this batch.
116
107
  # @param id [Integer] The ID of the batch to delete.
117
108
  # @return [ErrorDetail[]]
118
- def delete_batch(companyId, id)
119
- path = "/api/v2/companies/#{companyId}/batches/#{id}"
120
- delete(path)
121
- end
122
-
109
+ def delete_batch(companyId, id) path = "/api/v2/companies/#{companyId}/batches/#{id}"
110
+ delete(path) end
123
111
 
124
112
  # Download a single batch file
125
113
  #
@@ -132,11 +120,8 @@ module AvaTax
132
120
  # @param batchId [Integer] The ID of the batch object
133
121
  # @param id [Integer] The primary key of this batch file object
134
122
  # @return [Object]
135
- def download_batch(companyId, batchId, id)
136
- path = "/api/v2/companies/#{companyId}/batches/#{batchId}/files/#{id}/attachment"
137
- get(path)
138
- end
139
-
123
+ def download_batch(companyId, batchId, id) path = "/api/v2/companies/#{companyId}/batches/#{batchId}/files/#{id}/attachment"
124
+ get(path) end
140
125
 
141
126
  # Retrieve a single batch
142
127
  #
@@ -162,11 +147,8 @@ module AvaTax
162
147
  # @param companyId [Integer] The ID of the company that owns this batch
163
148
  # @param id [Integer] The primary key of this batch
164
149
  # @return [Object]
165
- def get_batch(companyId, id)
166
- path = "/api/v2/companies/#{companyId}/batches/#{id}"
167
- get(path)
168
- end
169
-
150
+ def get_batch(companyId, id) path = "/api/v2/companies/#{companyId}/batches/#{id}"
151
+ get(path) end
170
152
 
171
153
  # Retrieve all batches for this company
172
154
  #
@@ -202,11 +184,8 @@ module AvaTax
202
184
  # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
203
185
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
204
186
  # @return [FetchResult]
205
- def list_batches_by_company(companyId, options={})
206
- path = "/api/v2/companies/#{companyId}/batches"
207
- get(path, options)
208
- end
209
-
187
+ def list_batches_by_company(companyId, options={}) path = "/api/v2/companies/#{companyId}/batches"
188
+ get(path, options) end
210
189
 
211
190
  # Retrieve all batches
212
191
  #
@@ -238,11 +217,8 @@ module AvaTax
238
217
  # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
239
218
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
240
219
  # @return [FetchResult]
241
- def query_batches(options={})
242
- path = "/api/v2/batches"
243
- get(path, options)
244
- end
245
-
220
+ def query_batches(options={}) path = "/api/v2/batches"
221
+ get(path, options) end
246
222
  end
247
223
  end
248
224
  end
@@ -29,11 +29,8 @@ module AvaTax
29
29
  # @param customerCode [String] The number of the customer where the request is sent to
30
30
  # @param model [CreateCertExpressInvitationModel[]] the requests to send out to customers
31
31
  # @return [CertExpressInvitationStatusModel[]]
32
- def create_cert_express_invitation(companyId, customerCode, model)
33
- path = "/api/v2/companies/#{companyId}/customers/#{customerCode}/certexpressinvites"
34
- post(path, model)
35
- end
36
-
32
+ def create_cert_express_invitation(companyId, customerCode, model) path = "/api/v2/companies/#{companyId}/customers/#{customerCode}/certexpressinvites"
33
+ post(path, model) end
37
34
 
38
35
  # Retrieve a single CertExpress invitation
39
36
  #
@@ -62,11 +59,8 @@ module AvaTax
62
59
  # @param id [Integer] The unique ID number of this CertExpress invitation
63
60
  # @param include [String] OPTIONAL: A comma separated list of special fetch options. No options are defined at this time.
64
61
  # @return [Object]
65
- def get_cert_express_invitation(companyId, customerCode, id, options={})
66
- path = "/api/v2/companies/#{companyId}/customers/#{customerCode}/certexpressinvites/#{id}"
67
- get(path, options)
68
- end
69
-
62
+ def get_cert_express_invitation(companyId, customerCode, id, options={}) path = "/api/v2/companies/#{companyId}/customers/#{customerCode}/certexpressinvites/#{id}"
63
+ get(path, options) end
70
64
 
71
65
  # List CertExpress invitations
72
66
  #
@@ -97,11 +91,8 @@ module AvaTax
97
91
  # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
98
92
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
99
93
  # @return [FetchResult]
100
- def list_cert_express_invitations(companyId, options={})
101
- path = "/api/v2/companies/#{companyId}/certexpressinvites"
102
- get(path, options)
103
- end
104
-
94
+ def list_cert_express_invitations(companyId, options={}) path = "/api/v2/companies/#{companyId}/certexpressinvites"
95
+ get(path, options) end
105
96
  end
106
97
  end
107
98
  end