avatax 20.7.0 → 21.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.vs/slnx.sqlite +0 -0
- data/lib/avatax/client/accounts.rb +22 -55
- data/lib/avatax/client/addresses.rb +7 -13
- data/lib/avatax/client/advancedrules.rb +10 -38
- data/lib/avatax/client/avafileforms.rb +15 -30
- data/lib/avatax/client/batches.rb +16 -40
- data/lib/avatax/client/certexpressinvites.rb +21 -30
- data/lib/avatax/client/certificates.rb +97 -142
- data/lib/avatax/client/companies.rb +137 -80
- data/lib/avatax/client/compliance.rb +2 -5
- data/lib/avatax/client/contacts.rb +12 -30
- data/lib/avatax/client/customers.rb +87 -126
- data/lib/avatax/client/datasources.rb +18 -36
- data/lib/avatax/client/definitions.rb +126 -303
- data/lib/avatax/client/distancethresholds.rb +12 -30
- data/lib/avatax/client/ecms.rb +26 -31
- data/lib/avatax/client/ecommercetoken.rb +37 -0
- data/lib/avatax/client/errortransactions.rb +27 -15
- data/lib/avatax/client/filingcalendars.rb +17 -5
- data/lib/avatax/client/filings.rb +15 -7
- data/lib/avatax/client/firmclientlinkages.rb +18 -45
- data/lib/avatax/client/free.rb +2 -84
- data/lib/avatax/client/fundingrequests.rb +6 -12
- data/lib/avatax/client/items.rb +38 -95
- data/lib/avatax/client/jurisdictionoverrides.rb +12 -30
- data/lib/avatax/client/locations.rb +128 -38
- data/lib/avatax/client/multidocument.rb +32 -62
- data/lib/avatax/client/nexus.rb +138 -37
- data/lib/avatax/client/notices.rb +47 -139
- data/lib/avatax/client/notifications.rb +6 -15
- data/lib/avatax/client/provisioning.rb +4 -10
- data/lib/avatax/client/registrar.rb +20 -50
- data/lib/avatax/client/reports.rb +17 -20
- data/lib/avatax/client/settings.rb +12 -30
- data/lib/avatax/client/subscriptions.rb +6 -15
- data/lib/avatax/client/taxcodes.rb +12 -30
- data/lib/avatax/client/taxcontent.rb +70 -16
- data/lib/avatax/client/taxprofiles.rb +14 -10
- data/lib/avatax/client/taxrules.rb +12 -30
- data/lib/avatax/client/transactions.rb +63 -126
- data/lib/avatax/client/upcs.rb +18 -36
- data/lib/avatax/client/users.rb +16 -40
- data/lib/avatax/client/utilities.rb +6 -15
- data/lib/avatax/configuration.rb +1 -1
- data/lib/avatax/request.rb +0 -2
- data/lib/avatax/version.rb +1 -1
- data/spec/avatax/request_spec.rb +25 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b184760b2c4cae98e6c312cd19bb6bd2b06f0729d937875e1b4255099c2c74e8
|
4
|
+
data.tar.gz: 3fd974ce95d2b2aa3d4d0a05a6e3d323d1e7ebfe62b11ab63fd713ab23e6a365
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a867c76f21fee855a964ebc9dcc77cc0b1ae48c7e4ebcd8759f422bd4eb9c9467262047ca26e12eaa66f298c9b45006b329db84f45df62ccef8928666c68bb5
|
7
|
+
data.tar.gz: e78b33a26bc3b66b6d4f28046716a8878aa6333a8840987597388b8808f1d1b264b983e524bd6b4c907161a1858f32aebf1d243b4e57f70d62a55c698ce768dd
|
data/.vs/slnx.sqlite
CHANGED
Binary file
|
@@ -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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
@@ -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
|
-
#
|
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
|
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
|
@@ -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
|
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
|
#
|
@@ -48,14 +45,11 @@ module AvaTax
|
|
48
45
|
# ### Security Policies
|
49
46
|
#
|
50
47
|
# * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
|
51
|
-
# * This API depends on the following active services
|
48
|
+
# * This API depends on the following active services:*Required* (all): AutoAddress.
|
52
49
|
# @param model [Object] The address to resolve
|
53
50
|
# @return [Object]
|
54
|
-
def resolve_address_post(model)
|
55
|
-
path
|
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
|
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,24 +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
|
27
|
-
delete(path)
|
28
|
-
end
|
29
|
-
|
30
|
-
|
31
|
-
# Get audit records by account id and date range.
|
32
|
-
#
|
33
|
-
#
|
34
|
-
# @param accountId [Integer] The ID of the account
|
35
|
-
# @param fromDate [String] Date
|
36
|
-
# @param toDate [String] Date
|
37
|
-
# @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
|
-
|
22
|
+
def delete_lookup_file(accountId, id) path = "/api/v2/advancedrules/accounts/#{accountId}/lookupFiles/#{id}"
|
23
|
+
delete(path) end
|
43
24
|
|
44
25
|
# Get the lookup files for a company
|
45
26
|
#
|
@@ -47,11 +28,8 @@ module AvaTax
|
|
47
28
|
# @param accountId [Integer] The account ID for the company
|
48
29
|
# @param companyId [Integer] The ID of the company for which to retrieve lookup files
|
49
30
|
# @return [FetchResult]
|
50
|
-
def get_company_lookup_files(accountId, companyId)
|
51
|
-
path
|
52
|
-
get(path)
|
53
|
-
end
|
54
|
-
|
31
|
+
def get_company_lookup_files(accountId, companyId) path = "/api/v2/advancedrules/accounts/#{accountId}/companies/#{companyId}/lookupFiles"
|
32
|
+
get(path) end
|
55
33
|
|
56
34
|
# Get a lookup file for an accountId and companyLookupFileId
|
57
35
|
#
|
@@ -59,11 +37,8 @@ module AvaTax
|
|
59
37
|
# @param accountId [Integer] The ID of the account for the lookup file
|
60
38
|
# @param id [String] The unique ID/GUID of the company lookup file to return
|
61
39
|
# @return [Object]
|
62
|
-
def get_lookup_file(accountId, id)
|
63
|
-
path
|
64
|
-
get(path)
|
65
|
-
end
|
66
|
-
|
40
|
+
def get_lookup_file(accountId, id) path = "/api/v2/advancedrules/accounts/#{accountId}/lookupFiles/#{id}"
|
41
|
+
get(path) end
|
67
42
|
|
68
43
|
# Update a lookup file
|
69
44
|
#
|
@@ -72,11 +47,8 @@ module AvaTax
|
|
72
47
|
# @param id [String] The unique ID/GUID of the company lookup file to be updated
|
73
48
|
# @param model [Object] The new values to update the lookup file
|
74
49
|
# @return [Object]
|
75
|
-
def update_lookup_file(accountId, id, model)
|
76
|
-
path
|
77
|
-
put(path, model)
|
78
|
-
end
|
79
|
-
|
50
|
+
def update_lookup_file(accountId, id, model) path = "/api/v2/advancedrules/accounts/#{accountId}/lookupFiles/#{id}"
|
51
|
+
put(path, model) end
|
80
52
|
end
|
81
53
|
end
|
82
54
|
end
|
@@ -11,14 +11,11 @@ module AvaTax
|
|
11
11
|
# ### Security Policies
|
12
12
|
#
|
13
13
|
# * This API requires the user role Compliance Root User.
|
14
|
-
# * This API depends on the following active services
|
14
|
+
# * This API depends on the following active services:*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.*Firm Managed* (for accounts managed by a firm): ARA, ARAManaged.
|
15
15
|
# @param model [AvaFileFormModel[]] The AvaFileForm you wish to create.
|
16
16
|
# @return [AvaFileFormModel[]]
|
17
|
-
def create_ava_file_forms(model)
|
18
|
-
path
|
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
|
#
|
@@ -27,14 +24,11 @@ module AvaTax
|
|
27
24
|
# ### Security Policies
|
28
25
|
#
|
29
26
|
# * This API requires one of the following user roles: Compliance Root User, ComplianceUser, FirmAdmin.
|
30
|
-
# * This API depends on the following active services
|
27
|
+
# * This API depends on the following active services:*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.*Firm Managed* (for accounts managed by a firm): ARA, ARAManaged.
|
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
|
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
|
#
|
@@ -43,14 +37,11 @@ module AvaTax
|
|
43
37
|
# ### Security Policies
|
44
38
|
#
|
45
39
|
# * This API requires one of the following user roles: AccountAdmin, AccountOperator, CompanyAdmin, CompanyUser, Compliance Root User, Compliance Temp User, ComplianceAdmin, ComplianceUser, FirmAdmin, FirmUser, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin.
|
46
|
-
# * This API depends on the following active services
|
40
|
+
# * This API depends on the following active services:*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.*Firm Managed* (for accounts managed by a firm): ARA, ARAManaged.
|
47
41
|
# @param id [Integer] The primary key of this AvaFileForm
|
48
42
|
# @return [Object]
|
49
|
-
def get_ava_file_form(id)
|
50
|
-
path
|
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
|
#
|
@@ -60,17 +51,14 @@ module AvaTax
|
|
60
51
|
# ### Security Policies
|
61
52
|
#
|
62
53
|
# * This API requires one of the following user roles: AccountAdmin, AccountOperator, CompanyAdmin, CompanyUser, Compliance Root User, Compliance Temp User, ComplianceAdmin, ComplianceUser, FirmAdmin, FirmUser, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin.
|
63
|
-
# * This API depends on the following active services
|
54
|
+
# * This API depends on the following active services:*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.*Firm Managed* (for accounts managed by a firm): ARA, ARAManaged.
|
64
55
|
# @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:* outletTypeId
|
65
56
|
# @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.
|
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
|
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
|
#
|
@@ -80,15 +68,12 @@ module AvaTax
|
|
80
68
|
# ### Security Policies
|
81
69
|
#
|
82
70
|
# * This API requires the user role Compliance Root User.
|
83
|
-
# * This API depends on the following active services
|
71
|
+
# * This API depends on the following active services:*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.*Firm Managed* (for accounts managed by a firm): ARA, ARAManaged.
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|