From ed5d486cc8e5a558800bb749ce58d96645610529 Mon Sep 17 00:00:00 2001 From: svc-developer Date: Fri, 30 Aug 2024 15:18:33 +0000 Subject: [PATCH] 24.8.2 --- setup.py | 2 +- src/avalara/client_methods.py | 946 ++++++++++++++++++++-------------- src/client_methods.py | 946 ++++++++++++++++++++-------------- 3 files changed, 1111 insertions(+), 783 deletions(-) diff --git a/setup.py b/setup.py index 8d2b77c..a799715 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ setup( name='Avalara', - version='24.6.3', + version='24.8.2', 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 df0edcd..c697cf9 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -217,7 +217,7 @@ def get_license_key(self, id_, licensekeyname): """ 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -235,7 +235,7 @@ def get_license_keys(self, id_): """ 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -985,6 +985,11 @@ def download_certificate_image(self, companyId, id_, include=None): * customers - Retrieves the list of customers linked to the certificate. * po_numbers - Retrieves all PO numbers tied to the certificate. * attributes - Retrieves all attributes applied to the certificate. + * histories - Retrieves the certificate update history + * jobs - Retrieves the jobs for this certificate + * logs - Retrieves the certificate log + * invalid_reasons - Retrieves invalid reasons for this certificate if the certificate is invalid + * custom_fields - Retrieves custom fields set for this certificate Before you can use any exemption certificates endpoints, you must set up your company for exemption certificate data storage. Companies that do not have this storage system set up will see `CertCaptureNotConfiguredError` when they call exemption certificate related APIs. To check if this is set up for a company, call `GetCertificateSetup`. To request setup of exemption @@ -995,12 +1000,12 @@ def download_certificate_image(self, companyId, id_, include=None): :param companyId [int] The ID number of the company that recorded this certificate :param id_ [int] The unique ID number of this certificate - :param include [string] OPTIONAL: A comma separated list of special fetch options. You can specify one or more of the following: * customers - Retrieves the list of customers linked to the certificate. * po_numbers - Retrieves all PO numbers tied to the certificate. * attributes - Retrieves all attributes applied to the certificate. + :param include [string] OPTIONAL: A comma separated list of special fetch options. You can specify one or more of the following: * customers - Retrieves the list of customers linked to the certificate. * po_numbers - Retrieves all PO numbers tied to the certificate. * attributes - Retrieves all attributes applied to the certificate. * histories - Retrieves the certificate update history * jobs - Retrieves the jobs for this certificate * logs - Retrieves the certificate log * invalid_reasons - Retrieves invalid reasons for this certificate if the certificate is invalid * custom_fields - Retrieves custom fields set for this certificate :return CertificateModel """ 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1024,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1055,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1087,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1117,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1148,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1166,6 +1171,11 @@ def list_customers_for_certificate(self, companyId, id_, include=None): * customers - Retrieves the list of customers linked to the certificate. * po_numbers - Retrieves all PO numbers tied to the certificate. * attributes - Retrieves all attributes applied to the certificate. + * histories - Retrieves the certificate update history + * jobs - Retrieves the jobs for this certificate + * logs - Retrieves the certificate log + * invalid_reasons - Retrieves invalid reasons for this certificate if the certificate is invalid + * custom_fields - Retrieves custom fields set for this certificate Before you can use any exemption certificates endpoints, you must set up your company for exemption certificate data storage. Companies that do not have this storage system set up will see `CertCaptureNotConfiguredError` when they call exemption certificate related APIs. To check if this is set up for a company, call `GetCertificateSetup`. To request setup of exemption @@ -1175,7 +1185,7 @@ def list_customers_for_certificate(self, companyId, id_, include=None): * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms. :param companyId [int] The ID number of the company to search - :param include [string] OPTIONAL: A comma separated list of special fetch options. You can specify one or more of the following: * customers - Retrieves the list of customers linked to the certificate. * po_numbers - Retrieves all PO numbers tied to the certificate. * attributes - Retrieves all attributes applied to the certificate. + :param include [string] OPTIONAL: A comma separated list of special fetch options. You can specify one or more of the following: * customers - Retrieves the list of customers linked to the certificate. * po_numbers - Retrieves all PO numbers tied to the certificate. * attributes - Retrieves all attributes applied to the certificate. * histories - Retrieves the certificate update history * jobs - Retrieves the jobs for this certificate * logs - Retrieves the certificate log * invalid_reasons - Retrieves invalid reasons for this certificate if the certificate is invalid * custom_fields - Retrieves custom fields set for this certificate :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:* exemptionNumber, status, ecmStatus, ecmsId, ecmsStatus, pdf, pages :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. @@ -1184,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1209,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1240,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1273,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1302,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1333,13 +1343,57 @@ 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) r""" Swagger Name: AvaTaxClient + Retrieve a single communication certificate. + + ### Security Policies + * 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 + :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") + 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) + r""" + Swagger Name: AvaTaxClient + + 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. + 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/ . + ### Security Policies + * This API depends on the following active services:*Required* (all): ECMPremiumComms, ECMProComms. + + :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:* EffectiveDate, ExpirationDate, TaxNumber, Exemptions + :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. + :param orderBy [string] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. + :param companyId [int] The ID number of the company to search + :return CommunicationCertificateResponsePage + """ + 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") + 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) + r""" + Swagger Name: AvaTaxClient + Checks whether the integration being used to set up this company and run transactions onto this company is compliant to all requirements. Examines the most recent 100 transactions or data from the last month when verifying transaction-related integrations. @@ -1372,7 +1426,7 @@ def upload_certificate_image(self, companyId, id_): """ 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1399,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1426,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1447,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1471,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1502,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1520,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1542,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1564,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1587,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1617,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1643,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1665,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1693,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1717,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1744,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1766,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1784,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1819,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1846,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1871,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1894,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1918,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1944,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1965,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1989,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2009,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2030,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2049,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2070,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2086,7 +2140,7 @@ def get_contact(self, companyId, id_): * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, FirmAdmin, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. :param companyId [int] The ID of the company that owns these contacts - :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/). + :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:* scsContactId :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. :param orderBy [string] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. @@ -2094,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2111,7 +2165,7 @@ def list_contacts_by_company(self, companyId, include=None): ### Security Policies * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, FirmAdmin, 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/). + :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:* scsContactId :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. :param orderBy [string] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. @@ -2119,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2143,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2160,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2178,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2195,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2212,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2233,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2253,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2271,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2302,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2331,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2347,9 +2401,16 @@ def delete_customer(self, companyId, customerCode): identify any certificates linked to this customer object. If any certificate applies to the transaction, AvaTax will record the appropriate elements of the transaction as exempt and link it to the `certificate`. You can use the `$include` parameter to fetch the following additional objects for expansion: - * Certificates - Fetch a list of certificates linked to this customer. - * CustomFields - Fetch a list of custom fields associated to this customer. + * certificates - Fetch a list of certificates linked to this customer. * attributes - Retrieves all attributes applied to the customer. + * active_certificates - Retrieves all the active certificates linked to this customer + * histories - Retrieves the update history for this customer + * logs - Retrieves customer logs + * jobs - Retrieves customer jobs + * billTos - Retrieves bill-tos linked with this customer + * shipTos - Retrieves ship-tos linked with this customer + * shipToStates - Retrieves ship-to states for this customer + * custom_fields - Retrieves custom fields set for this customer Before you can use any exemption certificates endpoints, you must set up your company for exemption certificate data storage. Companies that do not have this storage system set up will see `CertCaptureNotConfiguredError` when they call exemption certificate related APIs. To check if this is set up for a company, call `GetCertificateSetup`. To request setup of exemption @@ -2365,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2397,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2427,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2457,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2488,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2513,7 +2574,7 @@ def list_attributes_for_customer(self, companyId, customerCode): :param companyId [int] The unique ID number of the company that recorded this customer :param customerCode [string] The unique code representing this customer - :param include [string] OPTIONAL: A comma separated list of special fetch options. You can specify one or more of the following: * customers - Retrieves the list of customers linked to the certificate. * po_numbers - Retrieves all PO numbers tied to the certificate. * attributes - Retrieves all attributes applied to the certificate. + :param include [string] OPTIONAL: A comma separated list of special fetch options. You can specify one or more of the following: * customers - Retrieves the list of customers linked to the certificate. * po_numbers - Retrieves all PO numbers tied to the certificate. * attributes - Retrieves all attributes applied to the certificate. * histories - Retrieves the certificate update history * jobs - Retrieves the jobs for this certificate * logs - Retrieves the certificate log * invalid_reasons - Retrieves invalid reasons for this certificate if the certificate is invalid * custom_fields - Retrieves custom fields set for this certificate :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:* exemptionNumber, status, ecmStatus, ecmsId, ecmsStatus, pdf, pages :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. @@ -2522,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2555,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2571,8 +2632,16 @@ def list_valid_certificates_for_customer(self, companyId, customerCode, country, identify any certificates linked to this `customer` object. If any certificate applies to the transaction, AvaTax will record the appropriate elements of the transaction as exempt and link it to the `certificate`. You can use the `$include` parameter to fetch the following additional objects for expansion: - * Certificates - Fetch a list of certificates linked to this customer. + * certificates - Fetch a list of certificates linked to this customer. * attributes - Retrieves all attributes applied to the customer. + * active_certificates - Retrieves all the active certificates linked to this customer + * histories - Retrieves the update history for this customer + * logs - Retrieves customer logs + * jobs - Retrieves customer jobs + * billTos - Retrieves bill-tos linked with this customer + * shipTos - Retrieves ship-tos linked with this customer + * shipToStates - Retrieves ship-to states for this customer + * custom_fields - Retrieves custom fields set for this customer Before you can use any exemption certificates endpoints, you must set up your company for exemption certificate data storage. Companies that do not have this storage system set up will see `CertCaptureNotConfiguredError` when they call exemption certificate related APIs. To check if this is set up for a company, call `GetCertificateSetup`. To request setup of exemption @@ -2582,7 +2651,7 @@ def list_valid_certificates_for_customer(self, companyId, customerCode, country, * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms. :param companyId [int] The unique ID number of the company that recorded this customer - :param include [string] OPTIONAL - You can specify the value `certificates` to fetch information about certificates linked to the customer. + :param include [string] OPTIONAL - You can specify any of the values in `certificates`, `attributes`, `active_certificates`, `histories`, `logs`, `jobs`, `billTos`, `shipTos`, `shipToStates`, and `custom_fields` to fetch additional information for this certificate. :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/). :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. @@ -2591,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2623,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2653,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2683,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2703,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2723,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2743,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2766,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2790,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2811,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2836,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2857,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2876,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2898,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2922,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2945,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2968,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2989,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3009,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3029,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3049,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3070,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3094,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3122,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3143,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3164,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3187,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3207,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3223,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3239,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3261,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3291,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3319,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3340,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3359,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3392,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3413,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3432,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3452,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3482,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3503,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3525,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3550,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3571,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3591,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3611,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3631,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3651,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3671,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3691,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3711,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3731,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3751,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3771,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3792,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3812,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3846,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3867,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3885,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3905,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3930,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3952,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3981,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4002,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4025,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4046,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4068,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4094,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4115,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4136,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4158,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4177,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4197,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4219,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4239,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4264,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4283,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4303,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4323,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4346,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4368,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4388,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4408,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4430,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4450,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4472,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4494,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4516,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4542,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4569,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4594,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4610,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4626,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4642,13 +4711,83 @@ 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) r""" Swagger Name: AvaTaxClient + Delete AFC event notifications. + + ### Security Policies + * This API depends on the following active services:*Required* (all): ECMPremiumComms, ECMProComms. + + :param isDlq [boolean] Specify `true` to delete event notifications from the dead letter queue; otherwise, specify `false`. + :param model [EventDeleteMessageModel] Details of the event you want to delete. + :return FetchResult + """ + 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") + 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) + r""" + Swagger Name: AvaTaxClient + + Delete company event notifications + + ### Security Policies + * This API depends on the following active services:*Required* (all): ECMPro, ECMPremium. + + :param companyId [int] The unique ID number of the company that recorded these event notifications. + :param model [EventDeleteMessageModel] Details of the event you want to delete. + :return FetchResult + """ + 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") + 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) + r""" + Swagger Name: AvaTaxClient + + Retrieve company event notifications. + + ### Security Policies + * This API depends on the following active services:*Required* (all): ECMPro, ECMPremium. + + :param companyId [int] The unique ID number of the company that recorded these event notifications. + :return FetchResult + """ + 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") + 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) + r""" + Swagger Name: AvaTaxClient + + Retrieve AFC event notifications + + ### Security Policies + * This API depends on the following active services:*Required* (all): ECMPremiumComms, ECMProComms. + + :param isDlq [boolean] Specify `true` to retrieve event notifications from the dead letter queue; otherwise, specify `false`. + :return FetchResult + """ + 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") + 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. Creates a new eCommerce token. @@ -4662,7 +4801,7 @@ def get_dcv_by_id(self, domainControlVerificationId): """ 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4682,7 +4821,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4700,7 +4839,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4724,7 +4863,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4742,7 +4881,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4760,7 +4899,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4778,7 +4917,7 @@ def delete_firm_client_linkage(self, id_): """ 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4796,7 +4935,7 @@ def get_firm_client_linkage(self, id_): """ 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4814,7 +4953,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4832,7 +4971,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4850,7 +4989,7 @@ 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4882,7 +5021,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4912,7 +5051,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4929,7 +5068,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4947,7 +5086,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4964,7 +5103,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4981,7 +5120,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5002,7 +5141,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5020,7 +5159,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5041,7 +5180,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5063,7 +5202,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5088,7 +5227,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5111,7 +5250,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5136,7 +5275,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5162,7 +5301,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5183,7 +5322,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5205,7 +5344,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5235,7 +5374,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5260,7 +5399,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5282,7 +5421,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5305,7 +5444,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5326,7 +5465,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5346,7 +5485,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5371,7 +5510,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5393,7 +5532,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5416,7 +5555,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5439,7 +5578,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5458,7 +5597,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5486,7 +5625,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5517,7 +5656,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5544,7 +5683,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5572,7 +5711,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5614,13 +5753,38 @@ 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) r""" Swagger Name: AvaTaxClient + Retrieve the parameters by companyId and itemId. + + Returns the list of parameters based on the company's service types and the item code. + Ignores nexus if a service type is configured in the 'IgnoreNexusForServiceTypes' configuration section. + Ignores nexus for the AvaAlcohol service type. + ### 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] Company Identifier. + :param itemId [int] Item Identifier. + :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:* serviceTypes, regularExpression, attributeSubType, values + :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. + :param orderBy [string] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. + :return FetchResult + """ + 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") + 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) + r""" + Swagger Name: AvaTaxClient + Retrieve all items Get multiple item objects across all companies. @@ -5643,7 +5807,7 @@ def list_items_by_company(self, companyId, include=None): """ 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5673,7 +5837,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5704,7 +5868,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5727,7 +5891,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5754,7 +5918,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5783,7 +5947,7 @@ def sync_items(self, companyId, model): """ 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5807,7 +5971,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5831,7 +5995,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5854,7 +6018,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5873,7 +6037,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5896,7 +6060,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5925,7 +6089,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5953,7 +6117,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5973,7 +6137,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5998,7 +6162,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -6017,7 +6181,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -6036,7 +6200,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -6059,7 +6223,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -6086,7 +6250,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -6109,7 +6273,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -6137,7 +6301,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -6169,7 +6333,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -6200,7 +6364,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -6222,7 +6386,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -6246,7 +6410,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -6267,7 +6431,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -6301,7 +6465,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -6338,7 +6502,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -6368,7 +6532,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -6418,7 +6582,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -6454,7 +6618,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -6496,7 +6660,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -6539,7 +6703,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -6594,7 +6758,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -6623,7 +6787,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -6656,7 +6820,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -6688,7 +6852,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -6713,7 +6877,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -6742,7 +6906,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -6767,7 +6931,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -6790,7 +6954,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -6812,7 +6976,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -6837,7 +7001,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -6865,7 +7029,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -6888,7 +7052,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -6918,7 +7082,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -6949,7 +7113,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -6977,7 +7141,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7006,7 +7170,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7039,7 +7203,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7063,7 +7227,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7082,7 +7246,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7101,7 +7265,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7119,7 +7283,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7137,7 +7301,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7164,7 +7328,7 @@ def delete_notice_root_cause_type(self, rootCauseId): """ 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7187,7 +7351,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7215,7 +7379,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7245,7 +7409,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7267,7 +7431,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7288,7 +7452,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7315,7 +7479,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7337,7 +7501,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7358,7 +7522,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7383,7 +7547,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7404,7 +7568,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7430,7 +7594,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7455,7 +7619,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7476,7 +7640,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7502,7 +7666,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7528,7 +7692,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7555,7 +7719,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7578,7 +7742,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7610,7 +7774,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7638,7 +7802,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7667,7 +7831,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7693,7 +7857,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7719,7 +7883,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7751,7 +7915,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7782,7 +7946,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7811,7 +7975,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7832,7 +7996,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7858,7 +8022,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7883,7 +8047,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7906,7 +8070,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7925,7 +8089,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7948,7 +8112,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7977,7 +8141,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -8005,7 +8169,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -8031,7 +8195,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -8066,7 +8230,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -8106,7 +8270,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -8157,7 +8321,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -8196,7 +8360,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -8231,7 +8395,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -8254,7 +8418,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -8282,7 +8446,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -8310,7 +8474,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -8338,7 +8502,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -8361,7 +8525,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -8395,7 +8559,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -8428,7 +8592,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -8457,7 +8621,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -8493,7 +8657,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -8539,7 +8703,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -8576,7 +8740,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -8614,7 +8778,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -8637,7 +8801,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -8682,7 +8846,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -8725,7 +8889,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -8771,7 +8935,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -8822,7 +8986,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -8855,7 +9019,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -8873,7 +9037,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -8915,7 +9079,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -8944,7 +9108,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -8976,7 +9140,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -8995,7 +9159,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -9042,7 +9206,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -9087,7 +9251,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -9142,7 +9306,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -9185,7 +9349,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -9225,7 +9389,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -9263,7 +9427,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -9282,7 +9446,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -9325,7 +9489,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -9369,7 +9533,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -9390,7 +9554,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -9410,7 +9574,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -9431,7 +9595,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -9458,7 +9622,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -9484,7 +9648,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -9508,7 +9672,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -9528,7 +9692,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -9548,7 +9712,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -9569,7 +9733,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -9591,7 +9755,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -9615,7 +9779,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -9637,7 +9801,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -9660,7 +9824,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -9691,7 +9855,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -9721,7 +9885,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -9751,7 +9915,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -9774,7 +9938,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -9795,7 +9959,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -9815,7 +9979,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -9844,7 +10008,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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 6c1f858..b45c216 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -216,7 +216,7 @@ def get_license_key(self, id_, licensekeyname): """ 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -234,7 +234,7 @@ def get_license_keys(self, id_): """ 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -984,6 +984,11 @@ def download_certificate_image(self, companyId, id_, include=None): * customers - Retrieves the list of customers linked to the certificate. * po_numbers - Retrieves all PO numbers tied to the certificate. * attributes - Retrieves all attributes applied to the certificate. + * histories - Retrieves the certificate update history + * jobs - Retrieves the jobs for this certificate + * logs - Retrieves the certificate log + * invalid_reasons - Retrieves invalid reasons for this certificate if the certificate is invalid + * custom_fields - Retrieves custom fields set for this certificate Before you can use any exemption certificates endpoints, you must set up your company for exemption certificate data storage. Companies that do not have this storage system set up will see `CertCaptureNotConfiguredError` when they call exemption certificate related APIs. To check if this is set up for a company, call `GetCertificateSetup`. To request setup of exemption @@ -994,12 +999,12 @@ def download_certificate_image(self, companyId, id_, include=None): :param companyId [int] The ID number of the company that recorded this certificate :param id_ [int] The unique ID number of this certificate - :param include [string] OPTIONAL: A comma separated list of special fetch options. You can specify one or more of the following: * customers - Retrieves the list of customers linked to the certificate. * po_numbers - Retrieves all PO numbers tied to the certificate. * attributes - Retrieves all attributes applied to the certificate. + :param include [string] OPTIONAL: A comma separated list of special fetch options. You can specify one or more of the following: * customers - Retrieves the list of customers linked to the certificate. * po_numbers - Retrieves all PO numbers tied to the certificate. * attributes - Retrieves all attributes applied to the certificate. * histories - Retrieves the certificate update history * jobs - Retrieves the jobs for this certificate * logs - Retrieves the certificate log * invalid_reasons - Retrieves invalid reasons for this certificate if the certificate is invalid * custom_fields - Retrieves custom fields set for this certificate :return CertificateModel """ 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1023,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1054,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1086,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1116,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1147,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1165,6 +1170,11 @@ def list_customers_for_certificate(self, companyId, id_, include=None): * customers - Retrieves the list of customers linked to the certificate. * po_numbers - Retrieves all PO numbers tied to the certificate. * attributes - Retrieves all attributes applied to the certificate. + * histories - Retrieves the certificate update history + * jobs - Retrieves the jobs for this certificate + * logs - Retrieves the certificate log + * invalid_reasons - Retrieves invalid reasons for this certificate if the certificate is invalid + * custom_fields - Retrieves custom fields set for this certificate Before you can use any exemption certificates endpoints, you must set up your company for exemption certificate data storage. Companies that do not have this storage system set up will see `CertCaptureNotConfiguredError` when they call exemption certificate related APIs. To check if this is set up for a company, call `GetCertificateSetup`. To request setup of exemption @@ -1174,7 +1184,7 @@ def list_customers_for_certificate(self, companyId, id_, include=None): * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms. :param companyId [int] The ID number of the company to search - :param include [string] OPTIONAL: A comma separated list of special fetch options. You can specify one or more of the following: * customers - Retrieves the list of customers linked to the certificate. * po_numbers - Retrieves all PO numbers tied to the certificate. * attributes - Retrieves all attributes applied to the certificate. + :param include [string] OPTIONAL: A comma separated list of special fetch options. You can specify one or more of the following: * customers - Retrieves the list of customers linked to the certificate. * po_numbers - Retrieves all PO numbers tied to the certificate. * attributes - Retrieves all attributes applied to the certificate. * histories - Retrieves the certificate update history * jobs - Retrieves the jobs for this certificate * logs - Retrieves the certificate log * invalid_reasons - Retrieves invalid reasons for this certificate if the certificate is invalid * custom_fields - Retrieves custom fields set for this certificate :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:* exemptionNumber, status, ecmStatus, ecmsId, ecmsStatus, pdf, pages :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. @@ -1183,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1208,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1239,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1272,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1301,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1332,13 +1342,57 @@ 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) r""" Swagger Name: AvaTaxClient + Retrieve a single communication certificate. + + ### Security Policies + * 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 + :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") + 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) + r""" + Swagger Name: AvaTaxClient + + 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. + 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/ . + ### Security Policies + * This API depends on the following active services:*Required* (all): ECMPremiumComms, ECMProComms. + + :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:* EffectiveDate, ExpirationDate, TaxNumber, Exemptions + :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. + :param orderBy [string] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. + :param companyId [int] The ID number of the company to search + :return CommunicationCertificateResponsePage + """ + 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") + 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) + r""" + Swagger Name: AvaTaxClient + Checks whether the integration being used to set up this company and run transactions onto this company is compliant to all requirements. Examines the most recent 100 transactions or data from the last month when verifying transaction-related integrations. @@ -1371,7 +1425,7 @@ def upload_certificate_image(self, companyId, id_): """ 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1398,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1425,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1446,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1470,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1501,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1519,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1541,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1563,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1586,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1616,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1642,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1664,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1692,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1716,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1743,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1765,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1783,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1818,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1845,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1870,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1893,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1917,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1943,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1964,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -1988,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2008,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2029,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2048,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2069,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2085,7 +2139,7 @@ def get_contact(self, companyId, id_): * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, FirmAdmin, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. :param companyId [int] The ID of the company that owns these contacts - :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/). + :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:* scsContactId :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. :param orderBy [string] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. @@ -2093,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2110,7 +2164,7 @@ def list_contacts_by_company(self, companyId, include=None): ### Security Policies * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, FirmAdmin, 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/). + :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:* scsContactId :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. :param orderBy [string] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. @@ -2118,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2142,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2159,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2177,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2194,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2211,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2232,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2252,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2270,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2301,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2330,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2346,9 +2400,16 @@ def delete_customer(self, companyId, customerCode): identify any certificates linked to this customer object. If any certificate applies to the transaction, AvaTax will record the appropriate elements of the transaction as exempt and link it to the `certificate`. You can use the `$include` parameter to fetch the following additional objects for expansion: - * Certificates - Fetch a list of certificates linked to this customer. - * CustomFields - Fetch a list of custom fields associated to this customer. + * certificates - Fetch a list of certificates linked to this customer. * attributes - Retrieves all attributes applied to the customer. + * active_certificates - Retrieves all the active certificates linked to this customer + * histories - Retrieves the update history for this customer + * logs - Retrieves customer logs + * jobs - Retrieves customer jobs + * billTos - Retrieves bill-tos linked with this customer + * shipTos - Retrieves ship-tos linked with this customer + * shipToStates - Retrieves ship-to states for this customer + * custom_fields - Retrieves custom fields set for this customer Before you can use any exemption certificates endpoints, you must set up your company for exemption certificate data storage. Companies that do not have this storage system set up will see `CertCaptureNotConfiguredError` when they call exemption certificate related APIs. To check if this is set up for a company, call `GetCertificateSetup`. To request setup of exemption @@ -2364,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2396,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2426,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2456,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2487,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2512,7 +2573,7 @@ def list_attributes_for_customer(self, companyId, customerCode): :param companyId [int] The unique ID number of the company that recorded this customer :param customerCode [string] The unique code representing this customer - :param include [string] OPTIONAL: A comma separated list of special fetch options. You can specify one or more of the following: * customers - Retrieves the list of customers linked to the certificate. * po_numbers - Retrieves all PO numbers tied to the certificate. * attributes - Retrieves all attributes applied to the certificate. + :param include [string] OPTIONAL: A comma separated list of special fetch options. You can specify one or more of the following: * customers - Retrieves the list of customers linked to the certificate. * po_numbers - Retrieves all PO numbers tied to the certificate. * attributes - Retrieves all attributes applied to the certificate. * histories - Retrieves the certificate update history * jobs - Retrieves the jobs for this certificate * logs - Retrieves the certificate log * invalid_reasons - Retrieves invalid reasons for this certificate if the certificate is invalid * custom_fields - Retrieves custom fields set for this certificate :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:* exemptionNumber, status, ecmStatus, ecmsId, ecmsStatus, pdf, pages :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. @@ -2521,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2554,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2570,8 +2631,16 @@ def list_valid_certificates_for_customer(self, companyId, customerCode, country, identify any certificates linked to this `customer` object. If any certificate applies to the transaction, AvaTax will record the appropriate elements of the transaction as exempt and link it to the `certificate`. You can use the `$include` parameter to fetch the following additional objects for expansion: - * Certificates - Fetch a list of certificates linked to this customer. + * certificates - Fetch a list of certificates linked to this customer. * attributes - Retrieves all attributes applied to the customer. + * active_certificates - Retrieves all the active certificates linked to this customer + * histories - Retrieves the update history for this customer + * logs - Retrieves customer logs + * jobs - Retrieves customer jobs + * billTos - Retrieves bill-tos linked with this customer + * shipTos - Retrieves ship-tos linked with this customer + * shipToStates - Retrieves ship-to states for this customer + * custom_fields - Retrieves custom fields set for this customer Before you can use any exemption certificates endpoints, you must set up your company for exemption certificate data storage. Companies that do not have this storage system set up will see `CertCaptureNotConfiguredError` when they call exemption certificate related APIs. To check if this is set up for a company, call `GetCertificateSetup`. To request setup of exemption @@ -2581,7 +2650,7 @@ def list_valid_certificates_for_customer(self, companyId, customerCode, country, * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms. :param companyId [int] The unique ID number of the company that recorded this customer - :param include [string] OPTIONAL - You can specify the value `certificates` to fetch information about certificates linked to the customer. + :param include [string] OPTIONAL - You can specify any of the values in `certificates`, `attributes`, `active_certificates`, `histories`, `logs`, `jobs`, `billTos`, `shipTos`, `shipToStates`, and `custom_fields` to fetch additional information for this certificate. :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/). :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. @@ -2590,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2622,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2652,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2682,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2702,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2722,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2742,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2765,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2789,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2810,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2835,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2856,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2875,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2897,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2921,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2944,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2967,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -2988,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3008,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3028,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3048,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3069,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3093,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3121,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3142,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3163,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3186,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3206,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3222,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3238,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3260,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3290,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3318,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3339,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3358,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3391,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3412,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3431,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3451,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3481,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3502,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3524,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3549,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3570,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3590,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3610,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3630,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3650,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3670,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3690,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3710,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3730,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3750,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3770,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3791,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3811,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3845,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3866,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3884,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3904,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3929,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3951,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -3980,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4001,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4024,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4045,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4067,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4093,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4114,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4135,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4157,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4176,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4196,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4218,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4238,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4263,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4282,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4302,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4322,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4345,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4367,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4387,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4407,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4429,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4449,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4471,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4493,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4515,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4541,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4568,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4593,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4609,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4625,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4641,13 +4710,83 @@ 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) r""" Swagger Name: AvaTaxClient + Delete AFC event notifications. + + ### Security Policies + * This API depends on the following active services:*Required* (all): ECMPremiumComms, ECMProComms. + + :param isDlq [boolean] Specify `true` to delete event notifications from the dead letter queue; otherwise, specify `false`. + :param model [EventDeleteMessageModel] Details of the event you want to delete. + :return FetchResult + """ + 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") + 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) + r""" + Swagger Name: AvaTaxClient + + Delete company event notifications + + ### Security Policies + * This API depends on the following active services:*Required* (all): ECMPro, ECMPremium. + + :param companyId [int] The unique ID number of the company that recorded these event notifications. + :param model [EventDeleteMessageModel] Details of the event you want to delete. + :return FetchResult + """ + 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") + 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) + r""" + Swagger Name: AvaTaxClient + + Retrieve company event notifications. + + ### Security Policies + * This API depends on the following active services:*Required* (all): ECMPro, ECMPremium. + + :param companyId [int] The unique ID number of the company that recorded these event notifications. + :return FetchResult + """ + 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") + 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) + r""" + Swagger Name: AvaTaxClient + + Retrieve AFC event notifications + + ### Security Policies + * This API depends on the following active services:*Required* (all): ECMPremiumComms, ECMProComms. + + :param isDlq [boolean] Specify `true` to retrieve event notifications from the dead letter queue; otherwise, specify `false`. + :return FetchResult + """ + 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") + 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. Creates a new eCommerce token. @@ -4661,7 +4800,7 @@ def get_dcv_by_id(self, domainControlVerificationId): """ 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4681,7 +4820,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4699,7 +4838,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4723,7 +4862,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4741,7 +4880,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4759,7 +4898,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4777,7 +4916,7 @@ def delete_firm_client_linkage(self, id_): """ 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4795,7 +4934,7 @@ def get_firm_client_linkage(self, id_): """ 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4813,7 +4952,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4831,7 +4970,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4849,7 +4988,7 @@ 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4881,7 +5020,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4911,7 +5050,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4928,7 +5067,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4946,7 +5085,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4963,7 +5102,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -4980,7 +5119,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5001,7 +5140,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5019,7 +5158,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5040,7 +5179,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5062,7 +5201,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5087,7 +5226,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5110,7 +5249,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5135,7 +5274,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5161,7 +5300,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5182,7 +5321,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5204,7 +5343,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5234,7 +5373,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5259,7 +5398,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5281,7 +5420,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5304,7 +5443,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5325,7 +5464,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5345,7 +5484,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5370,7 +5509,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5392,7 +5531,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5415,7 +5554,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5438,7 +5577,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5457,7 +5596,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5485,7 +5624,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5516,7 +5655,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5543,7 +5682,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5571,7 +5710,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5613,13 +5752,38 @@ 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) r""" Swagger Name: AvaTaxClient + Retrieve the parameters by companyId and itemId. + + Returns the list of parameters based on the company's service types and the item code. + Ignores nexus if a service type is configured in the 'IgnoreNexusForServiceTypes' configuration section. + Ignores nexus for the AvaAlcohol service type. + ### 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] Company Identifier. + :param itemId [int] Item Identifier. + :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:* serviceTypes, regularExpression, attributeSubType, values + :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. + :param orderBy [string] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. + :return FetchResult + """ + 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") + 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) + r""" + Swagger Name: AvaTaxClient + Retrieve all items Get multiple item objects across all companies. @@ -5642,7 +5806,7 @@ def list_items_by_company(self, companyId, include=None): """ 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5672,7 +5836,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5703,7 +5867,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5726,7 +5890,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5753,7 +5917,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5782,7 +5946,7 @@ def sync_items(self, companyId, model): """ 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5806,7 +5970,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5830,7 +5994,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5853,7 +6017,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5872,7 +6036,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5895,7 +6059,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5924,7 +6088,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5952,7 +6116,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5972,7 +6136,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -5997,7 +6161,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -6016,7 +6180,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -6035,7 +6199,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -6058,7 +6222,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -6085,7 +6249,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -6108,7 +6272,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -6136,7 +6300,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -6168,7 +6332,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -6199,7 +6363,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -6221,7 +6385,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -6245,7 +6409,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -6266,7 +6430,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -6300,7 +6464,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -6337,7 +6501,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -6367,7 +6531,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -6417,7 +6581,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -6453,7 +6617,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -6495,7 +6659,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -6538,7 +6702,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -6593,7 +6757,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -6622,7 +6786,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -6655,7 +6819,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -6687,7 +6851,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -6712,7 +6876,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -6741,7 +6905,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -6766,7 +6930,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -6789,7 +6953,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -6811,7 +6975,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -6836,7 +7000,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -6864,7 +7028,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -6887,7 +7051,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -6917,7 +7081,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -6948,7 +7112,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -6976,7 +7140,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7005,7 +7169,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7038,7 +7202,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7062,7 +7226,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7081,7 +7245,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7100,7 +7264,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7118,7 +7282,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7136,7 +7300,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7163,7 +7327,7 @@ def delete_notice_root_cause_type(self, rootCauseId): """ 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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7186,7 +7350,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7214,7 +7378,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7244,7 +7408,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7266,7 +7430,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7287,7 +7451,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7314,7 +7478,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7336,7 +7500,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7357,7 +7521,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7382,7 +7546,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7403,7 +7567,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7429,7 +7593,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7454,7 +7618,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7475,7 +7639,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7501,7 +7665,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7527,7 +7691,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7554,7 +7718,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7577,7 +7741,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7609,7 +7773,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7637,7 +7801,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7666,7 +7830,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7692,7 +7856,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7718,7 +7882,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7750,7 +7914,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7781,7 +7945,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7810,7 +7974,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7831,7 +7995,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7857,7 +8021,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7882,7 +8046,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7905,7 +8069,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7924,7 +8088,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7947,7 +8111,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -7976,7 +8140,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -8004,7 +8168,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -8030,7 +8194,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -8065,7 +8229,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -8105,7 +8269,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -8156,7 +8320,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -8195,7 +8359,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -8230,7 +8394,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -8253,7 +8417,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -8281,7 +8445,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -8309,7 +8473,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -8337,7 +8501,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -8360,7 +8524,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -8394,7 +8558,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -8427,7 +8591,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -8456,7 +8620,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -8492,7 +8656,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -8538,7 +8702,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -8575,7 +8739,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -8613,7 +8777,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -8636,7 +8800,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -8681,7 +8845,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -8724,7 +8888,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -8770,7 +8934,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -8821,7 +8985,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -8854,7 +9018,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -8872,7 +9036,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -8914,7 +9078,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -8943,7 +9107,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -8975,7 +9139,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -8994,7 +9158,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -9041,7 +9205,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -9086,7 +9250,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -9141,7 +9305,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -9184,7 +9348,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -9224,7 +9388,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -9262,7 +9426,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -9281,7 +9445,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -9324,7 +9488,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -9368,7 +9532,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -9389,7 +9553,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -9409,7 +9573,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -9430,7 +9594,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -9457,7 +9621,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -9483,7 +9647,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -9507,7 +9671,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -9527,7 +9691,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -9547,7 +9711,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -9568,7 +9732,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -9590,7 +9754,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -9614,7 +9778,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -9636,7 +9800,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -9659,7 +9823,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -9690,7 +9854,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -9720,7 +9884,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -9750,7 +9914,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -9773,7 +9937,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -9794,7 +9958,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -9814,7 +9978,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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) @@ -9843,7 +10007,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.6.3") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.8.2") 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)