Skip to content

Commit 602a88a

Browse files
Merge pull request #147 from avadev/23.3.0
Update for 23.3.0
2 parents c2cc356 + 420e7ed commit 602a88a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+418
-418
lines changed

lib/avatax/client/accounts.rb

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ module Accounts
2828
# @param model [Object] A request confirming that you wish to reset the license key of this account.
2929
# @return [Object]
3030
def account_reset_license_key(id, model) path = "/api/v2/accounts/#{id}/resetlicensekey"
31-
post(path, model, {}, "23.2.0") end
31+
post(path, model, {}, AvaTax::VERSION) end
3232

3333
# Activate an account by accepting terms and conditions
3434
#
@@ -51,7 +51,7 @@ def account_reset_license_key(id, model) path = "/api/v2/accounts/#{id}/r
5151
# @param model [Object] The activation request
5252
# @return [Object]
5353
def activate_account(id, model) path = "/api/v2/accounts/#{id}/activate"
54-
post(path, model, {}, "23.2.0") end
54+
post(path, model, {}, AvaTax::VERSION) end
5555

5656
# Retrieve audit history for an account.
5757
#
@@ -72,7 +72,7 @@ def activate_account(id, model) path = "/api/v2/accounts/#{id}/activate"
7272
#
7373
# ### Security Policies
7474
#
75-
# * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
75+
# * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, ECMUser, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
7676
# Swagger Name: AvaTaxClient
7777
# @param id [Integer] The ID of the account you wish to audit.
7878
# @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.
@@ -81,7 +81,7 @@ def activate_account(id, model) path = "/api/v2/accounts/#{id}/activate"
8181
# @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
8282
# @return [FetchResult]
8383
def audit_account(id, options={}) path = "/api/v2/accounts/#{id}/audit"
84-
get(path, options, "23.2.0") end
84+
get(path, options, AvaTax::VERSION) end
8585

8686
# Create license key for this account
8787
#
@@ -104,7 +104,7 @@ def audit_account(id, options={}) path = "/api/v2/accounts/#{id}/audit"
104104
# @param model [Object]
105105
# @return [Object]
106106
def create_license_key(id, model) path = "/api/v2/accounts/#{id}/licensekey"
107-
post(path, model, {}, "23.2.0") end
107+
post(path, model, {}, AvaTax::VERSION) end
108108

109109
# Delete license key for this account by license key name
110110
#
@@ -122,7 +122,7 @@ def create_license_key(id, model) path = "/api/v2/accounts/#{id}/licensek
122122
# @param licensekeyname [String] The license key name you wish to update.
123123
# @return [ErrorDetail[]]
124124
def delete_license_key(id, licensekeyname) path = "/api/v2/accounts/#{id}/licensekey/#{licensekeyname}"
125-
delete(path, {}, "23.2.0") end
125+
delete(path, {}, AvaTax::VERSION) end
126126

127127
# Retrieve a single account
128128
#
@@ -134,13 +134,13 @@ def delete_license_key(id, licensekeyname) path = "/api/v2/accounts/#{id}
134134
#
135135
# ### Security Policies
136136
#
137-
# * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
137+
# * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, ECMUser, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
138138
# Swagger Name: AvaTaxClient
139139
# @param id [Integer] The ID of the account to retrieve
140140
# @param include [String] A comma separated list of special fetch options
141141
# @return [Object]
142142
def get_account(id, options={}) path = "/api/v2/accounts/#{id}"
143-
get(path, options, "23.2.0") end
143+
get(path, options, AvaTax::VERSION) end
144144

145145
# Get configuration settings for this account
146146
#
@@ -159,37 +159,37 @@ def get_account(id, options={}) path = "/api/v2/accounts/#{id}"
159159
#
160160
# ### Security Policies
161161
#
162-
# * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
162+
# * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ECMUser, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
163163
# Swagger Name: AvaTaxClient
164164
# @param id [Integer]
165165
# @return [AccountConfigurationModel[]]
166166
def get_account_configuration(id) path = "/api/v2/accounts/#{id}/configuration"
167-
get(path, {}, "23.2.0") end
167+
get(path, {}, AvaTax::VERSION) end
168168

169169
# Retrieve license key by license key name
170170
#
171171
# ### Security Policies
172172
#
173-
# * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
173+
# * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, ECMUser, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
174174
# Swagger Name: AvaTaxClient
175175
# @param id [Integer] The ID of the account to retrieve
176176
# @param licensekeyname [String] The ID of the account to retrieve
177177
# @return [Object]
178178
def get_license_key(id, licensekeyname) path = "/api/v2/accounts/#{id}/licensekey/#{licensekeyname}"
179-
get(path, {}, "23.2.0") end
179+
get(path, {}, AvaTax::VERSION) end
180180

181181
# Retrieve all license keys for this account
182182
#
183183
# Gets list of all the license keys used by the account.
184184
#
185185
# ### Security Policies
186186
#
187-
# * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, 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, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, ECMUser, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
188188
# Swagger Name: AvaTaxClient
189189
# @param id [Integer] The ID of the account to retrieve
190190
# @return [AccountLicenseKeyModel[]]
191191
def get_license_keys(id) path = "/api/v2/accounts/#{id}/licensekeys"
192-
get(path, {}, "23.2.0") end
192+
get(path, {}, AvaTax::VERSION) end
193193

194194
# Retrieve all accounts
195195
#
@@ -208,7 +208,7 @@ def get_license_keys(id) path = "/api/v2/accounts/#{id}/licensekeys"
208208
#
209209
# ### Security Policies
210210
#
211-
# * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
211+
# * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, ECMUser, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
212212
# Swagger Name: AvaTaxClient
213213
# @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.
214214
# @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
@@ -217,7 +217,7 @@ def get_license_keys(id) path = "/api/v2/accounts/#{id}/licensekeys"
217217
# @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
218218
# @return [FetchResult]
219219
def query_accounts(options={}) path = "/api/v2/accounts"
220-
get(path, options, "23.2.0") end
220+
get(path, options, AvaTax::VERSION) end
221221

222222
# Change configuration settings for this account
223223
#
@@ -242,7 +242,7 @@ def query_accounts(options={}) path = "/api/v2/accounts"
242242
# @param model [AccountConfigurationModel[]]
243243
# @return [AccountConfigurationModel[]]
244244
def set_account_configuration(id, model) path = "/api/v2/accounts/#{id}/configuration"
245-
post(path, model, {}, "23.2.0") end
245+
post(path, model, {}, AvaTax::VERSION) end
246246
end
247247
end
248248
end

lib/avatax/client/addresses.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ module Addresses
3232
# @param textCase [String] selectable text case for address validation (See TextCase::* for a list of allowable values)
3333
# @return [Object]
3434
def resolve_address(options={}) path = "/api/v2/addresses/resolve"
35-
get(path, options, "23.2.0") end
35+
get(path, options, AvaTax::VERSION) end
3636

3737
# Retrieve geolocation information for a specified address
3838
#
@@ -51,7 +51,7 @@ def resolve_address(options={}) path = "/api/v2/addresses/resolve"
5151
# @param model [Object] The address to resolve
5252
# @return [Object]
5353
def resolve_address_post(model) path = "/api/v2/addresses/resolve"
54-
post(path, model, {}, "23.2.0") end
54+
post(path, model, {}, AvaTax::VERSION) end
5555
end
5656
end
5757
end

lib/avatax/client/advancedrules.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module AdvancedRules
1212
# @param model [Object] The lookup file you wish to create
1313
# @return [Object]
1414
def create_company_lookup_file(accountId, companyId, model) path = "/api/v2/advancedrules/accounts/#{accountId}/companies/#{companyId}/lookupFiles"
15-
post(path, model, {}, "23.2.0") end
15+
post(path, model, {}, AvaTax::VERSION) end
1616

1717
# Delete a lookup file
1818
#
@@ -22,7 +22,7 @@ def create_company_lookup_file(accountId, companyId, model) path = "/api/
2222
# @param id [String] The unique ID/GUID for the company lookup file to be deleted
2323
# @return [ErrorDetail[]]
2424
def delete_lookup_file(accountId, id) path = "/api/v2/advancedrules/accounts/#{accountId}/lookupFiles/#{id}"
25-
delete(path, {}, "23.2.0") end
25+
delete(path, {}, AvaTax::VERSION) end
2626

2727
# Get the lookup files for a company
2828
#
@@ -32,7 +32,7 @@ def delete_lookup_file(accountId, id) path = "/api/v2/advancedrules/accou
3232
# @param companyId [Integer] The ID of the company for which to retrieve lookup files
3333
# @return [FetchResult]
3434
def get_company_lookup_files(accountId, companyId) path = "/api/v2/advancedrules/accounts/#{accountId}/companies/#{companyId}/lookupFiles"
35-
get(path, {}, "23.2.0") end
35+
get(path, {}, AvaTax::VERSION) end
3636

3737
# Get a lookup file for an accountId and companyLookupFileId
3838
#
@@ -42,7 +42,7 @@ def get_company_lookup_files(accountId, companyId) path = "/api/v2/advanc
4242
# @param id [String] The unique ID/GUID of the company lookup file to return
4343
# @return [Object]
4444
def get_lookup_file(accountId, id) path = "/api/v2/advancedrules/accounts/#{accountId}/lookupFiles/#{id}"
45-
get(path, {}, "23.2.0") end
45+
get(path, {}, AvaTax::VERSION) end
4646

4747
# Update a lookup file
4848
#
@@ -53,7 +53,7 @@ def get_lookup_file(accountId, id) path = "/api/v2/advancedrules/accounts
5353
# @param model [Object] The new values to update the lookup file
5454
# @return [Object]
5555
def update_lookup_file(accountId, id, model) path = "/api/v2/advancedrules/accounts/#{accountId}/lookupFiles/#{id}"
56-
put(path, model, {}, "23.2.0") end
56+
put(path, model, {}, AvaTax::VERSION) end
5757
end
5858
end
5959
end

lib/avatax/client/ageverification.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ module AgeVerification
1919
# @param model [Object] Information about the individual whose age is being verified.
2020
# @return [Object]
2121
def find_age_verification(model) path = "/api/v2/ageverification/store/identity/find"
22-
put(path, model, {}, "") end
22+
put(path, model, {}, AvaTax::VERSION) end
2323

2424
# Stores an age verification response for the account.
2525
#
@@ -41,7 +41,7 @@ def find_age_verification(model) path = "/api/v2/ageverification/store/id
4141
# @param model [Object] Information about the individual whose age has been verified and the corresponding age verification response.
4242
# @return []
4343
def store_age_verification(model) path = "/api/v2/ageverification/store/identity"
44-
put(path, model, {}, "") end
44+
put(path, model, {}, AvaTax::VERSION) end
4545

4646
# Conditionally performs an age verification check. If a record matching the request is found in the internal store, the associated response is returned. Otherwise, an age verification check is performed and the response is stored if the individual is determined to be of age.
4747
#
@@ -60,7 +60,7 @@ def store_age_verification(model) path = "/api/v2/ageverification/store/i
6060
# @param model [Object] Information about the individual whose age is being verified.
6161
# @return [Object]
6262
def store_if_verified(model, options={}) path = "/api/v2/ageverification/store/identity/storeIfVerified"
63-
put(path, model, options, "") end
63+
put(path, model, options, AvaTax::VERSION) end
6464

6565
# Determines whether an individual meets or exceeds the minimum legal drinking age.
6666
#
@@ -82,7 +82,7 @@ def store_if_verified(model, options={}) path = "/api/v2/ageverification/
8282
# @param model [Object] Information about the individual whose age is being verified.
8383
# @return [Object]
8484
def verify_age(model, options={}) path = "/api/v2/ageverification/verify"
85-
post(path, model, options, "") end
85+
post(path, model, options, AvaTax::VERSION) end
8686
end
8787
end
8888
end

lib/avatax/client/avafileforms.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module AvaFileForms
1616
# @param model [AvaFileFormModel[]] The AvaFileForm you wish to create.
1717
# @return [AvaFileFormModel[]]
1818
def create_ava_file_forms(model) path = "/api/v2/avafileforms"
19-
post(path, model, {}, "23.2.0") end
19+
post(path, model, {}, AvaTax::VERSION) end
2020

2121
# Delete a single AvaFileForm
2222
#
@@ -30,7 +30,7 @@ def create_ava_file_forms(model) path = "/api/v2/avafileforms"
3030
# @param id [Integer] The ID of the AvaFileForm you wish to delete.
3131
# @return [ErrorDetail[]]
3232
def delete_ava_file_form(id) path = "/api/v2/avafileforms/#{id}"
33-
delete(path, {}, "23.2.0") end
33+
delete(path, {}, AvaTax::VERSION) end
3434

3535
# Retrieve a single AvaFileForm
3636
#
@@ -44,7 +44,7 @@ def delete_ava_file_form(id) path = "/api/v2/avafileforms/#{id}"
4444
# @param id [Integer] The primary key of this AvaFileForm
4545
# @return [Object]
4646
def get_ava_file_form(id) path = "/api/v2/avafileforms/#{id}"
47-
get(path, {}, "23.2.0") end
47+
get(path, {}, AvaTax::VERSION) end
4848

4949
# Retrieve all AvaFileForms
5050
#
@@ -62,7 +62,7 @@ def get_ava_file_form(id) path = "/api/v2/avafileforms/#{id}"
6262
# @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
6363
# @return [FetchResult]
6464
def query_ava_file_forms(options={}) path = "/api/v2/avafileforms"
65-
get(path, options, "23.2.0") end
65+
get(path, options, AvaTax::VERSION) end
6666

6767
# Update a AvaFileForm
6868
#
@@ -78,7 +78,7 @@ def query_ava_file_forms(options={}) path = "/api/v2/avafileforms"
7878
# @param model [Object] The AvaFileForm model you wish to update.
7979
# @return [Object]
8080
def update_ava_file_form(id, model) path = "/api/v2/avafileforms/#{id}"
81-
put(path, model, {}, "23.2.0") end
81+
put(path, model, {}, AvaTax::VERSION) end
8282
end
8383
end
8484
end

0 commit comments

Comments
 (0)