Skip to content

Commit

Permalink
Merge pull request #147 from avadev/23.3.0
Browse files Browse the repository at this point in the history
Update for 23.3.0
  • Loading branch information
svc-developer authored Mar 16, 2023
2 parents c2cc356 + 420e7ed commit 602a88a
Show file tree
Hide file tree
Showing 41 changed files with 418 additions and 418 deletions.
34 changes: 17 additions & 17 deletions lib/avatax/client/accounts.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module Accounts
# @param model [Object] A request confirming that you wish to reset the license key of this account.
# @return [Object]
def account_reset_license_key(id, model) path = "/api/v2/accounts/#{id}/resetlicensekey"
post(path, model, {}, "23.2.0") end
post(path, model, {}, AvaTax::VERSION) end

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

# Retrieve audit history for an account.
#
Expand All @@ -72,7 +72,7 @@ def activate_account(id, model) path = "/api/v2/accounts/#{id}/activate"
#
# ### Security Policies
#
# * 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.
# * 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.
# Swagger Name: AvaTaxClient
# @param id [Integer] The ID of the account you wish to audit.
# @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.
Expand All @@ -81,7 +81,7 @@ def activate_account(id, model) path = "/api/v2/accounts/#{id}/activate"
# @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
# @return [FetchResult]
def audit_account(id, options={}) path = "/api/v2/accounts/#{id}/audit"
get(path, options, "23.2.0") end
get(path, options, AvaTax::VERSION) end

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

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

# Retrieve a single account
#
Expand All @@ -134,13 +134,13 @@ def delete_license_key(id, licensekeyname) path = "/api/v2/accounts/#{id}
#
# ### Security Policies
#
# * 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.
# * 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.
# Swagger Name: AvaTaxClient
# @param id [Integer] The ID of the account to retrieve
# @param include [String] A comma separated list of special fetch options
# @return [Object]
def get_account(id, options={}) path = "/api/v2/accounts/#{id}"
get(path, options, "23.2.0") end
get(path, options, AvaTax::VERSION) end

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

# Retrieve license key by license key name
#
# ### Security Policies
#
# * 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.
# * 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.
# Swagger Name: AvaTaxClient
# @param id [Integer] The ID of the account to retrieve
# @param licensekeyname [String] The ID of the account to retrieve
# @return [Object]
def get_license_key(id, licensekeyname) path = "/api/v2/accounts/#{id}/licensekey/#{licensekeyname}"
get(path, {}, "23.2.0") end
get(path, {}, AvaTax::VERSION) end

# Retrieve all license keys for this account
#
# Gets list of all the license keys used by the account.
#
# ### Security Policies
#
# * 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.
# * 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.
# Swagger Name: AvaTaxClient
# @param id [Integer] The ID of the account to retrieve
# @return [AccountLicenseKeyModel[]]
def get_license_keys(id) path = "/api/v2/accounts/#{id}/licensekeys"
get(path, {}, "23.2.0") end
get(path, {}, AvaTax::VERSION) end

# Retrieve all accounts
#
Expand All @@ -208,7 +208,7 @@ def get_license_keys(id) path = "/api/v2/accounts/#{id}/licensekeys"
#
# ### Security Policies
#
# * 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.
# * 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.
# Swagger Name: AvaTaxClient
# @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.
# @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
Expand All @@ -217,7 +217,7 @@ def get_license_keys(id) path = "/api/v2/accounts/#{id}/licensekeys"
# @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
# @return [FetchResult]
def query_accounts(options={}) path = "/api/v2/accounts"
get(path, options, "23.2.0") end
get(path, options, AvaTax::VERSION) end

# Change configuration settings for this account
#
Expand All @@ -242,7 +242,7 @@ def query_accounts(options={}) path = "/api/v2/accounts"
# @param model [AccountConfigurationModel[]]
# @return [AccountConfigurationModel[]]
def set_account_configuration(id, model) path = "/api/v2/accounts/#{id}/configuration"
post(path, model, {}, "23.2.0") end
post(path, model, {}, AvaTax::VERSION) end
end
end
end
4 changes: 2 additions & 2 deletions lib/avatax/client/addresses.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ module Addresses
# @param textCase [String] selectable text case for address validation (See TextCase::* for a list of allowable values)
# @return [Object]
def resolve_address(options={}) path = "/api/v2/addresses/resolve"
get(path, options, "23.2.0") end
get(path, options, AvaTax::VERSION) end

# Retrieve geolocation information for a specified address
#
Expand All @@ -51,7 +51,7 @@ def resolve_address(options={}) path = "/api/v2/addresses/resolve"
# @param model [Object] The address to resolve
# @return [Object]
def resolve_address_post(model) path = "/api/v2/addresses/resolve"
post(path, model, {}, "23.2.0") end
post(path, model, {}, AvaTax::VERSION) end
end
end
end
10 changes: 5 additions & 5 deletions lib/avatax/client/advancedrules.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module AdvancedRules
# @param model [Object] The lookup file you wish to create
# @return [Object]
def create_company_lookup_file(accountId, companyId, model) path = "/api/v2/advancedrules/accounts/#{accountId}/companies/#{companyId}/lookupFiles"
post(path, model, {}, "23.2.0") end
post(path, model, {}, AvaTax::VERSION) end

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

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

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

# Update a lookup file
#
Expand All @@ -53,7 +53,7 @@ def get_lookup_file(accountId, id) path = "/api/v2/advancedrules/accounts
# @param model [Object] The new values to update the lookup file
# @return [Object]
def update_lookup_file(accountId, id, model) path = "/api/v2/advancedrules/accounts/#{accountId}/lookupFiles/#{id}"
put(path, model, {}, "23.2.0") end
put(path, model, {}, AvaTax::VERSION) end
end
end
end
8 changes: 4 additions & 4 deletions lib/avatax/client/ageverification.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module AgeVerification
# @param model [Object] Information about the individual whose age is being verified.
# @return [Object]
def find_age_verification(model) path = "/api/v2/ageverification/store/identity/find"
put(path, model, {}, "") end
put(path, model, {}, AvaTax::VERSION) end

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

# 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.
#
Expand All @@ -60,7 +60,7 @@ def store_age_verification(model) path = "/api/v2/ageverification/store/i
# @param model [Object] Information about the individual whose age is being verified.
# @return [Object]
def store_if_verified(model, options={}) path = "/api/v2/ageverification/store/identity/storeIfVerified"
put(path, model, options, "") end
put(path, model, options, AvaTax::VERSION) end

# Determines whether an individual meets or exceeds the minimum legal drinking age.
#
Expand All @@ -82,7 +82,7 @@ def store_if_verified(model, options={}) path = "/api/v2/ageverification/
# @param model [Object] Information about the individual whose age is being verified.
# @return [Object]
def verify_age(model, options={}) path = "/api/v2/ageverification/verify"
post(path, model, options, "") end
post(path, model, options, AvaTax::VERSION) end
end
end
end
10 changes: 5 additions & 5 deletions lib/avatax/client/avafileforms.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module AvaFileForms
# @param model [AvaFileFormModel[]] The AvaFileForm you wish to create.
# @return [AvaFileFormModel[]]
def create_ava_file_forms(model) path = "/api/v2/avafileforms"
post(path, model, {}, "23.2.0") end
post(path, model, {}, AvaTax::VERSION) end

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

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

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

# Update a AvaFileForm
#
Expand All @@ -78,7 +78,7 @@ def query_ava_file_forms(options={}) path = "/api/v2/avafileforms"
# @param model [Object] The AvaFileForm model you wish to update.
# @return [Object]
def update_ava_file_form(id, model) path = "/api/v2/avafileforms/#{id}"
put(path, model, {}, "23.2.0") end
put(path, model, {}, AvaTax::VERSION) end
end
end
end
Loading

0 comments on commit 602a88a

Please sign in to comment.