diff --git a/lib/avatax/client/accounts.rb b/lib/avatax/client/accounts.rb index d12a60e..8eff04b 100644 --- a/lib/avatax/client/accounts.rb +++ b/lib/avatax/client/accounts.rb @@ -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, {}, "21.12.0") end + post(path, model, {}, "22.2.0") end # Activate an account by accepting terms and conditions # @@ -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, {}, "21.12.0") end + post(path, model, {}, "22.2.0") end # Retrieve audit history for an account. # @@ -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, "21.12.0") end + get(path, options, "22.2.0") end # Create license key for this account # @@ -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, {}, "21.12.0") end + post(path, model, {}, "22.2.0") end # Delete license key for this account by license key name # @@ -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, {}, "21.12.0") end + delete(path, {}, "22.2.0") end # Retrieve a single account # @@ -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, "21.12.0") end + get(path, options, "22.2.0") end # Get configuration settings for this account # @@ -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, {}, "21.12.0") end + get(path, {}, "22.2.0") end # Retrieve license key by license key name # @@ -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, {}, "21.12.0") end + get(path, {}, "22.2.0") end # Retrieve all license keys for this account # @@ -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, {}, "21.12.0") end + get(path, {}, "22.2.0") end # Retrieve all accounts # @@ -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, "21.12.0") end + get(path, options, "22.2.0") end # Change configuration settings for this account # @@ -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, {}, "21.12.0") end + post(path, model, {}, "22.2.0") end end end end \ No newline at end of file diff --git a/lib/avatax/client/addresses.rb b/lib/avatax/client/addresses.rb index ab984a0..a744ba6 100644 --- a/lib/avatax/client/addresses.rb +++ b/lib/avatax/client/addresses.rb @@ -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, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve geolocation information for a specified address # @@ -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, {}, "21.12.0") end + post(path, model, {}, "22.2.0") end end end end \ No newline at end of file diff --git a/lib/avatax/client/advancedrules.rb b/lib/avatax/client/advancedrules.rb index a33eafb..8a6f2e4 100644 --- a/lib/avatax/client/advancedrules.rb +++ b/lib/avatax/client/advancedrules.rb @@ -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, {}, "21.12.0") end + post(path, model, {}, "22.2.0") end # Delete a lookup file # @@ -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, {}, "21.12.0") end + delete(path, {}, "22.2.0") end # Get the lookup files for a company # @@ -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, {}, "21.12.0") end + get(path, {}, "22.2.0") end # Get a lookup file for an accountId and companyLookupFileId # @@ -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, {}, "21.12.0") end + get(path, {}, "22.2.0") end # Update a lookup file # @@ -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, {}, "21.12.0") end + put(path, model, {}, "22.2.0") end end end end \ No newline at end of file diff --git a/lib/avatax/client/avafileforms.rb b/lib/avatax/client/avafileforms.rb index 68d192a..3a1c87f 100644 --- a/lib/avatax/client/avafileforms.rb +++ b/lib/avatax/client/avafileforms.rb @@ -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, {}, "21.12.0") end + post(path, model, {}, "22.2.0") end # Delete a single AvaFileForm # @@ -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, {}, "21.12.0") end + delete(path, {}, "22.2.0") end # Retrieve a single AvaFileForm # @@ -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, {}, "21.12.0") end + get(path, {}, "22.2.0") end # Retrieve all AvaFileForms # @@ -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, "21.12.0") end + get(path, options, "22.2.0") end # Update a AvaFileForm # @@ -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, {}, "21.12.0") end + put(path, model, {}, "22.2.0") end end end end \ No newline at end of file diff --git a/lib/avatax/client/batches.rb b/lib/avatax/client/batches.rb index da44844..110cf4e 100644 --- a/lib/avatax/client/batches.rb +++ b/lib/avatax/client/batches.rb @@ -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, {}, "21.12.0") end + post(path, {}, "22.2.0") end # Create a new batch # @@ -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, {}, "21.12.0") end + post(path, model, {}, "22.2.0") end # Create a new transaction batch # @@ -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, {}, "21.12.0") end + post(path, model, {}, "22.2.0") end # Delete a single batch # @@ -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, {}, "21.12.0") end + delete(path, {}, "22.2.0") end # Download a single batch file # @@ -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, {}, "21.12.0") end + get(path, {}, "22.2.0") end # Retrieve a single batch # @@ -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, {}, "21.12.0") end + get(path, {}, "22.2.0") end # Retrieve all batches for this company # @@ -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, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve all batches # @@ -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, "21.12.0") end + get(path, options, "22.2.0") end end end end \ No newline at end of file diff --git a/lib/avatax/client/certexpressinvites.rb b/lib/avatax/client/certexpressinvites.rb index 3aa1a5a..758d166 100644 --- a/lib/avatax/client/certexpressinvites.rb +++ b/lib/avatax/client/certexpressinvites.rb @@ -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, {}, "21.12.0") end + post(path, model, {}, "22.2.0") end # Retrieve a single CertExpress invitation # @@ -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, "21.12.0") end + get(path, options, "22.2.0") end # List CertExpress invitations # @@ -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, "21.12.0") end + get(path, options, "22.2.0") end end end end \ No newline at end of file diff --git a/lib/avatax/client/certificates.rb b/lib/avatax/client/certificates.rb index d2ab120..9f435df 100644 --- a/lib/avatax/client/certificates.rb +++ b/lib/avatax/client/certificates.rb @@ -37,7 +37,7 @@ module Certificates # @param model [CertificateModel[]] Certificates to be created # @return [CertificateModel[]] def create_certificates(companyId, model, options={}) path = "/api/v2/companies/#{companyId}/certificates" - post(path, model, options, "21.12.0") end + post(path, model, options, "22.2.0") end # Revoke and delete a certificate # @@ -64,7 +64,7 @@ def create_certificates(companyId, model, options={}) path = "/api/v2/com # @param id [Integer] The unique ID number of this certificate # @return [ErrorDetail[]] def delete_certificate(companyId, id) path = "/api/v2/companies/#{companyId}/certificates/#{id}" - delete(path, {}, "21.12.0") end + delete(path, {}, "22.2.0") end # Download an image for this certificate # @@ -94,7 +94,7 @@ def delete_certificate(companyId, id) path = "/api/v2/companies/#{company # @param type [String] The data format in which to retrieve the certificate image (See CertificatePreviewType::* for a list of allowable values) # @return [Object] def download_certificate_image(companyId, id, options={}) path = "/api/v2/companies/#{companyId}/certificates/#{id}/attachment" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve a single certificate # @@ -126,7 +126,7 @@ def download_certificate_image(companyId, id, options={}) path = "/api/v2 # @param include [String] OPTIONAL: A comma separated list of special fetch options. You can specify one or more of the following: * customers - Retrieves the list of customers linked to the certificate. * po_numbers - Retrieves all PO numbers tied to the certificate. * attributes - Retrieves all attributes applied to the certificate. # @return [Object] def get_certificate(companyId, id, options={}) path = "/api/v2/companies/#{companyId}/certificates/#{id}" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Check a company's exemption certificate status. # @@ -146,7 +146,7 @@ def get_certificate(companyId, id, options={}) path = "/api/v2/companies/ # @param companyId [Integer] The company ID to check # @return [Object] def get_certificate_setup(companyId) path = "/api/v2/companies/#{companyId}/certificates/setup" - get(path, {}, "21.12.0") end + get(path, {}, "22.2.0") end # Link attributes to a certificate # @@ -175,7 +175,7 @@ def get_certificate_setup(companyId) path = "/api/v2/companies/#{companyI # @param model [CertificateAttributeModel[]] The list of attributes to link to this certificate. # @return [FetchResult] def link_attributes_to_certificate(companyId, id, model) path = "/api/v2/companies/#{companyId}/certificates/#{id}/attributes/link" - post(path, model, {}, "21.12.0") end + post(path, model, {}, "22.2.0") end # Link customers to a certificate # @@ -205,7 +205,7 @@ def link_attributes_to_certificate(companyId, id, model) path = "/api/v2/ # @param model [Object] The list of customers needed be added to the Certificate for exemption # @return [FetchResult] def link_customers_to_certificate(companyId, id, model) path = "/api/v2/companies/#{companyId}/certificates/#{id}/customers/link" - post(path, model, {}, "21.12.0") end + post(path, model, {}, "22.2.0") end # List all attributes applied to this certificate # @@ -233,7 +233,7 @@ def link_customers_to_certificate(companyId, id, model) path = "/api/v2/c # @param id [Integer] The unique ID number of this certificate # @return [FetchResult] def list_attributes_for_certificate(companyId, id) path = "/api/v2/companies/#{companyId}/certificates/#{id}/attributes" - get(path, {}, "21.12.0") end + get(path, {}, "22.2.0") end # List customers linked to this certificate # @@ -262,7 +262,7 @@ def list_attributes_for_certificate(companyId, id) path = "/api/v2/compan # @param include [String] OPTIONAL: A comma separated list of special fetch options. No options are currently available when fetching customers. # @return [FetchResult] def list_customers_for_certificate(companyId, id, options={}) path = "/api/v2/companies/#{companyId}/certificates/#{id}/customers" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # List all certificates for a company # @@ -297,7 +297,7 @@ def list_customers_for_certificate(companyId, id, options={}) path = "/ap # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def query_certificates(companyId, options={}) path = "/api/v2/companies/#{companyId}/certificates" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Request setup of exemption certificates for this company. # @@ -319,7 +319,7 @@ def query_certificates(companyId, options={}) path = "/api/v2/companies/# # @param companyId [Integer] # @return [Object] def request_certificate_setup(companyId) path = "/api/v2/companies/#{companyId}/certificates/setup" - post(path, {}, "21.12.0") end + post(path, {}, "22.2.0") end # Unlink attributes from a certificate # @@ -348,7 +348,7 @@ def request_certificate_setup(companyId) path = "/api/v2/companies/#{comp # @param model [CertificateAttributeModel[]] The list of attributes to unlink from this certificate. # @return [FetchResult] def unlink_attributes_from_certificate(companyId, id, model) path = "/api/v2/companies/#{companyId}/certificates/#{id}/attributes/unlink" - post(path, model, {}, "21.12.0") end + post(path, model, {}, "22.2.0") end # Unlink customers from a certificate # @@ -379,7 +379,7 @@ def unlink_attributes_from_certificate(companyId, id, model) path = "/api # @param model [Object] The list of customers to unlink from this certificate # @return [FetchResult] def unlink_customers_from_certificate(companyId, id, model) path = "/api/v2/companies/#{companyId}/certificates/#{id}/customers/unlink" - post(path, model, {}, "21.12.0") end + post(path, model, {}, "22.2.0") end # Update a single certificate # @@ -405,7 +405,7 @@ def unlink_customers_from_certificate(companyId, id, model) path = "/api/ # @param model [Object] The new certificate object that will replace the existing one # @return [Object] def update_certificate(companyId, id, model) path = "/api/v2/companies/#{companyId}/certificates/#{id}" - put(path, model, {}, "21.12.0") end + put(path, model, {}, "22.2.0") end # Upload an image or PDF attachment for this certificate # @@ -434,7 +434,7 @@ def update_certificate(companyId, id, model) path = "/api/v2/companies/#{ # @param file [Object] The exemption certificate file you wanted to upload. Accepted formats are: PDF, JPEG, TIFF, PNG. # @return [String] def upload_certificate_image(companyId, id) path = "/api/v2/companies/#{companyId}/certificates/#{id}/attachment" - post(path, {}, "21.12.0") end + post(path, {}, "22.2.0") end end end end \ No newline at end of file diff --git a/lib/avatax/client/companies.rb b/lib/avatax/client/companies.rb index 1cb5d38..eb6cfae 100644 --- a/lib/avatax/client/companies.rb +++ b/lib/avatax/client/companies.rb @@ -36,7 +36,7 @@ module Companies # @param id [Integer] The ID of the company to check if its integration is certified. # @return [String] def certify_integration(id) path = "/api/v2/companies/#{id}/certify" - get(path, {}, "21.12.0") end + get(path, {}, "22.2.0") end # Change the filing status of this company # @@ -62,7 +62,7 @@ def certify_integration(id) path = "/api/v2/companies/#{id}/certify" # @param model [Object] # @return [String] def change_filing_status(id, model) path = "/api/v2/companies/#{id}/filingstatus" - post(path, model, {}, "21.12.0") end + post(path, model, {}, "22.2.0") end # Quick setup for a company with a single physical address # @@ -86,7 +86,7 @@ def change_filing_status(id, model) path = "/api/v2/companies/#{id}/filin # @param model [Object] Information about the company you wish to create. # @return [Object] def company_initialize(model) path = "/api/v2/companies/initialize" - post(path, model, {}, "21.12.0") end + post(path, model, {}, "22.2.0") end # Create new companies # @@ -103,7 +103,7 @@ def company_initialize(model) path = "/api/v2/companies/initialize" # @param model [CompanyModel[]] Either a single company object or an array of companies to create # @return [CompanyModel[]] def create_companies(model) path = "/api/v2/companies" - post(path, model, {}, "21.12.0") end + post(path, model, {}, "22.2.0") end # Add parameters to a company. # @@ -127,7 +127,7 @@ def create_companies(model) path = "/api/v2/companies" # @param model [CompanyParameterDetailModel[]] The company parameters you wish to create. # @return [CompanyParameterDetailModel[]] def create_company_parameters(companyId, model) path = "/api/v2/companies/#{companyId}/parameters" - post(path, model, {}, "21.12.0") end + post(path, model, {}, "22.2.0") end # Request managed returns funding setup for a company # @@ -151,7 +151,7 @@ def create_company_parameters(companyId, model) path = "/api/v2/companies # @param model [Object] The funding initialization request # @return [Object] def create_funding_request(id, model) path = "/api/v2/companies/#{id}/funding/setup" - post(path, model, {}, "21.12.0") end + post(path, model, {}, "22.2.0") end # Delete a single company # @@ -164,7 +164,7 @@ def create_funding_request(id, model) path = "/api/v2/companies/#{id}/fun # @param id [Integer] The ID of the company you wish to delete. # @return [ErrorDetail[]] def delete_company(id) path = "/api/v2/companies/#{id}" - delete(path, {}, "21.12.0") end + delete(path, {}, "22.2.0") end # Delete a single company parameter # @@ -183,7 +183,7 @@ def delete_company(id) path = "/api/v2/companies/#{id}" # @param id [Integer] The parameter id # @return [ErrorDetail[]] def delete_company_parameter(companyId, id) path = "/api/v2/companies/#{companyId}/parameters/#{id}" - delete(path, {}, "21.12.0") end + delete(path, {}, "22.2.0") end # Check the funding configuration of a company # @@ -200,7 +200,7 @@ def delete_company_parameter(companyId, id) path = "/api/v2/companies/#{c # @param companyId [Integer] The unique identifier of the company # @return [Object] def funding_configuration_by_company(companyId) path = "/api/v2/companies/#{companyId}/funding/configuration" - get(path, {}, "21.12.0") end + get(path, {}, "22.2.0") end # Check the funding configuration of a company # @@ -218,7 +218,7 @@ def funding_configuration_by_company(companyId) path = "/api/v2/companies # @param currency [String] The currency of the funding. USD and CAD are the only valid currencies # @return [FundingConfigurationModel[]] def funding_configurations_by_company_and_currency(companyId, options={}) path = "/api/v2/companies/#{companyId}/funding/configurations" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve a single company # @@ -244,7 +244,7 @@ def funding_configurations_by_company_and_currency(companyId, options={}) # @param include [String] OPTIONAL: A comma separated list of special fetch options. * Child objects - Specify one or more of the following to retrieve objects related to each company: "Contacts", "FilingCalendars", "Items", "Locations", "Nexus", "TaxCodes", "NonReportingChildren" or "TaxRules". * Deleted objects - Specify "FetchDeleted" to retrieve information about previously deleted objects. # @return [Object] def get_company(id, options={}) path = "/api/v2/companies/#{id}" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Get configuration settings for this company # @@ -268,7 +268,7 @@ def get_company(id, options={}) path = "/api/v2/companies/#{id}" # @param id [Integer] # @return [CompanyConfigurationModel[]] def get_company_configuration(id) path = "/api/v2/companies/#{id}/configuration" - get(path, {}, "21.12.0") end + get(path, {}, "22.2.0") end # Retrieve a single company parameter # @@ -288,7 +288,7 @@ def get_company_configuration(id) path = "/api/v2/companies/#{id}/configu # @param id [Integer] # @return [Object] def get_company_parameter_detail(companyId, id) path = "/api/v2/companies/#{companyId}/parameters/#{id}" - get(path, {}, "21.12.0") end + get(path, {}, "22.2.0") end # Get this company's filing status # @@ -314,7 +314,26 @@ def get_company_parameter_detail(companyId, id) path = "/api/v2/companies # @param id [Integer] # @return [String] def get_filing_status(id) path = "/api/v2/companies/#{id}/filingstatus" - get(path, {}, "21.12.0") end + get(path, {}, "22.2.0") end + + # Get ACH entry detail report for company and period + # + # This API is available by invitation only. + # Requires a subscription to Avalara Managed Returns or SST Certified Service Provider. + # Returns a list of ACH entry details for the given company and period. + # Each object in the result is an ach entry trace record for a payment made on behalf of this company. + # + # ### Security Policies + # + # * This API depends on the following active services:*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp. + # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, ProStoresOperator, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. + # Swagger Name: AvaTaxClient + # @param id [Integer] The unique identifier of the company + # @param periodyear [Integer] The period year + # @param periodmonth [Integer] The period month + # @return [ACHEntryDetailModel[]] + def list_a_c_h_entry_details_for_company(id, periodyear, periodmonth) path = "/api/v2/companies/#{id}/paymentdetails/#{periodyear}/#{periodmonth}" + get(path, {}, "22.2.0") end # Retrieve parameters for a company # @@ -340,7 +359,7 @@ def get_filing_status(id) path = "/api/v2/companies/#{id}/filingstatus" # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_company_parameter_details(companyId, options={}) path = "/api/v2/companies/#{companyId}/parameters" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Check managed returns funding status for a company # @@ -357,7 +376,7 @@ def list_company_parameter_details(companyId, options={}) path = "/api/v2 # @param id [Integer] The unique identifier of the company # @return [FundingStatusModel[]] def list_funding_requests_by_company(id) path = "/api/v2/companies/#{id}/funding" - get(path, {}, "21.12.0") end + get(path, {}, "22.2.0") end # Retrieve a list of MRS Companies with account # @@ -371,7 +390,7 @@ def list_funding_requests_by_company(id) path = "/api/v2/companies/#{id}/ # Swagger Name: AvaTaxClient # @return [FetchResult] def list_mrs_companies() path = "/api/v2/companies/mrs" - get(path, {}, "21.12.0") end + get(path, {}, "22.2.0") end # Retrieve all companies # @@ -404,7 +423,7 @@ def list_mrs_companies() path = "/api/v2/companies/mrs" # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def query_companies(options={}) path = "/api/v2/companies" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Change configuration settings for this company # @@ -429,7 +448,7 @@ def query_companies(options={}) path = "/api/v2/companies" # @param model [CompanyConfigurationModel[]] # @return [CompanyConfigurationModel[]] def set_company_configuration(id, model) path = "/api/v2/companies/#{id}/configuration" - post(path, model, {}, "21.12.0") end + post(path, model, {}, "22.2.0") end # Update a single company # @@ -453,7 +472,7 @@ def set_company_configuration(id, model) path = "/api/v2/companies/#{id}/ # @param model [Object] The company object you wish to update. # @return [Object] def update_company(id, model) path = "/api/v2/companies/#{id}" - put(path, model, {}, "21.12.0") end + put(path, model, {}, "22.2.0") end # Update a company parameter # @@ -474,7 +493,7 @@ def update_company(id, model) path = "/api/v2/companies/#{id}" # @param model [Object] The company parameter object you wish to update. # @return [Object] def update_company_parameter_detail(companyId, id, model) path = "/api/v2/companies/#{companyId}/parameters/#{id}" - put(path, model, {}, "21.12.0") end + put(path, model, {}, "22.2.0") end end end end \ No newline at end of file diff --git a/lib/avatax/client/compliance.rb b/lib/avatax/client/compliance.rb index cacfa40..126aa0a 100644 --- a/lib/avatax/client/compliance.rb +++ b/lib/avatax/client/compliance.rb @@ -21,7 +21,7 @@ module Compliance # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [Object] def query_tax_authority_jurisdiction_rates(options={}) path = "/api/v2/compliance/taxauthorityjurisdictionrates" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end end end end \ No newline at end of file diff --git a/lib/avatax/client/contacts.rb b/lib/avatax/client/contacts.rb index 9e52578..7f3bd6f 100644 --- a/lib/avatax/client/contacts.rb +++ b/lib/avatax/client/contacts.rb @@ -17,7 +17,7 @@ module Contacts # @param model [ContactModel[]] The contacts you wish to create. # @return [ContactModel[]] def create_contacts(companyId, model) path = "/api/v2/companies/#{companyId}/contacts" - post(path, model, {}, "21.12.0") end + post(path, model, {}, "22.2.0") end # Delete a single contact # @@ -31,7 +31,7 @@ def create_contacts(companyId, model) path = "/api/v2/companies/#{company # @param id [Integer] The ID of the contact you wish to delete. # @return [ErrorDetail[]] def delete_contact(companyId, id) path = "/api/v2/companies/#{companyId}/contacts/#{id}" - delete(path, {}, "21.12.0") end + delete(path, {}, "22.2.0") end # Retrieve a single contact # @@ -47,7 +47,7 @@ def delete_contact(companyId, id) path = "/api/v2/companies/#{companyId}/ # @param id [Integer] The primary key of this contact # @return [Object] def get_contact(companyId, id) path = "/api/v2/companies/#{companyId}/contacts/#{id}" - get(path, {}, "21.12.0") end + get(path, {}, "22.2.0") end # Retrieve contacts for this company # @@ -67,7 +67,7 @@ def get_contact(companyId, id) path = "/api/v2/companies/#{companyId}/con # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_contacts_by_company(companyId, options={}) path = "/api/v2/companies/#{companyId}/contacts" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve all contacts # @@ -88,7 +88,7 @@ def list_contacts_by_company(companyId, options={}) path = "/api/v2/compa # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def query_contacts(options={}) path = "/api/v2/contacts" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Update a single contact # @@ -107,7 +107,7 @@ def query_contacts(options={}) path = "/api/v2/contacts" # @param model [Object] The contact you wish to update. # @return [Object] def update_contact(companyId, id, model) path = "/api/v2/companies/#{companyId}/contacts/#{id}" - put(path, model, {}, "21.12.0") end + put(path, model, {}, "22.2.0") end end end end \ No newline at end of file diff --git a/lib/avatax/client/customers.rb b/lib/avatax/client/customers.rb index 2572749..96f1e74 100644 --- a/lib/avatax/client/customers.rb +++ b/lib/avatax/client/customers.rb @@ -30,7 +30,7 @@ module Customers # @param model [CustomerModel[]] The list of customer objects to be created # @return [CustomerModel[]] def create_customers(companyId, model) path = "/api/v2/companies/#{companyId}/customers" - post(path, model, {}, "21.12.0") end + post(path, model, {}, "22.2.0") end # Delete a customer record # @@ -56,7 +56,7 @@ def create_customers(companyId, model) path = "/api/v2/companies/#{compan # @param customerCode [String] The unique code representing this customer # @return [Object] def delete_customer(companyId, customerCode) path = "/api/v2/companies/#{companyId}/customers/#{customerCode}" - delete(path, {}, "21.12.0") end + delete(path, {}, "22.2.0") end # Retrieve a single customer # @@ -89,7 +89,7 @@ def delete_customer(companyId, customerCode) path = "/api/v2/companies/#{ # @param include [String] Specify optional additional objects to include in this fetch request # @return [Object] def get_customer(companyId, customerCode, options={}) path = "/api/v2/companies/#{companyId}/customers/#{customerCode}" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Link attributes to a customer # @@ -119,7 +119,7 @@ def get_customer(companyId, customerCode, options={}) path = "/api/v2/com # @param model [CustomerAttributeModel[]] The list of attributes to link to the customer. # @return [FetchResult] def link_attributes_to_customer(companyId, customerCode, model) path = "/api/v2/companies/#{companyId}/customers/#{customerCode}/attributes/link" - put(path, model, {}, "21.12.0") end + put(path, model, {}, "22.2.0") end # Link certificates to a customer # @@ -146,7 +146,7 @@ def link_attributes_to_customer(companyId, customerCode, model) path = "/ # @param model [Object] The list of certificates to link to this customer # @return [FetchResult] def link_certificates_to_customer(companyId, customerCode, model) path = "/api/v2/companies/#{companyId}/customers/#{customerCode}/certificates/link" - post(path, model, {}, "21.12.0") end + post(path, model, {}, "22.2.0") end # Link two customer records together # @@ -174,7 +174,7 @@ def link_certificates_to_customer(companyId, customerCode, model) path = # @param model [Object] A list of information about ship-to customers to link to this bill-to customer. # @return [Object] def link_ship_to_customers_to_bill_customer(companyId, code, model) path = "/api/v2/companies/#{companyId}/customers/billto/#{code}/shipto/link" - post(path, model, {}, "21.12.0") end + post(path, model, {}, "22.2.0") end # Retrieve a customer's attributes # @@ -203,7 +203,7 @@ def link_ship_to_customers_to_bill_customer(companyId, code, model) path # @param customerCode [String] The unique code representing the current customer # @return [FetchResult] def list_attributes_for_customer(companyId, customerCode) path = "/api/v2/companies/#{companyId}/customers/#{customerCode}/attributes" - get(path, {}, "21.12.0") end + get(path, {}, "22.2.0") end # List certificates linked to a customer # @@ -234,7 +234,7 @@ def list_attributes_for_customer(companyId, customerCode) path = "/api/v2 # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_certificates_for_customer(companyId, customerCode, options={}) path = "/api/v2/companies/#{companyId}/customers/#{customerCode}/certificates" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # List valid certificates for a location # @@ -265,7 +265,7 @@ def list_certificates_for_customer(companyId, customerCode, options={}) p # @param region [String] Search for certificates matching this region. Uses the ISO 3166 two or three character state, region, or province code. # @return [Object] def list_valid_certificates_for_customer(companyId, customerCode, country, region) path = "/api/v2/companies/#{companyId}/customers/#{customerCode}/certificates/#{country}/#{region}" - get(path, {}, "21.12.0") end + get(path, {}, "22.2.0") end # List all customers for this company # @@ -300,7 +300,7 @@ def list_valid_certificates_for_customer(companyId, customerCode, country, regio # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def query_customers(companyId, options={}) path = "/api/v2/companies/#{companyId}/customers" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Unlink attributes from a customer # @@ -330,7 +330,7 @@ def query_customers(companyId, options={}) path = "/api/v2/companies/#{co # @param model [CustomerAttributeModel[]] The list of attributes to unlink from the customer. # @return [FetchResult] def unlink_attributes_from_customer(companyId, customerCode, model) path = "/api/v2/companies/#{companyId}/customers/#{customerCode}/attributes/unlink" - put(path, model, {}, "21.12.0") end + put(path, model, {}, "22.2.0") end # Unlink certificates from a customer # @@ -357,7 +357,7 @@ def unlink_attributes_from_customer(companyId, customerCode, model) path # @param model [Object] The list of certificates to link to this customer # @return [FetchResult] def unlink_certificates_from_customer(companyId, customerCode, model) path = "/api/v2/companies/#{companyId}/customers/#{customerCode}/certificates/unlink" - post(path, model, {}, "21.12.0") end + post(path, model, {}, "22.2.0") end # Update a single customer # @@ -384,7 +384,7 @@ def unlink_certificates_from_customer(companyId, customerCode, model) pat # @param model [Object] The new customer model that will replace the existing record at this URL # @return [Object] def update_customer(companyId, customerCode, model) path = "/api/v2/companies/#{companyId}/customers/#{customerCode}" - put(path, model, {}, "21.12.0") end + put(path, model, {}, "22.2.0") end end end end \ No newline at end of file diff --git a/lib/avatax/client/datasources.rb b/lib/avatax/client/datasources.rb index e867d09..ddb48b3 100644 --- a/lib/avatax/client/datasources.rb +++ b/lib/avatax/client/datasources.rb @@ -16,7 +16,7 @@ module DataSources # @param model [DataSourceModel[]] # @return [DataSourceModel[]] def create_data_sources(companyId, model) path = "/api/v2/companies/#{companyId}/datasources" - post(path, model, {}, "21.12.0") end + post(path, model, {}, "22.2.0") end # Delete a datasource by datasource id for a company. # @@ -31,7 +31,7 @@ def create_data_sources(companyId, model) path = "/api/v2/companies/#{com # @param id [Integer] The id of the datasource you wish to delete. # @return [ErrorDetail[]] def delete_data_source(companyId, id) path = "/api/v2/companies/#{companyId}/datasources/#{id}" - delete(path, {}, "21.12.0") end + delete(path, {}, "22.2.0") end # Get data source by data source id # @@ -46,7 +46,7 @@ def delete_data_source(companyId, id) path = "/api/v2/companies/#{company # @param id [Integer] data source id # @return [Object] def get_data_source_by_id(companyId, id) path = "/api/v2/companies/#{companyId}/datasources/#{id}" - get(path, {}, "21.12.0") end + get(path, {}, "22.2.0") end # Retrieve all datasources for this company # @@ -64,7 +64,7 @@ def get_data_source_by_id(companyId, id) path = "/api/v2/companies/#{comp # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_data_sources(companyId, options={}) path = "/api/v2/companies/#{companyId}/datasources" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve all datasources # @@ -84,7 +84,7 @@ def list_data_sources(companyId, options={}) path = "/api/v2/companies/#{ # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def query_data_sources(options={}) path = "/api/v2/datasources" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Update a datasource identified by id for a company # @@ -100,7 +100,7 @@ def query_data_sources(options={}) path = "/api/v2/datasources" # @param model [Object] # @return [Object] def update_data_source(companyId, id, model) path = "/api/v2/companies/#{companyId}/datasources/#{id}" - put(path, model, {}, "21.12.0") end + put(path, model, {}, "22.2.0") end end end end \ No newline at end of file diff --git a/lib/avatax/client/definitions.rb b/lib/avatax/client/definitions.rb index 272c2ab..ad8246b 100644 --- a/lib/avatax/client/definitions.rb +++ b/lib/avatax/client/definitions.rb @@ -24,7 +24,7 @@ module Definitions # @param hsCode [String] The partial or full HS Code for which you would like to view all of the parents. # @return [FetchResult] def get_cross_border_code(country, hsCode) path = "/api/v2/definitions/crossborder/#{country}/#{hsCode}/hierarchy" - get(path, {}, "21.12.0") end + get(path, {}, "22.2.0") end # Test whether a form supports online login verification # @@ -38,7 +38,7 @@ def get_cross_border_code(country, hsCode) path = "/api/v2/definitions/cr # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def get_login_verifier_by_form(form, options={}) path = "/api/v2/definitions/filingcalendars/loginverifiers/#{form}" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # List all market place locations. # @@ -50,7 +50,7 @@ def get_login_verifier_by_form(form, options={}) path = "/api/v2/definiti # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_all_marketplace_locations(options={}) path = "/api/v2/definitions/listallmarketplacelocations" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve the full list of the AvaFile Forms available # @@ -67,7 +67,7 @@ def list_all_marketplace_locations(options={}) path = "/api/v2/definition # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_ava_file_forms(options={}) path = "/api/v2/definitions/avafileforms" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # List certificate attributes used by a company # @@ -86,7 +86,7 @@ def list_ava_file_forms(options={}) path = "/api/v2/definitions/avafilefo # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_certificate_attributes(options={}) path = "/api/v2/definitions/certificateattributes" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # List the certificate exempt reasons defined by a company # @@ -104,7 +104,7 @@ def list_certificate_attributes(options={}) path = "/api/v2/definitions/c # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_certificate_exempt_reasons(options={}) path = "/api/v2/definitions/certificateexemptreasons" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # List certificate exposure zones used by a company # @@ -122,7 +122,7 @@ def list_certificate_exempt_reasons(options={}) path = "/api/v2/definitio # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_certificate_exposure_zones(options={}) path = "/api/v2/definitions/certificateexposurezones" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve the full list of Avalara-supported usage of extra parameters for classification of a item. # @@ -136,7 +136,7 @@ def list_certificate_exposure_zones(options={}) path = "/api/v2/definitio # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_classification_parameters_usage(options={}) path = "/api/v2/definitions/classification/parametersusage" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve the full list of communications service types # @@ -149,7 +149,7 @@ def list_classification_parameters_usage(options={}) path = "/api/v2/defi # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_communications_service_types(id, options={}) path = "/api/v2/definitions/communications/transactiontypes/#{id}/servicetypes" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve the full list of communications transactiontypes # @@ -162,7 +162,7 @@ def list_communications_service_types(id, options={}) path = "/api/v2/def # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_communications_transaction_types(options={}) path = "/api/v2/definitions/communications/transactiontypes" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve the full list of communications transaction/service type pairs # @@ -175,7 +175,7 @@ def list_communications_transaction_types(options={}) path = "/api/v2/def # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_communications_t_s_pairs(options={}) path = "/api/v2/definitions/communications/tspairs" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # List all ISO 3166 countries # @@ -189,7 +189,7 @@ def list_communications_t_s_pairs(options={}) path = "/api/v2/definitions # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_countries(options={}) path = "/api/v2/definitions/countries" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # List certificate exposure zones used by a company # @@ -208,7 +208,7 @@ def list_countries(options={}) path = "/api/v2/definitions/countries" # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_cover_letters(options={}) path = "/api/v2/definitions/coverletters" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Lists the next level of HS Codes given a destination country and HS Code prefix. # @@ -233,7 +233,7 @@ def list_cover_letters(options={}) path = "/api/v2/definitions/coverlette # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_cross_border_codes(country, hsCode, options={}) path = "/api/v2/definitions/crossborder/#{country}/#{hsCode}" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # List top level HS Code Sections. # @@ -250,7 +250,7 @@ def list_cross_border_codes(country, hsCode, options={}) path = "/api/v2/ # Swagger Name: AvaTaxClient # @return [FetchResult] def list_cross_border_sections() path = "/api/v2/definitions/crossborder/sections" - get(path, {}, "21.12.0") end + get(path, {}, "22.2.0") end # List all ISO 4217 currencies supported by AvaTax. # @@ -265,7 +265,7 @@ def list_cross_border_sections() path = "/api/v2/definitions/crossborder/ # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_currencies(options={}) path = "/api/v2/definitions/currencies" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve the full list of Avalara-supported entity use codes # @@ -281,7 +281,7 @@ def list_currencies(options={}) path = "/api/v2/definitions/currencies" # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_entity_use_codes(options={}) path = "/api/v2/definitions/entityusecodes" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve the full list of Avalara-supported filing frequencies. # @@ -294,7 +294,7 @@ def list_entity_use_codes(options={}) path = "/api/v2/definitions/entityu # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_filing_frequencies(options={}) path = "/api/v2/definitions/filingfrequencies" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # List jurisdictions based on the filter provided # @@ -311,7 +311,7 @@ def list_filing_frequencies(options={}) path = "/api/v2/definitions/filin # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_jurisdictions(options={}) path = "/api/v2/definitions/jurisdictions" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # List jurisdictions near a specific address # @@ -336,7 +336,7 @@ def list_jurisdictions(options={}) path = "/api/v2/definitions/jurisdicti # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_jurisdictions_by_address(options={}) path = "/api/v2/definitions/jurisdictionsnearaddress" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # List jurisdictions based on the TaxType, TaxSubType and RateType provided # @@ -358,7 +358,7 @@ def list_jurisdictions_by_address(options={}) path = "/api/v2/definitions # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_jurisdictions_by_rate_type_tax_type_mapping(country, region, taxTypeId, taxSubTypeId, options={}) path = "/api/v2/definitions/jurisdictions/countries/#{country}/regions/#{region}/taxtypes/#{taxTypeId}/taxsubtypes/#{taxSubTypeId}" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve the list of questions that are required for a tax location # @@ -384,7 +384,7 @@ def list_jurisdictions_by_rate_type_tax_type_mapping(country, region, taxTypeId, # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_location_questions_by_address(options={}) path = "/api/v2/definitions/locationquestions" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # List all forms where logins can be verified automatically # @@ -398,7 +398,7 @@ def list_location_questions_by_address(options={}) path = "/api/v2/defini # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_login_verifiers(options={}) path = "/api/v2/definitions/filingcalendars/loginverifiers" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve the list of locations for a marketplace. # @@ -410,7 +410,7 @@ def list_login_verifiers(options={}) path = "/api/v2/definitions/filingca # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_marketplace_locations(options={}) path = "/api/v2/definitions/marketplacelocations" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve the full list of Avalara-supported nexus for all countries and regions. # @@ -424,7 +424,7 @@ def list_marketplace_locations(options={}) path = "/api/v2/definitions/ma # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_nexus(options={}) path = "/api/v2/definitions/nexus" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # List all nexus that apply to a specific address. # @@ -447,7 +447,7 @@ def list_nexus(options={}) path = "/api/v2/definitions/nexus" # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_nexus_by_address(options={}) path = "/api/v2/definitions/nexus/byaddress" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve the full list of Avalara-supported nexus for a country. # @@ -462,7 +462,7 @@ def list_nexus_by_address(options={}) path = "/api/v2/definitions/nexus/b # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_nexus_by_country(country, options={}) path = "/api/v2/definitions/nexus/#{country}" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve the full list of Avalara-supported nexus for a country and region. # @@ -478,7 +478,7 @@ def list_nexus_by_country(country, options={}) path = "/api/v2/definition # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_nexus_by_country_and_region(country, region, options={}) path = "/api/v2/definitions/nexus/#{country}/#{region}" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # List nexus related to a tax form # @@ -501,7 +501,7 @@ def list_nexus_by_country_and_region(country, region, options={}) path = # @param formCode [String] The form code that we are looking up the nexus for # @return [Object] def list_nexus_by_form_code(formCode) path = "/api/v2/definitions/nexus/byform/#{formCode}" - get(path, {}, "21.12.0") end + get(path, {}, "22.2.0") end # Retrieve the full list of Avalara-supported nexus for a tax type group. # @@ -516,7 +516,7 @@ def list_nexus_by_form_code(formCode) path = "/api/v2/definitions/nexus/b # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_nexus_by_tax_type_group(taxTypeGroup, options={}) path = "/api/v2/definitions/nexus/bytaxtypegroup/#{taxTypeGroup}" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve the full list of nexus tax type groups # @@ -529,7 +529,7 @@ def list_nexus_by_tax_type_group(taxTypeGroup, options={}) path = "/api/v # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_nexus_tax_type_groups(options={}) path = "/api/v2/definitions/nexustaxtypegroups" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve the full list of Avalara-supported tax notice customer funding options. # @@ -542,7 +542,7 @@ def list_nexus_tax_type_groups(options={}) path = "/api/v2/definitions/ne # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_notice_customer_funding_options(options={}) path = "/api/v2/definitions/noticecustomerfundingoptions" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve the full list of Avalara-supported tax notice customer types. # @@ -555,7 +555,7 @@ def list_notice_customer_funding_options(options={}) path = "/api/v2/defi # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_notice_customer_types(options={}) path = "/api/v2/definitions/noticecustomertypes" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve the full list of Avalara-supported tax notice filing types. # @@ -568,7 +568,7 @@ def list_notice_customer_types(options={}) path = "/api/v2/definitions/no # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_notice_filingtypes(options={}) path = "/api/v2/definitions/noticefilingtypes" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve the full list of Avalara-supported tax notice priorities. # @@ -581,7 +581,7 @@ def list_notice_filingtypes(options={}) path = "/api/v2/definitions/notic # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_notice_priorities(options={}) path = "/api/v2/definitions/noticepriorities" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve the full list of Avalara-supported tax notice reasons. # @@ -594,7 +594,7 @@ def list_notice_priorities(options={}) path = "/api/v2/definitions/notice # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_notice_reasons(options={}) path = "/api/v2/definitions/noticereasons" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve the full list of Avalara-supported tax notice responsibility ids # @@ -607,7 +607,7 @@ def list_notice_reasons(options={}) path = "/api/v2/definitions/noticerea # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_notice_responsibilities(options={}) path = "/api/v2/definitions/noticeresponsibilities" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve the full list of Avalara-supported tax notice root causes # @@ -620,7 +620,7 @@ def list_notice_responsibilities(options={}) path = "/api/v2/definitions/ # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_notice_root_causes(options={}) path = "/api/v2/definitions/noticerootcauses" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve the full list of Avalara-supported tax notice statuses. # @@ -633,7 +633,7 @@ def list_notice_root_causes(options={}) path = "/api/v2/definitions/notic # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_notice_statuses(options={}) path = "/api/v2/definitions/noticestatuses" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve the full list of Avalara-supported tax notice types. # @@ -646,7 +646,7 @@ def list_notice_statuses(options={}) path = "/api/v2/definitions/noticest # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_notice_types(options={}) path = "/api/v2/definitions/noticetypes" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve the full list of Avalara-supported extra parameters for creating transactions. # @@ -660,7 +660,7 @@ def list_notice_types(options={}) path = "/api/v2/definitions/noticetypes # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_parameters(options={}) path = "/api/v2/definitions/parameters" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve the parameters by companyCode and itemCode. # @@ -687,7 +687,7 @@ def list_parameters(options={}) path = "/api/v2/definitions/parameters" # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_parameters_by_item(companyCode, itemCode, options={}) path = "/api/v2/definitions/parameters/byitem/#{companyCode}/#{itemCode}" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve the full list of Avalara-supported usage of extra parameters for creating transactions. # @@ -701,7 +701,7 @@ def list_parameters_by_item(companyCode, itemCode, options={}) path = "/a # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_parameters_usage(options={}) path = "/api/v2/definitions/parametersusage" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve the full list of Avalara-supported permissions # @@ -712,7 +712,7 @@ def list_parameters_usage(options={}) path = "/api/v2/definitions/paramet # @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 list_permissions(options={}) path = "/api/v2/definitions/permissions" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve the full list of Avalara-supported postal codes. # @@ -724,7 +724,7 @@ def list_permissions(options={}) path = "/api/v2/definitions/permissions" # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_postal_codes(options={}) path = "/api/v2/definitions/postalcodes" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # List all customs duty programs recognized by AvaTax # @@ -744,7 +744,7 @@ def list_postal_codes(options={}) path = "/api/v2/definitions/postalcodes # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_preferred_programs(options={}) path = "/api/v2/definitions/preferredprograms" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # List all available product classification systems. # @@ -760,7 +760,7 @@ def list_preferred_programs(options={}) path = "/api/v2/definitions/prefe # @param countryCode [String] If not null, return all records with this code. # @return [FetchResult] def list_product_classification_systems(options={}) path = "/api/v2/definitions/productclassificationsystems" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # List all product classification systems available to a company based on its nexus. # @@ -785,7 +785,7 @@ def list_product_classification_systems(options={}) path = "/api/v2/defin # @param countryCode [String] If not null, return all records with this code. # @return [FetchResult] def list_product_classification_systems_by_company(companyCode, options={}) path = "/api/v2/definitions/productclassificationsystems/bycompany/#{companyCode}" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve the full list of rate types for each country # @@ -799,7 +799,7 @@ def list_product_classification_systems_by_company(companyCode, 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_rate_types_by_country(country, options={}) path = "/api/v2/definitions/countries/#{country}/ratetypes" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve the list of rate types by country, TaxType and by TaxSubType # @@ -815,7 +815,7 @@ def list_rate_types_by_country(country, options={}) path = "/api/v2/defin # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_rate_types_by_country_tax_type_tax_sub_type(country, taxTypeId, taxSubTypeId, options={}) path = "/api/v2/definitions/countries/#{country}/taxtypes/#{taxTypeId}/taxsubtypes/#{taxSubTypeId}/ratetypes" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # List all ISO 3166 regions # @@ -829,7 +829,7 @@ def list_rate_types_by_country_tax_type_tax_sub_type(country, taxTypeId, taxSubT # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_regions(options={}) path = "/api/v2/definitions/regions" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # List all ISO 3166 regions for a country # @@ -844,7 +844,7 @@ def list_regions(options={}) path = "/api/v2/definitions/regions" # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_regions_by_country(country, options={}) path = "/api/v2/definitions/countries/#{country}/regions" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve the full list of Avalara-supported resource file types # @@ -857,7 +857,7 @@ def list_regions_by_country(country, options={}) path = "/api/v2/definiti # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_resource_file_types(options={}) path = "/api/v2/definitions/resourcefiletypes" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve the full list of Avalara-supported usage of parameters used for returns. # @@ -871,7 +871,7 @@ def list_resource_file_types(options={}) path = "/api/v2/definitions/reso # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_returns_parameters_usage(options={}) path = "/api/v2/definitions/returns/parametersusage" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve the full list of Avalara-supported permissions # @@ -885,7 +885,7 @@ def list_returns_parameters_usage(options={}) path = "/api/v2/definitions # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_security_roles(options={}) path = "/api/v2/definitions/securityroles" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve the full list of Avalara-supported subscription types # @@ -900,7 +900,7 @@ def list_security_roles(options={}) path = "/api/v2/definitions/securityr # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_subscription_types(options={}) path = "/api/v2/definitions/subscriptiontypes" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve the list all tags supported by avalara # @@ -912,7 +912,7 @@ def list_subscription_types(options={}) path = "/api/v2/definitions/subsc # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_tags(options={}) path = "/api/v2/definitions/tags" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve the full list of Avalara-supported tax authorities. # @@ -925,7 +925,7 @@ def list_tags(options={}) path = "/api/v2/definitions/tags" # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_tax_authorities(options={}) path = "/api/v2/definitions/taxauthorities" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve the full list of Avalara-supported forms for each tax authority. # @@ -940,7 +940,7 @@ def list_tax_authorities(options={}) path = "/api/v2/definitions/taxautho # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_tax_authority_forms(options={}) path = "/api/v2/definitions/taxauthorityforms" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve the full list of Avalara-supported tax authority types. # @@ -953,7 +953,7 @@ def list_tax_authority_forms(options={}) path = "/api/v2/definitions/taxa # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_tax_authority_types(options={}) path = "/api/v2/definitions/taxauthoritytypes" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve the full list of Avalara-supported tax codes. # @@ -973,7 +973,7 @@ def list_tax_authority_types(options={}) path = "/api/v2/definitions/taxa # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_tax_codes(options={}) path = "/api/v2/definitions/taxcodes" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve the full list of Avalara-supported tax code types. # @@ -985,7 +985,7 @@ def list_tax_codes(options={}) path = "/api/v2/definitions/taxcodes" # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets. # @return [Object] def list_tax_code_types(options={}) path = "/api/v2/definitions/taxcodetypes" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve the full list of the Tax Forms available # @@ -998,7 +998,7 @@ def list_tax_code_types(options={}) path = "/api/v2/definitions/taxcodety # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_tax_forms(options={}) path = "/api/v2/definitions/taxforms" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve the full list of tax sub types # @@ -1011,7 +1011,7 @@ def list_tax_forms(options={}) path = "/api/v2/definitions/taxforms" # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_tax_sub_types(options={}) path = "/api/v2/definitions/taxsubtypes" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve the full list of tax sub types by Country and TaxType # @@ -1026,7 +1026,7 @@ def list_tax_sub_types(options={}) path = "/api/v2/definitions/taxsubtype # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_tax_sub_types_by_country_and_tax_type(country, taxTypeId, options={}) path = "/api/v2/definitions/taxsubtypes/countries/#{country}/taxtypes/#{taxTypeId}" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve the full list of tax sub types by jurisdiction code and region # @@ -1041,7 +1041,7 @@ def list_tax_sub_types_by_country_and_tax_type(country, taxTypeId, 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_tax_sub_types_by_jurisdiction_and_region(jurisdictionCode, region, options={}) path = "/api/v2/definitions/taxsubtypes/#{jurisdictionCode}/#{region}" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve the full list of tax type groups # @@ -1054,7 +1054,7 @@ def list_tax_sub_types_by_jurisdiction_and_region(jurisdictionCode, region, opti # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_tax_type_groups(options={}) path = "/api/v2/definitions/taxtypegroups" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve the list of applicable TaxTypes # @@ -1067,7 +1067,7 @@ def list_tax_type_groups(options={}) path = "/api/v2/definitions/taxtypeg # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_tax_types_by_nexus_and_country(country, options={}) path = "/api/v2/definitions/taxtypes/countries/#{country}" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve the list of applicable UnitOfBasis # @@ -1082,7 +1082,7 @@ def list_tax_types_by_nexus_and_country(country, options={}) path = "/api # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_unit_of_basis_by_country_and_tax_type_and_tax_sub_type_and_rate_type(country, taxTypeId, taxSubTypeId, options={}) path = "/api/v2/definitions/unitofbasis/countries/#{country}/taxtypes/#{taxTypeId}/taxsubtypes/#{taxSubTypeId}" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # List all defined units of measurement # @@ -1096,7 +1096,7 @@ def list_unit_of_basis_by_country_and_tax_type_and_tax_sub_type_and_rate_type(co # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_unit_of_measurement(options={}) path = "/api/v2/definitions/unitofmeasurements" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end end end end \ No newline at end of file diff --git a/lib/avatax/client/distancethresholds.rb b/lib/avatax/client/distancethresholds.rb index b7573c9..0537efa 100644 --- a/lib/avatax/client/distancethresholds.rb +++ b/lib/avatax/client/distancethresholds.rb @@ -19,7 +19,7 @@ module DistanceThresholds # @param model [CompanyDistanceThresholdModel[]] The DistanceThreshold object or objects you wish to create. # @return [CompanyDistanceThresholdModel[]] def create_distance_threshold(companyId, model) path = "/api/v2/companies/#{companyId}/distancethresholds" - post(path, model, {}, "21.12.0") end + post(path, model, {}, "22.2.0") end # Delete a single DistanceThreshold object # @@ -37,7 +37,7 @@ def create_distance_threshold(companyId, model) path = "/api/v2/companies # @param id [Integer] The unique ID number of the DistanceThreshold object you wish to delete. # @return [ErrorDetail[]] def delete_distance_threshold(companyId, id) path = "/api/v2/companies/#{companyId}/distancethresholds/#{id}" - delete(path, {}, "21.12.0") end + delete(path, {}, "22.2.0") end # Retrieve a single DistanceThreshold # @@ -55,7 +55,7 @@ def delete_distance_threshold(companyId, id) path = "/api/v2/companies/#{ # @param id [Integer] The unique ID number referring to this DistanceThreshold object # @return [Object] def get_distance_threshold(companyId, id) path = "/api/v2/companies/#{companyId}/distancethresholds/#{id}" - get(path, {}, "21.12.0") end + get(path, {}, "22.2.0") end # Retrieve all DistanceThresholds for this company. # @@ -77,7 +77,7 @@ def get_distance_threshold(companyId, id) path = "/api/v2/companies/#{com # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_distance_thresholds(companyId, options={}) path = "/api/v2/companies/#{companyId}/distancethresholds" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve all DistanceThreshold objects # @@ -101,7 +101,7 @@ def list_distance_thresholds(companyId, options={}) path = "/api/v2/compa # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def query_distance_thresholds(options={}) path = "/api/v2/distancethresholds" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Update a DistanceThreshold object # @@ -123,7 +123,7 @@ def query_distance_thresholds(options={}) path = "/api/v2/distancethresho # @param model [Object] The new DistanceThreshold object to store. # @return [Object] def update_distance_threshold(companyId, id, model) path = "/api/v2/companies/#{companyId}/distancethresholds/#{id}" - put(path, model, {}, "21.12.0") end + put(path, model, {}, "22.2.0") end end end end \ No newline at end of file diff --git a/lib/avatax/client/ecommercetoken.rb b/lib/avatax/client/ecommercetoken.rb index 0506405..e8dfdbf 100644 --- a/lib/avatax/client/ecommercetoken.rb +++ b/lib/avatax/client/ecommercetoken.rb @@ -17,7 +17,7 @@ module ECommerceToken # @param model [Object] # @return [Object] def create_e_commerce_token(companyId, model) path = "/api/v2/companies/#{companyId}/ecommercetokens" - post(path, model, {}, "21.12.0") end + post(path, model, {}, "22.2.0") end # Refresh an eCommerce token. # @@ -33,7 +33,7 @@ def create_e_commerce_token(companyId, model) path = "/api/v2/companies/# # @param model [Object] # @return [FetchResult] def refresh_e_commerce_token(companyId, model) path = "/api/v2/companies/#{companyId}/ecommercetokens" - put(path, model, {}, "21.12.0") end + put(path, model, {}, "22.2.0") end end end end \ No newline at end of file diff --git a/lib/avatax/client/filingcalendars.rb b/lib/avatax/client/filingcalendars.rb index 4282e9c..d09e778 100644 --- a/lib/avatax/client/filingcalendars.rb +++ b/lib/avatax/client/filingcalendars.rb @@ -18,7 +18,7 @@ module FilingCalendars # @param model [Object] Cycle Safe Options Request # @return [Object] def cycle_safe_options(companyId, model) path = "/api/v2/companies/#{companyId}/filingcalendars/edit/cycleSafeOptions" - post(path, model, {}, "21.12.0") end + post(path, model, {}, "22.2.0") end # Delete a company return setting # @@ -34,7 +34,7 @@ def cycle_safe_options(companyId, model) path = "/api/v2/companies/#{comp # @param companyReturnSettingId [Integer] The unique ID of the company return setting that will be deleted from the filing calendar # @return [CompanyReturnSettingModel[]] def delete_company_return_settings(companyId, filingCalendarId, companyReturnSettingId) path = "/api/v2/companies/#{companyId}/filingcalendars/#{filingCalendarId}/setting/#{companyReturnSettingId}" - delete(path, {}, "21.12.0") end + delete(path, {}, "22.2.0") end # Retrieve all legacy filing calendars for this company # @@ -54,7 +54,7 @@ def delete_company_return_settings(companyId, filingCalendarId, companyReturnSet # @param returnRegion [String] A comma separated list of regions # @return [FetchResult] def legacy_filing_calendars(companyId, options={}) path = "/api/v2/companies/#{companyId}/filingcalendars/Legacy" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end end end end \ No newline at end of file diff --git a/lib/avatax/client/filings.rb b/lib/avatax/client/filings.rb index 5fd7269..0b0f041 100644 --- a/lib/avatax/client/filings.rb +++ b/lib/avatax/client/filings.rb @@ -14,7 +14,7 @@ module Filings # @param filingReturnId [Integer] The ID of the filing return # @return [FetchResult] def get_accrual_filings(companyId, filingReturnId) path = "/api/v2/companies/#{companyId}/filings/accrual/#{filingReturnId}" - get(path, {}, "21.12.0") end + get(path, {}, "22.2.0") end # Retrieve a list of filed returns for the specified company in the year and month of a given filing period. # @@ -36,7 +36,7 @@ def get_accrual_filings(companyId, filingReturnId) path = "/api/v2/compan # @param taxformCode [String] The unique tax form code of the form. # @return [FetchResult] def get_filed_returns(companyId, options={}) path = "/api/v2/companies/#{companyId}/filings/returns/filed" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end end end end \ No newline at end of file diff --git a/lib/avatax/client/firmclientlinkages.rb b/lib/avatax/client/firmclientlinkages.rb index ccf84f5..1c678fd 100644 --- a/lib/avatax/client/firmclientlinkages.rb +++ b/lib/avatax/client/firmclientlinkages.rb @@ -14,7 +14,7 @@ module FirmClientLinkages # @param id [Integer] # @return [Object] def approve_firm_client_linkage(id) path = "/api/v2/firmclientlinkages/#{id}/approve" - post(path, {}, "21.12.0") end + post(path, {}, "22.2.0") end # Request a new FirmClient account and create an approved linkage to it # @@ -36,7 +36,7 @@ def approve_firm_client_linkage(id) path = "/api/v2/firmclientlinkages/#{ # @param model [Object] Information about the account you wish to create. # @return [Object] def create_and_link_new_firm_client_account(model) path = "/api/v2/firmclientlinkages/createandlinkclient" - post(path, model, {}, "21.12.0") end + post(path, model, {}, "22.2.0") end # Links a firm account with the client account # @@ -49,7 +49,7 @@ def create_and_link_new_firm_client_account(model) path = "/api/v2/firmcl # @param model [Object] FirmClientLinkageInputModel # @return [Object] def create_firm_client_linkage(model) path = "/api/v2/firmclientlinkages" - post(path, model, {}, "21.12.0") end + post(path, model, {}, "22.2.0") end # Delete a linkage # @@ -62,7 +62,7 @@ def create_firm_client_linkage(model) path = "/api/v2/firmclientlinkages" # @param id [Integer] # @return [ErrorDetail[]] def delete_firm_client_linkage(id) path = "/api/v2/firmclientlinkages/#{id}" - delete(path, {}, "21.12.0") end + delete(path, {}, "22.2.0") end # Get linkage between a firm and client by id # @@ -75,7 +75,7 @@ def delete_firm_client_linkage(id) path = "/api/v2/firmclientlinkages/#{i # @param id [Integer] # @return [Object] def get_firm_client_linkage(id) path = "/api/v2/firmclientlinkages/#{id}" - get(path, {}, "21.12.0") end + get(path, {}, "22.2.0") end # List client linkages for a firm or client # @@ -88,7 +88,7 @@ def get_firm_client_linkage(id) path = "/api/v2/firmclientlinkages/#{id}" # @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/).
*Not filterable:* firmAccountName, clientAccountName # @return [FetchResult] def list_firm_client_linkage(options={}) path = "/api/v2/firmclientlinkages" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Rejects linkage to a firm for a client account # @@ -101,7 +101,7 @@ def list_firm_client_linkage(options={}) path = "/api/v2/firmclientlinkag # @param id [Integer] # @return [Object] def reject_firm_client_linkage(id) path = "/api/v2/firmclientlinkages/#{id}/reject" - post(path, {}, "21.12.0") end + post(path, {}, "22.2.0") end # Reset linkage status between a client and firm back to requested # @@ -114,7 +114,7 @@ def reject_firm_client_linkage(id) path = "/api/v2/firmclientlinkages/#{i # @param id [Integer] # @return [Object] def reset_firm_client_linkage(id) path = "/api/v2/firmclientlinkages/#{id}/reset" - post(path, {}, "21.12.0") end + post(path, {}, "22.2.0") end # Revokes previously approved linkage to a firm for a client account # @@ -127,7 +127,7 @@ def reset_firm_client_linkage(id) path = "/api/v2/firmclientlinkages/#{id # @param id [Integer] # @return [Object] def revoke_firm_client_linkage(id) path = "/api/v2/firmclientlinkages/#{id}/revoke" - post(path, {}, "21.12.0") end + post(path, {}, "22.2.0") end end end end \ No newline at end of file diff --git a/lib/avatax/client/free.rb b/lib/avatax/client/free.rb index b961be0..aab04db 100644 --- a/lib/avatax/client/free.rb +++ b/lib/avatax/client/free.rb @@ -23,7 +23,7 @@ module Free # @param model [Object] Required information to provision a free trial account. # @return [Object] def request_free_trial(model) path = "/api/v2/accounts/freetrials/request" - post(path, model, {}, "21.12.0") end + post(path, model, {}, "22.2.0") end end end end \ No newline at end of file diff --git a/lib/avatax/client/fundingrequests.rb b/lib/avatax/client/fundingrequests.rb index 520f70b..779b41b 100644 --- a/lib/avatax/client/fundingrequests.rb +++ b/lib/avatax/client/fundingrequests.rb @@ -26,7 +26,7 @@ module FundingRequests # @param id [Integer] The unique ID number of this funding request # @return [Object] def activate_funding_request(id) path = "/api/v2/fundingrequests/#{id}/widget" - get(path, {}, "21.12.0") end + get(path, {}, "22.2.0") end # Retrieve status about a funding setup request # @@ -49,7 +49,7 @@ def activate_funding_request(id) path = "/api/v2/fundingrequests/#{id}/wi # @param id [Integer] The unique ID number of this funding request # @return [Object] def funding_request_status(id) path = "/api/v2/fundingrequests/#{id}" - get(path, {}, "21.12.0") end + get(path, {}, "22.2.0") end end end end \ No newline at end of file diff --git a/lib/avatax/client/items.rb b/lib/avatax/client/items.rb index 736e3c1..7bd13cb 100644 --- a/lib/avatax/client/items.rb +++ b/lib/avatax/client/items.rb @@ -19,7 +19,7 @@ module Items # @param itemId [Integer] The ID of the item you wish to delete the classifications. # @return [ErrorDetail[]] def batch_delete_item_classifications(companyId, itemId) path = "/api/v2/companies/#{companyId}/items/#{itemId}/classifications" - delete(path, {}, "21.12.0") end + delete(path, {}, "22.2.0") end # Delete all parameters for an item # @@ -39,7 +39,7 @@ def batch_delete_item_classifications(companyId, itemId) path = "/api/v2/ # @param itemId [Integer] The ID of the item you wish to delete the parameters. # @return [ErrorDetail[]] def batch_delete_item_parameters(companyId, itemId) path = "/api/v2/companies/#{companyId}/items/#{itemId}/parameters" - delete(path, {}, "21.12.0") end + delete(path, {}, "22.2.0") end # Bulk upload items from a product catalog # @@ -61,7 +61,7 @@ def batch_delete_item_parameters(companyId, itemId) path = "/api/v2/compa # @param model [Object] The items you wish to upload. # @return [Object] def bulk_upload_items(companyId, model) path = "/api/v2/companies/#{companyId}/items/upload" - post(path, model, {}, "21.12.0") end + post(path, model, {}, "22.2.0") end # Add classifications to an item. # @@ -82,7 +82,7 @@ def bulk_upload_items(companyId, model) path = "/api/v2/companies/#{compa # @param model [ItemClassificationInputModel[]] The item classifications you wish to create. # @return [ItemClassificationOutputModel[]] def create_item_classifications(companyId, itemId, model) path = "/api/v2/companies/#{companyId}/items/#{itemId}/classifications" - post(path, model, {}, "21.12.0") end + post(path, model, {}, "22.2.0") end # Add parameters to an item. # @@ -107,7 +107,7 @@ def create_item_classifications(companyId, itemId, model) path = "/api/v2 # @param model [ItemParameterModel[]] The item parameters you wish to create. # @return [ItemParameterModel[]] def create_item_parameters(companyId, itemId, model) path = "/api/v2/companies/#{companyId}/items/#{itemId}/parameters" - post(path, model, {}, "21.12.0") end + post(path, model, {}, "22.2.0") end # Create a new item # @@ -129,7 +129,7 @@ def create_item_parameters(companyId, itemId, model) path = "/api/v2/comp # @param model [ItemModel[]] The item you wish to create. # @return [ItemModel[]] def create_items(companyId, model) path = "/api/v2/companies/#{companyId}/items" - post(path, model, {}, "21.12.0") end + post(path, model, {}, "22.2.0") end # Create tags for a item # @@ -146,7 +146,7 @@ def create_items(companyId, model) path = "/api/v2/companies/#{companyId} # @param model [ItemTagDetailModel[]] Tags you wish to associate with the Item # @return [ItemTagDetailModel[]] def create_item_tags(companyId, itemId, model) path = "/api/v2/companies/#{companyId}/items/#{itemId}/tags" - post(path, model, {}, "21.12.0") end + post(path, model, {}, "22.2.0") end # Delete a single item # @@ -168,7 +168,7 @@ def create_item_tags(companyId, itemId, model) path = "/api/v2/companies/ # @param id [Integer] The ID of the item you wish to delete. # @return [ErrorDetail[]] def delete_item(companyId, id) path = "/api/v2/companies/#{companyId}/items/#{id}" - delete(path, {}, "21.12.0") end + delete(path, {}, "22.2.0") end # Delete a single item classification. # @@ -187,7 +187,7 @@ def delete_item(companyId, id) path = "/api/v2/companies/#{companyId}/ite # @param id [Integer] The item classification id. # @return [ErrorDetail[]] def delete_item_classification(companyId, itemId, id) path = "/api/v2/companies/#{companyId}/items/#{itemId}/classifications/#{id}" - delete(path, {}, "21.12.0") end + delete(path, {}, "22.2.0") end # Delete a single item parameter # @@ -208,7 +208,7 @@ def delete_item_classification(companyId, itemId, id) path = "/api/v2/com # @param id [Integer] The parameter id # @return [ErrorDetail[]] def delete_item_parameter(companyId, itemId, id) path = "/api/v2/companies/#{companyId}/items/#{itemId}/parameters/#{id}" - delete(path, {}, "21.12.0") end + delete(path, {}, "22.2.0") end # Delete item tag by id # @@ -225,7 +225,7 @@ def delete_item_parameter(companyId, itemId, id) path = "/api/v2/companie # @param itemTagDetailId [Integer] The ID of the item tag detail you wish to delete. # @return [ErrorDetail[]] def delete_item_tag(companyId, itemId, itemTagDetailId) path = "/api/v2/companies/#{companyId}/items/#{itemId}/tags/#{itemTagDetailId}" - delete(path, {}, "21.12.0") end + delete(path, {}, "22.2.0") end # Delete all item tags # @@ -241,7 +241,7 @@ def delete_item_tag(companyId, itemId, itemTagDetailId) path = "/api/v2/c # @param itemId [Integer] The ID of the item as defined by the company that owns this tag. # @return [ErrorDetail[]] def delete_item_tags(companyId, itemId) path = "/api/v2/companies/#{companyId}/items/#{itemId}/tags" - delete(path, {}, "21.12.0") end + delete(path, {}, "22.2.0") end # Retrieve a single item # @@ -262,7 +262,7 @@ def delete_item_tags(companyId, itemId) path = "/api/v2/companies/#{compa # @param include [String] A comma separated list of additional data to retrieve. # @return [Object] def get_item(companyId, id, options={}) path = "/api/v2/companies/#{companyId}/items/#{id}" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve a single item classification. # @@ -281,7 +281,7 @@ def get_item(companyId, id, options={}) path = "/api/v2/companies/#{compa # @param id [Integer] The item classification id. # @return [Object] def get_item_classification(companyId, itemId, id) path = "/api/v2/companies/#{companyId}/items/#{itemId}/classifications/#{id}" - get(path, {}, "21.12.0") end + get(path, {}, "22.2.0") end # Retrieve a single item parameter # @@ -302,7 +302,7 @@ def get_item_classification(companyId, itemId, id) path = "/api/v2/compan # @param id [Integer] The parameter id # @return [Object] def get_item_parameter(companyId, itemId, id) path = "/api/v2/companies/#{companyId}/items/#{itemId}/parameters/#{id}" - get(path, {}, "21.12.0") end + get(path, {}, "22.2.0") end # Retrieve tags for an item # @@ -321,7 +321,7 @@ def get_item_parameter(companyId, itemId, id) path = "/api/v2/companies/# # @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 get_item_tags(companyId, itemId, options={}) path = "/api/v2/companies/#{companyId}/items/#{itemId}/tags" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve classifications for an item. # @@ -346,7 +346,7 @@ def get_item_tags(companyId, itemId, options={}) path = "/api/v2/companie # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_item_classifications(companyId, itemId, options={}) path = "/api/v2/companies/#{companyId}/items/#{itemId}/classifications" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve parameters for an item # @@ -373,7 +373,7 @@ def list_item_classifications(companyId, itemId, options={}) path = "/api # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_item_parameters(companyId, itemId, options={}) path = "/api/v2/companies/#{companyId}/items/#{itemId}/parameters" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve items for this company # @@ -410,7 +410,7 @@ def list_item_parameters(companyId, itemId, options={}) path = "/api/v2/c # @param tagName [String] Tag Name on the basis of which you want to filter Items # @return [FetchResult] def list_items_by_company(companyId, options={}) path = "/api/v2/companies/#{companyId}/items" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve all items # @@ -437,7 +437,7 @@ def list_items_by_company(companyId, options={}) path = "/api/v2/companie # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def query_items(options={}) path = "/api/v2/items" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve all items associated with given tag # @@ -466,7 +466,7 @@ def query_items(options={}) path = "/api/v2/items" # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def query_items_by_tag(companyId, tag, options={}) path = "/api/v2/companies/#{companyId}/items/bytags/#{tag}" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Sync items from a product catalog # @@ -491,7 +491,7 @@ def query_items_by_tag(companyId, tag, options={}) path = "/api/v2/compan # @param model [Object] The request object. # @return [Object] def sync_items(companyId, model) path = "/api/v2/companies/#{companyId}/items/sync" - post(path, model, {}, "21.12.0") end + post(path, model, {}, "22.2.0") end # Update a single item # @@ -517,7 +517,7 @@ def sync_items(companyId, model) path = "/api/v2/companies/#{companyId}/i # @param model [Object] The item object you wish to update. # @return [Object] def update_item(companyId, id, model) path = "/api/v2/companies/#{companyId}/items/#{id}" - put(path, model, {}, "21.12.0") end + put(path, model, {}, "22.2.0") end # Update an item classification. # @@ -539,7 +539,7 @@ def update_item(companyId, id, model) path = "/api/v2/companies/#{company # @param model [Object] The item object you wish to update. # @return [Object] def update_item_classification(companyId, itemId, id, model) path = "/api/v2/companies/#{companyId}/items/#{itemId}/classifications/#{id}" - put(path, model, {}, "21.12.0") end + put(path, model, {}, "22.2.0") end # Update an item parameter # @@ -561,7 +561,7 @@ def update_item_classification(companyId, itemId, id, model) path = "/api # @param model [Object] The item object you wish to update. # @return [Object] def update_item_parameter(companyId, itemId, id, model) path = "/api/v2/companies/#{companyId}/items/#{itemId}/parameters/#{id}" - put(path, model, {}, "21.12.0") end + put(path, model, {}, "22.2.0") end end end end \ No newline at end of file diff --git a/lib/avatax/client/jurisdictionoverrides.rb b/lib/avatax/client/jurisdictionoverrides.rb index d5cc1f1..eda471c 100644 --- a/lib/avatax/client/jurisdictionoverrides.rb +++ b/lib/avatax/client/jurisdictionoverrides.rb @@ -20,7 +20,7 @@ module JurisdictionOverrides # @param model [JurisdictionOverrideModel[]] The jurisdiction override objects to create # @return [JurisdictionOverrideModel[]] def create_jurisdiction_overrides(accountId, model) path = "/api/v2/accounts/#{accountId}/jurisdictionoverrides" - post(path, model, {}, "21.12.0") end + post(path, model, {}, "22.2.0") end # Delete a single override # @@ -34,7 +34,7 @@ def create_jurisdiction_overrides(accountId, model) path = "/api/v2/accou # @param id [Integer] The ID of the override you wish to delete # @return [ErrorDetail[]] def delete_jurisdiction_override(accountId, id) path = "/api/v2/accounts/#{accountId}/jurisdictionoverrides/#{id}" - delete(path, {}, "21.12.0") end + delete(path, {}, "22.2.0") end # Retrieve a single override # @@ -53,7 +53,7 @@ def delete_jurisdiction_override(accountId, id) path = "/api/v2/accounts/ # @param id [Integer] The primary key of this override # @return [Object] def get_jurisdiction_override(accountId, id) path = "/api/v2/accounts/#{accountId}/jurisdictionoverrides/#{id}" - get(path, {}, "21.12.0") end + get(path, {}, "22.2.0") end # Retrieve overrides for this account # @@ -79,7 +79,7 @@ def get_jurisdiction_override(accountId, id) path = "/api/v2/accounts/#{a # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_jurisdiction_overrides_by_account(accountId, options={}) path = "/api/v2/accounts/#{accountId}/jurisdictionoverrides" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve all overrides # @@ -104,7 +104,7 @@ def list_jurisdiction_overrides_by_account(accountId, options={}) path = # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def query_jurisdiction_overrides(options={}) path = "/api/v2/jurisdictionoverrides" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Update a single jurisdictionoverride # @@ -119,7 +119,7 @@ def query_jurisdiction_overrides(options={}) path = "/api/v2/jurisdiction # @param model [Object] The jurisdictionoverride object you wish to update. # @return [Object] def update_jurisdiction_override(accountId, id, model) path = "/api/v2/accounts/#{accountId}/jurisdictionoverrides/#{id}" - put(path, model, {}, "21.12.0") end + put(path, model, {}, "22.2.0") end end end end \ No newline at end of file diff --git a/lib/avatax/client/locations.rb b/lib/avatax/client/locations.rb index 0d0e9f5..84a4644 100644 --- a/lib/avatax/client/locations.rb +++ b/lib/avatax/client/locations.rb @@ -26,7 +26,7 @@ module Locations # @param model [LocationParameterModel[]] The location parameters you wish to create. # @return [LocationParameterModel[]] def create_location_parameters(companyId, locationId, model) path = "/api/v2/companies/#{companyId}/locations/#{locationId}/parameters" - post(path, model, {}, "21.12.0") end + post(path, model, {}, "22.2.0") end # Create a new location # @@ -40,7 +40,7 @@ def create_location_parameters(companyId, locationId, model) path = "/api # @param model [LocationModel[]] The location you wish to create. # @return [LocationModel[]] def create_locations(companyId, model) path = "/api/v2/companies/#{companyId}/locations" - post(path, model, {}, "21.12.0") end + post(path, model, {}, "22.2.0") end # Delete a single location # @@ -54,7 +54,7 @@ def create_locations(companyId, model) path = "/api/v2/companies/#{compan # @param id [Integer] The ID of the location you wish to delete. # @return [ErrorDetail[]] def delete_location(companyId, id) path = "/api/v2/companies/#{companyId}/locations/#{id}" - delete(path, {}, "21.12.0") end + delete(path, {}, "22.2.0") end # Delete a single location parameter # @@ -75,7 +75,7 @@ def delete_location(companyId, id) path = "/api/v2/companies/#{companyId} # @param id [Integer] The parameter id # @return [ErrorDetail[]] def delete_location_parameter(companyId, locationId, id) path = "/api/v2/companies/#{companyId}/locations/#{locationId}/parameters/#{id}" - delete(path, {}, "21.12.0") end + delete(path, {}, "22.2.0") end # Retrieve a single location # @@ -99,7 +99,7 @@ def delete_location_parameter(companyId, locationId, id) path = "/api/v2/ # @param include [String] A comma separated list of additional data to retrieve. # @return [Object] def get_location(companyId, id, options={}) path = "/api/v2/companies/#{companyId}/locations/#{id}" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve a single company location parameter # @@ -120,7 +120,7 @@ def get_location(companyId, id, options={}) path = "/api/v2/companies/#{c # @param id [Integer] The parameter id # @return [Object] def get_location_parameter(companyId, locationId, id) path = "/api/v2/companies/#{companyId}/locations/#{locationId}/parameters/#{id}" - get(path, {}, "21.12.0") end + get(path, {}, "22.2.0") end # Retrieve parameters for a location # @@ -147,7 +147,7 @@ def get_location_parameter(companyId, locationId, id) path = "/api/v2/com # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_location_parameters(companyId, locationId, options={}) path = "/api/v2/companies/#{companyId}/locations/#{locationId}/parameters" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve locations for this company # @@ -176,7 +176,7 @@ def list_location_parameters(companyId, locationId, options={}) path = "/ # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_locations_by_company(companyId, options={}) path = "/api/v2/companies/#{companyId}/locations" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve all locations # @@ -205,7 +205,7 @@ def list_locations_by_company(companyId, options={}) path = "/api/v2/comp # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def query_locations(options={}) path = "/api/v2/locations" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Update a single location # @@ -222,7 +222,7 @@ def query_locations(options={}) path = "/api/v2/locations" # @param model [Object] The location you wish to update. # @return [Object] def update_location(companyId, id, model) path = "/api/v2/companies/#{companyId}/locations/#{id}" - put(path, model, {}, "21.12.0") end + put(path, model, {}, "22.2.0") end # Update a location parameter # @@ -244,7 +244,7 @@ def update_location(companyId, id, model) path = "/api/v2/companies/#{com # @param model [Object] The location parameter object you wish to update. # @return [Object] def update_location_parameter(companyId, locationId, id, model) path = "/api/v2/companies/#{companyId}/locations/#{locationId}/parameters/#{id}" - put(path, model, {}, "21.12.0") end + put(path, model, {}, "22.2.0") end # Validate the location against local requirements # @@ -260,7 +260,7 @@ def update_location_parameter(companyId, locationId, id, model) path = "/ # @param id [Integer] The primary key of this location # @return [Object] def validate_location(companyId, id) path = "/api/v2/companies/#{companyId}/locations/#{id}/validate" - get(path, {}, "21.12.0") end + get(path, {}, "22.2.0") end end end end \ No newline at end of file diff --git a/lib/avatax/client/multidocument.rb b/lib/avatax/client/multidocument.rb index 2413bc0..90f8bc7 100644 --- a/lib/avatax/client/multidocument.rb +++ b/lib/avatax/client/multidocument.rb @@ -35,7 +35,7 @@ module MultiDocument # @param model [Object] The adjust request you wish to execute # @return [Object] def adjust_multi_document_transaction(code, type, model, options={}) path = "/api/v2/transactions/multidocument/#{code}/type/#{type}/adjust" - post(path, model, options, "21.12.0") end + post(path, model, options, "22.2.0") end # Get audit information about a MultiDocument transaction # @@ -71,7 +71,7 @@ def adjust_multi_document_transaction(code, type, model, options={}) path # @param type [String] The transaction type for this MultiDocument transaction (See DocumentType::* for a list of allowable values) # @return [Object] def audit_multi_document_transaction(code, type) path = "/api/v2/transactions/multidocument/#{code}/type/#{type}/audit" - get(path, {}, "21.12.0") end + get(path, {}, "22.2.0") end # Commit a MultiDocument transaction # @@ -100,7 +100,7 @@ def audit_multi_document_transaction(code, type) path = "/api/v2/transact # @param model [Object] The commit request you wish to execute # @return [Object] def commit_multi_document_transaction(model) path = "/api/v2/transactions/multidocument/commit" - post(path, model, {}, "21.12.0") end + post(path, model, {}, "22.2.0") end # Create a new MultiDocument transaction # @@ -154,7 +154,7 @@ def commit_multi_document_transaction(model) path = "/api/v2/transactions # @param model [Object] the multi document transaction model # @return [Object] def create_multi_document_transaction(model, options={}) path = "/api/v2/transactions/multidocument" - post(path, model, options, "21.12.0") end + post(path, model, options, "22.2.0") end # Retrieve a MultiDocument transaction # @@ -189,7 +189,7 @@ def create_multi_document_transaction(model, options={}) path = "/api/v2/ # @param include [String] Specifies objects to include in the response after transaction is created # @return [Object] def get_multi_document_transaction_by_code_and_type(code, type, options={}) path = "/api/v2/transactions/multidocument/#{code}/type/#{type}" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve a MultiDocument transaction by ID # @@ -232,7 +232,7 @@ def get_multi_document_transaction_by_code_and_type(code, type, options={}) # @param include [String] Specifies objects to include in the response after transaction is created # @return [Object] def get_multi_document_transaction_by_id(id, options={}) path = "/api/v2/transactions/multidocument/#{id}" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve all MultiDocument transactions # @@ -276,7 +276,7 @@ def get_multi_document_transaction_by_id(id, options={}) path = "/api/v2/ # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_multi_document_transactions(options={}) path = "/api/v2/transactions/multidocument" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Create a refund for a MultiDocument transaction # @@ -336,7 +336,7 @@ def list_multi_document_transactions(options={}) path = "/api/v2/transact # @param model [Object] Information about the refund to create # @return [Object] def refund_multi_document_transaction(code, type, model, options={}) path = "/api/v2/transactions/multidocument/#{code}/type/#{type}/refund" - post(path, model, options, "21.12.0") end + post(path, model, options, "22.2.0") end # Verify a MultiDocument transaction # @@ -363,7 +363,7 @@ def refund_multi_document_transaction(code, type, model, options={}) path # @param model [Object] Information from your accounting system to verify against this MultiDocument transaction as it is stored in AvaTax # @return [Object] def verify_multi_document_transaction(model) path = "/api/v2/transactions/multidocument/verify" - post(path, model, {}, "21.12.0") end + post(path, model, {}, "22.2.0") end # Void a MultiDocument transaction # @@ -395,7 +395,7 @@ def verify_multi_document_transaction(model) path = "/api/v2/transactions # @param model [Object] The void request you wish to execute # @return [Object] def void_multi_document_transaction(code, type, model) path = "/api/v2/transactions/multidocument/#{code}/type/#{type}/void" - post(path, model, {}, "21.12.0") end + post(path, model, {}, "22.2.0") end end end end \ No newline at end of file diff --git a/lib/avatax/client/nexus.rb b/lib/avatax/client/nexus.rb index a92878f..fb2e171 100644 --- a/lib/avatax/client/nexus.rb +++ b/lib/avatax/client/nexus.rb @@ -33,7 +33,7 @@ module Nexus # @param model [NexusModel[]] The nexus you wish to create. # @return [NexusModel[]] def create_nexus(companyId, model) path = "/api/v2/companies/#{companyId}/nexus" - post(path, model, {}, "21.12.0") end + post(path, model, {}, "22.2.0") end # Add parameters to a nexus. # @@ -57,7 +57,7 @@ def create_nexus(companyId, model) path = "/api/v2/companies/#{companyId} # @param model [NexusParameterDetailModel[]] The nexus parameters you wish to create. # @return [NexusParameterDetailModel[]] def create_nexus_parameters(companyId, nexusId, model) path = "/api/v2/companies/#{companyId}/nexus/#{nexusId}/parameters" - post(path, model, {}, "21.12.0") end + post(path, model, {}, "22.2.0") end # Creates nexus for a list of addresses. # @@ -85,7 +85,7 @@ def create_nexus_parameters(companyId, nexusId, model) path = "/api/v2/co # @param model [DeclareNexusByAddressModel[]] The nexus you wish to create. # @return [NexusByAddressModel[]] def declare_nexus_by_address(companyId, model) path = "/api/v2/companies/#{companyId}/nexus/byaddress" - post(path, model, {}, "21.12.0") end + post(path, model, {}, "22.2.0") end # Delete a single nexus # @@ -107,7 +107,7 @@ def declare_nexus_by_address(companyId, model) path = "/api/v2/companies/ # @param cascadeDelete [Boolean] If true, deletes all the child nexus if they exist along with parent nexus # @return [ErrorDetail[]] def delete_nexus(companyId, id, options={}) path = "/api/v2/companies/#{companyId}/nexus/#{id}" - delete(path, options, "21.12.0") end + delete(path, options, "22.2.0") end # Delete a single nexus parameter # @@ -127,7 +127,7 @@ def delete_nexus(companyId, id, options={}) path = "/api/v2/companies/#{c # @param id [Integer] The parameter id # @return [ErrorDetail[]] def delete_nexus_parameter(companyId, nexusId, id) path = "/api/v2/companies/#{companyId}/nexus/#{nexusId}/parameters/#{id}" - delete(path, {}, "21.12.0") end + delete(path, {}, "22.2.0") end # Delete all parameters for an nexus # @@ -146,7 +146,7 @@ def delete_nexus_parameter(companyId, nexusId, id) path = "/api/v2/compan # @param nexusId [Integer] The ID of the nexus you wish to delete the parameters. # @return [ErrorDetail[]] def delete_nexus_parameters(companyId, nexusId) path = "/api/v2/companies/#{companyId}/nexus/#{nexusId}/parameters" - delete(path, {}, "21.12.0") end + delete(path, {}, "22.2.0") end # Retrieve a single nexus # @@ -168,7 +168,7 @@ def delete_nexus_parameters(companyId, nexusId) path = "/api/v2/companies # @param include [String] # @return [Object] def get_nexus(companyId, id, options={}) path = "/api/v2/companies/#{companyId}/nexus/#{id}" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # List company nexus related to a tax form # @@ -194,7 +194,7 @@ def get_nexus(companyId, id, options={}) path = "/api/v2/companies/#{comp # @param include [String] # @return [Object] def get_nexus_by_form_code(companyId, formCode, options={}) path = "/api/v2/companies/#{companyId}/nexus/byform/#{formCode}" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve a single nexus parameter # @@ -214,7 +214,7 @@ def get_nexus_by_form_code(companyId, formCode, options={}) path = "/api/ # @param id [Integer] The parameter id # @return [Object] def get_nexus_parameter(companyId, nexusId, id) path = "/api/v2/companies/#{companyId}/nexus/#{nexusId}/parameters/#{id}" - get(path, {}, "21.12.0") end + get(path, {}, "22.2.0") end # Retrieve nexus for this company # @@ -242,7 +242,7 @@ def get_nexus_parameter(companyId, nexusId, id) path = "/api/v2/companies # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_nexus_by_company(companyId, options={}) path = "/api/v2/companies/#{companyId}/nexus" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve nexus for this company By TaxTypeGroup # @@ -271,7 +271,7 @@ def list_nexus_by_company(companyId, options={}) path = "/api/v2/companie # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_nexus_by_company_and_tax_type_group(companyId, taxTypeGroup, options={}) path = "/api/v2/companies/#{companyId}/nexus/byTaxTypeGroup/#{taxTypeGroup}" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve parameters for a nexus # @@ -297,7 +297,7 @@ def list_nexus_by_company_and_tax_type_group(companyId, taxTypeGroup, 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_nexus_parameters(companyId, nexusId, options={}) path = "/api/v2/companies/#{companyId}/nexus/#{nexusId}/parameters" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve all nexus # @@ -324,7 +324,7 @@ def list_nexus_parameters(companyId, nexusId, options={}) path = "/api/v2 # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def query_nexus(options={}) path = "/api/v2/nexus" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Update a single nexus # @@ -357,7 +357,7 @@ def query_nexus(options={}) path = "/api/v2/nexus" # @param model [Object] The nexus object you wish to update. # @return [Object] def update_nexus(companyId, id, model) path = "/api/v2/companies/#{companyId}/nexus/#{id}" - put(path, model, {}, "21.12.0") end + put(path, model, {}, "22.2.0") end # Update an nexus parameter # @@ -379,7 +379,7 @@ def update_nexus(companyId, id, model) path = "/api/v2/companies/#{compan # @param model [Object] The nexus object you wish to update. # @return [Object] def update_nexus_parameter(companyId, nexusId, id, model) path = "/api/v2/companies/#{companyId}/nexus/#{nexusId}/parameters/#{id}" - put(path, model, {}, "21.12.0") end + put(path, model, {}, "22.2.0") end end end end \ No newline at end of file diff --git a/lib/avatax/client/notices.rb b/lib/avatax/client/notices.rb index 729ab24..ddd43b1 100644 --- a/lib/avatax/client/notices.rb +++ b/lib/avatax/client/notices.rb @@ -15,7 +15,7 @@ module Notices # @param model [Object] The responsibility type to create # @return [Object] def create_notice_responsibility_type(model) path = "/api/v2/notices/responsibilities" - post(path, model, {}, "21.12.0") end + post(path, model, {}, "22.2.0") end # Creates a new tax notice root cause type. # @@ -29,7 +29,7 @@ def create_notice_responsibility_type(model) path = "/api/v2/notices/resp # @param model [Object] The root cause type to create # @return [Object] def create_notice_root_cause_type(model) path = "/api/v2/notices/rootcauses" - post(path, model, {}, "21.12.0") end + post(path, model, {}, "22.2.0") end # Delete a tax notice responsibility type. # @@ -42,7 +42,7 @@ def create_notice_root_cause_type(model) path = "/api/v2/notices/rootcaus # @param responsibilityId [Integer] The unique ID of the responsibility type # @return [ErrorDetail[]] def delete_notice_responsibility_type(responsibilityId) path = "/api/v2/notices/responsibilities/#{responsibilityId}" - delete(path, {}, "21.12.0") end + delete(path, {}, "22.2.0") end # Delete a tax notice root cause type. # @@ -55,7 +55,7 @@ def delete_notice_responsibility_type(responsibilityId) path = "/api/v2/n # @param rootCauseId [Integer] The unique ID of the root cause type # @return [ErrorDetail[]] def delete_notice_root_cause_type(rootCauseId) path = "/api/v2/notices/rootcauses/#{rootCauseId}" - delete(path, {}, "21.12.0") end + delete(path, {}, "22.2.0") end end end end \ No newline at end of file diff --git a/lib/avatax/client/notifications.rb b/lib/avatax/client/notifications.rb index 25f9a25..a87aa6b 100644 --- a/lib/avatax/client/notifications.rb +++ b/lib/avatax/client/notifications.rb @@ -27,7 +27,7 @@ module Notifications # @param id [Integer] The id of the notification you wish to mark as dismissed. # @return [Object] def dismiss_notification(id) path = "/api/v2/notifications/#{id}/dismiss" - put(path, {}, "21.12.0") end + put(path, {}, "22.2.0") end # Retrieve a single notification. # @@ -47,7 +47,7 @@ def dismiss_notification(id) path = "/api/v2/notifications/#{id}/dismiss" # @param id [Integer] The id of the notification to retrieve. # @return [Object] def get_notification(id) path = "/api/v2/notifications/#{id}" - get(path, {}, "21.12.0") end + get(path, {}, "22.2.0") end # List all notifications. # @@ -73,7 +73,7 @@ def get_notification(id) path = "/api/v2/notifications/#{id}" # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_notifications(options={}) path = "/api/v2/notifications" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end end end end \ No newline at end of file diff --git a/lib/avatax/client/provisioning.rb b/lib/avatax/client/provisioning.rb index 6afb3d3..c37b3c2 100644 --- a/lib/avatax/client/provisioning.rb +++ b/lib/avatax/client/provisioning.rb @@ -29,7 +29,7 @@ module Provisioning # @param model [Object] Information about the account you wish to create and the selected product offerings. # @return [Object] def request_new_account(model) path = "/api/v2/accounts/request" - post(path, model, {}, "21.12.0") end + post(path, model, {}, "22.2.0") end # Request a new entitilement to an existing customer # @@ -46,7 +46,7 @@ def request_new_account(model) path = "/api/v2/accounts/request" # @param offer [String] The offer to be added to an already existing customer # @return [Object] def request_new_entitlement(id, offer) path = "/api/v2/accounts/#{id}/entitlements/#{offer}" - post(path, {}, "21.12.0") end + post(path, {}, "22.2.0") end end end end \ No newline at end of file diff --git a/lib/avatax/client/registrar.rb b/lib/avatax/client/registrar.rb index e3d7247..500954f 100644 --- a/lib/avatax/client/registrar.rb +++ b/lib/avatax/client/registrar.rb @@ -18,7 +18,7 @@ module Registrar # @param model [Object] The account you wish to create. # @return [AccountModel[]] def create_account(model) path = "/api/v2/accounts" - post(path, model, {}, "21.12.0") end + post(path, model, {}, "22.2.0") end # Create new notifications. # @@ -44,7 +44,7 @@ def create_account(model) path = "/api/v2/accounts" # @param model [NotificationModel[]] The notifications you wish to create. # @return [NotificationModel[]] def create_notifications(model) path = "/api/v2/notifications" - post(path, model, {}, "21.12.0") end + post(path, model, {}, "22.2.0") end # Create a new subscription # @@ -62,7 +62,7 @@ def create_notifications(model) path = "/api/v2/notifications" # @param model [SubscriptionModel[]] The subscription you wish to create. # @return [SubscriptionModel[]] def create_subscriptions(accountId, model) path = "/api/v2/accounts/#{accountId}/subscriptions" - post(path, model, {}, "21.12.0") end + post(path, model, {}, "22.2.0") end # Delete a single account # @@ -79,7 +79,7 @@ def create_subscriptions(accountId, model) path = "/api/v2/accounts/#{acc # @param id [Integer] The ID of the account you wish to delete. # @return [ErrorDetail[]] def delete_account(id) path = "/api/v2/accounts/#{id}" - delete(path, {}, "21.12.0") end + delete(path, {}, "22.2.0") end # Delete a single notification. # @@ -102,7 +102,7 @@ def delete_account(id) path = "/api/v2/accounts/#{id}" # @param id [Integer] The id of the notification you wish to delete. # @return [ErrorDetail[]] def delete_notification(id) path = "/api/v2/notifications/#{id}" - delete(path, {}, "21.12.0") end + delete(path, {}, "22.2.0") end # Delete a single subscription # @@ -119,7 +119,7 @@ def delete_notification(id) path = "/api/v2/notifications/#{id}" # @param id [Integer] The ID of the subscription you wish to delete. # @return [ErrorDetail[]] def delete_subscription(accountId, id) path = "/api/v2/accounts/#{accountId}/subscriptions/#{id}" - delete(path, {}, "21.12.0") end + delete(path, {}, "22.2.0") end # Retrieve List of Accounts by Account Migration Status # @@ -130,7 +130,7 @@ def delete_subscription(accountId, id) path = "/api/v2/accounts/#{account # @param writeMode [String] (See TssAccountMigrationId::* for a list of allowable values) # @return [Object] def list_accounts_by_tss_write_mode(writeMode) path = "/api/v2/accounts/ListAccountsByTssWriteMode/#{writeMode}" - get(path, {}, "21.12.0") end + get(path, {}, "22.2.0") end # Reset a user's password programmatically # @@ -151,7 +151,7 @@ def list_accounts_by_tss_write_mode(writeMode) path = "/api/v2/accounts/L # @param model [Object] The new password for this user # @return [String] def reset_password(userId, model, options={}) path = "/api/v2/passwords/#{userId}/reset" - post(path, model, options, "21.12.0") end + post(path, model, options, "22.2.0") end # Update a single account # @@ -168,7 +168,7 @@ def reset_password(userId, model, options={}) path = "/api/v2/passwords/# # @param model [Object] The account object you wish to update. # @return [Object] def update_account(id, model) path = "/api/v2/accounts/#{id}" - put(path, model, {}, "21.12.0") end + put(path, model, {}, "22.2.0") end # Update a single notification. # @@ -192,7 +192,7 @@ def update_account(id, model) path = "/api/v2/accounts/#{id}" # @param model [Object] The notification object you wish to update. # @return [Object] def update_notification(id, model) path = "/api/v2/notifications/#{id}" - put(path, model, {}, "21.12.0") end + put(path, model, {}, "22.2.0") end # Update a single subscription # @@ -214,7 +214,7 @@ def update_notification(id, model) path = "/api/v2/notifications/#{id}" # @param model [Object] The subscription you wish to update. # @return [Object] def update_subscription(accountId, id, model) path = "/api/v2/accounts/#{accountId}/subscriptions/#{id}" - put(path, model, {}, "21.12.0") end + put(path, model, {}, "22.2.0") end end end end \ No newline at end of file diff --git a/lib/avatax/client/reports.rb b/lib/avatax/client/reports.rb index 7bd702e..5ca3715 100644 --- a/lib/avatax/client/reports.rb +++ b/lib/avatax/client/reports.rb @@ -27,7 +27,7 @@ module Reports # @param id [Integer] The unique ID number of this report # @return [Object] def download_report(id) path = "/api/v2/reports/#{id}/attachment" - get(path, {}, "21.12.0") end + get(path, {}, "22.2.0") end # Retrieve a single report # @@ -46,7 +46,7 @@ def download_report(id) path = "/api/v2/reports/#{id}/attachment" # @param id [Integer] The unique ID number of the report to retrieve # @return [Object] def get_report(id) path = "/api/v2/reports/#{id}" - get(path, {}, "21.12.0") end + get(path, {}, "22.2.0") end # Initiate an ExportDocumentLine report task # @@ -79,7 +79,7 @@ def get_report(id) path = "/api/v2/reports/#{id}" # @param model [Object] Options that may be configured to customize the report. # @return [ReportModel[]] def initiate_export_document_line_report(companyId, model) path = "/api/v2/companies/#{companyId}/reports/exportdocumentline/initiate" - post(path, model, {}, "21.12.0") end + post(path, model, {}, "22.2.0") end # List all report tasks for account # @@ -105,7 +105,7 @@ def initiate_export_document_line_report(companyId, model) path = "/api/v # @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. # @return [FetchResult] def list_reports(options={}) path = "/api/v2/reports" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end end end end \ No newline at end of file diff --git a/lib/avatax/client/settings.rb b/lib/avatax/client/settings.rb index ee0915c..3bd1802 100644 --- a/lib/avatax/client/settings.rb +++ b/lib/avatax/client/settings.rb @@ -29,7 +29,7 @@ module Settings # @param model [SettingModel[]] The setting you wish to create. # @return [SettingModel[]] def create_settings(companyId, model) path = "/api/v2/companies/#{companyId}/settings" - post(path, model, {}, "21.12.0") end + post(path, model, {}, "22.2.0") end # Delete a single setting # @@ -52,7 +52,7 @@ def create_settings(companyId, model) path = "/api/v2/companies/#{company # @param id [Integer] The ID of the setting you wish to delete. # @return [ErrorDetail[]] def delete_setting(companyId, id) path = "/api/v2/companies/#{companyId}/settings/#{id}" - delete(path, {}, "21.12.0") end + delete(path, {}, "22.2.0") end # Retrieve a single setting # @@ -75,7 +75,7 @@ def delete_setting(companyId, id) path = "/api/v2/companies/#{companyId}/ # @param id [Integer] The primary key of this setting # @return [Object] def get_setting(companyId, id) path = "/api/v2/companies/#{companyId}/settings/#{id}" - get(path, {}, "21.12.0") end + get(path, {}, "22.2.0") end # Retrieve all settings for this company # @@ -105,7 +105,7 @@ def get_setting(companyId, id) path = "/api/v2/companies/#{companyId}/set # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_settings_by_company(companyId, options={}) path = "/api/v2/companies/#{companyId}/settings" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve all settings # @@ -134,7 +134,7 @@ def list_settings_by_company(companyId, options={}) path = "/api/v2/compa # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def query_settings(options={}) path = "/api/v2/settings" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Update a single setting # @@ -162,7 +162,7 @@ def query_settings(options={}) path = "/api/v2/settings" # @param model [Object] The setting you wish to update. # @return [Object] def update_setting(companyId, id, model) path = "/api/v2/companies/#{companyId}/settings/#{id}" - put(path, model, {}, "21.12.0") end + put(path, model, {}, "22.2.0") end end end end \ No newline at end of file diff --git a/lib/avatax/client/subscriptions.rb b/lib/avatax/client/subscriptions.rb index 9a0b7fa..fe47646 100644 --- a/lib/avatax/client/subscriptions.rb +++ b/lib/avatax/client/subscriptions.rb @@ -17,7 +17,7 @@ module Subscriptions # @param id [Integer] The primary key of this subscription # @return [Object] def get_subscription(accountId, id) path = "/api/v2/accounts/#{accountId}/subscriptions/#{id}" - get(path, {}, "21.12.0") end + get(path, {}, "22.2.0") end # Retrieve subscriptions for this account # @@ -39,7 +39,7 @@ def get_subscription(accountId, id) path = "/api/v2/accounts/#{accountId} # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_subscriptions_by_account(accountId, options={}) path = "/api/v2/accounts/#{accountId}/subscriptions" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve all subscriptions # @@ -60,7 +60,7 @@ def list_subscriptions_by_account(accountId, options={}) path = "/api/v2/ # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def query_subscriptions(options={}) path = "/api/v2/subscriptions" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end end end end \ No newline at end of file diff --git a/lib/avatax/client/taxcodes.rb b/lib/avatax/client/taxcodes.rb index 5f8c8fb..52f89c9 100644 --- a/lib/avatax/client/taxcodes.rb +++ b/lib/avatax/client/taxcodes.rb @@ -19,7 +19,7 @@ module TaxCodes # @param model [TaxCodeModel[]] The tax code you wish to create. # @return [TaxCodeModel[]] def create_tax_codes(companyId, model) path = "/api/v2/companies/#{companyId}/taxcodes" - post(path, model, {}, "21.12.0") end + post(path, model, {}, "22.2.0") end # Delete a single tax code # @@ -33,7 +33,7 @@ def create_tax_codes(companyId, model) path = "/api/v2/companies/#{compan # @param id [Integer] The ID of the tax code you wish to delete. # @return [ErrorDetail[]] def delete_tax_code(companyId, id) path = "/api/v2/companies/#{companyId}/taxcodes/#{id}" - delete(path, {}, "21.12.0") end + delete(path, {}, "22.2.0") end # Retrieve a single tax code # @@ -51,7 +51,7 @@ def delete_tax_code(companyId, id) path = "/api/v2/companies/#{companyId} # @param id [Integer] The primary key of this tax code # @return [Object] def get_tax_code(companyId, id) path = "/api/v2/companies/#{companyId}/taxcodes/#{id}" - get(path, {}, "21.12.0") end + get(path, {}, "22.2.0") end # Retrieve tax codes for this company # @@ -76,7 +76,7 @@ def get_tax_code(companyId, id) path = "/api/v2/companies/#{companyId}/ta # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_tax_codes_by_company(companyId, options={}) path = "/api/v2/companies/#{companyId}/taxcodes" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve all tax codes # @@ -100,7 +100,7 @@ def list_tax_codes_by_company(companyId, options={}) path = "/api/v2/comp # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def query_tax_codes(options={}) path = "/api/v2/taxcodes" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Update a single tax code # @@ -121,7 +121,7 @@ def query_tax_codes(options={}) path = "/api/v2/taxcodes" # @param model [Object] The tax code you wish to update. # @return [Object] def update_tax_code(companyId, id, model) path = "/api/v2/companies/#{companyId}/taxcodes/#{id}" - put(path, model, {}, "21.12.0") end + put(path, model, {}, "22.2.0") end end end end \ No newline at end of file diff --git a/lib/avatax/client/taxcontent.rb b/lib/avatax/client/taxcontent.rb index 7089f5d..91588bc 100644 --- a/lib/avatax/client/taxcontent.rb +++ b/lib/avatax/client/taxcontent.rb @@ -37,7 +37,7 @@ module TaxContent # @param model [Object] Parameters about the desired file format and report format, specifying which company, locations and TaxCodes to include. # @return [Object] def build_tax_content_file(model) path = "/api/v2/pointofsaledata/build" - post(path, model, {}, "21.12.0") end + post(path, model, {}, "22.2.0") end # Build a tax content file for a single location # @@ -78,7 +78,7 @@ def build_tax_content_file(model) path = "/api/v2/pointofsaledata/build" # @param includeJurisCodes [Boolean] When true, the file will include jurisdiction codes in the result. # @return [Object] def build_tax_content_file_for_location(companyId, id, options={}) path = "/api/v2/companies/#{companyId}/locations/#{id}/pointofsaledata" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Download a file listing tax rates by postal code # @@ -131,7 +131,7 @@ def build_tax_content_file_for_location(companyId, id, options={}) path = # @param region [String] A two character region code which limits results to a specific region. # @return [Object] def download_tax_rates_by_zip_code(date, options={}) path = "/api/v2/taxratesbyzipcode/download/#{date}" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Sales tax rates for a specified address # @@ -165,7 +165,7 @@ def download_tax_rates_by_zip_code(date, options={}) path = "/api/v2/taxr # @param country [String] Name or ISO 3166 code identifying the country. This field supports many different country identifiers: * Two character ISO 3166 codes * Three character ISO 3166 codes * Fully spelled out names of the country in ISO supported languages * Common alternative spellings for many countries For a full list of all supported codes and names, please see the Definitions API `ListCountries`. # @return [Object] def tax_rates_by_address(options={}) path = "/api/v2/taxrates/byaddress" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Sales tax rates for a specified country and postal code. This API is only available for US postal codes. # @@ -196,7 +196,7 @@ def tax_rates_by_address(options={}) path = "/api/v2/taxrates/byaddress" # @param postalCode [String] The postal code of the location. # @return [Object] def tax_rates_by_postal_code(options={}) path = "/api/v2/taxrates/bypostalcode" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end end end end \ No newline at end of file diff --git a/lib/avatax/client/taxrules.rb b/lib/avatax/client/taxrules.rb index fd3a0d3..5e50c80 100644 --- a/lib/avatax/client/taxrules.rb +++ b/lib/avatax/client/taxrules.rb @@ -27,7 +27,7 @@ module TaxRules # @param model [TaxRuleModel[]] The tax rule you wish to create. # @return [TaxRuleModel[]] def create_tax_rules(companyId, model) path = "/api/v2/companies/#{companyId}/taxrules" - post(path, model, {}, "21.12.0") end + post(path, model, {}, "22.2.0") end # Delete a single tax rule # @@ -53,7 +53,7 @@ def create_tax_rules(companyId, model) path = "/api/v2/companies/#{compan # @param id [Integer] The ID of the tax rule you wish to delete. # @return [ErrorDetail[]] def delete_tax_rule(companyId, id) path = "/api/v2/companies/#{companyId}/taxrules/#{id}" - delete(path, {}, "21.12.0") end + delete(path, {}, "22.2.0") end # Retrieve a single tax rule # @@ -79,7 +79,7 @@ def delete_tax_rule(companyId, id) path = "/api/v2/companies/#{companyId} # @param id [Integer] The primary key of this tax rule # @return [Object] def get_tax_rule(companyId, id) path = "/api/v2/companies/#{companyId}/taxrules/#{id}" - get(path, {}, "21.12.0") end + get(path, {}, "22.2.0") end # Retrieve tax rules for this company # @@ -112,7 +112,7 @@ def get_tax_rule(companyId, id) path = "/api/v2/companies/#{companyId}/ta # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_tax_rules(companyId, options={}) path = "/api/v2/companies/#{companyId}/taxrules" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve all tax rules # @@ -144,7 +144,7 @@ def list_tax_rules(companyId, options={}) path = "/api/v2/companies/#{com # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def query_tax_rules(options={}) path = "/api/v2/taxrules" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Update a single tax rule # @@ -171,7 +171,7 @@ def query_tax_rules(options={}) path = "/api/v2/taxrules" # @param model [Object] The tax rule you wish to update. # @return [Object] def update_tax_rule(companyId, id, model) path = "/api/v2/companies/#{companyId}/taxrules/#{id}" - put(path, model, {}, "21.12.0") end + put(path, model, {}, "22.2.0") end end end end \ No newline at end of file diff --git a/lib/avatax/client/transactions.rb b/lib/avatax/client/transactions.rb index 3415242..9b124d3 100644 --- a/lib/avatax/client/transactions.rb +++ b/lib/avatax/client/transactions.rb @@ -35,7 +35,7 @@ module Transactions # @param model [Object] information about the transaction and lines to be added # @return [Object] def add_lines(model, options={}) path = "/api/v2/companies/transactions/lines/add" - post(path, model, options, "21.12.0") end + post(path, model, options, "22.2.0") end # Correct a previously created transaction # @@ -81,7 +81,7 @@ def add_lines(model, options={}) path = "/api/v2/companies/transactions/l # @param model [Object] The adjustment you wish to make # @return [Object] def adjust_transaction(companyCode, transactionCode, model, options={}) path = "/api/v2/companies/#{companyCode}/transactions/#{transactionCode}/adjust" - post(path, model, options, "21.12.0") end + post(path, model, options, "22.2.0") end # Get audit information about a transaction # @@ -118,7 +118,7 @@ def adjust_transaction(companyCode, transactionCode, model, options={}) p # @param transactionCode [String] The code identifying the transaction # @return [Object] def audit_transaction(companyCode, transactionCode) path = "/api/v2/companies/#{companyCode}/transactions/#{transactionCode}/audit" - get(path, {}, "21.12.0") end + get(path, {}, "22.2.0") end # Get audit information about a transaction # @@ -156,7 +156,7 @@ def audit_transaction(companyCode, transactionCode) path = "/api/v2/compa # @param documentType [String] The document type of the original transaction (See DocumentType::* for a list of allowable values) # @return [Object] def audit_transaction_with_type(companyCode, transactionCode, documentType) path = "/api/v2/companies/#{companyCode}/transactions/#{transactionCode}/types/#{documentType}/audit" - get(path, {}, "21.12.0") end + get(path, {}, "22.2.0") end # Lock a set of documents # @@ -176,7 +176,7 @@ def audit_transaction_with_type(companyCode, transactionCode, documentType) # @param model [Object] bulk lock request # @return [Object] def bulk_lock_transaction(model) path = "/api/v2/transactions/lock" - post(path, model, {}, "21.12.0") end + post(path, model, {}, "22.2.0") end # Change a transaction's code # @@ -222,7 +222,7 @@ def bulk_lock_transaction(model) path = "/api/v2/transactions/lock" # @param model [Object] The code change request you wish to execute # @return [Object] def change_transaction_code(companyCode, transactionCode, model, options={}) path = "/api/v2/companies/#{companyCode}/transactions/#{transactionCode}/changecode" - post(path, model, options, "21.12.0") end + post(path, model, options, "22.2.0") end # Commit a transaction for reporting # @@ -266,7 +266,7 @@ def change_transaction_code(companyCode, transactionCode, model, options={}) # @param model [Object] The commit request you wish to execute # @return [Object] def commit_transaction(companyCode, transactionCode, model, options={}) path = "/api/v2/companies/#{companyCode}/transactions/#{transactionCode}/commit" - post(path, model, options, "21.12.0") end + post(path, model, options, "22.2.0") end # Create or adjust a transaction # @@ -313,7 +313,7 @@ def commit_transaction(companyCode, transactionCode, model, options={}) p # @param model [Object] The transaction you wish to create or adjust # @return [Object] def create_or_adjust_transaction(model, options={}) path = "/api/v2/transactions/createoradjust" - post(path, model, options, "21.12.0") end + post(path, model, options, "22.2.0") end # Create a new transaction # @@ -367,7 +367,7 @@ def create_or_adjust_transaction(model, options={}) path = "/api/v2/trans # @param model [Object] The transaction you wish to create # @return [Object] def create_transaction(model, options={}) path = "/api/v2/transactions/create" - post(path, model, options, "21.12.0") end + post(path, model, options, "22.2.0") end # Remove lines from an existing unlocked transaction # @@ -398,7 +398,7 @@ def create_transaction(model, options={}) path = "/api/v2/transactions/cr # @param model [Object] information about the transaction and lines to be removed # @return [Object] def delete_lines(model, options={}) path = "/api/v2/companies/transactions/lines/delete" - post(path, model, options, "21.12.0") end + post(path, model, options, "22.2.0") end # Retrieve a single transaction by code # @@ -440,7 +440,7 @@ def delete_lines(model, options={}) path = "/api/v2/companies/transaction # @param include [String] Specifies objects to include in this fetch call # @return [Object] def get_transaction_by_code(companyCode, transactionCode, options={}) path = "/api/v2/companies/#{companyCode}/transactions/#{transactionCode}" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve a single transaction by code # @@ -465,7 +465,7 @@ def get_transaction_by_code(companyCode, transactionCode, options={}) pat # @param include [String] Specifies objects to include in this fetch call # @return [Object] def get_transaction_by_code_and_type(companyCode, transactionCode, documentType, options={}) path = "/api/v2/companies/#{companyCode}/transactions/#{transactionCode}/types/#{documentType}" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve a single transaction by ID # @@ -496,7 +496,7 @@ def get_transaction_by_code_and_type(companyCode, transactionCode, documentType, # @param include [String] Specifies objects to include in this fetch call # @return [Object] def get_transaction_by_id(id, options={}) path = "/api/v2/transactions/#{id}" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve all transactions # @@ -544,7 +544,7 @@ def get_transaction_by_id(id, options={}) path = "/api/v2/transactions/#{ # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_transactions_by_company(companyCode, options={}) path = "/api/v2/companies/#{companyCode}/transactions" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Lock a single transaction # @@ -590,7 +590,7 @@ def list_transactions_by_company(companyCode, options={}) path = "/api/v2 # @param model [Object] The lock request you wish to execute # @return [Object] def lock_transaction(companyCode, transactionCode, model, options={}) path = "/api/v2/companies/#{companyCode}/transactions/#{transactionCode}/lock" - post(path, model, options, "21.12.0") end + post(path, model, options, "22.2.0") end # Create a refund for a transaction # @@ -647,7 +647,7 @@ def lock_transaction(companyCode, transactionCode, model, options={}) pat # @param model [Object] Information about the refund to create # @return [Object] def refund_transaction(companyCode, transactionCode, model, options={}) path = "/api/v2/companies/#{companyCode}/transactions/#{transactionCode}/refund" - post(path, model, options, "21.12.0") end + post(path, model, options, "22.2.0") end # Perform multiple actions on a transaction # @@ -691,7 +691,7 @@ def refund_transaction(companyCode, transactionCode, model, options={}) p # @param model [Object] The data from an external system to reconcile against AvaTax # @return [Object] def settle_transaction(companyCode, transactionCode, model, options={}) path = "/api/v2/companies/#{companyCode}/transactions/#{transactionCode}/settle" - post(path, model, options, "21.12.0") end + post(path, model, options, "22.2.0") end # Uncommit a transaction for reporting # @@ -729,7 +729,7 @@ def settle_transaction(companyCode, transactionCode, model, options={}) p # @param include [String] Specifies objects to include in this fetch call # @return [Object] def uncommit_transaction(companyCode, transactionCode, options={}) path = "/api/v2/companies/#{companyCode}/transactions/#{transactionCode}/uncommit" - post(path, options, "21.12.0") end + post(path, options, "22.2.0") end # Unvoids a transaction # @@ -764,7 +764,7 @@ def uncommit_transaction(companyCode, transactionCode, options={}) path = # @param include [String] Specifies objects to include in this fetch call # @return [Object] def unvoid_transaction(companyCode, transactionCode, options={}) path = "/api/v2/companies/#{companyCode}/transactions/#{transactionCode}/unvoid" - post(path, options, "21.12.0") end + post(path, options, "22.2.0") end # Verify a transaction # @@ -807,7 +807,7 @@ def unvoid_transaction(companyCode, transactionCode, options={}) path = " # @param model [Object] The data from an external system to reconcile against AvaTax # @return [Object] def verify_transaction(companyCode, transactionCode, model, options={}) path = "/api/v2/companies/#{companyCode}/transactions/#{transactionCode}/verify" - post(path, model, options, "21.12.0") end + post(path, model, options, "22.2.0") end # Void a transaction # @@ -852,7 +852,7 @@ def verify_transaction(companyCode, transactionCode, model, options={}) p # @param model [Object] The void request you wish to execute. To void a transaction the code must be set to 'DocVoided' # @return [Object] def void_transaction(companyCode, transactionCode, model, options={}) path = "/api/v2/companies/#{companyCode}/transactions/#{transactionCode}/void" - post(path, model, options, "21.12.0") end + post(path, model, options, "22.2.0") end end end end \ No newline at end of file diff --git a/lib/avatax/client/upcs.rb b/lib/avatax/client/upcs.rb index 3498dca..68856d0 100644 --- a/lib/avatax/client/upcs.rb +++ b/lib/avatax/client/upcs.rb @@ -17,7 +17,7 @@ module Upcs # @param model [UPCModel[]] The UPC you wish to create. # @return [UPCModel[]] def create_u_p_cs(companyId, model) path = "/api/v2/companies/#{companyId}/upcs" - post(path, model, {}, "21.12.0") end + post(path, model, {}, "22.2.0") end # Delete a single UPC # @@ -32,7 +32,7 @@ def create_u_p_cs(companyId, model) path = "/api/v2/companies/#{companyId # @param id [Integer] The ID of the UPC you wish to delete. # @return [ErrorDetail[]] def delete_u_p_c(companyId, id) path = "/api/v2/companies/#{companyId}/upcs/#{id}" - delete(path, {}, "21.12.0") end + delete(path, {}, "22.2.0") end # Retrieve a single UPC # @@ -48,7 +48,7 @@ def delete_u_p_c(companyId, id) path = "/api/v2/companies/#{companyId}/up # @param id [Integer] The primary key of this UPC # @return [Object] def get_u_p_c(companyId, id) path = "/api/v2/companies/#{companyId}/upcs/#{id}" - get(path, {}, "21.12.0") end + get(path, {}, "22.2.0") end # Retrieve UPCs for this company # @@ -71,7 +71,7 @@ def get_u_p_c(companyId, id) path = "/api/v2/companies/#{companyId}/upcs/ # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_u_p_cs_by_company(companyId, options={}) path = "/api/v2/companies/#{companyId}/upcs" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve all UPCs # @@ -93,7 +93,7 @@ def list_u_p_cs_by_company(companyId, options={}) path = "/api/v2/compani # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def query_u_p_cs(options={}) path = "/api/v2/upcs" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Update a single UPC # @@ -112,7 +112,7 @@ def query_u_p_cs(options={}) path = "/api/v2/upcs" # @param model [Object] The UPC you wish to update. # @return [Object] def update_u_p_c(companyId, id, model) path = "/api/v2/companies/#{companyId}/upcs/#{id}" - put(path, model, {}, "21.12.0") end + put(path, model, {}, "22.2.0") end end end end \ No newline at end of file diff --git a/lib/avatax/client/userdefinedfields.rb b/lib/avatax/client/userdefinedfields.rb index 2e51faf..30098a1 100644 --- a/lib/avatax/client/userdefinedfields.rb +++ b/lib/avatax/client/userdefinedfields.rb @@ -16,7 +16,7 @@ module UserDefinedFields # @param id [Integer] The id of the User Defined Field you wish to delete. # @return [ErrorDetail[]] def delete_user_defined_field(companyId, id) path = "/api/v2/companies/#{companyId}/userdefinedfields/#{id}" - delete(path, {}, "21.12.0") end + delete(path, {}, "22.2.0") end # # @@ -30,7 +30,7 @@ def delete_user_defined_field(companyId, id) path = "/api/v2/companies/#{ # @param allowDefaults [Boolean] If true this will add defaulted UDFs to the list that are not named yet # @return [FetchResult] def list_user_defined_fields_by_company_id(companyId, options={}) path = "/api/v2/companies/#{companyId}/userdefinedfields" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Update a User Defined Field identified by id for a company # @@ -46,7 +46,7 @@ def list_user_defined_fields_by_company_id(companyId, options={}) path = # @param model [Object] # @return [Object] def update_user_defined_field(companyId, model, options={}) path = "/api/v2/companies/#{companyId}/userdefinedfields" - post(path, model, options, "21.12.0") end + post(path, model, options, "22.2.0") end end end end \ No newline at end of file diff --git a/lib/avatax/client/users.rb b/lib/avatax/client/users.rb index 4a11a46..f18740f 100644 --- a/lib/avatax/client/users.rb +++ b/lib/avatax/client/users.rb @@ -20,7 +20,7 @@ module Users # @param model [Object] An object containing your current password and the new password. # @return [String] def change_password(model) path = "/api/v2/passwords" - put(path, model, {}, "21.12.0") end + put(path, model, {}, "22.2.0") end # Create new users # @@ -42,7 +42,7 @@ def change_password(model) path = "/api/v2/passwords" # @param model [UserModel[]] The user or array of users you wish to create. # @return [UserModel[]] def create_users(accountId, model) path = "/api/v2/accounts/#{accountId}/users" - post(path, model, {}, "21.12.0") end + post(path, model, {}, "22.2.0") end # Delete a single user # @@ -61,7 +61,7 @@ def create_users(accountId, model) path = "/api/v2/accounts/#{accountId}/ # @param accountId [Integer] The accountID of the user you wish to delete. # @return [ErrorDetail[]] def delete_user(id, accountId) path = "/api/v2/accounts/#{accountId}/users/#{id}" - delete(path, {}, "21.12.0") end + delete(path, {}, "22.2.0") end # Retrieve a single user # @@ -81,7 +81,7 @@ def delete_user(id, accountId) path = "/api/v2/accounts/#{accountId}/user # @param include [String] Optional fetch commands. # @return [Object] def get_user(id, accountId, options={}) path = "/api/v2/accounts/#{accountId}/users/#{id}" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve all entitlements for a single user # @@ -109,7 +109,7 @@ def get_user(id, accountId, options={}) path = "/api/v2/accounts/#{accoun # @param accountId [Integer] The accountID of the user you wish to get. # @return [Object] def get_user_entitlements(id, accountId) path = "/api/v2/accounts/#{accountId}/users/#{id}/entitlements" - get(path, {}, "21.12.0") end + get(path, {}, "22.2.0") end # Retrieve users for this account # @@ -138,7 +138,7 @@ def get_user_entitlements(id, accountId) path = "/api/v2/accounts/#{accou # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def list_users_by_account(accountId, options={}) path = "/api/v2/accounts/#{accountId}/users" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Retrieve all users # @@ -168,7 +168,7 @@ def list_users_by_account(accountId, options={}) path = "/api/v2/accounts # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. # @return [FetchResult] def query_users(options={}) path = "/api/v2/users" - get(path, options, "21.12.0") end + get(path, options, "22.2.0") end # Update a single user # @@ -186,7 +186,7 @@ def query_users(options={}) path = "/api/v2/users" # @param model [Object] The user object you wish to update. # @return [Object] def update_user(id, accountId, model) path = "/api/v2/accounts/#{accountId}/users/#{id}" - put(path, model, {}, "21.12.0") end + put(path, model, {}, "22.2.0") end end end end \ No newline at end of file diff --git a/lib/avatax/client/utilities.rb b/lib/avatax/client/utilities.rb index d6843a4..e8b4265 100644 --- a/lib/avatax/client/utilities.rb +++ b/lib/avatax/client/utilities.rb @@ -17,7 +17,7 @@ module Utilities # @param serviceTypeId [String] The service to check # @return [Object] def get_my_subscription(serviceTypeId) path = "/api/v2/utilities/subscriptions/#{serviceTypeId}" - get(path, {}, "21.12.0") end + get(path, {}, "22.2.0") end # List all services to which the current user is subscribed # @@ -32,7 +32,7 @@ def get_my_subscription(serviceTypeId) path = "/api/v2/utilities/subscrip # Swagger Name: AvaTaxClient # @return [FetchResult] def list_my_subscriptions() path = "/api/v2/utilities/subscriptions" - get(path, {}, "21.12.0") end + get(path, {}, "22.2.0") end # Tests connectivity and version of the service # @@ -59,7 +59,7 @@ def list_my_subscriptions() path = "/api/v2/utilities/subscriptions" # Swagger Name: AvaTaxClient # @return [Object] def ping() path = "/api/v2/utilities/ping" - get(path, {}, "21.12.0") end + get(path, {}, "22.2.0") end end end end \ No newline at end of file diff --git a/lib/avatax/version.rb b/lib/avatax/version.rb index 817481b..a128b54 100644 --- a/lib/avatax/version.rb +++ b/lib/avatax/version.rb @@ -1,3 +1,3 @@ module AvaTax - VERSION = '21.12.0'.freeze unless defined?(::AvaTax::VERSION) + VERSION = '22.2.0'.freeze unless defined?(::AvaTax::VERSION) end