Skip to content

Commit

Permalink
Merge pull request #132 from avadev/22.9.0
Browse files Browse the repository at this point in the history
Update for 22.9.0
  • Loading branch information
svc-developer authored Sep 15, 2022
2 parents 51e8a2f + 4f636b9 commit 3d70830
Show file tree
Hide file tree
Showing 39 changed files with 354 additions and 354 deletions.
22 changes: 11 additions & 11 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, {}, "22.8.0") end
post(path, model, {}, "22.9.0") 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, {}, "22.8.0") end
post(path, model, {}, "22.9.0") end

# Retrieve audit history for an account.
#
Expand Down Expand Up @@ -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.8.0") end
get(path, options, "22.9.0") 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, {}, "22.8.0") end
post(path, model, {}, "22.9.0") 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, {}, "22.8.0") end
delete(path, {}, "22.9.0") end

# Retrieve a single account
#
Expand All @@ -140,7 +140,7 @@ def delete_license_key(id, licensekeyname) path = "/api/v2/accounts/#{id}
# @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.8.0") end
get(path, options, "22.9.0") end

# Get configuration settings for this account
#
Expand All @@ -164,7 +164,7 @@ def get_account(id, options={}) path = "/api/v2/accounts/#{id}"
# @param id [Integer]
# @return [AccountConfigurationModel[]]
def get_account_configuration(id) path = "/api/v2/accounts/#{id}/configuration"
get(path, {}, "22.8.0") end
get(path, {}, "22.9.0") end

# Retrieve license key by license key name
#
Expand All @@ -176,7 +176,7 @@ def get_account_configuration(id) path = "/api/v2/accounts/#{id}/configur
# @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.8.0") end
get(path, {}, "22.9.0") end

# Retrieve all license keys for this account
#
Expand All @@ -189,7 +189,7 @@ def get_license_key(id, licensekeyname) path = "/api/v2/accounts/#{id}/li
# @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.8.0") end
get(path, {}, "22.9.0") end

# Retrieve all accounts
#
Expand Down Expand Up @@ -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.8.0") end
get(path, options, "22.9.0") 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, {}, "22.8.0") end
post(path, model, {}, "22.9.0") 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, "22.8.0") end
get(path, options, "22.9.0") 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, {}, "22.8.0") end
post(path, model, {}, "22.9.0") 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.8.0") end
post(path, model, {}, "22.9.0") 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.8.0") end
delete(path, {}, "22.9.0") 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.8.0") end
get(path, {}, "22.9.0") 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.8.0") end
get(path, {}, "22.9.0") 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.8.0") end
put(path, model, {}, "22.9.0") 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, {}, "22.8.0") end
post(path, model, {}, "22.9.0") 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, {}, "22.8.0") end
delete(path, {}, "22.9.0") 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, {}, "22.8.0") end
get(path, {}, "22.9.0") 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, "22.8.0") end
get(path, options, "22.9.0") 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, {}, "22.8.0") end
put(path, model, {}, "22.9.0") end
end
end
end
16 changes: 8 additions & 8 deletions lib/avatax/client/batches.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module Batches
# @param id [Integer] The ID of the batch to cancel.
# @return [Object]
def cancel_batch(companyId, id) path = "/api/v2/companies/#{companyId}/batches/#{id}/cancel"
post(path, {}, "22.8.0") end
post(path, {}, "22.9.0") end

# Create a new batch
#
Expand Down Expand Up @@ -58,7 +58,7 @@ def cancel_batch(companyId, id) path = "/api/v2/companies/#{companyId}/ba
# @param model [BatchModel[]] The batch you wish to create.
# @return [BatchModel[]]
def create_batches(companyId, model) path = "/api/v2/companies/#{companyId}/batches"
post(path, model, {}, "22.8.0") end
post(path, model, {}, "22.9.0") end

# Create a new transaction batch
#
Expand Down Expand Up @@ -88,7 +88,7 @@ def create_batches(companyId, model) path = "/api/v2/companies/#{companyI
# @param model [Object] The transaction batch you wish to create.
# @return [Object]
def create_transaction_batch(companyId, model) path = "/api/v2/companies/#{companyId}/batches/transactions"
post(path, model, {}, "22.8.0") end
post(path, model, {}, "22.9.0") end

# Delete a single batch
#
Expand All @@ -111,7 +111,7 @@ def create_transaction_batch(companyId, model) path = "/api/v2/companies/
# @param id [Integer] The ID of the batch to delete.
# @return [ErrorDetail[]]
def delete_batch(companyId, id) path = "/api/v2/companies/#{companyId}/batches/#{id}"
delete(path, {}, "22.8.0") end
delete(path, {}, "22.9.0") end

# Download a single batch file
#
Expand All @@ -126,7 +126,7 @@ def delete_batch(companyId, id) path = "/api/v2/companies/#{companyId}/ba
# @param id [Integer] The primary key of this batch file object
# @return [Object]
def download_batch(companyId, batchId, id) path = "/api/v2/companies/#{companyId}/batches/#{batchId}/files/#{id}/attachment"
get(path, {}, "22.8.0") end
get(path, {}, "22.9.0") end

# Retrieve a single batch
#
Expand Down Expand Up @@ -154,7 +154,7 @@ def download_batch(companyId, batchId, id) path = "/api/v2/companies/#{co
# @param id [Integer] The primary key of this batch
# @return [Object]
def get_batch(companyId, id) path = "/api/v2/companies/#{companyId}/batches/#{id}"
get(path, {}, "22.8.0") end
get(path, {}, "22.9.0") end

# Retrieve all batches for this company
#
Expand Down Expand Up @@ -192,7 +192,7 @@ def get_batch(companyId, id) path = "/api/v2/companies/#{companyId}/batch
# @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
# @return [FetchResult]
def list_batches_by_company(companyId, options={}) path = "/api/v2/companies/#{companyId}/batches"
get(path, options, "22.8.0") end
get(path, options, "22.9.0") end

# Retrieve all batches
#
Expand Down Expand Up @@ -226,7 +226,7 @@ def list_batches_by_company(companyId, options={}) path = "/api/v2/compan
# @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
# @return [FetchResult]
def query_batches(options={}) path = "/api/v2/batches"
get(path, options, "22.8.0") end
get(path, options, "22.9.0") end
end
end
end
6 changes: 3 additions & 3 deletions lib/avatax/client/certexpressinvites.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ module CertExpressInvites
# @param model [CreateCertExpressInvitationModel[]] the requests to send out to customers
# @return [CertExpressInvitationStatusModel[]]
def create_cert_express_invitation(companyId, customerCode, model) path = "/api/v2/companies/#{companyId}/customers/#{customerCode}/certexpressinvites"
post(path, model, {}, "22.8.0") end
post(path, model, {}, "22.9.0") end

# Retrieve a single CertExpress invitation
#
Expand Down Expand Up @@ -62,7 +62,7 @@ def create_cert_express_invitation(companyId, customerCode, model) path =
# @param include [String] OPTIONAL: A comma separated list of special fetch options. No options are defined at this time.
# @return [Object]
def get_cert_express_invitation(companyId, customerCode, id, options={}) path = "/api/v2/companies/#{companyId}/customers/#{customerCode}/certexpressinvites/#{id}"
get(path, options, "22.8.0") end
get(path, options, "22.9.0") end

# List CertExpress invitations
#
Expand Down Expand Up @@ -95,7 +95,7 @@ def get_cert_express_invitation(companyId, customerCode, id, options={})
# @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
# @return [FetchResult]
def list_cert_express_invitations(companyId, options={}) path = "/api/v2/companies/#{companyId}/certexpressinvites"
get(path, options, "22.8.0") end
get(path, options, "22.9.0") end
end
end
end
Loading

0 comments on commit 3d70830

Please sign in to comment.