From 037741de5423ff16ae08d5957b5b659c8f5ada13 Mon Sep 17 00:00:00 2001 From: svc-developer Date: Thu, 10 Oct 2024 16:07:09 +0000 Subject: [PATCH] 24.10.0 --- setup.py | 2 +- src/avalara/client_methods.py | 864 ++++++++++++++++++---------------- src/client_methods.py | 864 ++++++++++++++++++---------------- 3 files changed, 907 insertions(+), 823 deletions(-) diff --git a/setup.py b/setup.py index a799715..5e0cd45 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ setup( name='Avalara', - version='24.8.2', + version='24.10.0', url='https://github.com/avadev/AvaTax-REST-V2-Python-SDK', package_dir={'': 'src'}, packages=['avalara'], diff --git a/src/avalara/client_methods.py b/src/avalara/client_methods.py index c697cf9..d2ef47c 100644 --- a/src/avalara/client_methods.py +++ b/src/avalara/client_methods.py @@ -31,7 +31,7 @@ class Mixin: """ def account_reset_license_key(self, id_, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/accounts/{}/resetlicensekey'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -56,7 +56,7 @@ def account_reset_license_key(self, id_, model): """ def activate_account(self, id_, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/accounts/{}/activate'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -76,7 +76,7 @@ def activate_account(self, id_, model): * Old records may be migrated out of immediately available storage. To request older data, please contact your account manager. * New records must migrate to available storage before they can be retrieved. You may need to wait a period of time before newly created records can be fetched. ### Security Policies - * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, ECMAccountUser, ECMCompanyUser, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. + * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, ECMAccountUser, ECMCompanyUser, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. :param id_ [int] The ID of the account you wish to audit. :param start [datetime] The start datetime of audit history you with to retrieve, e.g. "2018-06-08T17:00:00Z". Defaults to the past 15 minutes. @@ -87,7 +87,7 @@ def activate_account(self, id_, model): """ def audit_account(self, id_, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/accounts/{}/audit'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -112,7 +112,7 @@ def audit_account(self, id_, include=None): """ def create_license_key(self, id_, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/accounts/{}/licensekey'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -133,7 +133,7 @@ def create_license_key(self, id_, model): """ def delete_license_key(self, id_, licensekeyname): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/accounts/{}/licensekey/{}'.format(self.base_url, id_, licensekeyname), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -147,7 +147,7 @@ def delete_license_key(self, id_, licensekeyname): * Subscriptions * Users ### Security Policies - * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, ECMAccountUser, ECMCompanyUser, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. + * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, ECMAccountUser, ECMCompanyUser, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. :param id_ [int] The ID of the account to retrieve :param include [string] A comma separated list of special fetch options @@ -155,7 +155,7 @@ def delete_license_key(self, id_, licensekeyname): """ def get_account(self, id_, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/accounts/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -181,7 +181,7 @@ def get_account(self, id_, include=None): """ def get_account_configuration(self, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/accounts/{}/configuration'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -191,7 +191,7 @@ def get_account_configuration(self, id_): Retrieve license key by license key name ### Security Policies - * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, ECMAccountUser, ECMCompanyUser, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. + * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, ECMAccountUser, ECMCompanyUser, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. :param id_ [int] The ID of the account to retrieve :param licensekeyname [string] The ID of the account to retrieve @@ -199,7 +199,7 @@ def get_account_configuration(self, id_): """ def get_license_key(self, id_, licensekeyname): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/accounts/{}/licensekey/{}'.format(self.base_url, id_, licensekeyname), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -210,14 +210,14 @@ def get_license_key(self, id_, licensekeyname): Gets list of all the license keys used by the account. ### Security Policies - * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, ECMAccountUser, ECMCompanyUser, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. + * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, ECMAccountUser, ECMCompanyUser, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. :param id_ [int] The ID of the account to retrieve :return AccountLicenseKeyModel """ def get_license_keys(self, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/accounts/{}/licensekeys'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -229,13 +229,13 @@ def get_license_keys(self, id_): This API is available by invitation only. Get a list of accounts with an active MRS service. ### Security Policies - * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, ECMAccountUser, ECMCompanyUser, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. + * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, ECMAccountUser, ECMCompanyUser, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. :return FetchResult """ def list_mrs_accounts(self): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/accounts/mrs'.format(self.base_url), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -253,7 +253,7 @@ def list_mrs_accounts(self): * Users For more information about filtering in REST, please see the documentation at http://developer.avalara.com/avatax/filtering-in-rest/ . ### Security Policies - * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, ECMAccountUser, ECMCompanyUser, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. + * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, ECMAccountUser, ECMCompanyUser, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. :param include [string] A comma separated list of objects to fetch underneath this account. Any object with a URL path underneath this account can be fetched by specifying its name. :param filter [string] A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
*Not filterable:* subscriptions, users @@ -264,7 +264,7 @@ def list_mrs_accounts(self): """ def query_accounts(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/accounts'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -291,7 +291,7 @@ def query_accounts(self, include=None): """ def set_account_configuration(self, id_, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/accounts/{}/configuration'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -327,7 +327,7 @@ def set_account_configuration(self, id_, model): """ def resolve_address(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/addresses/resolve'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -352,7 +352,7 @@ def resolve_address(self, include=None): """ def resolve_address_post(self, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/addresses/resolve'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -369,7 +369,7 @@ def resolve_address_post(self, model): """ def create_a_p_config_setting(self, companyid, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/apconfigsetting'.format(self.base_url, companyid), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -390,7 +390,7 @@ def create_a_p_config_setting(self, companyid, model): """ def get_a_p_config_setting_by_company(self, companyid, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/apconfigsetting'.format(self.base_url, companyid), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -410,7 +410,7 @@ def get_a_p_config_setting_by_company(self, companyid, include=None): """ def query_a_p_config_setting(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/apconfigsetting'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -427,7 +427,7 @@ def query_a_p_config_setting(self, include=None): """ def update_a_p_config_setting(self, companyid, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.put('{}/api/v2/companies/{}/apconfigsetting'.format(self.base_url, companyid), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -447,7 +447,7 @@ def update_a_p_config_setting(self, companyid, model): """ def create_ava_file_forms(self, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/avafileforms'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -466,7 +466,7 @@ def create_ava_file_forms(self, model): """ def delete_ava_file_form(self, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/avafileforms/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -485,7 +485,7 @@ def delete_ava_file_form(self, id_): """ def get_ava_file_form(self, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/avafileforms/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -508,7 +508,7 @@ def get_ava_file_form(self, id_): """ def query_ava_file_forms(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/avafileforms'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -529,7 +529,7 @@ def query_ava_file_forms(self, include=None): """ def update_ava_file_form(self, id_, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.put('{}/api/v2/avafileforms/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -556,7 +556,7 @@ def update_ava_file_form(self, id_, model): """ def cancel_batch(self, companyId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/batches/{}/cancel'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -589,7 +589,7 @@ def cancel_batch(self, companyId, id_): """ def create_batches(self, companyId, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/batches'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -621,7 +621,7 @@ def create_batches(self, companyId, model): """ def create_transaction_batch(self, companyId, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/batches/transactions'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -647,7 +647,7 @@ def create_transaction_batch(self, companyId, model): """ def delete_batch(self, companyId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/companies/{}/batches/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -667,7 +667,7 @@ def delete_batch(self, companyId, id_): """ def download_batch(self, companyId, batchId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/batches/{}/files/{}/attachment'.format(self.base_url, companyId, batchId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -697,7 +697,7 @@ def download_batch(self, companyId, batchId, id_): """ def get_batch(self, companyId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/batches/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -735,7 +735,7 @@ def get_batch(self, companyId, id_): """ def list_batches_by_company(self, companyId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/batches'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -770,7 +770,7 @@ def list_batches_by_company(self, companyId, include=None): """ def query_batches(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/batches'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -802,7 +802,7 @@ def query_batches(self, include=None): """ def create_cert_express_invitation(self, companyId, customerCode, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/customers/{}/certexpressinvites'.format(self.base_url, companyId, customerCode), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -835,7 +835,7 @@ def create_cert_express_invitation(self, companyId, customerCode, model): """ def get_cert_express_invitation(self, companyId, customerCode, id_, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/customers/{}/certexpressinvites/{}'.format(self.base_url, companyId, customerCode, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -870,7 +870,7 @@ def get_cert_express_invitation(self, companyId, customerCode, id_, include=None """ def list_cert_express_invitations(self, companyId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/certexpressinvites'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -906,7 +906,7 @@ def list_cert_express_invitations(self, companyId, include=None): """ def create_certificates(self, companyId, model, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/certificates'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -935,7 +935,7 @@ def create_certificates(self, companyId, model, include=None): """ def delete_certificate(self, companyId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/companies/{}/certificates/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -967,7 +967,7 @@ def delete_certificate(self, companyId, id_): """ def download_certificate_image(self, companyId, id_, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/certificates/{}/attachment'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1005,7 +1005,7 @@ def download_certificate_image(self, companyId, id_, include=None): """ def get_certificate(self, companyId, id_, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/certificates/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1029,7 +1029,7 @@ def get_certificate(self, companyId, id_, include=None): """ def get_certificate_setup(self, companyId): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/certificates/setup'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1060,7 +1060,7 @@ def get_certificate_setup(self, companyId): """ def link_attributes_to_certificate(self, companyId, id_, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/certificates/{}/attributes/link'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1092,7 +1092,7 @@ def link_attributes_to_certificate(self, companyId, id_, model): """ def link_customers_to_certificate(self, companyId, id_, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/certificates/{}/customers/link'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1122,7 +1122,7 @@ def link_customers_to_certificate(self, companyId, id_, model): """ def list_attributes_for_certificate(self, companyId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/certificates/{}/attributes'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1153,7 +1153,7 @@ def list_attributes_for_certificate(self, companyId, id_): """ def list_customers_for_certificate(self, companyId, id_, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/certificates/{}/customers'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1194,7 +1194,7 @@ def list_customers_for_certificate(self, companyId, id_, include=None): """ def query_certificates(self, companyId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/certificates'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1219,7 +1219,7 @@ def query_certificates(self, companyId, include=None): """ def request_certificate_setup(self, companyId): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/certificates/setup'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1250,7 +1250,7 @@ def request_certificate_setup(self, companyId): """ def unlink_attributes_from_certificate(self, companyId, id_, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/certificates/{}/attributes/unlink'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1283,7 +1283,7 @@ def unlink_attributes_from_certificate(self, companyId, id_, model): """ def unlink_customers_from_certificate(self, companyId, id_, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/certificates/{}/customers/unlink'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1312,7 +1312,7 @@ def unlink_customers_from_certificate(self, companyId, id_, model): """ def update_certificate(self, companyId, id_, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.put('{}/api/v2/companies/{}/certificates/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1343,7 +1343,7 @@ def update_certificate(self, companyId, id_, model): """ def upload_certificate_image(self, companyId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/certificates/{}/attachment'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1356,12 +1356,12 @@ def upload_certificate_image(self, companyId, id_): * This API depends on the following active services:*Required* (all): ECMPremiumComms, ECMProComms. :param companyId [int] The ID number of the company to search - :param certificateId [int] The ID number of the certifificate to search + :param certificateId [int] The ID number of the certificate to search :return CommunicationCertificateResponse """ def get_communication_certificate(self, companyId, certificateId): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/companies/{}/communication-certificates/{}'.format(self.base_url, companyId, certificateId), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1370,8 +1370,8 @@ def get_communication_certificate(self, companyId, certificateId): Retrieve all communication certificates. - List all account objects that can be seen by the current user. - This API lists all accounts you are allowed to see. In general, most users will only be able to see their own account. + List all communication certificates that can be seen by the current user. + This API lists all communication certificates you are allowed to see. Search for specific objects using the criteria in the `$filter` parameter; full documentation is available on [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/) . Paginate your results using the `$top`, `$skip`, and `$orderby` parameters. For more information about filtering in REST, please see the documentation at http://developer.avalara.com/avatax/filtering-in-rest/ . @@ -1387,7 +1387,7 @@ def get_communication_certificate(self, companyId, certificateId): """ def list_communication_certificates(self, companyId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/companies/{}/communication-certificates'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1426,7 +1426,7 @@ def list_communication_certificates(self, companyId, include=None): """ def certify_integration(self, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/certify'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1453,7 +1453,7 @@ def certify_integration(self, id_): """ def change_filing_status(self, id_, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/filingstatus'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1480,7 +1480,7 @@ def change_filing_status(self, id_, model): """ def company_initialize(self, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/initialize'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1501,7 +1501,7 @@ def company_initialize(self, model): """ def create_companies(self, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1525,7 +1525,7 @@ def create_companies(self, model): """ def create_company_parameters(self, companyId, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/parameters'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1556,7 +1556,7 @@ def create_company_parameters(self, companyId, model): """ def create_funding_request(self, id_, model, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/funding/setup'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1574,7 +1574,7 @@ def create_funding_request(self, id_, model, include=None): """ def delete_company(self, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/companies/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1596,7 +1596,7 @@ def delete_company(self, id_): """ def delete_company_parameter(self, companyId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/companies/{}/parameters/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1618,7 +1618,7 @@ def delete_company_parameter(self, companyId, id_): """ def funding_configuration_by_company(self, companyId): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/funding/configuration'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1641,7 +1641,7 @@ def funding_configuration_by_company(self, companyId): """ def funding_configurations_by_company_and_currency(self, companyId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/funding/configurations'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1671,7 +1671,7 @@ def funding_configurations_by_company_and_currency(self, companyId, include=None """ def get_company(self, id_, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1697,7 +1697,7 @@ def get_company(self, id_, include=None): """ def get_company_configuration(self, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/configuration'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1719,7 +1719,7 @@ def get_company_configuration(self, id_): """ def get_company_parameter_detail(self, companyId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/parameters/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1747,7 +1747,7 @@ def get_company_parameter_detail(self, companyId, id_): """ def get_filing_status(self, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/filingstatus'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1771,7 +1771,7 @@ def get_filing_status(self, id_): """ def list_a_c_h_entry_details_for_company(self, id_, periodyear, periodmonth): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/paymentdetails/{}/{}'.format(self.base_url, id_, periodyear, periodmonth), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1798,7 +1798,7 @@ def list_a_c_h_entry_details_for_company(self, id_, periodyear, periodmonth): """ def list_company_parameter_details(self, companyId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/parameters'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1820,7 +1820,7 @@ def list_company_parameter_details(self, companyId, include=None): """ def list_funding_requests_by_company(self, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/funding'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1838,7 +1838,7 @@ def list_funding_requests_by_company(self, id_): """ def list_mrs_companies(self): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/mrs'.format(self.base_url), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1873,7 +1873,7 @@ def list_mrs_companies(self): """ def query_companies(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1900,7 +1900,7 @@ def query_companies(self, include=None): """ def set_company_configuration(self, id_, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/configuration'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1925,7 +1925,7 @@ def set_company_configuration(self, id_, model): """ def update_company(self, id_, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.put('{}/api/v2/companies/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1948,7 +1948,7 @@ def update_company(self, id_, model): """ def update_company_parameter_detail(self, companyId, id_, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.put('{}/api/v2/companies/{}/parameters/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1972,7 +1972,7 @@ def update_company_parameter_detail(self, companyId, id_, model): """ def query_juris_names(self, country, region, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/compliance/jurisnames/{}/{}'.format(self.base_url, country, region), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1998,7 +1998,7 @@ def query_juris_names(self, country, region, include=None): """ def query_rate_options(self, country, region, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/compliance/rateOptions/{}/{}'.format(self.base_url, country, region), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2019,7 +2019,7 @@ def query_rate_options(self, country, region, include=None): """ def query_state_config(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/compliance/stateconfig'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2043,7 +2043,7 @@ def query_state_config(self, include=None): """ def query_state_reporting_codes(self, country, region, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/compliance/stateReportingCodes/{}/{}'.format(self.base_url, country, region), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2063,7 +2063,7 @@ def query_state_reporting_codes(self, country, region, include=None): """ def query_tax_type_mappings(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/compliance/taxtypemappings'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2084,7 +2084,7 @@ def query_tax_type_mappings(self, include=None): """ def create_contacts(self, companyId, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/contacts'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2103,7 +2103,7 @@ def create_contacts(self, companyId, model): """ def delete_contact(self, companyId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/companies/{}/contacts/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2124,7 +2124,7 @@ def delete_contact(self, companyId, id_): """ def get_contact(self, companyId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/contacts/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2148,7 +2148,7 @@ def get_contact(self, companyId, id_): """ def list_contacts_by_company(self, companyId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/contacts'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2173,7 +2173,7 @@ def list_contacts_by_company(self, companyId, include=None): """ def query_contacts(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/contacts'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2197,7 +2197,7 @@ def query_contacts(self, include=None): """ def update_contact(self, companyId, id_, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.put('{}/api/v2/companies/{}/contacts/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2214,7 +2214,7 @@ def update_contact(self, companyId, id_, model): """ def bulk_upload_cost_centers(self, companyid, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/costcenters/$upload'.format(self.base_url, companyid), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2232,7 +2232,7 @@ def bulk_upload_cost_centers(self, companyid, model): """ def create_cost_center(self, companyid, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/costcenters'.format(self.base_url, companyid), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2249,7 +2249,7 @@ def create_cost_center(self, companyid, model): """ def delete_cost_center(self, companyid, costcenterid): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/companies/{}/costcenters/{}'.format(self.base_url, companyid, costcenterid), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2266,7 +2266,7 @@ def delete_cost_center(self, companyid, costcenterid): """ def get_cost_center_by_id(self, companyid, costcenterid): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/costcenters/{}'.format(self.base_url, companyid, costcenterid), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2287,7 +2287,7 @@ def get_cost_center_by_id(self, companyid, costcenterid): """ def list_cost_centers_by_company(self, companyid, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/costcenters'.format(self.base_url, companyid), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2307,7 +2307,7 @@ def list_cost_centers_by_company(self, companyid, include=None): """ def query_cost_centers(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/costcenters'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2325,7 +2325,7 @@ def query_cost_centers(self, include=None): """ def update_cost_center(self, companyid, costcenterid, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.put('{}/api/v2/companies/{}/costcenters/{}'.format(self.base_url, companyid, costcenterid), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2356,7 +2356,7 @@ def update_cost_center(self, companyid, costcenterid, model): """ def create_customers(self, companyId, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/customers'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2385,7 +2385,7 @@ def create_customers(self, companyId, model): """ def delete_customer(self, companyId, customerCode): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/companies/{}/customers/{}'.format(self.base_url, companyId, customerCode), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2426,7 +2426,7 @@ def delete_customer(self, companyId, customerCode): """ def get_customer(self, companyId, customerCode, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/customers/{}'.format(self.base_url, companyId, customerCode), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2458,7 +2458,7 @@ def get_customer(self, companyId, customerCode, include=None): """ def link_attributes_to_customer(self, companyId, customerCode, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.put('{}/api/v2/companies/{}/customers/{}/attributes/link'.format(self.base_url, companyId, customerCode), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2488,7 +2488,7 @@ def link_attributes_to_customer(self, companyId, customerCode, model): """ def link_certificates_to_customer(self, companyId, customerCode, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/customers/{}/certificates/link'.format(self.base_url, companyId, customerCode), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2518,7 +2518,7 @@ def link_certificates_to_customer(self, companyId, customerCode, model): """ def link_ship_to_customers_to_bill_customer(self, companyId, code, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/customers/billto/{}/shipto/link'.format(self.base_url, companyId, code), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2549,7 +2549,7 @@ def link_ship_to_customers_to_bill_customer(self, companyId, code, model): """ def list_attributes_for_customer(self, companyId, customerCode): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/customers/{}/attributes'.format(self.base_url, companyId, customerCode), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2583,7 +2583,7 @@ def list_attributes_for_customer(self, companyId, customerCode): """ def list_certificates_for_customer(self, companyId, customerCode, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/customers/{}/certificates'.format(self.base_url, companyId, customerCode), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2616,7 +2616,7 @@ def list_certificates_for_customer(self, companyId, customerCode, include=None): """ def list_valid_certificates_for_customer(self, companyId, customerCode, country, region): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/customers/{}/certificates/{}/{}'.format(self.base_url, companyId, customerCode, country, region), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2660,7 +2660,7 @@ def list_valid_certificates_for_customer(self, companyId, customerCode, country, """ def query_customers(self, companyId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/customers'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2692,7 +2692,7 @@ def query_customers(self, companyId, include=None): """ def unlink_attributes_from_customer(self, companyId, customerCode, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.put('{}/api/v2/companies/{}/customers/{}/attributes/unlink'.format(self.base_url, companyId, customerCode), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2722,7 +2722,7 @@ def unlink_attributes_from_customer(self, companyId, customerCode, model): """ def unlink_certificates_from_customer(self, companyId, customerCode, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/customers/{}/certificates/unlink'.format(self.base_url, companyId, customerCode), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2752,7 +2752,7 @@ def unlink_certificates_from_customer(self, companyId, customerCode, model): """ def update_customer(self, companyId, customerCode, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.put('{}/api/v2/companies/{}/customers/{}'.format(self.base_url, companyId, customerCode), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2772,7 +2772,7 @@ def update_customer(self, companyId, customerCode, model): """ def create_data_sources(self, companyId, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/datasources'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2792,7 +2792,7 @@ def create_data_sources(self, companyId, model): """ def delete_data_source(self, companyId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/companies/{}/datasources/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2812,7 +2812,7 @@ def delete_data_source(self, companyId, id_): """ def get_data_source_by_id(self, companyId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/datasources/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2835,7 +2835,7 @@ def get_data_source_by_id(self, companyId, id_): """ def list_data_sources(self, companyId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/datasources'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2859,7 +2859,7 @@ def list_data_sources(self, companyId, include=None): """ def query_data_sources(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/datasources'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2880,7 +2880,7 @@ def query_data_sources(self, include=None): """ def update_data_source(self, companyId, id_, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.put('{}/api/v2/companies/{}/datasources/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2905,7 +2905,7 @@ def update_data_source(self, companyId, id_, model): """ def get_cross_border_code(self, country, hsCode): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/crossborder/{}/{}/hierarchy'.format(self.base_url, country, hsCode), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2926,7 +2926,7 @@ def get_cross_border_code(self, country, hsCode): """ def get_login_verifier_by_form(self, form, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/filingcalendars/loginverifiers/{}'.format(self.base_url, form), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2945,7 +2945,7 @@ def get_login_verifier_by_form(self, form, include=None): """ def list_all_marketplace_locations(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/listallmarketplacelocations'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2967,7 +2967,7 @@ def list_all_marketplace_locations(self, include=None): """ def list_ava_file_forms(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/avafileforms'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2991,7 +2991,7 @@ def list_ava_file_forms(self, include=None): """ def list_certificate_attributes(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/certificateattributes'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3014,7 +3014,7 @@ def list_certificate_attributes(self, include=None): """ def list_certificate_exempt_reasons(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/certificateexemptreasons'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3037,7 +3037,7 @@ def list_certificate_exempt_reasons(self, include=None): """ def list_certificate_exposure_zones(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/certificateexposurezones'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3058,7 +3058,7 @@ def list_certificate_exposure_zones(self, include=None): """ def list_classification_parameters_usage(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/classification/parametersusage'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3078,7 +3078,7 @@ def list_classification_parameters_usage(self, include=None): """ def list_communications_service_types(self, id_, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/communications/transactiontypes/{}/servicetypes'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3098,7 +3098,7 @@ def list_communications_service_types(self, id_, include=None): """ def list_communications_transaction_types(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/communications/transactiontypes'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3118,7 +3118,7 @@ def list_communications_transaction_types(self, include=None): """ def list_communications_t_s_pairs(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/communications/tspairs'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3139,7 +3139,7 @@ def list_communications_t_s_pairs(self, include=None): """ def list_countries(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/countries'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3163,7 +3163,7 @@ def list_countries(self, include=None): """ def list_cover_letters(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/coverletters'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3191,7 +3191,7 @@ def list_cover_letters(self, include=None): """ def list_cross_border_codes(self, country, hsCode, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/crossborder/{}/{}'.format(self.base_url, country, hsCode), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3212,7 +3212,7 @@ def list_cross_border_codes(self, country, hsCode, include=None): """ def list_cross_border_sections(self): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/crossborder/sections'.format(self.base_url), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3233,7 +3233,7 @@ def list_cross_border_sections(self): """ def list_currencies(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/currencies'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3256,7 +3256,7 @@ def list_currencies(self, include=None): """ def list_entity_use_codes(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/entityusecodes'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3276,7 +3276,7 @@ def list_entity_use_codes(self, include=None): """ def list_filing_frequencies(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/filingfrequencies'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3292,7 +3292,7 @@ def list_filing_frequencies(self, include=None): """ def list_items_recommendations_status(self): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/items/recommendationstatus'.format(self.base_url), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3308,7 +3308,7 @@ def list_items_recommendations_status(self): """ def list_items_status(self): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/items/status'.format(self.base_url), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3330,7 +3330,7 @@ def list_items_status(self): """ def list_jurisdictions(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/jurisdictions'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3360,7 +3360,7 @@ def list_jurisdictions(self, include=None): """ def list_jurisdictions_by_address(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/jurisdictionsnearaddress'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3388,7 +3388,7 @@ def list_jurisdictions_by_address(self, include=None): """ def list_jurisdictions_by_rate_type_tax_type_mapping(self, country, taxTypeId, taxSubTypeId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/jurisdictions/countries/{}/taxtypes/{}/taxsubtypes/{}'.format(self.base_url, country, taxTypeId, taxSubTypeId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3409,7 +3409,7 @@ def list_jurisdictions_by_rate_type_tax_type_mapping(self, country, taxTypeId, t """ def list_jurisdictions_hierarchy(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/jurisdictions/hierarchy'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3428,7 +3428,7 @@ def list_jurisdictions_hierarchy(self, include=None): """ def list_jurisdiction_types_by_rate_type_tax_type_mapping(self, country, taxTypeId, taxSubTypeId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/jurisdictionTypes/countries/{}/taxtypes/{}/taxsubtypes/{}'.format(self.base_url, country, taxTypeId, taxSubTypeId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3461,7 +3461,7 @@ def list_jurisdiction_types_by_rate_type_tax_type_mapping(self, country, taxType """ def list_location_questions_by_address(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/locationquestions'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3482,7 +3482,7 @@ def list_location_questions_by_address(self, include=None): """ def list_login_verifiers(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/filingcalendars/loginverifiers'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3501,7 +3501,7 @@ def list_login_verifiers(self, include=None): """ def list_marketplace_locations(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/marketplacelocations'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3521,7 +3521,7 @@ def list_marketplace_locations(self, include=None): """ def list_nexus(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/nexus'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3551,7 +3551,7 @@ def list_nexus(self, include=None): """ def list_nexus_by_address(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/nexus/byaddress'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3572,7 +3572,7 @@ def list_nexus_by_address(self, include=None): """ def list_nexus_by_country(self, country, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/nexus/{}'.format(self.base_url, country), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3594,7 +3594,7 @@ def list_nexus_by_country(self, country, include=None): """ def list_nexus_by_country_and_region(self, country, region, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/nexus/{}/{}'.format(self.base_url, country, region), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3619,7 +3619,7 @@ def list_nexus_by_country_and_region(self, country, region, include=None): """ def list_nexus_by_form_code(self, formCode): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/nexus/byform/{}'.format(self.base_url, formCode), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3640,7 +3640,7 @@ def list_nexus_by_form_code(self, formCode): """ def list_nexus_by_tax_type_group(self, taxTypeGroup, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/nexus/bytaxtypegroup/{}'.format(self.base_url, taxTypeGroup), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3660,7 +3660,7 @@ def list_nexus_by_tax_type_group(self, taxTypeGroup, include=None): """ def list_nexus_tax_type_groups(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/nexustaxtypegroups'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3680,7 +3680,7 @@ def list_nexus_tax_type_groups(self, include=None): """ def list_notice_customer_funding_options(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/noticecustomerfundingoptions'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3700,7 +3700,7 @@ def list_notice_customer_funding_options(self, include=None): """ def list_notice_customer_types(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/noticecustomertypes'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3720,7 +3720,7 @@ def list_notice_customer_types(self, include=None): """ def list_notice_filingtypes(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/noticefilingtypes'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3740,7 +3740,7 @@ def list_notice_filingtypes(self, include=None): """ def list_notice_priorities(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/noticepriorities'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3760,7 +3760,7 @@ def list_notice_priorities(self, include=None): """ def list_notice_reasons(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/noticereasons'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3780,7 +3780,7 @@ def list_notice_reasons(self, include=None): """ def list_notice_responsibilities(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/noticeresponsibilities'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3800,7 +3800,7 @@ def list_notice_responsibilities(self, include=None): """ def list_notice_root_causes(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/noticerootcauses'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3820,7 +3820,7 @@ def list_notice_root_causes(self, include=None): """ def list_notice_statuses(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/noticestatuses'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3840,7 +3840,7 @@ def list_notice_statuses(self, include=None): """ def list_notice_types(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/noticetypes'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3861,7 +3861,7 @@ def list_notice_types(self, include=None): """ def list_parameters(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/parameters'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3881,7 +3881,7 @@ def list_parameters(self, include=None): """ def list_parameters_by_account(self, accountId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/accounts/{}/parameters'.format(self.base_url, accountId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3915,7 +3915,7 @@ def list_parameters_by_account(self, accountId, include=None): """ def list_parameters_by_item(self, companyCode, itemCode, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/parameters/byitem/{}/{}'.format(self.base_url, companyCode, itemCode), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3936,7 +3936,7 @@ def list_parameters_by_item(self, companyCode, itemCode, include=None): """ def list_parameters_usage(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/parametersusage'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3954,7 +3954,7 @@ def list_parameters_usage(self, include=None): """ def list_permissions(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/permissions'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3974,7 +3974,7 @@ def list_permissions(self, include=None): """ def list_postal_codes(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/postalcodes'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3999,7 +3999,7 @@ def list_postal_codes(self, include=None): """ def list_preferred_programs(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/preferredprograms'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4021,7 +4021,7 @@ def list_preferred_programs(self, include=None): """ def list_product_classification_systems(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/productclassificationsystems'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4050,7 +4050,7 @@ def list_product_classification_systems(self, include=None): """ def list_product_classification_systems_by_company(self, companyCode, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/productclassificationsystems/bycompany/{}'.format(self.base_url, companyCode), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4071,7 +4071,7 @@ def list_product_classification_systems_by_company(self, companyCode, include=No """ def list_rate_types_by_country(self, country, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/countries/{}/ratetypes'.format(self.base_url, country), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4094,7 +4094,7 @@ def list_rate_types_by_country(self, country, include=None): """ def list_rate_types_by_country_tax_type_tax_sub_type(self, country, taxTypeId, taxSubTypeId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/countries/{}/taxtypes/{}/taxsubtypes/{}/ratetypes'.format(self.base_url, country, taxTypeId, taxSubTypeId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4115,7 +4115,7 @@ def list_rate_types_by_country_tax_type_tax_sub_type(self, country, taxTypeId, t """ def list_regions(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/regions'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4137,7 +4137,7 @@ def list_regions(self, include=None): """ def list_regions_by_country(self, country, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/countries/{}/regions'.format(self.base_url, country), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4163,7 +4163,7 @@ def list_regions_by_country(self, country, include=None): """ def list_regions_by_country_and_tax_type_and_tax_sub_type_and_rate_type(self, companyId, country, taxTypeId, taxSubTypeId, rateTypeId, jurisdictionTypeId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/companies/{}/countries/{}/regions/taxtypes/{}/taxsubtypes/{}/rateTypeId/{}/jurisdictionTypeId/{}'.format(self.base_url, companyId, country, taxTypeId, taxSubTypeId, rateTypeId, jurisdictionTypeId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4184,7 +4184,7 @@ def list_regions_by_country_and_tax_type_and_tax_sub_type_and_rate_type(self, co """ def list_returns_parameters_usage(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/returns/parametersusage'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4205,7 +4205,7 @@ def list_returns_parameters_usage(self, include=None): """ def list_security_roles(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/securityroles'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4227,7 +4227,7 @@ def list_security_roles(self, include=None): """ def list_subscription_types(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/subscriptiontypes'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4246,7 +4246,7 @@ def list_subscription_types(self, include=None): """ def list_tags(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/tags'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4266,7 +4266,7 @@ def list_tags(self, include=None): """ def list_tax_authorities(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/taxauthorities'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4288,7 +4288,7 @@ def list_tax_authorities(self, include=None): """ def list_tax_authority_forms(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/taxauthorityforms'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4308,7 +4308,7 @@ def list_tax_authority_forms(self, include=None): """ def list_tax_authority_types(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/taxauthoritytypes'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4333,7 +4333,7 @@ def list_tax_authority_types(self, include=None): """ def list_tax_codes(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/taxcodes'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4352,7 +4352,7 @@ def list_tax_codes(self, include=None): """ def list_tax_code_types(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/taxcodetypes'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4372,7 +4372,7 @@ def list_tax_code_types(self, include=None): """ def list_tax_forms(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/taxforms'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4392,7 +4392,7 @@ def list_tax_forms(self, include=None): """ def list_tax_sub_types(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/taxsubtypes'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4415,7 +4415,7 @@ def list_tax_sub_types(self, include=None): """ def list_tax_sub_types_by_country_and_tax_type(self, country, taxTypeId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/taxsubtypes/countries/{}/taxtypes/{}'.format(self.base_url, country, taxTypeId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4437,7 +4437,7 @@ def list_tax_sub_types_by_country_and_tax_type(self, country, taxTypeId, include """ def list_tax_sub_types_by_jurisdiction_and_region(self, jurisdictionCode, region, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/taxsubtypes/{}/{}'.format(self.base_url, jurisdictionCode, region), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4457,7 +4457,7 @@ def list_tax_sub_types_by_jurisdiction_and_region(self, jurisdictionCode, region """ def list_tax_type_groups(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/taxtypegroups'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4477,7 +4477,7 @@ def list_tax_type_groups(self, include=None): """ def list_tax_types_by_nexus_and_country(self, country, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/taxtypes/countries/{}'.format(self.base_url, country), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4499,7 +4499,7 @@ def list_tax_types_by_nexus_and_country(self, country, include=None): """ def list_unit_of_basis_by_country_and_tax_type_and_tax_sub_type_and_rate_type(self, country, taxTypeId, taxSubTypeId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/unitofbasis/countries/{}/taxtypes/{}/taxsubtypes/{}'.format(self.base_url, country, taxTypeId, taxSubTypeId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4519,7 +4519,7 @@ def list_unit_of_basis_by_country_and_tax_type_and_tax_sub_type_and_rate_type(se """ def list_unit_of_measurement(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/unitofmeasurements'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4541,7 +4541,7 @@ def list_unit_of_measurement(self, include=None): """ def create_distance_threshold(self, companyId, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/distancethresholds'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4563,7 +4563,7 @@ def create_distance_threshold(self, companyId, model): """ def delete_distance_threshold(self, companyId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/companies/{}/distancethresholds/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4585,7 +4585,7 @@ def delete_distance_threshold(self, companyId, id_): """ def get_distance_threshold(self, companyId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/distancethresholds/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4611,7 +4611,7 @@ def get_distance_threshold(self, companyId, id_): """ def list_distance_thresholds(self, companyId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/distancethresholds'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4638,7 +4638,7 @@ def list_distance_thresholds(self, companyId, include=None): """ def query_distance_thresholds(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/distancethresholds'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4663,7 +4663,7 @@ def query_distance_thresholds(self, include=None): """ def update_distance_threshold(self, companyId, id_, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.put('{}/api/v2/companies/{}/distancethresholds/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4679,7 +4679,7 @@ def update_distance_threshold(self, companyId, id_, model): """ def create_dcv(self, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/domain-control-verifications'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4695,7 +4695,7 @@ def create_dcv(self, model): """ def filter_dcv(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/domain-control-verifications'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4711,7 +4711,7 @@ def filter_dcv(self, include=None): """ def get_dcv_by_id(self, domainControlVerificationId): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/domain-control-verifications/{}'.format(self.base_url, domainControlVerificationId), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4729,7 +4729,7 @@ def get_dcv_by_id(self, domainControlVerificationId): """ def delete_afc_event_notifications(self, model, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/event-notifications/afc'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4747,7 +4747,7 @@ def delete_afc_event_notifications(self, model, include=None): """ def delete_event_notifications(self, companyId, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/event-notifications/companies/{}'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4764,7 +4764,7 @@ def delete_event_notifications(self, companyId, model): """ def get_event_notifications(self, companyId): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/event-notifications/companies/{}'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4781,17 +4781,19 @@ def get_event_notifications(self, companyId): """ def list_afc_event_notifications(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/event-notifications/afc'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) r""" Swagger Name: AvaTaxClient - Create a new eCommerce token. + Create a new ecommerce token. - Creates a new eCommerce token. - This API is used to create a new eCommerce token. An eCommerce token is required in order to launch the CertCapture eCommerce plugin. Create a token for each of your CertCapture customers. + Creates a new ecommerce token. + This API is used to create a new ecommerce token. An ecommerce token is required in order to launch the ECM/CertCapture ecommerce plugin. Create a separate token for each of your ECM/CertCapture customers. + Use the SDK to embed ECM’s document submission form into your ecommerce platform or online store. Once the token is created, place the returned token value for that customer record in the token field in your ecommerce SDK code. This allows customers to manage their exemption certificates before or after making the purchase. More information is available in the [ECM/CertCapture integration guide](https://developer.avalara.com/document-management/set-up-ecm-for-ecommerce/ecm-in-ecom-environments/). + You can also use the [ecommerce Plugin Demo](https://developer.avalara.com/certcapture/cert-demo/) on developer.avalara.com to test generating a token. Using your AvaTax username and password, try generating the token and combining it with various parameters. ### Security Policies * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, ECMAccountUser, ECMCompanyUser, FirmAdmin, FirmUser, ProStoresOperator, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. @@ -4801,7 +4803,7 @@ def list_afc_event_notifications(self, include=None): """ def create_e_commerce_token(self, companyId, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/ecommercetokens'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4821,7 +4823,7 @@ def create_e_commerce_token(self, companyId, model): """ def refresh_e_commerce_token(self, companyId, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.put('{}/api/v2/companies/{}/ecommercetokens'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4839,7 +4841,7 @@ def refresh_e_commerce_token(self, companyId, model): """ def approve_firm_client_linkage(self, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/firmclientlinkages/{}/approve'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4863,7 +4865,7 @@ def approve_firm_client_linkage(self, id_): """ def create_and_link_new_firm_client_account(self, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/firmclientlinkages/createandlinkclient'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4881,7 +4883,7 @@ def create_and_link_new_firm_client_account(self, model): """ def create_firm_client_linkage(self, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/firmclientlinkages'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4899,7 +4901,7 @@ def create_firm_client_linkage(self, model): """ def delete_firm_client_linkage(self, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/firmclientlinkages/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4910,32 +4912,51 @@ def delete_firm_client_linkage(self, id_): This API enables the firm admins/firm users to request the linkage of a firm account and a client account. ### Security Policies - * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, ECMAccountUser, ECMCompanyUser, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. + * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, ECMAccountUser, ECMCompanyUser, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. :param id_ [int] :return FirmClientLinkageOutputModel """ def get_firm_client_linkage(self, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/firmclientlinkages/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) r""" Swagger Name: AvaTaxClient + Insert a full FirmClientLinkage record + + Avalara allows firms to manage returns for clients without the clients needing to use AvaTax service. + Firms can create accounts of FirmClient for customers they are managing using this API. + ### Security Policies + * This API requires one of the following user roles: BatchServiceAdmin, FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin. + + :param model [FirmClientLinkageModel] FirmClientLinkage record + :return FirmClientLinkageOutputModel + """ + def insert_firm_client_linkage(self, model): + if ('X-Avalara-Client' in self.client_header): + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") + return requests.post('{}/api/v2/firmclientlinkages/insert'.format(self.base_url), + auth=self.auth, headers=self.client_header, json=model, + timeout=self.timeout_limit if self.timeout_limit else 1200) + r""" + Swagger Name: AvaTaxClient + List client linkages for a firm or client This API enables the firm or account users to request the associated linkages to the account. ### Security Policies - * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, ECMAccountUser, ECMCompanyUser, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. + * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, ECMAccountUser, ECMCompanyUser, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. :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(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/firmclientlinkages'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4953,7 +4974,7 @@ def list_firm_client_linkage(self, include=None): """ def reject_firm_client_linkage(self, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/firmclientlinkages/{}/reject'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4971,7 +4992,7 @@ def reject_firm_client_linkage(self, id_): """ def reset_firm_client_linkage(self, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/firmclientlinkages/{}/reset'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4989,13 +5010,32 @@ def reset_firm_client_linkage(self, id_): """ def revoke_firm_client_linkage(self, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/firmclientlinkages/{}/revoke'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) r""" Swagger Name: AvaTaxClient + Update a full FirmClientLinkage record + + Avalara allow updating the firm client linkage as a pass thru call. + Firms can create accounts of FirmClient for customers they are managing using this API. + ### Security Policies + * This API requires one of the following user roles: BatchServiceAdmin, FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin. + + :param model [FirmClientLinkageModel] FirmClientLinkage record + :return FirmClientLinkageOutputModel + """ + def update_firm_client_linkage(self, model): + if ('X-Avalara-Client' in self.client_header): + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") + return requests.put('{}/api/v2/firmclientlinkages'.format(self.base_url), + auth=self.auth, headers=self.client_header, json=model, + timeout=self.timeout_limit if self.timeout_limit else 1200) + r""" + Swagger Name: AvaTaxClient + Request the javascript for a funding setup widget This API is available by invitation only. @@ -5021,7 +5061,7 @@ def revoke_firm_client_linkage(self, id_): """ def activate_funding_request(self, id_, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/fundingrequests/{}/widget'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5051,7 +5091,7 @@ def activate_funding_request(self, id_, include=None): """ def funding_request_status(self, id_, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/fundingrequests/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5068,7 +5108,7 @@ def funding_request_status(self, id_, include=None): """ def bulk_upload_g_l_accounts(self, companyid, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/glaccounts/$upload'.format(self.base_url, companyid), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5086,7 +5126,7 @@ def bulk_upload_g_l_accounts(self, companyid, model): """ def create_g_l_account(self, companyid, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/glaccounts'.format(self.base_url, companyid), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5103,7 +5143,7 @@ def create_g_l_account(self, companyid, model): """ def delete_g_l_account(self, companyid, glaccountid): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/companies/{}/glaccounts/{}'.format(self.base_url, companyid, glaccountid), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5120,7 +5160,7 @@ def delete_g_l_account(self, companyid, glaccountid): """ def get_g_l_account_by_id(self, companyid, glaccountid): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/glaccounts/{}'.format(self.base_url, companyid, glaccountid), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5141,7 +5181,7 @@ def get_g_l_account_by_id(self, companyid, glaccountid): """ def list_g_l_accounts_by_company(self, companyid, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/glaccounts'.format(self.base_url, companyid), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5159,7 +5199,7 @@ def list_g_l_accounts_by_company(self, companyid, include=None): """ def update_g_l_account(self, companyid, glaccountid, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.put('{}/api/v2/companies/{}/glaccounts/{}'.format(self.base_url, companyid, glaccountid), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5180,7 +5220,7 @@ def update_g_l_account(self, companyid, glaccountid, model): """ def batch_delete_item_classifications(self, companyId, itemId): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/companies/{}/items/{}/classifications'.format(self.base_url, companyId, itemId), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5202,7 +5242,7 @@ def batch_delete_item_classifications(self, companyId, itemId): """ def batch_delete_item_parameters(self, companyId, itemId): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/companies/{}/items/{}/parameters'.format(self.base_url, companyId, itemId), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5227,7 +5267,7 @@ def batch_delete_item_parameters(self, companyId, itemId): """ def bulk_upload_items(self, companyId, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/items/upload'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5250,7 +5290,7 @@ def bulk_upload_items(self, companyId, model): """ def create_item_classifications(self, companyId, itemId, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/items/{}/classifications'.format(self.base_url, companyId, itemId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5275,7 +5315,7 @@ def create_item_classifications(self, companyId, itemId, model): """ def create_item_parameters(self, companyId, itemId, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/items/{}/parameters'.format(self.base_url, companyId, itemId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5301,7 +5341,7 @@ def create_item_parameters(self, companyId, itemId, model): """ def create_items(self, companyId, model, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/items'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5322,7 +5362,7 @@ def create_items(self, companyId, model, include=None): """ def create_item_tags(self, companyId, itemId, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/items/{}/tags'.format(self.base_url, companyId, itemId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5344,7 +5384,7 @@ def create_item_tags(self, companyId, itemId, model): """ def create_tax_code_classification_request(self, companyId, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/classificationrequests/taxcode'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5374,7 +5414,7 @@ def create_tax_code_classification_request(self, companyId, model): """ def delete_catalogue_item(self, companyId, itemCode): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/companies/{}/itemcatalogue/{}'.format(self.base_url, companyId, itemCode), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5399,7 +5439,7 @@ def delete_catalogue_item(self, companyId, itemCode): """ def delete_item(self, companyId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/companies/{}/items/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5421,7 +5461,7 @@ def delete_item(self, companyId, id_): """ def delete_item_classification(self, companyId, itemId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/companies/{}/items/{}/classifications/{}'.format(self.base_url, companyId, itemId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5444,7 +5484,7 @@ def delete_item_classification(self, companyId, itemId, id_): """ def delete_item_parameter(self, companyId, itemId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/companies/{}/items/{}/parameters/{}'.format(self.base_url, companyId, itemId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5465,7 +5505,7 @@ def delete_item_parameter(self, companyId, itemId, id_): """ def delete_item_tag(self, companyId, itemId, itemTagDetailId): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/companies/{}/items/{}/tags/{}'.format(self.base_url, companyId, itemId, itemTagDetailId), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5485,7 +5525,7 @@ def delete_item_tag(self, companyId, itemId, itemTagDetailId): """ def delete_item_tags(self, companyId, itemId): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/companies/{}/items/{}/tags'.format(self.base_url, companyId, itemId), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5510,7 +5550,7 @@ def delete_item_tags(self, companyId, itemId): """ def get_item(self, companyId, id_, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/items/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5532,7 +5572,7 @@ def get_item(self, companyId, id_, include=None): """ def get_item_classification(self, companyId, itemId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/items/{}/classifications/{}'.format(self.base_url, companyId, itemId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5555,7 +5595,7 @@ def get_item_classification(self, companyId, itemId, id_): """ def get_item_parameter(self, companyId, itemId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/items/{}/parameters/{}'.format(self.base_url, companyId, itemId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5578,7 +5618,7 @@ def get_item_parameter(self, companyId, itemId, id_): """ def get_item_tags(self, companyId, itemId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/items/{}/tags'.format(self.base_url, companyId, itemId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5597,7 +5637,7 @@ def get_item_tags(self, companyId, itemId, include=None): """ def get_item_tax_code_recommendations(self, companyId, itemId): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/items/{}/taxcoderecommendations'.format(self.base_url, companyId, itemId), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5625,7 +5665,7 @@ def get_item_tax_code_recommendations(self, companyId, itemId): """ def get_premium_classification(self, companyId, itemCode, systemCode): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/items/{}/premiumClassification/{}'.format(self.base_url, companyId, itemCode, systemCode), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5656,7 +5696,7 @@ def get_premium_classification(self, companyId, itemCode, systemCode): """ def list_import_restrictions(self, companyId, itemCode, countryOfImport, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/items/{}/restrictions/import/{}'.format(self.base_url, companyId, itemCode, countryOfImport), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5683,7 +5723,7 @@ def list_import_restrictions(self, companyId, itemCode, countryOfImport, include """ def list_item_classifications(self, companyId, itemId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/items/{}/classifications'.format(self.base_url, companyId, itemId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5711,7 +5751,7 @@ def list_item_classifications(self, companyId, itemId, include=None): """ def list_item_parameters(self, companyId, itemId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/items/{}/parameters'.format(self.base_url, companyId, itemId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5737,11 +5777,12 @@ def list_item_parameters(self, companyId, itemId, include=None): * Tags * Properties * TaxCodeRecommendationStatus + * TaxCodeDetails ### Security Policies * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser. :param companyId [int] The ID of the company that defined these items - :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:* taxCode, source, sourceEntityId, itemType, upc, summary, classifications, parameters, tags, properties, itemStatus, taxCodeRecommendationStatus, taxCodeRecommendations + :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:* taxCode, source, sourceEntityId, itemType, upc, summary, classifications, parameters, tags, properties, itemStatus, taxCodeRecommendationStatus, taxCodeRecommendations, taxCodeDetails :param include [string] A comma separated list of additional data to retrieve. :param top [int] 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. :param skip [int] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets. @@ -5753,7 +5794,7 @@ def list_item_parameters(self, companyId, itemId, include=None): """ def list_items_by_company(self, companyId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/items'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5778,7 +5819,7 @@ def list_items_by_company(self, companyId, include=None): """ def list_recommended_parameter_by_company_id_and_item_id(self, companyId, itemId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/companies/{}/items/{}/parameters'.format(self.base_url, companyId, itemId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5798,7 +5839,7 @@ def list_recommended_parameter_by_company_id_and_item_id(self, companyId, itemId ### Security Policies * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser. - :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:* taxCode, source, sourceEntityId, itemType, upc, summary, classifications, parameters, tags, properties, itemStatus, taxCodeRecommendationStatus, taxCodeRecommendations + :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:* taxCode, source, sourceEntityId, itemType, upc, summary, classifications, parameters, tags, properties, itemStatus, taxCodeRecommendationStatus, taxCodeRecommendations, taxCodeDetails :param include [string] A comma separated list of additional data to retrieve. :param top [int] 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. :param skip [int] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets. @@ -5807,7 +5848,7 @@ def list_recommended_parameter_by_company_id_and_item_id(self, companyId, itemId """ def query_items(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/items'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5837,7 +5878,7 @@ def query_items(self, include=None): """ def query_items_by_system_code(self, companyId, systemCode, model, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/items/internal/bySystemCode/{}'.format(self.base_url, companyId, systemCode), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5859,7 +5900,7 @@ def query_items_by_system_code(self, companyId, systemCode, model, include=None) :param companyId [int] The ID of the company that defined these items. :param tag [string] The master tag to be associated with item. - :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:* taxCode, source, sourceEntityId, itemType, upc, summary, classifications, parameters, tags, properties, itemStatus, taxCodeRecommendationStatus, taxCodeRecommendations + :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:* taxCode, source, sourceEntityId, itemType, upc, summary, classifications, parameters, tags, properties, itemStatus, taxCodeRecommendationStatus, taxCodeRecommendations, taxCodeDetails :param include [string] A comma separated list of additional data to retrieve. :param top [int] 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. :param skip [int] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets. @@ -5868,7 +5909,7 @@ def query_items_by_system_code(self, companyId, systemCode, model, include=None) """ def query_items_by_tag(self, companyId, tag, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/items/bytags/{}'.format(self.base_url, companyId, tag), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5891,7 +5932,7 @@ def query_items_by_tag(self, companyId, tag, include=None): """ def sync_item_catalogue(self, companyId, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/itemcatalogue'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5918,7 +5959,7 @@ def sync_item_catalogue(self, companyId, model): """ def sync_items(self, companyId, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/items/sync'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5942,12 +5983,13 @@ def sync_items(self, companyId, model): :param companyId [int] The ID of the company that this item belongs to. :param id_ [int] The ID of the item you wish to update :param isRecommendationSelected [boolean] If true then Set recommendation status to RecommendationSelected + :param isRecommendationRejected [boolean] If true then Set recommendation status to RecommendationRejected, When the taxCode recommendation status is RecommendationAvailable. Else will be thrown as error :param model [ItemModel] The item object you wish to update. :return ItemModel """ def update_item(self, companyId, id_, model, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.put('{}/api/v2/companies/{}/items/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5971,7 +6013,7 @@ def update_item(self, companyId, id_, model, include=None): """ def update_item_classification(self, companyId, itemId, id_, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.put('{}/api/v2/companies/{}/items/{}/classifications/{}'.format(self.base_url, companyId, itemId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5995,7 +6037,7 @@ def update_item_classification(self, companyId, itemId, id_, model): """ def update_item_parameter(self, companyId, itemId, id_, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.put('{}/api/v2/companies/{}/items/{}/parameters/{}'.format(self.base_url, companyId, itemId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6018,7 +6060,7 @@ def update_item_parameter(self, companyId, itemId, id_, model): """ def create_jurisdiction_overrides(self, accountId, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/accounts/{}/jurisdictionoverrides'.format(self.base_url, accountId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6037,7 +6079,7 @@ def create_jurisdiction_overrides(self, accountId, model): """ def delete_jurisdiction_override(self, accountId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/accounts/{}/jurisdictionoverrides/{}'.format(self.base_url, accountId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6060,7 +6102,7 @@ def delete_jurisdiction_override(self, accountId, id_): """ def get_jurisdiction_override(self, accountId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/accounts/{}/jurisdictionoverrides/{}'.format(self.base_url, accountId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6089,7 +6131,7 @@ def get_jurisdiction_override(self, accountId, id_): """ def list_jurisdiction_overrides_by_account(self, accountId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/accounts/{}/jurisdictionoverrides'.format(self.base_url, accountId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6117,7 +6159,7 @@ def list_jurisdiction_overrides_by_account(self, accountId, include=None): """ def query_jurisdiction_overrides(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/jurisdictionoverrides'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6137,7 +6179,7 @@ def query_jurisdiction_overrides(self, include=None): """ def update_jurisdiction_override(self, accountId, id_, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.put('{}/api/v2/accounts/{}/jurisdictionoverrides/{}'.format(self.base_url, accountId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6162,7 +6204,7 @@ def update_jurisdiction_override(self, accountId, id_, model): """ def create_location_parameters(self, companyId, locationId, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/locations/{}/parameters'.format(self.base_url, companyId, locationId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6181,7 +6223,7 @@ def create_location_parameters(self, companyId, locationId, model): """ def create_locations(self, companyId, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/locations'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6200,7 +6242,7 @@ def create_locations(self, companyId, model): """ def delete_location(self, companyId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/companies/{}/locations/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6223,7 +6265,7 @@ def delete_location(self, companyId, id_): """ def delete_location_parameter(self, companyId, locationId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/companies/{}/locations/{}/parameters/{}'.format(self.base_url, companyId, locationId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6250,7 +6292,7 @@ def delete_location_parameter(self, companyId, locationId, id_): """ def get_location(self, companyId, id_, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/locations/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6273,7 +6315,7 @@ def get_location(self, companyId, id_, include=None): """ def get_location_parameter(self, companyId, locationId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/locations/{}/parameters/{}'.format(self.base_url, companyId, locationId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6301,7 +6343,7 @@ def get_location_parameter(self, companyId, locationId, id_): """ def list_location_parameters(self, companyId, locationId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/locations/{}/parameters'.format(self.base_url, companyId, locationId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6333,7 +6375,7 @@ def list_location_parameters(self, companyId, locationId, include=None): """ def list_locations_by_company(self, companyId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/locations'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6364,7 +6406,7 @@ def list_locations_by_company(self, companyId, include=None): """ def query_locations(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/locations'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6386,7 +6428,7 @@ def query_locations(self, include=None): """ def update_location(self, companyId, id_, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.put('{}/api/v2/companies/{}/locations/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6410,7 +6452,7 @@ def update_location(self, companyId, id_, model): """ def update_location_parameter(self, companyId, locationId, id_, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.put('{}/api/v2/companies/{}/locations/{}/parameters/{}'.format(self.base_url, companyId, locationId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6431,7 +6473,7 @@ def update_location_parameter(self, companyId, locationId, id_, model): """ def validate_location(self, companyId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/locations/{}/validate'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6465,7 +6507,7 @@ def validate_location(self, companyId, id_): """ def adjust_multi_document_transaction(self, code, type, model, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/transactions/multidocument/{}/type/{}/adjust'.format(self.base_url, code, type), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6502,7 +6544,7 @@ def adjust_multi_document_transaction(self, code, type, model, include=None): """ def audit_multi_document_transaction(self, code, type): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/transactions/multidocument/{}/type/{}/audit'.format(self.base_url, code, type), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6532,7 +6574,7 @@ def audit_multi_document_transaction(self, code, type): """ def commit_multi_document_transaction(self, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/transactions/multidocument/commit'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6582,7 +6624,7 @@ def commit_multi_document_transaction(self, model): """ def create_multi_document_transaction(self, model, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/transactions/multidocument'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6618,7 +6660,7 @@ def create_multi_document_transaction(self, model, include=None): """ def get_multi_document_transaction_by_code_and_type(self, code, type, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/transactions/multidocument/{}/type/{}'.format(self.base_url, code, type), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6660,7 +6702,7 @@ def get_multi_document_transaction_by_code_and_type(self, code, type, include=No """ def get_multi_document_transaction_by_id(self, id_, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/transactions/multidocument/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6703,7 +6745,7 @@ def get_multi_document_transaction_by_id(self, id_, include=None): """ def list_multi_document_transactions(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/transactions/multidocument'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6758,7 +6800,7 @@ def list_multi_document_transactions(self, include=None): """ def refund_multi_document_transaction(self, code, type, model, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/transactions/multidocument/{}/type/{}/refund'.format(self.base_url, code, type), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6787,7 +6829,7 @@ def refund_multi_document_transaction(self, code, type, model, include=None): """ def verify_multi_document_transaction(self, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/transactions/multidocument/verify'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6820,7 +6862,7 @@ def verify_multi_document_transaction(self, model): """ def void_multi_document_transaction(self, code, type, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/transactions/multidocument/{}/type/{}/void'.format(self.base_url, code, type), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6852,7 +6894,7 @@ def void_multi_document_transaction(self, code, type, model): """ def create_nexus(self, companyId, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/nexus'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6877,7 +6919,7 @@ def create_nexus(self, companyId, model): """ def create_nexus_parameters(self, companyId, nexusId, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/nexus/{}/parameters'.format(self.base_url, companyId, nexusId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6906,7 +6948,7 @@ def create_nexus_parameters(self, companyId, nexusId, model): """ def declare_nexus_by_address(self, companyId, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/nexus/byaddress'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6931,7 +6973,7 @@ def declare_nexus_by_address(self, companyId, model): """ def delete_nexus(self, companyId, id_, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/companies/{}/nexus/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6954,7 +6996,7 @@ def delete_nexus(self, companyId, id_, include=None): """ def delete_nexus_parameter(self, companyId, nexusId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/companies/{}/nexus/{}/parameters/{}'.format(self.base_url, companyId, nexusId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6976,7 +7018,7 @@ def delete_nexus_parameter(self, companyId, nexusId, id_): """ def delete_nexus_parameters(self, companyId, nexusId): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/companies/{}/nexus/{}/parameters'.format(self.base_url, companyId, nexusId), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7001,7 +7043,7 @@ def delete_nexus_parameters(self, companyId, nexusId): """ def get_nexus(self, companyId, id_, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/nexus/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7029,7 +7071,7 @@ def get_nexus(self, companyId, id_, include=None): """ def get_nexus_by_form_code(self, companyId, formCode, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/nexus/byform/{}'.format(self.base_url, companyId, formCode), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7052,7 +7094,7 @@ def get_nexus_by_form_code(self, companyId, formCode, include=None): """ def get_nexus_parameter(self, companyId, nexusId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/nexus/{}/parameters/{}'.format(self.base_url, companyId, nexusId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7082,7 +7124,7 @@ def get_nexus_parameter(self, companyId, nexusId, id_): """ def list_nexus_by_company(self, companyId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/nexus'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7113,7 +7155,7 @@ def list_nexus_by_company(self, companyId, include=None): """ def list_nexus_by_company_and_tax_type_group(self, companyId, taxTypeGroup, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/nexus/byTaxTypeGroup/{}'.format(self.base_url, companyId, taxTypeGroup), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7141,7 +7183,7 @@ def list_nexus_by_company_and_tax_type_group(self, companyId, taxTypeGroup, incl """ def list_nexus_parameters(self, companyId, nexusId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/nexus/{}/parameters'.format(self.base_url, companyId, nexusId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7170,7 +7212,7 @@ def list_nexus_parameters(self, companyId, nexusId, include=None): """ def query_nexus(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/nexus'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7203,7 +7245,7 @@ def query_nexus(self, include=None): """ def update_nexus(self, companyId, id_, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.put('{}/api/v2/companies/{}/nexus/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7227,7 +7269,7 @@ def update_nexus(self, companyId, id_, model): """ def update_nexus_parameter(self, companyId, nexusId, id_, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.put('{}/api/v2/companies/{}/nexus/{}/parameters/{}'.format(self.base_url, companyId, nexusId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7246,7 +7288,7 @@ def update_nexus_parameter(self, companyId, nexusId, id_, model): """ def create_notice_responsibility_type(self, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/notices/responsibilities'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7265,7 +7307,7 @@ def create_notice_responsibility_type(self, model): """ def create_notice_root_cause_type(self, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/notices/rootcauses'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7283,7 +7325,7 @@ def create_notice_root_cause_type(self, model): """ def delete_notice_responsibility_type(self, responsibilityId): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/notices/responsibilities/{}'.format(self.base_url, responsibilityId), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7301,7 +7343,7 @@ def delete_notice_responsibility_type(self, responsibilityId): """ def delete_notice_root_cause_type(self, rootCauseId): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/notices/rootcauses/{}'.format(self.base_url, rootCauseId), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7321,14 +7363,14 @@ def delete_notice_root_cause_type(self, rootCauseId): determine if they were resolved appropriately. A Global notification with null accountId and companyId cannot be dismissed and will expire within a given time span. ### Security Policies - * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, ECMAccountUser, ECMCompanyUser, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. + * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, ECMAccountUser, ECMCompanyUser, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. :param id_ [int] The id of the notification you wish to mark as dismissed. :return NotificationModel """ def dismiss_notification(self, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.put('{}/api/v2/notifications/{}/dismiss'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7351,7 +7393,7 @@ def dismiss_notification(self, id_): """ def get_notification(self, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/notifications/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7379,7 +7421,7 @@ def get_notification(self, id_): """ def list_notifications(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/notifications'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7409,7 +7451,7 @@ def list_notifications(self, include=None): """ def request_new_account(self, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/accounts/request'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7431,7 +7473,7 @@ def request_new_account(self, model): """ def request_new_entitlement(self, id_, offer): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/accounts/{}/entitlements/{}'.format(self.base_url, id_, offer), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7452,7 +7494,7 @@ def request_new_entitlement(self, id_, offer): """ def create_account(self, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/accounts'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7479,7 +7521,7 @@ def create_account(self, model): """ def create_notifications(self, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/notifications'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7501,7 +7543,7 @@ def create_notifications(self, model): """ def create_subscriptions(self, accountId, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/accounts/{}/subscriptions'.format(self.base_url, accountId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7522,7 +7564,7 @@ def create_subscriptions(self, accountId, model): """ def delete_account(self, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/accounts/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7547,7 +7589,7 @@ def delete_account(self, id_): """ def delete_notification(self, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/notifications/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7568,7 +7610,7 @@ def delete_notification(self, id_): """ def delete_subscription(self, accountId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/accounts/{}/subscriptions/{}'.format(self.base_url, accountId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7584,7 +7626,7 @@ def delete_subscription(self, accountId, id_): You may always contact Avalara's sales department for information on available products or services. You cannot change your subscriptions/service directly through the API. ### Security Policies - * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. + * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. :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:* taxTypeGroupIdSK :param top [int] 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. @@ -7594,7 +7636,7 @@ def delete_subscription(self, accountId, id_): """ def list_service_types(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/servicetypes/servicetypes'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7619,7 +7661,7 @@ def list_service_types(self, include=None): """ def reset_password(self, userId, model, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/passwords/{}/reset'.format(self.base_url, userId), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7640,7 +7682,7 @@ def reset_password(self, userId, model, include=None): """ def update_account(self, id_, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.put('{}/api/v2/accounts/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7666,7 +7708,7 @@ def update_account(self, id_, model): """ def update_notification(self, id_, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.put('{}/api/v2/notifications/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7692,7 +7734,7 @@ def update_notification(self, id_, model): """ def update_subscription(self, accountId, id_, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.put('{}/api/v2/accounts/{}/subscriptions/{}'.format(self.base_url, accountId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7719,7 +7761,7 @@ def update_subscription(self, accountId, id_, model): """ def download_report(self, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/reports/{}/attachment'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7742,7 +7784,7 @@ def download_report(self, id_): """ def get_report(self, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/reports/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7774,7 +7816,7 @@ def get_report(self, id_): """ def initiate_export_document_line_report(self, companyId, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/reports/exportdocumentline/initiate'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7802,7 +7844,7 @@ def initiate_export_document_line_report(self, companyId, model): """ def list_reports(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/reports'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7831,7 +7873,7 @@ def list_reports(self, include=None): """ def create_settings(self, companyId, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/settings'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7857,7 +7899,7 @@ def create_settings(self, companyId, model): """ def delete_setting(self, companyId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/companies/{}/settings/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7883,7 +7925,7 @@ def delete_setting(self, companyId, id_): """ def get_setting(self, companyId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/settings/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7915,7 +7957,7 @@ def get_setting(self, companyId, id_): """ def list_settings_by_company(self, companyId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/settings'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7946,7 +7988,7 @@ def list_settings_by_company(self, companyId, include=None): """ def query_settings(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/settings'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7975,7 +8017,7 @@ def query_settings(self, include=None): """ def update_setting(self, companyId, id_, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.put('{}/api/v2/companies/{}/settings/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7988,7 +8030,7 @@ def update_setting(self, companyId, id_, model): A 'subscription' indicates a licensed subscription to a named Avalara service. To request or remove subscriptions, please contact Avalara sales or your customer account manager. ### Security Policies - * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. + * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. :param accountId [int] The ID of the account that owns this subscription :param id_ [int] The primary key of this subscription @@ -7996,7 +8038,7 @@ def update_setting(self, companyId, id_, model): """ def get_subscription(self, accountId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/accounts/{}/subscriptions/{}'.format(self.base_url, accountId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8011,7 +8053,7 @@ def get_subscription(self, accountId, id_): Search for specific objects using the criteria in the `$filter` parameter; full documentation is available on [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/) . Paginate your results using the `$top`, `$skip`, and `$orderby` parameters. ### Security Policies - * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. + * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. :param accountId [int] The ID of the account that owns these subscriptions :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:* subscriptionDescription @@ -8022,7 +8064,7 @@ def get_subscription(self, accountId, id_): """ def list_subscriptions_by_account(self, accountId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/accounts/{}/subscriptions'.format(self.base_url, accountId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8037,7 +8079,7 @@ def list_subscriptions_by_account(self, accountId, include=None): Search for specific objects using the criteria in the `$filter` parameter; full documentation is available on [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/) . Paginate your results using the `$top`, `$skip`, and `$orderby` parameters. ### Security Policies - * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. + * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. :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:* subscriptionDescription :param top [int] 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. @@ -8047,7 +8089,7 @@ def list_subscriptions_by_account(self, accountId, include=None): """ def query_subscriptions(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/subscriptions'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8070,7 +8112,7 @@ def query_subscriptions(self, include=None): """ def create_tax_codes(self, companyId, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/taxcodes'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8089,7 +8131,7 @@ def create_tax_codes(self, companyId, model): """ def delete_tax_code(self, companyId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/companies/{}/taxcodes/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8112,7 +8154,7 @@ def delete_tax_code(self, companyId, id_): """ def get_tax_code(self, companyId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/taxcodes/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8141,7 +8183,7 @@ def get_tax_code(self, companyId, id_): """ def list_tax_codes_by_company(self, companyId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/taxcodes'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8169,7 +8211,7 @@ def list_tax_codes_by_company(self, companyId, include=None): """ def query_tax_codes(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/taxcodes'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8195,7 +8237,7 @@ def query_tax_codes(self, include=None): """ def update_tax_code(self, companyId, id_, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.put('{}/api/v2/companies/{}/taxcodes/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8230,7 +8272,7 @@ def update_tax_code(self, companyId, id_, model): """ def build_tax_content_file(self, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/pointofsaledata/build'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8270,7 +8312,7 @@ def build_tax_content_file(self, model): """ def build_tax_content_file_for_location(self, companyId, id_, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/locations/{}/pointofsaledata'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8321,7 +8363,7 @@ def build_tax_content_file_for_location(self, companyId, id_, include=None): """ def download_tax_rates_by_zip_code(self, date, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/taxratesbyzipcode/download/{}'.format(self.base_url, date), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8360,7 +8402,7 @@ def download_tax_rates_by_zip_code(self, date, include=None): """ def tax_rates_by_address(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/taxrates/byaddress'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8395,7 +8437,7 @@ def tax_rates_by_address(self, include=None): """ def tax_rates_by_postal_code(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/taxrates/bypostalcode'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8418,7 +8460,7 @@ def tax_rates_by_postal_code(self, include=None): """ def create_country_coefficients(self, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.put('{}/api/v2/countryCoefficients'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8446,7 +8488,7 @@ def create_country_coefficients(self, model): """ def create_tax_rules(self, companyId, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/taxrules'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8474,7 +8516,7 @@ def create_tax_rules(self, companyId, model): """ def delete_tax_rule(self, companyId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/companies/{}/taxrules/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8502,7 +8544,7 @@ def delete_tax_rule(self, companyId, id_): """ def get_tax_rule(self, companyId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/taxrules/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8525,7 +8567,7 @@ def get_tax_rule(self, companyId, id_): """ def list_country_coefficients(self, country, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/{}/CountryCoefficients'.format(self.base_url, country), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8559,7 +8601,7 @@ def list_country_coefficients(self, country, include=None): """ def list_tax_rules(self, companyId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/taxrules'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8592,7 +8634,7 @@ def list_tax_rules(self, companyId, include=None): """ def query_tax_rules(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/taxrules'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8621,7 +8663,7 @@ def query_tax_rules(self, include=None): """ def update_tax_rule(self, companyId, id_, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.put('{}/api/v2/companies/{}/taxrules/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8657,7 +8699,7 @@ def update_tax_rule(self, companyId, id_, model): """ def add_lines(self, model, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/transactions/lines/add'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8703,7 +8745,7 @@ def add_lines(self, model, include=None): """ def adjust_transaction(self, companyCode, transactionCode, model, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/transactions/{}/adjust'.format(self.base_url, companyCode, transactionCode), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8740,7 +8782,7 @@ def adjust_transaction(self, companyCode, transactionCode, model, include=None): """ def audit_transaction(self, companyCode, transactionCode): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/transactions/{}/audit'.format(self.base_url, companyCode, transactionCode), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8778,7 +8820,7 @@ def audit_transaction(self, companyCode, transactionCode): """ def audit_transaction_with_type(self, companyCode, transactionCode, documentType): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/transactions/{}/types/{}/audit'.format(self.base_url, companyCode, transactionCode, documentType), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8801,7 +8843,7 @@ def audit_transaction_with_type(self, companyCode, transactionCode, documentType """ def bulk_lock_transaction(self, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/transactions/lock'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8846,7 +8888,7 @@ def bulk_lock_transaction(self, model): """ def change_transaction_code(self, companyCode, transactionCode, model, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/transactions/{}/changecode'.format(self.base_url, companyCode, transactionCode), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8889,7 +8931,7 @@ def change_transaction_code(self, companyCode, transactionCode, model, include=N """ def commit_transaction(self, companyCode, transactionCode, model, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/transactions/{}/commit'.format(self.base_url, companyCode, transactionCode), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8935,7 +8977,7 @@ def commit_transaction(self, companyCode, transactionCode, model, include=None): """ def create_or_adjust_transaction(self, model, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/transactions/createoradjust'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8986,7 +9028,7 @@ def create_or_adjust_transaction(self, model, include=None): """ def create_transaction(self, model, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/transactions/create'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9019,7 +9061,7 @@ def create_transaction(self, model, include=None): """ def delete_lines(self, model, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/transactions/lines/delete'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9037,7 +9079,7 @@ def delete_lines(self, model, include=None): """ def get_all_variance_report_by_company_code(self, companyCode): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/AllVariance'.format(self.base_url, companyCode), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9079,7 +9121,7 @@ def get_all_variance_report_by_company_code(self, companyCode): """ def get_transaction_by_code(self, companyCode, transactionCode, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/transactions/{}'.format(self.base_url, companyCode, transactionCode), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9108,7 +9150,7 @@ def get_transaction_by_code(self, companyCode, transactionCode, include=None): """ def get_transaction_by_code_and_type(self, companyCode, transactionCode, documentType, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/transactions/{}/types/{}'.format(self.base_url, companyCode, transactionCode, documentType), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9140,7 +9182,7 @@ def get_transaction_by_code_and_type(self, companyCode, transactionCode, documen """ def get_transaction_by_id(self, id_, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/transactions/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9159,7 +9201,7 @@ def get_transaction_by_id(self, id_, include=None): """ def get_variance_report_by_company_code_by_transaction_id(self, companyCode, transactionId): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/transactions/{}/variance'.format(self.base_url, companyCode, transactionId), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9206,7 +9248,7 @@ def get_variance_report_by_company_code_by_transaction_id(self, companyCode, tra """ def list_transactions_by_company(self, companyCode, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/transactions'.format(self.base_url, companyCode), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9251,7 +9293,7 @@ def list_transactions_by_company(self, companyCode, include=None): """ def lock_transaction(self, companyCode, transactionCode, model, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/transactions/{}/lock'.format(self.base_url, companyCode, transactionCode), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9306,7 +9348,7 @@ def lock_transaction(self, companyCode, transactionCode, model, include=None): """ def refund_transaction(self, companyCode, transactionCode, model, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/transactions/{}/refund'.format(self.base_url, companyCode, transactionCode), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9349,7 +9391,7 @@ def refund_transaction(self, companyCode, transactionCode, model, include=None): """ def settle_transaction(self, companyCode, transactionCode, model, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/transactions/{}/settle'.format(self.base_url, companyCode, transactionCode), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9389,7 +9431,7 @@ def settle_transaction(self, companyCode, transactionCode, model, include=None): """ def uncommit_transaction(self, companyCode, transactionCode, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/transactions/{}/uncommit'.format(self.base_url, companyCode, transactionCode), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9427,7 +9469,7 @@ def uncommit_transaction(self, companyCode, transactionCode, include=None): """ def unvoid_transaction(self, companyCode, transactionCode, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/transactions/{}/unvoid'.format(self.base_url, companyCode, transactionCode), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9446,7 +9488,7 @@ def unvoid_transaction(self, companyCode, transactionCode, include=None): """ def variance_report(self, companyCode, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/variance'.format(self.base_url, companyCode), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9489,7 +9531,7 @@ def variance_report(self, companyCode, model): """ def verify_transaction(self, companyCode, transactionCode, model, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/transactions/{}/verify'.format(self.base_url, companyCode, transactionCode), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9533,7 +9575,7 @@ def verify_transaction(self, companyCode, transactionCode, model, include=None): """ def void_transaction(self, companyCode, transactionCode, model, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/transactions/{}/void'.format(self.base_url, companyCode, transactionCode), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9554,7 +9596,7 @@ def void_transaction(self, companyCode, transactionCode, model, include=None): """ def create_u_p_cs(self, companyId, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/upcs'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9574,7 +9616,7 @@ def create_u_p_cs(self, companyId, model): """ def delete_u_p_c(self, companyId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/companies/{}/upcs/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9595,7 +9637,7 @@ def delete_u_p_c(self, companyId, id_): """ def get_u_p_c(self, companyId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/upcs/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9622,7 +9664,7 @@ def get_u_p_c(self, companyId, id_): """ def list_u_p_cs_by_company(self, companyId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/upcs'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9648,7 +9690,7 @@ def list_u_p_cs_by_company(self, companyId, include=None): """ def query_u_p_cs(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/upcs'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9672,7 +9714,7 @@ def query_u_p_cs(self, include=None): """ def update_u_p_c(self, companyId, id_, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.put('{}/api/v2/companies/{}/upcs/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9692,7 +9734,7 @@ def update_u_p_c(self, companyId, id_, model): """ def delete_user_defined_field(self, companyId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/companies/{}/userdefinedfields/{}'.format(self.base_url, companyId, accountId), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9712,7 +9754,7 @@ def delete_user_defined_field(self, companyId, id_): """ def list_user_defined_fields_by_company_id(self, companyId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/userdefinedfields'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9733,7 +9775,7 @@ def list_user_defined_fields_by_company_id(self, companyId, include=None): """ def update_user_defined_field(self, companyId, model, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/userdefinedfields'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9755,7 +9797,7 @@ def update_user_defined_field(self, companyId, model, include=None): """ def change_password(self, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.put('{}/api/v2/passwords'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9779,7 +9821,7 @@ def change_password(self, model): """ def create_users(self, accountId, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/accounts/{}/users'.format(self.base_url, accountId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9801,7 +9843,7 @@ def create_users(self, accountId, model): """ def delete_user(self, id_, accountId): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/accounts/{}/users/{}'.format(self.base_url, accountId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9824,7 +9866,7 @@ def delete_user(self, id_, accountId): """ def get_user(self, id_, accountId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/accounts/{}/users/{}'.format(self.base_url, accountId, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9855,7 +9897,7 @@ def get_user(self, id_, accountId, include=None): """ def get_user_entitlements(self, id_, accountId): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/accounts/{}/users/{}/entitlements'.format(self.base_url, accountId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9885,7 +9927,7 @@ def get_user_entitlements(self, id_, accountId): """ def list_users_by_account(self, accountId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/accounts/{}/users'.format(self.base_url, accountId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9915,7 +9957,7 @@ def list_users_by_account(self, accountId, include=None): """ def query_users(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/users'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9938,7 +9980,7 @@ def query_users(self, include=None): """ def update_user(self, id_, accountId, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.put('{}/api/v2/accounts/{}/users/{}'.format(self.base_url, accountId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9959,7 +10001,7 @@ def update_user(self, id_, accountId, model): """ def get_my_subscription(self, serviceTypeId): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/utilities/subscriptions/{}'.format(self.base_url, serviceTypeId), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9979,7 +10021,7 @@ def get_my_subscription(self, serviceTypeId): """ def list_my_subscriptions(self): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/utilities/subscriptions'.format(self.base_url), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -10008,7 +10050,7 @@ def list_my_subscriptions(self): """ def ping(self): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/utilities/ping'.format(self.base_url), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) diff --git a/src/client_methods.py b/src/client_methods.py index b45c216..ee4f536 100644 --- a/src/client_methods.py +++ b/src/client_methods.py @@ -30,7 +30,7 @@ class Mixin: """ def account_reset_license_key(self, id_, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/accounts/{}/resetlicensekey'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -55,7 +55,7 @@ def account_reset_license_key(self, id_, model): """ def activate_account(self, id_, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/accounts/{}/activate'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -75,7 +75,7 @@ def activate_account(self, id_, model): * Old records may be migrated out of immediately available storage. To request older data, please contact your account manager. * New records must migrate to available storage before they can be retrieved. You may need to wait a period of time before newly created records can be fetched. ### Security Policies - * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, ECMAccountUser, ECMCompanyUser, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. + * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, ECMAccountUser, ECMCompanyUser, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. :param id_ [int] The ID of the account you wish to audit. :param start [datetime] The start datetime of audit history you with to retrieve, e.g. "2018-06-08T17:00:00Z". Defaults to the past 15 minutes. @@ -86,7 +86,7 @@ def activate_account(self, id_, model): """ def audit_account(self, id_, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/accounts/{}/audit'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -111,7 +111,7 @@ def audit_account(self, id_, include=None): """ def create_license_key(self, id_, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/accounts/{}/licensekey'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -132,7 +132,7 @@ def create_license_key(self, id_, model): """ def delete_license_key(self, id_, licensekeyname): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/accounts/{}/licensekey/{}'.format(self.base_url, id_, licensekeyname), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -146,7 +146,7 @@ def delete_license_key(self, id_, licensekeyname): * Subscriptions * Users ### Security Policies - * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, ECMAccountUser, ECMCompanyUser, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. + * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, ECMAccountUser, ECMCompanyUser, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. :param id_ [int] The ID of the account to retrieve :param include [string] A comma separated list of special fetch options @@ -154,7 +154,7 @@ def delete_license_key(self, id_, licensekeyname): """ def get_account(self, id_, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/accounts/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -180,7 +180,7 @@ def get_account(self, id_, include=None): """ def get_account_configuration(self, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/accounts/{}/configuration'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -190,7 +190,7 @@ def get_account_configuration(self, id_): Retrieve license key by license key name ### Security Policies - * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, ECMAccountUser, ECMCompanyUser, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. + * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, ECMAccountUser, ECMCompanyUser, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. :param id_ [int] The ID of the account to retrieve :param licensekeyname [string] The ID of the account to retrieve @@ -198,7 +198,7 @@ def get_account_configuration(self, id_): """ def get_license_key(self, id_, licensekeyname): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/accounts/{}/licensekey/{}'.format(self.base_url, id_, licensekeyname), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -209,14 +209,14 @@ def get_license_key(self, id_, licensekeyname): Gets list of all the license keys used by the account. ### Security Policies - * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, ECMAccountUser, ECMCompanyUser, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. + * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, ECMAccountUser, ECMCompanyUser, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. :param id_ [int] The ID of the account to retrieve :return AccountLicenseKeyModel """ def get_license_keys(self, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/accounts/{}/licensekeys'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -228,13 +228,13 @@ def get_license_keys(self, id_): This API is available by invitation only. Get a list of accounts with an active MRS service. ### Security Policies - * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, ECMAccountUser, ECMCompanyUser, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. + * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, ECMAccountUser, ECMCompanyUser, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. :return FetchResult """ def list_mrs_accounts(self): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/accounts/mrs'.format(self.base_url), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -252,7 +252,7 @@ def list_mrs_accounts(self): * Users For more information about filtering in REST, please see the documentation at http://developer.avalara.com/avatax/filtering-in-rest/ . ### Security Policies - * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, ECMAccountUser, ECMCompanyUser, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. + * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, ECMAccountUser, ECMCompanyUser, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. :param include [string] A comma separated list of objects to fetch underneath this account. Any object with a URL path underneath this account can be fetched by specifying its name. :param filter [string] A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
*Not filterable:* subscriptions, users @@ -263,7 +263,7 @@ def list_mrs_accounts(self): """ def query_accounts(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/accounts'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -290,7 +290,7 @@ def query_accounts(self, include=None): """ def set_account_configuration(self, id_, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/accounts/{}/configuration'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -326,7 +326,7 @@ def set_account_configuration(self, id_, model): """ def resolve_address(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/addresses/resolve'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -351,7 +351,7 @@ def resolve_address(self, include=None): """ def resolve_address_post(self, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/addresses/resolve'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -368,7 +368,7 @@ def resolve_address_post(self, model): """ def create_a_p_config_setting(self, companyid, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/apconfigsetting'.format(self.base_url, companyid), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -389,7 +389,7 @@ def create_a_p_config_setting(self, companyid, model): """ def get_a_p_config_setting_by_company(self, companyid, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/apconfigsetting'.format(self.base_url, companyid), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -409,7 +409,7 @@ def get_a_p_config_setting_by_company(self, companyid, include=None): """ def query_a_p_config_setting(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/apconfigsetting'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -426,7 +426,7 @@ def query_a_p_config_setting(self, include=None): """ def update_a_p_config_setting(self, companyid, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.put('{}/api/v2/companies/{}/apconfigsetting'.format(self.base_url, companyid), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -446,7 +446,7 @@ def update_a_p_config_setting(self, companyid, model): """ def create_ava_file_forms(self, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/avafileforms'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -465,7 +465,7 @@ def create_ava_file_forms(self, model): """ def delete_ava_file_form(self, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/avafileforms/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -484,7 +484,7 @@ def delete_ava_file_form(self, id_): """ def get_ava_file_form(self, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/avafileforms/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -507,7 +507,7 @@ def get_ava_file_form(self, id_): """ def query_ava_file_forms(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/avafileforms'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -528,7 +528,7 @@ def query_ava_file_forms(self, include=None): """ def update_ava_file_form(self, id_, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.put('{}/api/v2/avafileforms/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -555,7 +555,7 @@ def update_ava_file_form(self, id_, model): """ def cancel_batch(self, companyId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/batches/{}/cancel'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -588,7 +588,7 @@ def cancel_batch(self, companyId, id_): """ def create_batches(self, companyId, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/batches'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -620,7 +620,7 @@ def create_batches(self, companyId, model): """ def create_transaction_batch(self, companyId, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/batches/transactions'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -646,7 +646,7 @@ def create_transaction_batch(self, companyId, model): """ def delete_batch(self, companyId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/companies/{}/batches/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -666,7 +666,7 @@ def delete_batch(self, companyId, id_): """ def download_batch(self, companyId, batchId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/batches/{}/files/{}/attachment'.format(self.base_url, companyId, batchId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -696,7 +696,7 @@ def download_batch(self, companyId, batchId, id_): """ def get_batch(self, companyId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/batches/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -734,7 +734,7 @@ def get_batch(self, companyId, id_): """ def list_batches_by_company(self, companyId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/batches'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -769,7 +769,7 @@ def list_batches_by_company(self, companyId, include=None): """ def query_batches(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/batches'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -801,7 +801,7 @@ def query_batches(self, include=None): """ def create_cert_express_invitation(self, companyId, customerCode, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/customers/{}/certexpressinvites'.format(self.base_url, companyId, customerCode), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -834,7 +834,7 @@ def create_cert_express_invitation(self, companyId, customerCode, model): """ def get_cert_express_invitation(self, companyId, customerCode, id_, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/customers/{}/certexpressinvites/{}'.format(self.base_url, companyId, customerCode, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -869,7 +869,7 @@ def get_cert_express_invitation(self, companyId, customerCode, id_, include=None """ def list_cert_express_invitations(self, companyId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/certexpressinvites'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -905,7 +905,7 @@ def list_cert_express_invitations(self, companyId, include=None): """ def create_certificates(self, companyId, model, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/certificates'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -934,7 +934,7 @@ def create_certificates(self, companyId, model, include=None): """ def delete_certificate(self, companyId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/companies/{}/certificates/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -966,7 +966,7 @@ def delete_certificate(self, companyId, id_): """ def download_certificate_image(self, companyId, id_, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/certificates/{}/attachment'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1004,7 +1004,7 @@ def download_certificate_image(self, companyId, id_, include=None): """ def get_certificate(self, companyId, id_, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/certificates/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1028,7 +1028,7 @@ def get_certificate(self, companyId, id_, include=None): """ def get_certificate_setup(self, companyId): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/certificates/setup'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1059,7 +1059,7 @@ def get_certificate_setup(self, companyId): """ def link_attributes_to_certificate(self, companyId, id_, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/certificates/{}/attributes/link'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1091,7 +1091,7 @@ def link_attributes_to_certificate(self, companyId, id_, model): """ def link_customers_to_certificate(self, companyId, id_, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/certificates/{}/customers/link'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1121,7 +1121,7 @@ def link_customers_to_certificate(self, companyId, id_, model): """ def list_attributes_for_certificate(self, companyId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/certificates/{}/attributes'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1152,7 +1152,7 @@ def list_attributes_for_certificate(self, companyId, id_): """ def list_customers_for_certificate(self, companyId, id_, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/certificates/{}/customers'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1193,7 +1193,7 @@ def list_customers_for_certificate(self, companyId, id_, include=None): """ def query_certificates(self, companyId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/certificates'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1218,7 +1218,7 @@ def query_certificates(self, companyId, include=None): """ def request_certificate_setup(self, companyId): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/certificates/setup'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1249,7 +1249,7 @@ def request_certificate_setup(self, companyId): """ def unlink_attributes_from_certificate(self, companyId, id_, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/certificates/{}/attributes/unlink'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1282,7 +1282,7 @@ def unlink_attributes_from_certificate(self, companyId, id_, model): """ def unlink_customers_from_certificate(self, companyId, id_, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/certificates/{}/customers/unlink'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1311,7 +1311,7 @@ def unlink_customers_from_certificate(self, companyId, id_, model): """ def update_certificate(self, companyId, id_, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.put('{}/api/v2/companies/{}/certificates/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1342,7 +1342,7 @@ def update_certificate(self, companyId, id_, model): """ def upload_certificate_image(self, companyId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/certificates/{}/attachment'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1355,12 +1355,12 @@ def upload_certificate_image(self, companyId, id_): * This API depends on the following active services:*Required* (all): ECMPremiumComms, ECMProComms. :param companyId [int] The ID number of the company to search - :param certificateId [int] The ID number of the certifificate to search + :param certificateId [int] The ID number of the certificate to search :return CommunicationCertificateResponse """ def get_communication_certificate(self, companyId, certificateId): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/companies/{}/communication-certificates/{}'.format(self.base_url, companyId, certificateId), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1369,8 +1369,8 @@ def get_communication_certificate(self, companyId, certificateId): Retrieve all communication certificates. - List all account objects that can be seen by the current user. - This API lists all accounts you are allowed to see. In general, most users will only be able to see their own account. + List all communication certificates that can be seen by the current user. + This API lists all communication certificates you are allowed to see. Search for specific objects using the criteria in the `$filter` parameter; full documentation is available on [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/) . Paginate your results using the `$top`, `$skip`, and `$orderby` parameters. For more information about filtering in REST, please see the documentation at http://developer.avalara.com/avatax/filtering-in-rest/ . @@ -1386,7 +1386,7 @@ def get_communication_certificate(self, companyId, certificateId): """ def list_communication_certificates(self, companyId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/companies/{}/communication-certificates'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1425,7 +1425,7 @@ def list_communication_certificates(self, companyId, include=None): """ def certify_integration(self, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/certify'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1452,7 +1452,7 @@ def certify_integration(self, id_): """ def change_filing_status(self, id_, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/filingstatus'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1479,7 +1479,7 @@ def change_filing_status(self, id_, model): """ def company_initialize(self, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/initialize'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1500,7 +1500,7 @@ def company_initialize(self, model): """ def create_companies(self, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1524,7 +1524,7 @@ def create_companies(self, model): """ def create_company_parameters(self, companyId, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/parameters'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1555,7 +1555,7 @@ def create_company_parameters(self, companyId, model): """ def create_funding_request(self, id_, model, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/funding/setup'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1573,7 +1573,7 @@ def create_funding_request(self, id_, model, include=None): """ def delete_company(self, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/companies/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1595,7 +1595,7 @@ def delete_company(self, id_): """ def delete_company_parameter(self, companyId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/companies/{}/parameters/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1617,7 +1617,7 @@ def delete_company_parameter(self, companyId, id_): """ def funding_configuration_by_company(self, companyId): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/funding/configuration'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1640,7 +1640,7 @@ def funding_configuration_by_company(self, companyId): """ def funding_configurations_by_company_and_currency(self, companyId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/funding/configurations'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1670,7 +1670,7 @@ def funding_configurations_by_company_and_currency(self, companyId, include=None """ def get_company(self, id_, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1696,7 +1696,7 @@ def get_company(self, id_, include=None): """ def get_company_configuration(self, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/configuration'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1718,7 +1718,7 @@ def get_company_configuration(self, id_): """ def get_company_parameter_detail(self, companyId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/parameters/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1746,7 +1746,7 @@ def get_company_parameter_detail(self, companyId, id_): """ def get_filing_status(self, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/filingstatus'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1770,7 +1770,7 @@ def get_filing_status(self, id_): """ def list_a_c_h_entry_details_for_company(self, id_, periodyear, periodmonth): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/paymentdetails/{}/{}'.format(self.base_url, id_, periodyear, periodmonth), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1797,7 +1797,7 @@ def list_a_c_h_entry_details_for_company(self, id_, periodyear, periodmonth): """ def list_company_parameter_details(self, companyId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/parameters'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1819,7 +1819,7 @@ def list_company_parameter_details(self, companyId, include=None): """ def list_funding_requests_by_company(self, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/funding'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1837,7 +1837,7 @@ def list_funding_requests_by_company(self, id_): """ def list_mrs_companies(self): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/mrs'.format(self.base_url), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1872,7 +1872,7 @@ def list_mrs_companies(self): """ def query_companies(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1899,7 +1899,7 @@ def query_companies(self, include=None): """ def set_company_configuration(self, id_, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/configuration'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1924,7 +1924,7 @@ def set_company_configuration(self, id_, model): """ def update_company(self, id_, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.put('{}/api/v2/companies/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1947,7 +1947,7 @@ def update_company(self, id_, model): """ def update_company_parameter_detail(self, companyId, id_, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.put('{}/api/v2/companies/{}/parameters/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1971,7 +1971,7 @@ def update_company_parameter_detail(self, companyId, id_, model): """ def query_juris_names(self, country, region, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/compliance/jurisnames/{}/{}'.format(self.base_url, country, region), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1997,7 +1997,7 @@ def query_juris_names(self, country, region, include=None): """ def query_rate_options(self, country, region, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/compliance/rateOptions/{}/{}'.format(self.base_url, country, region), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2018,7 +2018,7 @@ def query_rate_options(self, country, region, include=None): """ def query_state_config(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/compliance/stateconfig'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2042,7 +2042,7 @@ def query_state_config(self, include=None): """ def query_state_reporting_codes(self, country, region, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/compliance/stateReportingCodes/{}/{}'.format(self.base_url, country, region), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2062,7 +2062,7 @@ def query_state_reporting_codes(self, country, region, include=None): """ def query_tax_type_mappings(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/compliance/taxtypemappings'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2083,7 +2083,7 @@ def query_tax_type_mappings(self, include=None): """ def create_contacts(self, companyId, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/contacts'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2102,7 +2102,7 @@ def create_contacts(self, companyId, model): """ def delete_contact(self, companyId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/companies/{}/contacts/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2123,7 +2123,7 @@ def delete_contact(self, companyId, id_): """ def get_contact(self, companyId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/contacts/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2147,7 +2147,7 @@ def get_contact(self, companyId, id_): """ def list_contacts_by_company(self, companyId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/contacts'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2172,7 +2172,7 @@ def list_contacts_by_company(self, companyId, include=None): """ def query_contacts(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/contacts'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2196,7 +2196,7 @@ def query_contacts(self, include=None): """ def update_contact(self, companyId, id_, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.put('{}/api/v2/companies/{}/contacts/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2213,7 +2213,7 @@ def update_contact(self, companyId, id_, model): """ def bulk_upload_cost_centers(self, companyid, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/costcenters/$upload'.format(self.base_url, companyid), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2231,7 +2231,7 @@ def bulk_upload_cost_centers(self, companyid, model): """ def create_cost_center(self, companyid, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/costcenters'.format(self.base_url, companyid), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2248,7 +2248,7 @@ def create_cost_center(self, companyid, model): """ def delete_cost_center(self, companyid, costcenterid): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/companies/{}/costcenters/{}'.format(self.base_url, companyid, costcenterid), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2265,7 +2265,7 @@ def delete_cost_center(self, companyid, costcenterid): """ def get_cost_center_by_id(self, companyid, costcenterid): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/costcenters/{}'.format(self.base_url, companyid, costcenterid), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2286,7 +2286,7 @@ def get_cost_center_by_id(self, companyid, costcenterid): """ def list_cost_centers_by_company(self, companyid, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/costcenters'.format(self.base_url, companyid), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2306,7 +2306,7 @@ def list_cost_centers_by_company(self, companyid, include=None): """ def query_cost_centers(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/costcenters'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2324,7 +2324,7 @@ def query_cost_centers(self, include=None): """ def update_cost_center(self, companyid, costcenterid, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.put('{}/api/v2/companies/{}/costcenters/{}'.format(self.base_url, companyid, costcenterid), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2355,7 +2355,7 @@ def update_cost_center(self, companyid, costcenterid, model): """ def create_customers(self, companyId, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/customers'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2384,7 +2384,7 @@ def create_customers(self, companyId, model): """ def delete_customer(self, companyId, customerCode): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/companies/{}/customers/{}'.format(self.base_url, companyId, customerCode), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2425,7 +2425,7 @@ def delete_customer(self, companyId, customerCode): """ def get_customer(self, companyId, customerCode, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/customers/{}'.format(self.base_url, companyId, customerCode), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2457,7 +2457,7 @@ def get_customer(self, companyId, customerCode, include=None): """ def link_attributes_to_customer(self, companyId, customerCode, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.put('{}/api/v2/companies/{}/customers/{}/attributes/link'.format(self.base_url, companyId, customerCode), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2487,7 +2487,7 @@ def link_attributes_to_customer(self, companyId, customerCode, model): """ def link_certificates_to_customer(self, companyId, customerCode, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/customers/{}/certificates/link'.format(self.base_url, companyId, customerCode), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2517,7 +2517,7 @@ def link_certificates_to_customer(self, companyId, customerCode, model): """ def link_ship_to_customers_to_bill_customer(self, companyId, code, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/customers/billto/{}/shipto/link'.format(self.base_url, companyId, code), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2548,7 +2548,7 @@ def link_ship_to_customers_to_bill_customer(self, companyId, code, model): """ def list_attributes_for_customer(self, companyId, customerCode): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/customers/{}/attributes'.format(self.base_url, companyId, customerCode), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2582,7 +2582,7 @@ def list_attributes_for_customer(self, companyId, customerCode): """ def list_certificates_for_customer(self, companyId, customerCode, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/customers/{}/certificates'.format(self.base_url, companyId, customerCode), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2615,7 +2615,7 @@ def list_certificates_for_customer(self, companyId, customerCode, include=None): """ def list_valid_certificates_for_customer(self, companyId, customerCode, country, region): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/customers/{}/certificates/{}/{}'.format(self.base_url, companyId, customerCode, country, region), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2659,7 +2659,7 @@ def list_valid_certificates_for_customer(self, companyId, customerCode, country, """ def query_customers(self, companyId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/customers'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2691,7 +2691,7 @@ def query_customers(self, companyId, include=None): """ def unlink_attributes_from_customer(self, companyId, customerCode, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.put('{}/api/v2/companies/{}/customers/{}/attributes/unlink'.format(self.base_url, companyId, customerCode), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2721,7 +2721,7 @@ def unlink_attributes_from_customer(self, companyId, customerCode, model): """ def unlink_certificates_from_customer(self, companyId, customerCode, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/customers/{}/certificates/unlink'.format(self.base_url, companyId, customerCode), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2751,7 +2751,7 @@ def unlink_certificates_from_customer(self, companyId, customerCode, model): """ def update_customer(self, companyId, customerCode, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.put('{}/api/v2/companies/{}/customers/{}'.format(self.base_url, companyId, customerCode), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2771,7 +2771,7 @@ def update_customer(self, companyId, customerCode, model): """ def create_data_sources(self, companyId, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/datasources'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2791,7 +2791,7 @@ def create_data_sources(self, companyId, model): """ def delete_data_source(self, companyId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/companies/{}/datasources/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2811,7 +2811,7 @@ def delete_data_source(self, companyId, id_): """ def get_data_source_by_id(self, companyId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/datasources/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2834,7 +2834,7 @@ def get_data_source_by_id(self, companyId, id_): """ def list_data_sources(self, companyId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/datasources'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2858,7 +2858,7 @@ def list_data_sources(self, companyId, include=None): """ def query_data_sources(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/datasources'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2879,7 +2879,7 @@ def query_data_sources(self, include=None): """ def update_data_source(self, companyId, id_, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.put('{}/api/v2/companies/{}/datasources/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2904,7 +2904,7 @@ def update_data_source(self, companyId, id_, model): """ def get_cross_border_code(self, country, hsCode): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/crossborder/{}/{}/hierarchy'.format(self.base_url, country, hsCode), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2925,7 +2925,7 @@ def get_cross_border_code(self, country, hsCode): """ def get_login_verifier_by_form(self, form, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/filingcalendars/loginverifiers/{}'.format(self.base_url, form), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2944,7 +2944,7 @@ def get_login_verifier_by_form(self, form, include=None): """ def list_all_marketplace_locations(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/listallmarketplacelocations'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2966,7 +2966,7 @@ def list_all_marketplace_locations(self, include=None): """ def list_ava_file_forms(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/avafileforms'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2990,7 +2990,7 @@ def list_ava_file_forms(self, include=None): """ def list_certificate_attributes(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/certificateattributes'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3013,7 +3013,7 @@ def list_certificate_attributes(self, include=None): """ def list_certificate_exempt_reasons(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/certificateexemptreasons'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3036,7 +3036,7 @@ def list_certificate_exempt_reasons(self, include=None): """ def list_certificate_exposure_zones(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/certificateexposurezones'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3057,7 +3057,7 @@ def list_certificate_exposure_zones(self, include=None): """ def list_classification_parameters_usage(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/classification/parametersusage'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3077,7 +3077,7 @@ def list_classification_parameters_usage(self, include=None): """ def list_communications_service_types(self, id_, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/communications/transactiontypes/{}/servicetypes'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3097,7 +3097,7 @@ def list_communications_service_types(self, id_, include=None): """ def list_communications_transaction_types(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/communications/transactiontypes'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3117,7 +3117,7 @@ def list_communications_transaction_types(self, include=None): """ def list_communications_t_s_pairs(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/communications/tspairs'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3138,7 +3138,7 @@ def list_communications_t_s_pairs(self, include=None): """ def list_countries(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/countries'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3162,7 +3162,7 @@ def list_countries(self, include=None): """ def list_cover_letters(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/coverletters'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3190,7 +3190,7 @@ def list_cover_letters(self, include=None): """ def list_cross_border_codes(self, country, hsCode, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/crossborder/{}/{}'.format(self.base_url, country, hsCode), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3211,7 +3211,7 @@ def list_cross_border_codes(self, country, hsCode, include=None): """ def list_cross_border_sections(self): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/crossborder/sections'.format(self.base_url), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3232,7 +3232,7 @@ def list_cross_border_sections(self): """ def list_currencies(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/currencies'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3255,7 +3255,7 @@ def list_currencies(self, include=None): """ def list_entity_use_codes(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/entityusecodes'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3275,7 +3275,7 @@ def list_entity_use_codes(self, include=None): """ def list_filing_frequencies(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/filingfrequencies'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3291,7 +3291,7 @@ def list_filing_frequencies(self, include=None): """ def list_items_recommendations_status(self): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/items/recommendationstatus'.format(self.base_url), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3307,7 +3307,7 @@ def list_items_recommendations_status(self): """ def list_items_status(self): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/items/status'.format(self.base_url), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3329,7 +3329,7 @@ def list_items_status(self): """ def list_jurisdictions(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/jurisdictions'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3359,7 +3359,7 @@ def list_jurisdictions(self, include=None): """ def list_jurisdictions_by_address(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/jurisdictionsnearaddress'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3387,7 +3387,7 @@ def list_jurisdictions_by_address(self, include=None): """ def list_jurisdictions_by_rate_type_tax_type_mapping(self, country, taxTypeId, taxSubTypeId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/jurisdictions/countries/{}/taxtypes/{}/taxsubtypes/{}'.format(self.base_url, country, taxTypeId, taxSubTypeId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3408,7 +3408,7 @@ def list_jurisdictions_by_rate_type_tax_type_mapping(self, country, taxTypeId, t """ def list_jurisdictions_hierarchy(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/jurisdictions/hierarchy'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3427,7 +3427,7 @@ def list_jurisdictions_hierarchy(self, include=None): """ def list_jurisdiction_types_by_rate_type_tax_type_mapping(self, country, taxTypeId, taxSubTypeId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/jurisdictionTypes/countries/{}/taxtypes/{}/taxsubtypes/{}'.format(self.base_url, country, taxTypeId, taxSubTypeId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3460,7 +3460,7 @@ def list_jurisdiction_types_by_rate_type_tax_type_mapping(self, country, taxType """ def list_location_questions_by_address(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/locationquestions'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3481,7 +3481,7 @@ def list_location_questions_by_address(self, include=None): """ def list_login_verifiers(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/filingcalendars/loginverifiers'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3500,7 +3500,7 @@ def list_login_verifiers(self, include=None): """ def list_marketplace_locations(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/marketplacelocations'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3520,7 +3520,7 @@ def list_marketplace_locations(self, include=None): """ def list_nexus(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/nexus'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3550,7 +3550,7 @@ def list_nexus(self, include=None): """ def list_nexus_by_address(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/nexus/byaddress'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3571,7 +3571,7 @@ def list_nexus_by_address(self, include=None): """ def list_nexus_by_country(self, country, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/nexus/{}'.format(self.base_url, country), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3593,7 +3593,7 @@ def list_nexus_by_country(self, country, include=None): """ def list_nexus_by_country_and_region(self, country, region, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/nexus/{}/{}'.format(self.base_url, country, region), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3618,7 +3618,7 @@ def list_nexus_by_country_and_region(self, country, region, include=None): """ def list_nexus_by_form_code(self, formCode): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/nexus/byform/{}'.format(self.base_url, formCode), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3639,7 +3639,7 @@ def list_nexus_by_form_code(self, formCode): """ def list_nexus_by_tax_type_group(self, taxTypeGroup, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/nexus/bytaxtypegroup/{}'.format(self.base_url, taxTypeGroup), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3659,7 +3659,7 @@ def list_nexus_by_tax_type_group(self, taxTypeGroup, include=None): """ def list_nexus_tax_type_groups(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/nexustaxtypegroups'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3679,7 +3679,7 @@ def list_nexus_tax_type_groups(self, include=None): """ def list_notice_customer_funding_options(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/noticecustomerfundingoptions'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3699,7 +3699,7 @@ def list_notice_customer_funding_options(self, include=None): """ def list_notice_customer_types(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/noticecustomertypes'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3719,7 +3719,7 @@ def list_notice_customer_types(self, include=None): """ def list_notice_filingtypes(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/noticefilingtypes'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3739,7 +3739,7 @@ def list_notice_filingtypes(self, include=None): """ def list_notice_priorities(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/noticepriorities'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3759,7 +3759,7 @@ def list_notice_priorities(self, include=None): """ def list_notice_reasons(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/noticereasons'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3779,7 +3779,7 @@ def list_notice_reasons(self, include=None): """ def list_notice_responsibilities(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/noticeresponsibilities'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3799,7 +3799,7 @@ def list_notice_responsibilities(self, include=None): """ def list_notice_root_causes(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/noticerootcauses'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3819,7 +3819,7 @@ def list_notice_root_causes(self, include=None): """ def list_notice_statuses(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/noticestatuses'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3839,7 +3839,7 @@ def list_notice_statuses(self, include=None): """ def list_notice_types(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/noticetypes'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3860,7 +3860,7 @@ def list_notice_types(self, include=None): """ def list_parameters(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/parameters'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3880,7 +3880,7 @@ def list_parameters(self, include=None): """ def list_parameters_by_account(self, accountId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/accounts/{}/parameters'.format(self.base_url, accountId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3914,7 +3914,7 @@ def list_parameters_by_account(self, accountId, include=None): """ def list_parameters_by_item(self, companyCode, itemCode, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/parameters/byitem/{}/{}'.format(self.base_url, companyCode, itemCode), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3935,7 +3935,7 @@ def list_parameters_by_item(self, companyCode, itemCode, include=None): """ def list_parameters_usage(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/parametersusage'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3953,7 +3953,7 @@ def list_parameters_usage(self, include=None): """ def list_permissions(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/permissions'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3973,7 +3973,7 @@ def list_permissions(self, include=None): """ def list_postal_codes(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/postalcodes'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3998,7 +3998,7 @@ def list_postal_codes(self, include=None): """ def list_preferred_programs(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/preferredprograms'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4020,7 +4020,7 @@ def list_preferred_programs(self, include=None): """ def list_product_classification_systems(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/productclassificationsystems'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4049,7 +4049,7 @@ def list_product_classification_systems(self, include=None): """ def list_product_classification_systems_by_company(self, companyCode, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/productclassificationsystems/bycompany/{}'.format(self.base_url, companyCode), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4070,7 +4070,7 @@ def list_product_classification_systems_by_company(self, companyCode, include=No """ def list_rate_types_by_country(self, country, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/countries/{}/ratetypes'.format(self.base_url, country), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4093,7 +4093,7 @@ def list_rate_types_by_country(self, country, include=None): """ def list_rate_types_by_country_tax_type_tax_sub_type(self, country, taxTypeId, taxSubTypeId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/countries/{}/taxtypes/{}/taxsubtypes/{}/ratetypes'.format(self.base_url, country, taxTypeId, taxSubTypeId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4114,7 +4114,7 @@ def list_rate_types_by_country_tax_type_tax_sub_type(self, country, taxTypeId, t """ def list_regions(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/regions'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4136,7 +4136,7 @@ def list_regions(self, include=None): """ def list_regions_by_country(self, country, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/countries/{}/regions'.format(self.base_url, country), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4162,7 +4162,7 @@ def list_regions_by_country(self, country, include=None): """ def list_regions_by_country_and_tax_type_and_tax_sub_type_and_rate_type(self, companyId, country, taxTypeId, taxSubTypeId, rateTypeId, jurisdictionTypeId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/companies/{}/countries/{}/regions/taxtypes/{}/taxsubtypes/{}/rateTypeId/{}/jurisdictionTypeId/{}'.format(self.base_url, companyId, country, taxTypeId, taxSubTypeId, rateTypeId, jurisdictionTypeId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4183,7 +4183,7 @@ def list_regions_by_country_and_tax_type_and_tax_sub_type_and_rate_type(self, co """ def list_returns_parameters_usage(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/returns/parametersusage'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4204,7 +4204,7 @@ def list_returns_parameters_usage(self, include=None): """ def list_security_roles(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/securityroles'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4226,7 +4226,7 @@ def list_security_roles(self, include=None): """ def list_subscription_types(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/subscriptiontypes'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4245,7 +4245,7 @@ def list_subscription_types(self, include=None): """ def list_tags(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/tags'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4265,7 +4265,7 @@ def list_tags(self, include=None): """ def list_tax_authorities(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/taxauthorities'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4287,7 +4287,7 @@ def list_tax_authorities(self, include=None): """ def list_tax_authority_forms(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/taxauthorityforms'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4307,7 +4307,7 @@ def list_tax_authority_forms(self, include=None): """ def list_tax_authority_types(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/taxauthoritytypes'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4332,7 +4332,7 @@ def list_tax_authority_types(self, include=None): """ def list_tax_codes(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/taxcodes'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4351,7 +4351,7 @@ def list_tax_codes(self, include=None): """ def list_tax_code_types(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/taxcodetypes'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4371,7 +4371,7 @@ def list_tax_code_types(self, include=None): """ def list_tax_forms(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/taxforms'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4391,7 +4391,7 @@ def list_tax_forms(self, include=None): """ def list_tax_sub_types(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/taxsubtypes'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4414,7 +4414,7 @@ def list_tax_sub_types(self, include=None): """ def list_tax_sub_types_by_country_and_tax_type(self, country, taxTypeId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/taxsubtypes/countries/{}/taxtypes/{}'.format(self.base_url, country, taxTypeId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4436,7 +4436,7 @@ def list_tax_sub_types_by_country_and_tax_type(self, country, taxTypeId, include """ def list_tax_sub_types_by_jurisdiction_and_region(self, jurisdictionCode, region, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/taxsubtypes/{}/{}'.format(self.base_url, jurisdictionCode, region), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4456,7 +4456,7 @@ def list_tax_sub_types_by_jurisdiction_and_region(self, jurisdictionCode, region """ def list_tax_type_groups(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/taxtypegroups'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4476,7 +4476,7 @@ def list_tax_type_groups(self, include=None): """ def list_tax_types_by_nexus_and_country(self, country, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/taxtypes/countries/{}'.format(self.base_url, country), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4498,7 +4498,7 @@ def list_tax_types_by_nexus_and_country(self, country, include=None): """ def list_unit_of_basis_by_country_and_tax_type_and_tax_sub_type_and_rate_type(self, country, taxTypeId, taxSubTypeId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/unitofbasis/countries/{}/taxtypes/{}/taxsubtypes/{}'.format(self.base_url, country, taxTypeId, taxSubTypeId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4518,7 +4518,7 @@ def list_unit_of_basis_by_country_and_tax_type_and_tax_sub_type_and_rate_type(se """ def list_unit_of_measurement(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/unitofmeasurements'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4540,7 +4540,7 @@ def list_unit_of_measurement(self, include=None): """ def create_distance_threshold(self, companyId, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/distancethresholds'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4562,7 +4562,7 @@ def create_distance_threshold(self, companyId, model): """ def delete_distance_threshold(self, companyId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/companies/{}/distancethresholds/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4584,7 +4584,7 @@ def delete_distance_threshold(self, companyId, id_): """ def get_distance_threshold(self, companyId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/distancethresholds/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4610,7 +4610,7 @@ def get_distance_threshold(self, companyId, id_): """ def list_distance_thresholds(self, companyId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/distancethresholds'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4637,7 +4637,7 @@ def list_distance_thresholds(self, companyId, include=None): """ def query_distance_thresholds(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/distancethresholds'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4662,7 +4662,7 @@ def query_distance_thresholds(self, include=None): """ def update_distance_threshold(self, companyId, id_, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.put('{}/api/v2/companies/{}/distancethresholds/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4678,7 +4678,7 @@ def update_distance_threshold(self, companyId, id_, model): """ def create_dcv(self, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/domain-control-verifications'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4694,7 +4694,7 @@ def create_dcv(self, model): """ def filter_dcv(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/domain-control-verifications'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4710,7 +4710,7 @@ def filter_dcv(self, include=None): """ def get_dcv_by_id(self, domainControlVerificationId): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/domain-control-verifications/{}'.format(self.base_url, domainControlVerificationId), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4728,7 +4728,7 @@ def get_dcv_by_id(self, domainControlVerificationId): """ def delete_afc_event_notifications(self, model, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/event-notifications/afc'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4746,7 +4746,7 @@ def delete_afc_event_notifications(self, model, include=None): """ def delete_event_notifications(self, companyId, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/event-notifications/companies/{}'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4763,7 +4763,7 @@ def delete_event_notifications(self, companyId, model): """ def get_event_notifications(self, companyId): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/event-notifications/companies/{}'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4780,17 +4780,19 @@ def get_event_notifications(self, companyId): """ def list_afc_event_notifications(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/event-notifications/afc'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) r""" Swagger Name: AvaTaxClient - Create a new eCommerce token. + Create a new ecommerce token. - Creates a new eCommerce token. - This API is used to create a new eCommerce token. An eCommerce token is required in order to launch the CertCapture eCommerce plugin. Create a token for each of your CertCapture customers. + Creates a new ecommerce token. + This API is used to create a new ecommerce token. An ecommerce token is required in order to launch the ECM/CertCapture ecommerce plugin. Create a separate token for each of your ECM/CertCapture customers. + Use the SDK to embed ECM’s document submission form into your ecommerce platform or online store. Once the token is created, place the returned token value for that customer record in the token field in your ecommerce SDK code. This allows customers to manage their exemption certificates before or after making the purchase. More information is available in the [ECM/CertCapture integration guide](https://developer.avalara.com/document-management/set-up-ecm-for-ecommerce/ecm-in-ecom-environments/). + You can also use the [ecommerce Plugin Demo](https://developer.avalara.com/certcapture/cert-demo/) on developer.avalara.com to test generating a token. Using your AvaTax username and password, try generating the token and combining it with various parameters. ### Security Policies * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, ECMAccountUser, ECMCompanyUser, FirmAdmin, FirmUser, ProStoresOperator, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. @@ -4800,7 +4802,7 @@ def list_afc_event_notifications(self, include=None): """ def create_e_commerce_token(self, companyId, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/ecommercetokens'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4820,7 +4822,7 @@ def create_e_commerce_token(self, companyId, model): """ def refresh_e_commerce_token(self, companyId, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.put('{}/api/v2/companies/{}/ecommercetokens'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4838,7 +4840,7 @@ def refresh_e_commerce_token(self, companyId, model): """ def approve_firm_client_linkage(self, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/firmclientlinkages/{}/approve'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4862,7 +4864,7 @@ def approve_firm_client_linkage(self, id_): """ def create_and_link_new_firm_client_account(self, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/firmclientlinkages/createandlinkclient'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4880,7 +4882,7 @@ def create_and_link_new_firm_client_account(self, model): """ def create_firm_client_linkage(self, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/firmclientlinkages'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4898,7 +4900,7 @@ def create_firm_client_linkage(self, model): """ def delete_firm_client_linkage(self, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/firmclientlinkages/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4909,32 +4911,51 @@ def delete_firm_client_linkage(self, id_): This API enables the firm admins/firm users to request the linkage of a firm account and a client account. ### Security Policies - * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, ECMAccountUser, ECMCompanyUser, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. + * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, ECMAccountUser, ECMCompanyUser, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. :param id_ [int] :return FirmClientLinkageOutputModel """ def get_firm_client_linkage(self, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/firmclientlinkages/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) r""" Swagger Name: AvaTaxClient + Insert a full FirmClientLinkage record + + Avalara allows firms to manage returns for clients without the clients needing to use AvaTax service. + Firms can create accounts of FirmClient for customers they are managing using this API. + ### Security Policies + * This API requires one of the following user roles: BatchServiceAdmin, FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin. + + :param model [FirmClientLinkageModel] FirmClientLinkage record + :return FirmClientLinkageOutputModel + """ + def insert_firm_client_linkage(self, model): + if ('X-Avalara-Client' in self.client_header): + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") + return requests.post('{}/api/v2/firmclientlinkages/insert'.format(self.base_url), + auth=self.auth, headers=self.client_header, json=model, + timeout=self.timeout_limit if self.timeout_limit else 1200) + r""" + Swagger Name: AvaTaxClient + List client linkages for a firm or client This API enables the firm or account users to request the associated linkages to the account. ### Security Policies - * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, ECMAccountUser, ECMCompanyUser, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. + * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, ECMAccountUser, ECMCompanyUser, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. :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(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/firmclientlinkages'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4952,7 +4973,7 @@ def list_firm_client_linkage(self, include=None): """ def reject_firm_client_linkage(self, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/firmclientlinkages/{}/reject'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4970,7 +4991,7 @@ def reject_firm_client_linkage(self, id_): """ def reset_firm_client_linkage(self, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/firmclientlinkages/{}/reset'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4988,13 +5009,32 @@ def reset_firm_client_linkage(self, id_): """ def revoke_firm_client_linkage(self, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/firmclientlinkages/{}/revoke'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) r""" Swagger Name: AvaTaxClient + Update a full FirmClientLinkage record + + Avalara allow updating the firm client linkage as a pass thru call. + Firms can create accounts of FirmClient for customers they are managing using this API. + ### Security Policies + * This API requires one of the following user roles: BatchServiceAdmin, FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin. + + :param model [FirmClientLinkageModel] FirmClientLinkage record + :return FirmClientLinkageOutputModel + """ + def update_firm_client_linkage(self, model): + if ('X-Avalara-Client' in self.client_header): + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") + return requests.put('{}/api/v2/firmclientlinkages'.format(self.base_url), + auth=self.auth, headers=self.client_header, json=model, + timeout=self.timeout_limit if self.timeout_limit else 1200) + r""" + Swagger Name: AvaTaxClient + Request the javascript for a funding setup widget This API is available by invitation only. @@ -5020,7 +5060,7 @@ def revoke_firm_client_linkage(self, id_): """ def activate_funding_request(self, id_, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/fundingrequests/{}/widget'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5050,7 +5090,7 @@ def activate_funding_request(self, id_, include=None): """ def funding_request_status(self, id_, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/fundingrequests/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5067,7 +5107,7 @@ def funding_request_status(self, id_, include=None): """ def bulk_upload_g_l_accounts(self, companyid, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/glaccounts/$upload'.format(self.base_url, companyid), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5085,7 +5125,7 @@ def bulk_upload_g_l_accounts(self, companyid, model): """ def create_g_l_account(self, companyid, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/glaccounts'.format(self.base_url, companyid), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5102,7 +5142,7 @@ def create_g_l_account(self, companyid, model): """ def delete_g_l_account(self, companyid, glaccountid): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/companies/{}/glaccounts/{}'.format(self.base_url, companyid, glaccountid), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5119,7 +5159,7 @@ def delete_g_l_account(self, companyid, glaccountid): """ def get_g_l_account_by_id(self, companyid, glaccountid): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/glaccounts/{}'.format(self.base_url, companyid, glaccountid), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5140,7 +5180,7 @@ def get_g_l_account_by_id(self, companyid, glaccountid): """ def list_g_l_accounts_by_company(self, companyid, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/glaccounts'.format(self.base_url, companyid), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5158,7 +5198,7 @@ def list_g_l_accounts_by_company(self, companyid, include=None): """ def update_g_l_account(self, companyid, glaccountid, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.put('{}/api/v2/companies/{}/glaccounts/{}'.format(self.base_url, companyid, glaccountid), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5179,7 +5219,7 @@ def update_g_l_account(self, companyid, glaccountid, model): """ def batch_delete_item_classifications(self, companyId, itemId): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/companies/{}/items/{}/classifications'.format(self.base_url, companyId, itemId), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5201,7 +5241,7 @@ def batch_delete_item_classifications(self, companyId, itemId): """ def batch_delete_item_parameters(self, companyId, itemId): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/companies/{}/items/{}/parameters'.format(self.base_url, companyId, itemId), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5226,7 +5266,7 @@ def batch_delete_item_parameters(self, companyId, itemId): """ def bulk_upload_items(self, companyId, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/items/upload'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5249,7 +5289,7 @@ def bulk_upload_items(self, companyId, model): """ def create_item_classifications(self, companyId, itemId, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/items/{}/classifications'.format(self.base_url, companyId, itemId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5274,7 +5314,7 @@ def create_item_classifications(self, companyId, itemId, model): """ def create_item_parameters(self, companyId, itemId, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/items/{}/parameters'.format(self.base_url, companyId, itemId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5300,7 +5340,7 @@ def create_item_parameters(self, companyId, itemId, model): """ def create_items(self, companyId, model, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/items'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5321,7 +5361,7 @@ def create_items(self, companyId, model, include=None): """ def create_item_tags(self, companyId, itemId, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/items/{}/tags'.format(self.base_url, companyId, itemId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5343,7 +5383,7 @@ def create_item_tags(self, companyId, itemId, model): """ def create_tax_code_classification_request(self, companyId, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/classificationrequests/taxcode'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5373,7 +5413,7 @@ def create_tax_code_classification_request(self, companyId, model): """ def delete_catalogue_item(self, companyId, itemCode): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/companies/{}/itemcatalogue/{}'.format(self.base_url, companyId, itemCode), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5398,7 +5438,7 @@ def delete_catalogue_item(self, companyId, itemCode): """ def delete_item(self, companyId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/companies/{}/items/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5420,7 +5460,7 @@ def delete_item(self, companyId, id_): """ def delete_item_classification(self, companyId, itemId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/companies/{}/items/{}/classifications/{}'.format(self.base_url, companyId, itemId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5443,7 +5483,7 @@ def delete_item_classification(self, companyId, itemId, id_): """ def delete_item_parameter(self, companyId, itemId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/companies/{}/items/{}/parameters/{}'.format(self.base_url, companyId, itemId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5464,7 +5504,7 @@ def delete_item_parameter(self, companyId, itemId, id_): """ def delete_item_tag(self, companyId, itemId, itemTagDetailId): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/companies/{}/items/{}/tags/{}'.format(self.base_url, companyId, itemId, itemTagDetailId), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5484,7 +5524,7 @@ def delete_item_tag(self, companyId, itemId, itemTagDetailId): """ def delete_item_tags(self, companyId, itemId): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/companies/{}/items/{}/tags'.format(self.base_url, companyId, itemId), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5509,7 +5549,7 @@ def delete_item_tags(self, companyId, itemId): """ def get_item(self, companyId, id_, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/items/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5531,7 +5571,7 @@ def get_item(self, companyId, id_, include=None): """ def get_item_classification(self, companyId, itemId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/items/{}/classifications/{}'.format(self.base_url, companyId, itemId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5554,7 +5594,7 @@ def get_item_classification(self, companyId, itemId, id_): """ def get_item_parameter(self, companyId, itemId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/items/{}/parameters/{}'.format(self.base_url, companyId, itemId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5577,7 +5617,7 @@ def get_item_parameter(self, companyId, itemId, id_): """ def get_item_tags(self, companyId, itemId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/items/{}/tags'.format(self.base_url, companyId, itemId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5596,7 +5636,7 @@ def get_item_tags(self, companyId, itemId, include=None): """ def get_item_tax_code_recommendations(self, companyId, itemId): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/items/{}/taxcoderecommendations'.format(self.base_url, companyId, itemId), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5624,7 +5664,7 @@ def get_item_tax_code_recommendations(self, companyId, itemId): """ def get_premium_classification(self, companyId, itemCode, systemCode): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/items/{}/premiumClassification/{}'.format(self.base_url, companyId, itemCode, systemCode), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5655,7 +5695,7 @@ def get_premium_classification(self, companyId, itemCode, systemCode): """ def list_import_restrictions(self, companyId, itemCode, countryOfImport, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/items/{}/restrictions/import/{}'.format(self.base_url, companyId, itemCode, countryOfImport), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5682,7 +5722,7 @@ def list_import_restrictions(self, companyId, itemCode, countryOfImport, include """ def list_item_classifications(self, companyId, itemId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/items/{}/classifications'.format(self.base_url, companyId, itemId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5710,7 +5750,7 @@ def list_item_classifications(self, companyId, itemId, include=None): """ def list_item_parameters(self, companyId, itemId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/items/{}/parameters'.format(self.base_url, companyId, itemId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5736,11 +5776,12 @@ def list_item_parameters(self, companyId, itemId, include=None): * Tags * Properties * TaxCodeRecommendationStatus + * TaxCodeDetails ### Security Policies * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser. :param companyId [int] The ID of the company that defined these items - :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:* taxCode, source, sourceEntityId, itemType, upc, summary, classifications, parameters, tags, properties, itemStatus, taxCodeRecommendationStatus, taxCodeRecommendations + :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:* taxCode, source, sourceEntityId, itemType, upc, summary, classifications, parameters, tags, properties, itemStatus, taxCodeRecommendationStatus, taxCodeRecommendations, taxCodeDetails :param include [string] A comma separated list of additional data to retrieve. :param top [int] 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. :param skip [int] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets. @@ -5752,7 +5793,7 @@ def list_item_parameters(self, companyId, itemId, include=None): """ def list_items_by_company(self, companyId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/items'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5777,7 +5818,7 @@ def list_items_by_company(self, companyId, include=None): """ def list_recommended_parameter_by_company_id_and_item_id(self, companyId, itemId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/definitions/companies/{}/items/{}/parameters'.format(self.base_url, companyId, itemId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5797,7 +5838,7 @@ def list_recommended_parameter_by_company_id_and_item_id(self, companyId, itemId ### Security Policies * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser. - :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:* taxCode, source, sourceEntityId, itemType, upc, summary, classifications, parameters, tags, properties, itemStatus, taxCodeRecommendationStatus, taxCodeRecommendations + :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:* taxCode, source, sourceEntityId, itemType, upc, summary, classifications, parameters, tags, properties, itemStatus, taxCodeRecommendationStatus, taxCodeRecommendations, taxCodeDetails :param include [string] A comma separated list of additional data to retrieve. :param top [int] 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. :param skip [int] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets. @@ -5806,7 +5847,7 @@ def list_recommended_parameter_by_company_id_and_item_id(self, companyId, itemId """ def query_items(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/items'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5836,7 +5877,7 @@ def query_items(self, include=None): """ def query_items_by_system_code(self, companyId, systemCode, model, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/items/internal/bySystemCode/{}'.format(self.base_url, companyId, systemCode), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5858,7 +5899,7 @@ def query_items_by_system_code(self, companyId, systemCode, model, include=None) :param companyId [int] The ID of the company that defined these items. :param tag [string] The master tag to be associated with item. - :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:* taxCode, source, sourceEntityId, itemType, upc, summary, classifications, parameters, tags, properties, itemStatus, taxCodeRecommendationStatus, taxCodeRecommendations + :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:* taxCode, source, sourceEntityId, itemType, upc, summary, classifications, parameters, tags, properties, itemStatus, taxCodeRecommendationStatus, taxCodeRecommendations, taxCodeDetails :param include [string] A comma separated list of additional data to retrieve. :param top [int] 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. :param skip [int] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets. @@ -5867,7 +5908,7 @@ def query_items_by_system_code(self, companyId, systemCode, model, include=None) """ def query_items_by_tag(self, companyId, tag, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/items/bytags/{}'.format(self.base_url, companyId, tag), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5890,7 +5931,7 @@ def query_items_by_tag(self, companyId, tag, include=None): """ def sync_item_catalogue(self, companyId, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/itemcatalogue'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5917,7 +5958,7 @@ def sync_item_catalogue(self, companyId, model): """ def sync_items(self, companyId, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/items/sync'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5941,12 +5982,13 @@ def sync_items(self, companyId, model): :param companyId [int] The ID of the company that this item belongs to. :param id_ [int] The ID of the item you wish to update :param isRecommendationSelected [boolean] If true then Set recommendation status to RecommendationSelected + :param isRecommendationRejected [boolean] If true then Set recommendation status to RecommendationRejected, When the taxCode recommendation status is RecommendationAvailable. Else will be thrown as error :param model [ItemModel] The item object you wish to update. :return ItemModel """ def update_item(self, companyId, id_, model, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.put('{}/api/v2/companies/{}/items/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5970,7 +6012,7 @@ def update_item(self, companyId, id_, model, include=None): """ def update_item_classification(self, companyId, itemId, id_, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.put('{}/api/v2/companies/{}/items/{}/classifications/{}'.format(self.base_url, companyId, itemId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5994,7 +6036,7 @@ def update_item_classification(self, companyId, itemId, id_, model): """ def update_item_parameter(self, companyId, itemId, id_, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.put('{}/api/v2/companies/{}/items/{}/parameters/{}'.format(self.base_url, companyId, itemId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6017,7 +6059,7 @@ def update_item_parameter(self, companyId, itemId, id_, model): """ def create_jurisdiction_overrides(self, accountId, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/accounts/{}/jurisdictionoverrides'.format(self.base_url, accountId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6036,7 +6078,7 @@ def create_jurisdiction_overrides(self, accountId, model): """ def delete_jurisdiction_override(self, accountId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/accounts/{}/jurisdictionoverrides/{}'.format(self.base_url, accountId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6059,7 +6101,7 @@ def delete_jurisdiction_override(self, accountId, id_): """ def get_jurisdiction_override(self, accountId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/accounts/{}/jurisdictionoverrides/{}'.format(self.base_url, accountId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6088,7 +6130,7 @@ def get_jurisdiction_override(self, accountId, id_): """ def list_jurisdiction_overrides_by_account(self, accountId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/accounts/{}/jurisdictionoverrides'.format(self.base_url, accountId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6116,7 +6158,7 @@ def list_jurisdiction_overrides_by_account(self, accountId, include=None): """ def query_jurisdiction_overrides(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/jurisdictionoverrides'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6136,7 +6178,7 @@ def query_jurisdiction_overrides(self, include=None): """ def update_jurisdiction_override(self, accountId, id_, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.put('{}/api/v2/accounts/{}/jurisdictionoverrides/{}'.format(self.base_url, accountId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6161,7 +6203,7 @@ def update_jurisdiction_override(self, accountId, id_, model): """ def create_location_parameters(self, companyId, locationId, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/locations/{}/parameters'.format(self.base_url, companyId, locationId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6180,7 +6222,7 @@ def create_location_parameters(self, companyId, locationId, model): """ def create_locations(self, companyId, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/locations'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6199,7 +6241,7 @@ def create_locations(self, companyId, model): """ def delete_location(self, companyId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/companies/{}/locations/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6222,7 +6264,7 @@ def delete_location(self, companyId, id_): """ def delete_location_parameter(self, companyId, locationId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/companies/{}/locations/{}/parameters/{}'.format(self.base_url, companyId, locationId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6249,7 +6291,7 @@ def delete_location_parameter(self, companyId, locationId, id_): """ def get_location(self, companyId, id_, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/locations/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6272,7 +6314,7 @@ def get_location(self, companyId, id_, include=None): """ def get_location_parameter(self, companyId, locationId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/locations/{}/parameters/{}'.format(self.base_url, companyId, locationId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6300,7 +6342,7 @@ def get_location_parameter(self, companyId, locationId, id_): """ def list_location_parameters(self, companyId, locationId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/locations/{}/parameters'.format(self.base_url, companyId, locationId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6332,7 +6374,7 @@ def list_location_parameters(self, companyId, locationId, include=None): """ def list_locations_by_company(self, companyId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/locations'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6363,7 +6405,7 @@ def list_locations_by_company(self, companyId, include=None): """ def query_locations(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/locations'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6385,7 +6427,7 @@ def query_locations(self, include=None): """ def update_location(self, companyId, id_, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.put('{}/api/v2/companies/{}/locations/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6409,7 +6451,7 @@ def update_location(self, companyId, id_, model): """ def update_location_parameter(self, companyId, locationId, id_, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.put('{}/api/v2/companies/{}/locations/{}/parameters/{}'.format(self.base_url, companyId, locationId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6430,7 +6472,7 @@ def update_location_parameter(self, companyId, locationId, id_, model): """ def validate_location(self, companyId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/locations/{}/validate'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6464,7 +6506,7 @@ def validate_location(self, companyId, id_): """ def adjust_multi_document_transaction(self, code, type, model, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/transactions/multidocument/{}/type/{}/adjust'.format(self.base_url, code, type), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6501,7 +6543,7 @@ def adjust_multi_document_transaction(self, code, type, model, include=None): """ def audit_multi_document_transaction(self, code, type): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/transactions/multidocument/{}/type/{}/audit'.format(self.base_url, code, type), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6531,7 +6573,7 @@ def audit_multi_document_transaction(self, code, type): """ def commit_multi_document_transaction(self, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/transactions/multidocument/commit'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6581,7 +6623,7 @@ def commit_multi_document_transaction(self, model): """ def create_multi_document_transaction(self, model, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/transactions/multidocument'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6617,7 +6659,7 @@ def create_multi_document_transaction(self, model, include=None): """ def get_multi_document_transaction_by_code_and_type(self, code, type, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/transactions/multidocument/{}/type/{}'.format(self.base_url, code, type), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6659,7 +6701,7 @@ def get_multi_document_transaction_by_code_and_type(self, code, type, include=No """ def get_multi_document_transaction_by_id(self, id_, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/transactions/multidocument/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6702,7 +6744,7 @@ def get_multi_document_transaction_by_id(self, id_, include=None): """ def list_multi_document_transactions(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/transactions/multidocument'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6757,7 +6799,7 @@ def list_multi_document_transactions(self, include=None): """ def refund_multi_document_transaction(self, code, type, model, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/transactions/multidocument/{}/type/{}/refund'.format(self.base_url, code, type), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6786,7 +6828,7 @@ def refund_multi_document_transaction(self, code, type, model, include=None): """ def verify_multi_document_transaction(self, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/transactions/multidocument/verify'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6819,7 +6861,7 @@ def verify_multi_document_transaction(self, model): """ def void_multi_document_transaction(self, code, type, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/transactions/multidocument/{}/type/{}/void'.format(self.base_url, code, type), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6851,7 +6893,7 @@ def void_multi_document_transaction(self, code, type, model): """ def create_nexus(self, companyId, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/nexus'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6876,7 +6918,7 @@ def create_nexus(self, companyId, model): """ def create_nexus_parameters(self, companyId, nexusId, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/nexus/{}/parameters'.format(self.base_url, companyId, nexusId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6905,7 +6947,7 @@ def create_nexus_parameters(self, companyId, nexusId, model): """ def declare_nexus_by_address(self, companyId, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/nexus/byaddress'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6930,7 +6972,7 @@ def declare_nexus_by_address(self, companyId, model): """ def delete_nexus(self, companyId, id_, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/companies/{}/nexus/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6953,7 +6995,7 @@ def delete_nexus(self, companyId, id_, include=None): """ def delete_nexus_parameter(self, companyId, nexusId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/companies/{}/nexus/{}/parameters/{}'.format(self.base_url, companyId, nexusId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6975,7 +7017,7 @@ def delete_nexus_parameter(self, companyId, nexusId, id_): """ def delete_nexus_parameters(self, companyId, nexusId): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/companies/{}/nexus/{}/parameters'.format(self.base_url, companyId, nexusId), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7000,7 +7042,7 @@ def delete_nexus_parameters(self, companyId, nexusId): """ def get_nexus(self, companyId, id_, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/nexus/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7028,7 +7070,7 @@ def get_nexus(self, companyId, id_, include=None): """ def get_nexus_by_form_code(self, companyId, formCode, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/nexus/byform/{}'.format(self.base_url, companyId, formCode), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7051,7 +7093,7 @@ def get_nexus_by_form_code(self, companyId, formCode, include=None): """ def get_nexus_parameter(self, companyId, nexusId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/nexus/{}/parameters/{}'.format(self.base_url, companyId, nexusId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7081,7 +7123,7 @@ def get_nexus_parameter(self, companyId, nexusId, id_): """ def list_nexus_by_company(self, companyId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/nexus'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7112,7 +7154,7 @@ def list_nexus_by_company(self, companyId, include=None): """ def list_nexus_by_company_and_tax_type_group(self, companyId, taxTypeGroup, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/nexus/byTaxTypeGroup/{}'.format(self.base_url, companyId, taxTypeGroup), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7140,7 +7182,7 @@ def list_nexus_by_company_and_tax_type_group(self, companyId, taxTypeGroup, incl """ def list_nexus_parameters(self, companyId, nexusId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/nexus/{}/parameters'.format(self.base_url, companyId, nexusId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7169,7 +7211,7 @@ def list_nexus_parameters(self, companyId, nexusId, include=None): """ def query_nexus(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/nexus'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7202,7 +7244,7 @@ def query_nexus(self, include=None): """ def update_nexus(self, companyId, id_, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.put('{}/api/v2/companies/{}/nexus/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7226,7 +7268,7 @@ def update_nexus(self, companyId, id_, model): """ def update_nexus_parameter(self, companyId, nexusId, id_, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.put('{}/api/v2/companies/{}/nexus/{}/parameters/{}'.format(self.base_url, companyId, nexusId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7245,7 +7287,7 @@ def update_nexus_parameter(self, companyId, nexusId, id_, model): """ def create_notice_responsibility_type(self, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/notices/responsibilities'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7264,7 +7306,7 @@ def create_notice_responsibility_type(self, model): """ def create_notice_root_cause_type(self, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/notices/rootcauses'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7282,7 +7324,7 @@ def create_notice_root_cause_type(self, model): """ def delete_notice_responsibility_type(self, responsibilityId): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/notices/responsibilities/{}'.format(self.base_url, responsibilityId), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7300,7 +7342,7 @@ def delete_notice_responsibility_type(self, responsibilityId): """ def delete_notice_root_cause_type(self, rootCauseId): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/notices/rootcauses/{}'.format(self.base_url, rootCauseId), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7320,14 +7362,14 @@ def delete_notice_root_cause_type(self, rootCauseId): determine if they were resolved appropriately. A Global notification with null accountId and companyId cannot be dismissed and will expire within a given time span. ### Security Policies - * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, ECMAccountUser, ECMCompanyUser, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. + * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, ECMAccountUser, ECMCompanyUser, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. :param id_ [int] The id of the notification you wish to mark as dismissed. :return NotificationModel """ def dismiss_notification(self, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.put('{}/api/v2/notifications/{}/dismiss'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7350,7 +7392,7 @@ def dismiss_notification(self, id_): """ def get_notification(self, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/notifications/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7378,7 +7420,7 @@ def get_notification(self, id_): """ def list_notifications(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/notifications'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7408,7 +7450,7 @@ def list_notifications(self, include=None): """ def request_new_account(self, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/accounts/request'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7430,7 +7472,7 @@ def request_new_account(self, model): """ def request_new_entitlement(self, id_, offer): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/accounts/{}/entitlements/{}'.format(self.base_url, id_, offer), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7451,7 +7493,7 @@ def request_new_entitlement(self, id_, offer): """ def create_account(self, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/accounts'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7478,7 +7520,7 @@ def create_account(self, model): """ def create_notifications(self, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/notifications'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7500,7 +7542,7 @@ def create_notifications(self, model): """ def create_subscriptions(self, accountId, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/accounts/{}/subscriptions'.format(self.base_url, accountId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7521,7 +7563,7 @@ def create_subscriptions(self, accountId, model): """ def delete_account(self, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/accounts/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7546,7 +7588,7 @@ def delete_account(self, id_): """ def delete_notification(self, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/notifications/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7567,7 +7609,7 @@ def delete_notification(self, id_): """ def delete_subscription(self, accountId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/accounts/{}/subscriptions/{}'.format(self.base_url, accountId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7583,7 +7625,7 @@ def delete_subscription(self, accountId, id_): You may always contact Avalara's sales department for information on available products or services. You cannot change your subscriptions/service directly through the API. ### Security Policies - * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. + * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. :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:* taxTypeGroupIdSK :param top [int] 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. @@ -7593,7 +7635,7 @@ def delete_subscription(self, accountId, id_): """ def list_service_types(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/servicetypes/servicetypes'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7618,7 +7660,7 @@ def list_service_types(self, include=None): """ def reset_password(self, userId, model, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/passwords/{}/reset'.format(self.base_url, userId), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7639,7 +7681,7 @@ def reset_password(self, userId, model, include=None): """ def update_account(self, id_, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.put('{}/api/v2/accounts/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7665,7 +7707,7 @@ def update_account(self, id_, model): """ def update_notification(self, id_, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.put('{}/api/v2/notifications/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7691,7 +7733,7 @@ def update_notification(self, id_, model): """ def update_subscription(self, accountId, id_, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.put('{}/api/v2/accounts/{}/subscriptions/{}'.format(self.base_url, accountId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7718,7 +7760,7 @@ def update_subscription(self, accountId, id_, model): """ def download_report(self, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/reports/{}/attachment'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7741,7 +7783,7 @@ def download_report(self, id_): """ def get_report(self, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/reports/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7773,7 +7815,7 @@ def get_report(self, id_): """ def initiate_export_document_line_report(self, companyId, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/reports/exportdocumentline/initiate'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7801,7 +7843,7 @@ def initiate_export_document_line_report(self, companyId, model): """ def list_reports(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/reports'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7830,7 +7872,7 @@ def list_reports(self, include=None): """ def create_settings(self, companyId, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/settings'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7856,7 +7898,7 @@ def create_settings(self, companyId, model): """ def delete_setting(self, companyId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/companies/{}/settings/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7882,7 +7924,7 @@ def delete_setting(self, companyId, id_): """ def get_setting(self, companyId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/settings/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7914,7 +7956,7 @@ def get_setting(self, companyId, id_): """ def list_settings_by_company(self, companyId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/settings'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7945,7 +7987,7 @@ def list_settings_by_company(self, companyId, include=None): """ def query_settings(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/settings'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7974,7 +8016,7 @@ def query_settings(self, include=None): """ def update_setting(self, companyId, id_, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.put('{}/api/v2/companies/{}/settings/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7987,7 +8029,7 @@ def update_setting(self, companyId, id_, model): A 'subscription' indicates a licensed subscription to a named Avalara service. To request or remove subscriptions, please contact Avalara sales or your customer account manager. ### Security Policies - * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. + * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. :param accountId [int] The ID of the account that owns this subscription :param id_ [int] The primary key of this subscription @@ -7995,7 +8037,7 @@ def update_setting(self, companyId, id_, model): """ def get_subscription(self, accountId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/accounts/{}/subscriptions/{}'.format(self.base_url, accountId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8010,7 +8052,7 @@ def get_subscription(self, accountId, id_): Search for specific objects using the criteria in the `$filter` parameter; full documentation is available on [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/) . Paginate your results using the `$top`, `$skip`, and `$orderby` parameters. ### Security Policies - * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. + * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. :param accountId [int] The ID of the account that owns these subscriptions :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:* subscriptionDescription @@ -8021,7 +8063,7 @@ def get_subscription(self, accountId, id_): """ def list_subscriptions_by_account(self, accountId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/accounts/{}/subscriptions'.format(self.base_url, accountId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8036,7 +8078,7 @@ def list_subscriptions_by_account(self, accountId, include=None): Search for specific objects using the criteria in the `$filter` parameter; full documentation is available on [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/) . Paginate your results using the `$top`, `$skip`, and `$orderby` parameters. ### Security Policies - * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. + * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. :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:* subscriptionDescription :param top [int] 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. @@ -8046,7 +8088,7 @@ def list_subscriptions_by_account(self, accountId, include=None): """ def query_subscriptions(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/subscriptions'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8069,7 +8111,7 @@ def query_subscriptions(self, include=None): """ def create_tax_codes(self, companyId, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/taxcodes'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8088,7 +8130,7 @@ def create_tax_codes(self, companyId, model): """ def delete_tax_code(self, companyId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/companies/{}/taxcodes/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8111,7 +8153,7 @@ def delete_tax_code(self, companyId, id_): """ def get_tax_code(self, companyId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/taxcodes/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8140,7 +8182,7 @@ def get_tax_code(self, companyId, id_): """ def list_tax_codes_by_company(self, companyId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/taxcodes'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8168,7 +8210,7 @@ def list_tax_codes_by_company(self, companyId, include=None): """ def query_tax_codes(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/taxcodes'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8194,7 +8236,7 @@ def query_tax_codes(self, include=None): """ def update_tax_code(self, companyId, id_, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.put('{}/api/v2/companies/{}/taxcodes/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8229,7 +8271,7 @@ def update_tax_code(self, companyId, id_, model): """ def build_tax_content_file(self, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/pointofsaledata/build'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8269,7 +8311,7 @@ def build_tax_content_file(self, model): """ def build_tax_content_file_for_location(self, companyId, id_, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/locations/{}/pointofsaledata'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8320,7 +8362,7 @@ def build_tax_content_file_for_location(self, companyId, id_, include=None): """ def download_tax_rates_by_zip_code(self, date, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/taxratesbyzipcode/download/{}'.format(self.base_url, date), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8359,7 +8401,7 @@ def download_tax_rates_by_zip_code(self, date, include=None): """ def tax_rates_by_address(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/taxrates/byaddress'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8394,7 +8436,7 @@ def tax_rates_by_address(self, include=None): """ def tax_rates_by_postal_code(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/taxrates/bypostalcode'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8417,7 +8459,7 @@ def tax_rates_by_postal_code(self, include=None): """ def create_country_coefficients(self, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.put('{}/api/v2/countryCoefficients'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8445,7 +8487,7 @@ def create_country_coefficients(self, model): """ def create_tax_rules(self, companyId, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/taxrules'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8473,7 +8515,7 @@ def create_tax_rules(self, companyId, model): """ def delete_tax_rule(self, companyId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/companies/{}/taxrules/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8501,7 +8543,7 @@ def delete_tax_rule(self, companyId, id_): """ def get_tax_rule(self, companyId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/taxrules/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8524,7 +8566,7 @@ def get_tax_rule(self, companyId, id_): """ def list_country_coefficients(self, country, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/{}/CountryCoefficients'.format(self.base_url, country), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8558,7 +8600,7 @@ def list_country_coefficients(self, country, include=None): """ def list_tax_rules(self, companyId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/taxrules'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8591,7 +8633,7 @@ def list_tax_rules(self, companyId, include=None): """ def query_tax_rules(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/taxrules'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8620,7 +8662,7 @@ def query_tax_rules(self, include=None): """ def update_tax_rule(self, companyId, id_, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.put('{}/api/v2/companies/{}/taxrules/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8656,7 +8698,7 @@ def update_tax_rule(self, companyId, id_, model): """ def add_lines(self, model, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/transactions/lines/add'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8702,7 +8744,7 @@ def add_lines(self, model, include=None): """ def adjust_transaction(self, companyCode, transactionCode, model, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/transactions/{}/adjust'.format(self.base_url, companyCode, transactionCode), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8739,7 +8781,7 @@ def adjust_transaction(self, companyCode, transactionCode, model, include=None): """ def audit_transaction(self, companyCode, transactionCode): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/transactions/{}/audit'.format(self.base_url, companyCode, transactionCode), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8777,7 +8819,7 @@ def audit_transaction(self, companyCode, transactionCode): """ def audit_transaction_with_type(self, companyCode, transactionCode, documentType): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/transactions/{}/types/{}/audit'.format(self.base_url, companyCode, transactionCode, documentType), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8800,7 +8842,7 @@ def audit_transaction_with_type(self, companyCode, transactionCode, documentType """ def bulk_lock_transaction(self, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/transactions/lock'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8845,7 +8887,7 @@ def bulk_lock_transaction(self, model): """ def change_transaction_code(self, companyCode, transactionCode, model, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/transactions/{}/changecode'.format(self.base_url, companyCode, transactionCode), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8888,7 +8930,7 @@ def change_transaction_code(self, companyCode, transactionCode, model, include=N """ def commit_transaction(self, companyCode, transactionCode, model, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/transactions/{}/commit'.format(self.base_url, companyCode, transactionCode), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8934,7 +8976,7 @@ def commit_transaction(self, companyCode, transactionCode, model, include=None): """ def create_or_adjust_transaction(self, model, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/transactions/createoradjust'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8985,7 +9027,7 @@ def create_or_adjust_transaction(self, model, include=None): """ def create_transaction(self, model, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/transactions/create'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9018,7 +9060,7 @@ def create_transaction(self, model, include=None): """ def delete_lines(self, model, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/transactions/lines/delete'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9036,7 +9078,7 @@ def delete_lines(self, model, include=None): """ def get_all_variance_report_by_company_code(self, companyCode): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/AllVariance'.format(self.base_url, companyCode), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9078,7 +9120,7 @@ def get_all_variance_report_by_company_code(self, companyCode): """ def get_transaction_by_code(self, companyCode, transactionCode, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/transactions/{}'.format(self.base_url, companyCode, transactionCode), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9107,7 +9149,7 @@ def get_transaction_by_code(self, companyCode, transactionCode, include=None): """ def get_transaction_by_code_and_type(self, companyCode, transactionCode, documentType, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/transactions/{}/types/{}'.format(self.base_url, companyCode, transactionCode, documentType), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9139,7 +9181,7 @@ def get_transaction_by_code_and_type(self, companyCode, transactionCode, documen """ def get_transaction_by_id(self, id_, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/transactions/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9158,7 +9200,7 @@ def get_transaction_by_id(self, id_, include=None): """ def get_variance_report_by_company_code_by_transaction_id(self, companyCode, transactionId): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/transactions/{}/variance'.format(self.base_url, companyCode, transactionId), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9205,7 +9247,7 @@ def get_variance_report_by_company_code_by_transaction_id(self, companyCode, tra """ def list_transactions_by_company(self, companyCode, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/transactions'.format(self.base_url, companyCode), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9250,7 +9292,7 @@ def list_transactions_by_company(self, companyCode, include=None): """ def lock_transaction(self, companyCode, transactionCode, model, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/transactions/{}/lock'.format(self.base_url, companyCode, transactionCode), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9305,7 +9347,7 @@ def lock_transaction(self, companyCode, transactionCode, model, include=None): """ def refund_transaction(self, companyCode, transactionCode, model, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/transactions/{}/refund'.format(self.base_url, companyCode, transactionCode), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9348,7 +9390,7 @@ def refund_transaction(self, companyCode, transactionCode, model, include=None): """ def settle_transaction(self, companyCode, transactionCode, model, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/transactions/{}/settle'.format(self.base_url, companyCode, transactionCode), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9388,7 +9430,7 @@ def settle_transaction(self, companyCode, transactionCode, model, include=None): """ def uncommit_transaction(self, companyCode, transactionCode, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/transactions/{}/uncommit'.format(self.base_url, companyCode, transactionCode), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9426,7 +9468,7 @@ def uncommit_transaction(self, companyCode, transactionCode, include=None): """ def unvoid_transaction(self, companyCode, transactionCode, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/transactions/{}/unvoid'.format(self.base_url, companyCode, transactionCode), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9445,7 +9487,7 @@ def unvoid_transaction(self, companyCode, transactionCode, include=None): """ def variance_report(self, companyCode, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/variance'.format(self.base_url, companyCode), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9488,7 +9530,7 @@ def variance_report(self, companyCode, model): """ def verify_transaction(self, companyCode, transactionCode, model, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/transactions/{}/verify'.format(self.base_url, companyCode, transactionCode), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9532,7 +9574,7 @@ def verify_transaction(self, companyCode, transactionCode, model, include=None): """ def void_transaction(self, companyCode, transactionCode, model, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/transactions/{}/void'.format(self.base_url, companyCode, transactionCode), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9553,7 +9595,7 @@ def void_transaction(self, companyCode, transactionCode, model, include=None): """ def create_u_p_cs(self, companyId, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/upcs'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9573,7 +9615,7 @@ def create_u_p_cs(self, companyId, model): """ def delete_u_p_c(self, companyId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/companies/{}/upcs/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9594,7 +9636,7 @@ def delete_u_p_c(self, companyId, id_): """ def get_u_p_c(self, companyId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/upcs/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9621,7 +9663,7 @@ def get_u_p_c(self, companyId, id_): """ def list_u_p_cs_by_company(self, companyId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/upcs'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9647,7 +9689,7 @@ def list_u_p_cs_by_company(self, companyId, include=None): """ def query_u_p_cs(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/upcs'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9671,7 +9713,7 @@ def query_u_p_cs(self, include=None): """ def update_u_p_c(self, companyId, id_, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.put('{}/api/v2/companies/{}/upcs/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9691,7 +9733,7 @@ def update_u_p_c(self, companyId, id_, model): """ def delete_user_defined_field(self, companyId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/companies/{}/userdefinedfields/{}'.format(self.base_url, companyId, accountId), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9711,7 +9753,7 @@ def delete_user_defined_field(self, companyId, id_): """ def list_user_defined_fields_by_company_id(self, companyId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/companies/{}/userdefinedfields'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9732,7 +9774,7 @@ def list_user_defined_fields_by_company_id(self, companyId, include=None): """ def update_user_defined_field(self, companyId, model, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/companies/{}/userdefinedfields'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9754,7 +9796,7 @@ def update_user_defined_field(self, companyId, model, include=None): """ def change_password(self, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.put('{}/api/v2/passwords'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9778,7 +9820,7 @@ def change_password(self, model): """ def create_users(self, accountId, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.post('{}/api/v2/accounts/{}/users'.format(self.base_url, accountId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9800,7 +9842,7 @@ def create_users(self, accountId, model): """ def delete_user(self, id_, accountId): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.delete('{}/api/v2/accounts/{}/users/{}'.format(self.base_url, accountId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9823,7 +9865,7 @@ def delete_user(self, id_, accountId): """ def get_user(self, id_, accountId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/accounts/{}/users/{}'.format(self.base_url, accountId, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9854,7 +9896,7 @@ def get_user(self, id_, accountId, include=None): """ def get_user_entitlements(self, id_, accountId): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/accounts/{}/users/{}/entitlements'.format(self.base_url, accountId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9884,7 +9926,7 @@ def get_user_entitlements(self, id_, accountId): """ def list_users_by_account(self, accountId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/accounts/{}/users'.format(self.base_url, accountId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9914,7 +9956,7 @@ def list_users_by_account(self, accountId, include=None): """ def query_users(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/users'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9937,7 +9979,7 @@ def query_users(self, include=None): """ def update_user(self, id_, accountId, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.put('{}/api/v2/accounts/{}/users/{}'.format(self.base_url, accountId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9958,7 +10000,7 @@ def update_user(self, id_, accountId, model): """ def get_my_subscription(self, serviceTypeId): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/utilities/subscriptions/{}'.format(self.base_url, serviceTypeId), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9978,7 +10020,7 @@ def get_my_subscription(self, serviceTypeId): """ def list_my_subscriptions(self): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/utilities/subscriptions'.format(self.base_url), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -10007,7 +10049,7 @@ def list_my_subscriptions(self): """ def ping(self): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.10.0") return requests.get('{}/api/v2/utilities/ping'.format(self.base_url), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200)