Skip to content

Commit

Permalink
Merge pull request #126 from avadev/22.6.1
Browse files Browse the repository at this point in the history
Update for 22.6.1
  • Loading branch information
svc-developer authored Jul 5, 2022
2 parents c7e1586 + 9a25813 commit 33e29cb
Show file tree
Hide file tree
Showing 39 changed files with 619 additions and 619 deletions.
44 changes: 22 additions & 22 deletions lib/avatax/client/accounts.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ module Accounts
#
# ### Security Policies
#
# * This API requires one of the following user roles: AccountAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
# * This API requires one of the following user roles: AccountAdmin, BatchServiceAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
# Swagger Name: AvaTaxClient
# @param id [Integer] The ID of the account you wish to update.
# @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, {}, "22.5.0") end
post(path, model, {}, "22.6.1") end

# Activate an account by accepting terms and conditions
#
Expand All @@ -45,13 +45,13 @@ def account_reset_license_key(id, model) path = "/api/v2/accounts/#{id}/r
#
# ### Security Policies
#
# * This API requires one of the following user roles: AccountAdmin, FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
# * This API requires one of the following user roles: AccountAdmin, BatchServiceAdmin, FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
# Swagger Name: AvaTaxClient
# @param id [Integer] The ID of the account to activate
# @param model [Object] The activation request
# @return [Object]
def activate_account(id, model) path = "/api/v2/accounts/#{id}/activate"
post(path, model, {}, "22.5.0") end
post(path, model, {}, "22.6.1") 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, 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, 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, "22.5.0") end
get(path, options, "22.6.1") end

# Create license key for this account
#
Expand All @@ -98,13 +98,13 @@ def audit_account(id, options={}) path = "/api/v2/accounts/#{id}/audit"
#
# ### Security Policies
#
# * This API requires one of the following user roles: AccountAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
# * This API requires one of the following user roles: AccountAdmin, BatchServiceAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
# Swagger Name: AvaTaxClient
# @param id [Integer] The ID of the account you wish to update.
# @param model [Object]
# @return [Object]
def create_license_key(id, model) path = "/api/v2/accounts/#{id}/licensekey"
post(path, model, {}, "22.5.0") end
post(path, model, {}, "22.6.1") end

# Delete license key for this account by license key name
#
Expand All @@ -116,13 +116,13 @@ def create_license_key(id, model) path = "/api/v2/accounts/#{id}/licensek
#
# ### Security Policies
#
# * This API requires one of the following user roles: AccountAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
# * This API requires one of the following user roles: AccountAdmin, BatchServiceAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
# Swagger Name: AvaTaxClient
# @param id [Integer] The ID of the account you wish to update.
# @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, {}, "22.5.0") end
delete(path, {}, "22.6.1") 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, 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, 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, "22.5.0") end
get(path, options, "22.6.1") 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, 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, 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, {}, "22.5.0") end
get(path, {}, "22.6.1") end

# Retrieve license key by license key name
#
# ### Security Policies
#
# * 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.
# * 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.
# 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, {}, "22.5.0") end
get(path, {}, "22.6.1") 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, 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, 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, {}, "22.5.0") end
get(path, {}, "22.6.1") 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, 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, 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, "22.5.0") end
get(path, options, "22.6.1") end

# Change configuration settings for this account
#
Expand All @@ -236,13 +236,13 @@ def query_accounts(options={}) path = "/api/v2/accounts"
#
# ### Security Policies
#
# * This API requires one of the following user roles: AccountAdmin, CSPTester, SSTAdmin, TechnicalSupportAdmin.
# * This API requires one of the following user roles: AccountAdmin, BatchServiceAdmin, CSPTester, SSTAdmin, TechnicalSupportAdmin.
# Swagger Name: AvaTaxClient
# @param id [Integer]
# @param model [AccountConfigurationModel[]]
# @return [AccountConfigurationModel[]]
def set_account_configuration(id, model) path = "/api/v2/accounts/#{id}/configuration"
post(path, model, {}, "22.5.0") end
post(path, model, {}, "22.6.1") end
end
end
end
8 changes: 4 additions & 4 deletions lib/avatax/client/addresses.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module Addresses
#
# ### Security Policies
#
# * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
# * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
# * This API depends on the following active services:*Required* (all): AutoAddress.
# Swagger Name: AvaTaxClient
# @param line1 [String] Line 1
Expand All @@ -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, "22.5.0") end
get(path, options, "22.6.1") end

# Retrieve geolocation information for a specified address
#
Expand All @@ -45,13 +45,13 @@ def resolve_address(options={}) path = "/api/v2/addresses/resolve"
#
# ### Security Policies
#
# * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
# * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
# * This API depends on the following active services:*Required* (all): AutoAddress.
# Swagger Name: AvaTaxClient
# @param model [Object] The address to resolve
# @return [Object]
def resolve_address_post(model) path = "/api/v2/addresses/resolve"
post(path, model, {}, "22.5.0") end
post(path, model, {}, "22.6.1") 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, {}, "22.5.0") end
post(path, model, {}, "22.6.1") 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, {}, "22.5.0") end
delete(path, {}, "22.6.1") 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, {}, "22.5.0") end
get(path, {}, "22.6.1") 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, {}, "22.5.0") end
get(path, {}, "22.6.1") 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, {}, "22.5.0") end
put(path, model, {}, "22.6.1") end
end
end
end
Loading

0 comments on commit 33e29cb

Please sign in to comment.