diff --git a/setup.py b/setup.py index 92a5ace..d7d93fd 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ setup( name='Avalara', - version='22.10.0', + version='22.11.0', url='https://github.com/avadev/AvaTax-REST-V2-Python-SDK', package_dir={'': 'src'}, packages=['avalara'], diff --git a/src/avalara/client_methods.py b/src/avalara/client_methods.py index a25a7a5..d590fb0 100644 --- a/src/avalara/client_methods.py +++ b/src/avalara/client_methods.py @@ -1,6 +1,9 @@ import requests from ._str_version import str_type +from .ava_logger import decorate_all_methods, ava_log + +@decorate_all_methods(ava_log) # class decorator to implement logging class Mixin: """Mixin class contain methods attached to Client class.""" @@ -28,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/accounts/{}/resetlicensekey'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -53,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/accounts/{}/activate'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -84,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/accounts/{}/audit'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -109,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/accounts/{}/licensekey'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -130,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/accounts/{}/licensekey/{}'.format(self.base_url, id_, licensekeyname), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -152,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/accounts/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -178,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/accounts/{}/configuration'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -196,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/accounts/{}/licensekey/{}'.format(self.base_url, id_, licensekeyname), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -214,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/accounts/{}/licensekeys'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -243,7 +246,7 @@ def get_license_keys(self, id_): """ 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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/accounts'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -270,7 +273,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/accounts/{}/configuration'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -305,7 +308,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/addresses/resolve'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -329,7 +332,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/addresses/resolve'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -347,7 +350,7 @@ def resolve_address_post(self, model): """ def create_company_lookup_file(self, accountId, companyId, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/advancedrules/accounts/{}/companies/{}/lookupFiles'.format(self.base_url, accountId, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -364,7 +367,7 @@ def create_company_lookup_file(self, accountId, companyId, model): """ def delete_lookup_file(self, accountId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/advancedrules/accounts/{}/lookupFiles/{}'.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) @@ -381,7 +384,7 @@ def delete_lookup_file(self, accountId, id_): """ def get_company_lookup_files(self, accountId, companyId): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/advancedrules/accounts/{}/companies/{}/lookupFiles'.format(self.base_url, accountId, companyId), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -398,7 +401,7 @@ def get_company_lookup_files(self, accountId, companyId): """ def get_lookup_file(self, accountId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/advancedrules/accounts/{}/lookupFiles/{}'.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) @@ -416,7 +419,7 @@ def get_lookup_file(self, accountId, id_): """ def update_lookup_file(self, accountId, id_, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.put('{}/api/v2/advancedrules/accounts/{}/lookupFiles/{}'.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) @@ -436,7 +439,7 @@ def update_lookup_file(self, accountId, id_, 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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/avafileforms'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -455,7 +458,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/avafileforms/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -474,7 +477,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/avafileforms/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -497,7 +500,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/avafileforms'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -518,7 +521,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.put('{}/api/v2/avafileforms/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -545,7 +548,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/batches/{}/cancel'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -578,7 +581,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/batches'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -610,7 +613,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/batches/transactions'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -636,7 +639,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/companies/{}/batches/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -656,7 +659,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/batches/{}/files/{}/attachment'.format(self.base_url, companyId, batchId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -686,7 +689,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/batches/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -724,7 +727,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/batches'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -759,7 +762,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/batches'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -791,7 +794,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/customers/{}/certexpressinvites'.format(self.base_url, companyId, customerCode), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -824,7 +827,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/customers/{}/certexpressinvites/{}'.format(self.base_url, companyId, customerCode, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -859,7 +862,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/certexpressinvites'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -895,7 +898,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/certificates'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -924,7 +927,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/companies/{}/certificates/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -956,7 +959,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/certificates/{}/attachment'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -989,7 +992,7 @@ def download_certificate_image(self, companyId, id_, include=None): """ def get_certificate(self, companyId, id_, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/certificates/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1013,7 +1016,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/certificates/setup'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1044,7 +1047,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/certificates/{}/attributes/link'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1076,7 +1079,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/certificates/{}/customers/link'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1106,7 +1109,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/certificates/{}/attributes'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1137,7 +1140,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/certificates/{}/customers'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1173,7 +1176,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/certificates'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1198,7 +1201,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/certificates/setup'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1229,7 +1232,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/certificates/{}/attributes/unlink'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1262,7 +1265,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/certificates/{}/customers/unlink'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1291,7 +1294,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.put('{}/api/v2/companies/{}/certificates/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1322,7 +1325,7 @@ def update_certificate(self, companyId, id_, model): """ def upload_certificate_image(self, companyId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/certificates/{}/attachment'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1361,7 +1364,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/certify'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1388,7 +1391,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/filingstatus'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1415,7 +1418,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/initialize'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1436,7 +1439,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1460,7 +1463,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/parameters'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1491,7 +1494,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/funding/setup'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1509,7 +1512,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/companies/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1531,7 +1534,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/companies/{}/parameters/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1553,7 +1556,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/funding/configuration'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1576,7 +1579,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/funding/configurations'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1606,7 +1609,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1632,7 +1635,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/configuration'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1654,7 +1657,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/parameters/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1682,7 +1685,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/filingstatus'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1706,7 +1709,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/paymentdetails/{}/{}'.format(self.base_url, id_, periodyear, periodmonth), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1733,7 +1736,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/parameters'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1755,7 +1758,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/funding'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1773,7 +1776,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/mrs'.format(self.base_url), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1808,7 +1811,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1835,7 +1838,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/configuration'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1860,7 +1863,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.put('{}/api/v2/companies/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1883,7 +1886,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.put('{}/api/v2/companies/{}/parameters/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1908,7 +1911,7 @@ def update_company_parameter_detail(self, companyId, id_, model): """ def query_tax_authority_jurisdiction_rates(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/compliance/taxauthorityjurisdictionrates'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1929,7 +1932,7 @@ def query_tax_authority_jurisdiction_rates(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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/contacts'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1948,7 +1951,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/companies/{}/contacts/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1969,7 +1972,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/contacts/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1993,7 +1996,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/contacts'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2018,7 +2021,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/contacts'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2042,7 +2045,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.put('{}/api/v2/companies/{}/contacts/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2073,7 +2076,7 @@ def update_contact(self, companyId, id_, 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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/customers'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2102,7 +2105,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/companies/{}/customers/{}'.format(self.base_url, companyId, customerCode), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2136,7 +2139,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/customers/{}'.format(self.base_url, companyId, customerCode), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2168,7 +2171,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.put('{}/api/v2/companies/{}/customers/{}/attributes/link'.format(self.base_url, companyId, customerCode), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2198,7 +2201,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/customers/{}/certificates/link'.format(self.base_url, companyId, customerCode), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2228,7 +2231,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/customers/billto/{}/shipto/link'.format(self.base_url, companyId, code), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2259,7 +2262,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/customers/{}/attributes'.format(self.base_url, companyId, customerCode), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2293,7 +2296,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/customers/{}/certificates'.format(self.base_url, companyId, customerCode), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2326,7 +2329,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/customers/{}/certificates/{}/{}'.format(self.base_url, companyId, customerCode, country, region), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2362,7 +2365,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/customers'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2394,7 +2397,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.put('{}/api/v2/companies/{}/customers/{}/attributes/unlink'.format(self.base_url, companyId, customerCode), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2424,7 +2427,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/customers/{}/certificates/unlink'.format(self.base_url, companyId, customerCode), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2454,7 +2457,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.put('{}/api/v2/companies/{}/customers/{}'.format(self.base_url, companyId, customerCode), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2474,7 +2477,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/datasources'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2494,7 +2497,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/companies/{}/datasources/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2514,7 +2517,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/datasources/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2537,7 +2540,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/datasources'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2561,7 +2564,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/datasources'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2582,7 +2585,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.put('{}/api/v2/companies/{}/datasources/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2607,7 +2610,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/crossborder/{}/{}/hierarchy'.format(self.base_url, country, hsCode), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2628,7 +2631,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/filingcalendars/loginverifiers/{}'.format(self.base_url, form), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2647,7 +2650,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/listallmarketplacelocations'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2669,7 +2672,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/avafileforms'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2693,7 +2696,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/certificateattributes'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2716,7 +2719,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/certificateexemptreasons'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2739,7 +2742,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/certificateexposurezones'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2760,7 +2763,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/classification/parametersusage'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2780,7 +2783,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/communications/transactiontypes/{}/servicetypes'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2800,7 +2803,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/communications/transactiontypes'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2820,7 +2823,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/communications/tspairs'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2841,7 +2844,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/countries'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2865,7 +2868,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/coverletters'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2893,7 +2896,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/crossborder/{}/{}'.format(self.base_url, country, hsCode), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2914,7 +2917,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/crossborder/sections'.format(self.base_url), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2935,7 +2938,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/currencies'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2958,7 +2961,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/entityusecodes'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2978,7 +2981,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/filingfrequencies'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3000,7 +3003,7 @@ def list_filing_frequencies(self, include=None): """ 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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/jurisdictions'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3030,7 +3033,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/jurisdictionsnearaddress'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3058,7 +3061,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/jurisdictions/countries/{}/taxtypes/{}/taxsubtypes/{}'.format(self.base_url, country, taxTypeId, taxSubTypeId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3077,7 +3080,7 @@ def list_jurisdictions_by_rate_type_tax_type_mapping(self, country, taxTypeId, t """ 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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/jurisdictionTypes/countries/{}/taxtypes/{}/taxsubtypes/{}'.format(self.base_url, country, taxTypeId, taxSubTypeId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3110,7 +3113,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/locationquestions'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3131,7 +3134,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/filingcalendars/loginverifiers'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3150,7 +3153,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/marketplacelocations'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3170,7 +3173,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/nexus'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3200,7 +3203,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/nexus/byaddress'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3221,7 +3224,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/nexus/{}'.format(self.base_url, country), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3243,7 +3246,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/nexus/{}/{}'.format(self.base_url, country, region), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3268,7 +3271,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/nexus/byform/{}'.format(self.base_url, formCode), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3289,7 +3292,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/nexus/bytaxtypegroup/{}'.format(self.base_url, taxTypeGroup), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3309,7 +3312,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/nexustaxtypegroups'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3329,7 +3332,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/noticecustomerfundingoptions'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3349,7 +3352,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/noticecustomertypes'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3369,7 +3372,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/noticefilingtypes'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3389,7 +3392,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/noticepriorities'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3409,7 +3412,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/noticereasons'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3429,7 +3432,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/noticeresponsibilities'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3449,7 +3452,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/noticerootcauses'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3469,7 +3472,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/noticestatuses'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3489,7 +3492,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/noticetypes'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3510,7 +3513,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/parameters'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3544,7 +3547,7 @@ def list_parameters(self, 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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/parameters/byitem/{}/{}'.format(self.base_url, companyCode, itemCode), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3565,7 +3568,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/parametersusage'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3583,7 +3586,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/permissions'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3602,7 +3605,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/postalcodes'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3627,7 +3630,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/preferredprograms'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3649,7 +3652,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/productclassificationsystems'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3678,7 +3681,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/productclassificationsystems/bycompany/{}'.format(self.base_url, companyCode), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3699,7 +3702,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/countries/{}/ratetypes'.format(self.base_url, country), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3722,7 +3725,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/countries/{}/taxtypes/{}/taxsubtypes/{}/ratetypes'.format(self.base_url, country, taxTypeId, taxSubTypeId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3743,7 +3746,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/regions'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3765,7 +3768,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/countries/{}/regions'.format(self.base_url, country), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3785,7 +3788,7 @@ def list_regions_by_country(self, country, include=None): """ def list_resource_file_types(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/resourcefiletypes'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3806,7 +3809,7 @@ def list_resource_file_types(self, include=None): """ 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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/returns/parametersusage'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3827,7 +3830,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/securityroles'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3849,7 +3852,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/subscriptiontypes'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3868,7 +3871,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/tags'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3888,7 +3891,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/taxauthorities'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3910,7 +3913,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/taxauthorityforms'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3930,7 +3933,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/taxauthoritytypes'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3955,7 +3958,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/taxcodes'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3974,7 +3977,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/taxcodetypes'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3994,7 +3997,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/taxforms'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4014,7 +4017,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/taxsubtypes'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4036,7 +4039,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/taxsubtypes/countries/{}/taxtypes/{}'.format(self.base_url, country, taxTypeId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4058,7 +4061,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/taxsubtypes/{}/{}'.format(self.base_url, jurisdictionCode, region), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4078,7 +4081,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/taxtypegroups'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4098,7 +4101,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/taxtypes/countries/{}'.format(self.base_url, country), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4120,7 +4123,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/unitofbasis/countries/{}/taxtypes/{}/taxsubtypes/{}'.format(self.base_url, country, taxTypeId, taxSubTypeId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4140,7 +4143,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/unitofmeasurements'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4162,7 +4165,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/distancethresholds'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4184,7 +4187,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/companies/{}/distancethresholds/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4206,7 +4209,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/distancethresholds/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4232,7 +4235,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/distancethresholds'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4259,7 +4262,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/distancethresholds'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4284,7 +4287,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.put('{}/api/v2/companies/{}/distancethresholds/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4304,7 +4307,7 @@ def update_distance_threshold(self, companyId, id_, model): """ 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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/ecommercetokens'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4324,7 +4327,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.put('{}/api/v2/companies/{}/ecommercetokens'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4342,7 +4345,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/firmclientlinkages/{}/approve'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4366,7 +4369,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/firmclientlinkages/createandlinkclient'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4384,7 +4387,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/firmclientlinkages'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4402,7 +4405,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/firmclientlinkages/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4420,7 +4423,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/firmclientlinkages/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4438,7 +4441,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/firmclientlinkages'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4456,7 +4459,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/firmclientlinkages/{}/reject'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4474,7 +4477,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/firmclientlinkages/{}/reset'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4492,7 +4495,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/firmclientlinkages/{}/revoke'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4516,7 +4519,7 @@ def revoke_firm_client_linkage(self, id_): """ def request_free_trial(self, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/accounts/freetrials/request'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4548,7 +4551,7 @@ def request_free_trial(self, model): """ 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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/fundingrequests/{}/widget'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4578,7 +4581,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/fundingrequests/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4599,7 +4602,7 @@ def funding_request_status(self, id_, include=None): """ 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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/companies/{}/items/{}/classifications'.format(self.base_url, companyId, itemId), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4621,7 +4624,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/companies/{}/items/{}/parameters'.format(self.base_url, companyId, itemId), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4646,7 +4649,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/items/upload'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4669,7 +4672,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/items/{}/classifications'.format(self.base_url, companyId, itemId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4694,7 +4697,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/items/{}/parameters'.format(self.base_url, companyId, itemId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4719,7 +4722,7 @@ def create_item_parameters(self, companyId, itemId, model): """ def create_items(self, companyId, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/items'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4735,12 +4738,12 @@ def create_items(self, companyId, model): :param companyId [int] The ID of the company that defined these items :param itemId [int] The ID of the item as defined by the company that owns this tag. - :param model [ItemTagDetailModel] Tags you wish to associate with the Item - :return ItemTagDetailModel + :param model [ItemTagDetailInputModel] Tags you wish to associate with the Item + :return ItemTagDetailOutputModel """ 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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/items/{}/tags'.format(self.base_url, companyId, itemId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4762,7 +4765,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/classificationrequests/taxcode'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4792,7 +4795,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/companies/{}/itemcatalogue/{}'.format(self.base_url, companyId, itemCode), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4817,7 +4820,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/companies/{}/items/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4839,7 +4842,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/companies/{}/items/{}/classifications/{}'.format(self.base_url, companyId, itemId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4862,7 +4865,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/companies/{}/items/{}/parameters/{}'.format(self.base_url, companyId, itemId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4883,7 +4886,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/companies/{}/items/{}/tags/{}'.format(self.base_url, companyId, itemId, itemTagDetailId), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4903,7 +4906,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/companies/{}/items/{}/tags'.format(self.base_url, companyId, itemId), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4930,7 +4933,7 @@ def delete_item_tags(self, companyId, itemId): """ def get_classification_status(self, companyId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/classificationrequests/taxcode'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4955,7 +4958,7 @@ def get_classification_status(self, companyId, include=None): """ 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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/items/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4977,7 +4980,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/items/{}/classifications/{}'.format(self.base_url, companyId, itemId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5000,7 +5003,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/items/{}/parameters/{}'.format(self.base_url, companyId, itemId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5023,7 +5026,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/items/{}/tags'.format(self.base_url, companyId, itemId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5051,7 +5054,7 @@ def get_item_tags(self, companyId, itemId, include=None): """ 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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/items/{}/premiumClassification/{}'.format(self.base_url, companyId, itemCode, systemCode), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5077,7 +5080,7 @@ def get_premium_classification(self, companyId, itemCode, systemCode): """ def get_tax_code_recommendations(self, companyId, requestId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/classificationrequests/taxcode/{}/recommendations'.format(self.base_url, companyId, requestId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5108,7 +5111,7 @@ def get_tax_code_recommendations(self, companyId, requestId, include=None): """ 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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/items/{}/restrictions/import/{}'.format(self.base_url, companyId, itemCode, countryOfImport), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5135,7 +5138,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/items/{}/classifications'.format(self.base_url, companyId, itemId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5163,7 +5166,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/items/{}/parameters'.format(self.base_url, companyId, itemId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5199,7 +5202,7 @@ def list_item_parameters(self, companyId, itemId, include=None): """ def list_items_by_company(self, companyId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/items'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5228,7 +5231,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/items'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5259,7 +5262,7 @@ def query_items(self, 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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/items/bytags/{}'.format(self.base_url, companyId, tag), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5281,7 +5284,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/itemcatalogue'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5308,7 +5311,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/items/sync'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5336,7 +5339,7 @@ def sync_items(self, companyId, model): """ def update_item(self, companyId, id_, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.put('{}/api/v2/companies/{}/items/{}'.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) @@ -5360,7 +5363,7 @@ def update_item(self, companyId, id_, model): """ 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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.put('{}/api/v2/companies/{}/items/{}/classifications/{}'.format(self.base_url, companyId, itemId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5384,7 +5387,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.put('{}/api/v2/companies/{}/items/{}/parameters/{}'.format(self.base_url, companyId, itemId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5407,7 +5410,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/accounts/{}/jurisdictionoverrides'.format(self.base_url, accountId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5426,7 +5429,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/accounts/{}/jurisdictionoverrides/{}'.format(self.base_url, accountId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5449,7 +5452,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/accounts/{}/jurisdictionoverrides/{}'.format(self.base_url, accountId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5478,7 +5481,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/accounts/{}/jurisdictionoverrides'.format(self.base_url, accountId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5506,7 +5509,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/jurisdictionoverrides'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5526,7 +5529,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.put('{}/api/v2/accounts/{}/jurisdictionoverrides/{}'.format(self.base_url, accountId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5551,7 +5554,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/locations/{}/parameters'.format(self.base_url, companyId, locationId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5570,7 +5573,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/locations'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5589,7 +5592,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/companies/{}/locations/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5612,7 +5615,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/companies/{}/locations/{}/parameters/{}'.format(self.base_url, companyId, locationId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5639,7 +5642,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/locations/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5662,7 +5665,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/locations/{}/parameters/{}'.format(self.base_url, companyId, locationId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5690,7 +5693,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/locations/{}/parameters'.format(self.base_url, companyId, locationId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5722,7 +5725,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/locations'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5753,7 +5756,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/locations'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5775,7 +5778,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.put('{}/api/v2/companies/{}/locations/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5799,7 +5802,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.put('{}/api/v2/companies/{}/locations/{}/parameters/{}'.format(self.base_url, companyId, locationId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5820,7 +5823,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/locations/{}/validate'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5854,7 +5857,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/transactions/multidocument/{}/type/{}/adjust'.format(self.base_url, code, type), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5891,7 +5894,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/transactions/multidocument/{}/type/{}/audit'.format(self.base_url, code, type), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5921,7 +5924,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/transactions/multidocument/commit'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5971,7 +5974,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/transactions/multidocument'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6007,7 +6010,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/transactions/multidocument/{}/type/{}'.format(self.base_url, code, type), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6049,7 +6052,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/transactions/multidocument/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6092,7 +6095,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/transactions/multidocument'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6147,7 +6150,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/transactions/multidocument/{}/type/{}/refund'.format(self.base_url, code, type), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6176,7 +6179,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/transactions/multidocument/verify'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6209,7 +6212,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/transactions/multidocument/{}/type/{}/void'.format(self.base_url, code, type), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6241,7 +6244,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/nexus'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6266,7 +6269,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/nexus/{}/parameters'.format(self.base_url, companyId, nexusId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6295,7 +6298,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/nexus/byaddress'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6320,7 +6323,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/companies/{}/nexus/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6343,7 +6346,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/companies/{}/nexus/{}/parameters/{}'.format(self.base_url, companyId, nexusId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6365,7 +6368,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/companies/{}/nexus/{}/parameters'.format(self.base_url, companyId, nexusId), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6390,7 +6393,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/nexus/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6418,7 +6421,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/nexus/byform/{}'.format(self.base_url, companyId, formCode), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6441,7 +6444,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/nexus/{}/parameters/{}'.format(self.base_url, companyId, nexusId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6471,7 +6474,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/nexus'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6502,7 +6505,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/nexus/byTaxTypeGroup/{}'.format(self.base_url, companyId, taxTypeGroup), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6530,7 +6533,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/nexus/{}/parameters'.format(self.base_url, companyId, nexusId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6559,7 +6562,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/nexus'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6592,7 +6595,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.put('{}/api/v2/companies/{}/nexus/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6616,7 +6619,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.put('{}/api/v2/companies/{}/nexus/{}/parameters/{}'.format(self.base_url, companyId, nexusId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6635,7 +6638,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/notices/responsibilities'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6654,7 +6657,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/notices/rootcauses'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6672,7 +6675,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/notices/responsibilities/{}'.format(self.base_url, responsibilityId), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6690,7 +6693,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/notices/rootcauses/{}'.format(self.base_url, rootCauseId), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6717,7 +6720,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.put('{}/api/v2/notifications/{}/dismiss'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6740,7 +6743,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/notifications/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6768,7 +6771,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/notifications'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6798,7 +6801,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/accounts/request'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6820,7 +6823,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/accounts/{}/entitlements/{}'.format(self.base_url, id_, offer), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6841,7 +6844,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/accounts'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6868,7 +6871,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/notifications'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6891,7 +6894,7 @@ def create_notifications(self, model): """ def create_service_types(self, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/servicetypes'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6913,7 +6916,7 @@ def create_service_types(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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/accounts/{}/subscriptions'.format(self.base_url, accountId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6934,7 +6937,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/accounts/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6959,7 +6962,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/notifications/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6980,7 +6983,7 @@ def delete_notification(self, id_): """ def delete_service_type(self, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/servicetypes/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7001,7 +7004,7 @@ def delete_service_type(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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/accounts/{}/subscriptions/{}'.format(self.base_url, accountId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7027,7 +7030,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/servicetypes/servicetypes'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7052,7 +7055,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/passwords/{}/reset'.format(self.base_url, userId), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7073,7 +7076,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.put('{}/api/v2/accounts/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7099,7 +7102,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.put('{}/api/v2/notifications/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7122,7 +7125,7 @@ def update_notification(self, id_, model): """ def update_service_type(self, id_, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.put('{}/api/v2/servicetypes/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7148,7 +7151,7 @@ def update_service_type(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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.put('{}/api/v2/accounts/{}/subscriptions/{}'.format(self.base_url, accountId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7175,7 +7178,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/reports/{}/attachment'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7198,7 +7201,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/reports/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7230,7 +7233,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/reports/exportdocumentline/initiate'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7258,7 +7261,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/reports'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7287,7 +7290,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/settings'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7313,7 +7316,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/companies/{}/settings/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7339,7 +7342,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/settings/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7371,7 +7374,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/settings'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7402,7 +7405,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/settings'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7431,7 +7434,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.put('{}/api/v2/companies/{}/settings/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7452,7 +7455,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/accounts/{}/subscriptions/{}'.format(self.base_url, accountId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7478,7 +7481,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/accounts/{}/subscriptions'.format(self.base_url, accountId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7503,7 +7506,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/subscriptions'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7526,7 +7529,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/taxcodes'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7545,7 +7548,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/companies/{}/taxcodes/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7568,7 +7571,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/taxcodes/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7597,7 +7600,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/taxcodes'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7625,7 +7628,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/taxcodes'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7651,7 +7654,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.put('{}/api/v2/companies/{}/taxcodes/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7686,7 +7689,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/pointofsaledata/build'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7726,7 +7729,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/locations/{}/pointofsaledata'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7777,7 +7780,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/taxratesbyzipcode/download/{}'.format(self.base_url, date), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7814,7 +7817,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/taxrates/byaddress'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7847,7 +7850,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/taxrates/bypostalcode'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7875,7 +7878,7 @@ def tax_rates_by_postal_code(self, include=None): """ 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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/taxrules'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7903,7 +7906,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/companies/{}/taxrules/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7931,7 +7934,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/taxrules/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7965,7 +7968,7 @@ def get_tax_rule(self, companyId, id_): """ 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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/taxrules'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7998,7 +8001,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/taxrules'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8027,7 +8030,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.put('{}/api/v2/companies/{}/taxrules/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8062,7 +8065,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/transactions/lines/add'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8107,7 +8110,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/transactions/{}/adjust'.format(self.base_url, companyCode, transactionCode), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8144,7 +8147,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/transactions/{}/audit'.format(self.base_url, companyCode, transactionCode), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8182,7 +8185,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/transactions/{}/types/{}/audit'.format(self.base_url, companyCode, transactionCode, documentType), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8205,7 +8208,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/transactions/lock'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8249,7 +8252,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/transactions/{}/changecode'.format(self.base_url, companyCode, transactionCode), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8291,7 +8294,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/transactions/{}/commit'.format(self.base_url, companyCode, transactionCode), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8335,7 +8338,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/transactions/createoradjust'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8384,7 +8387,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/transactions/create'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8416,13 +8419,31 @@ 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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/transactions/lines/delete'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) r""" Swagger Name: AvaTaxClient + Fetches the Variance data generated for all the transactions done by Company. + + ### Security Policies + * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ProStoresOperator, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser. + * This API depends on the following active services:*Required* (all): AvaTaxPro, BasicReturns. + + :param companyCode [string] + :return VarianceResponseModel + """ + 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","22.11.0") + return requests.get('{}/api/v2/companies/{}/AllVariance'.format(self.base_url, companyCode), + auth=self.auth, headers=self.client_header, params=None, + timeout=self.timeout_limit if self.timeout_limit else 1200) + r""" + Swagger Name: AvaTaxClient + Retrieve a single transaction by code Get the current transaction identified by this company code, transaction code, and document type. @@ -8457,7 +8478,7 @@ def delete_lines(self, model, include=None): """ 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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/transactions/{}'.format(self.base_url, companyCode, transactionCode), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8486,7 +8507,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/transactions/{}/types/{}'.format(self.base_url, companyCode, transactionCode, documentType), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8517,13 +8538,32 @@ 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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/transactions/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) r""" Swagger Name: AvaTaxClient + Fetches the Variance data generated for particular Company by transaction ID + + ### Security Policies + * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ProStoresOperator, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser. + * This API depends on the following active services:*Required* (all): AvaTaxPro, BasicReturns. + + :param companyCode [string] + :param transactionId [string] + :return VarianceResponseModel + """ + 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","22.11.0") + return requests.get('{}/api/v2/companies/{}/transactions/{}/variance'.format(self.base_url, companyCode, transactionId), + auth=self.auth, headers=self.client_header, params=None, + timeout=self.timeout_limit if self.timeout_limit else 1200) + r""" + Swagger Name: AvaTaxClient + Retrieve all transactions List all transactions attached to this company. @@ -8563,7 +8603,7 @@ def get_transaction_by_id(self, id_, include=None): """ 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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/transactions'.format(self.base_url, companyCode), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8607,7 +8647,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/transactions/{}/lock'.format(self.base_url, companyCode, transactionCode), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8661,7 +8701,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/transactions/{}/refund'.format(self.base_url, companyCode, transactionCode), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8703,7 +8743,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/transactions/{}/settle'.format(self.base_url, companyCode, transactionCode), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8742,7 +8782,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/transactions/{}/uncommit'.format(self.base_url, companyCode, transactionCode), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8779,13 +8819,32 @@ 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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/transactions/{}/unvoid'.format(self.base_url, companyCode, transactionCode), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) r""" Swagger Name: AvaTaxClient + Generates the Variance report which will capture the difference between "Tax Calculated by Avalara" Vs "Actual Tax" paid at custom clearance at line / header level. + + ### Security Policies + * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ProStoresOperator, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser. + * This API depends on the following active services:*Required* (all): AvaTaxPro, BasicReturns. + + :param companyCode [string] + :param model [VarianceRequestModel] + :return VarianceResponseModel + """ + 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","22.11.0") + return requests.post('{}/api/v2/companies/{}/variance'.format(self.base_url, companyCode), + auth=self.auth, headers=self.client_header, json=model, + timeout=self.timeout_limit if self.timeout_limit else 1200) + r""" + Swagger Name: AvaTaxClient + Verify a transaction Verifies that the transaction uniquely identified by this URL matches certain expected values. @@ -8821,7 +8880,7 @@ def unvoid_transaction(self, companyCode, transactionCode, include=None): """ 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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/transactions/{}/verify'.format(self.base_url, companyCode, transactionCode), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8864,7 +8923,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/transactions/{}/void'.format(self.base_url, companyCode, transactionCode), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8885,7 +8944,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/upcs'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8905,7 +8964,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/companies/{}/upcs/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8926,7 +8985,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/upcs/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8953,7 +9012,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/upcs'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8979,7 +9038,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/upcs'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9003,7 +9062,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.put('{}/api/v2/companies/{}/upcs/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9023,7 +9082,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/companies/{}/userdefinedfields/{}'.format(self.base_url, companyId, accountId), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9043,7 +9102,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/userdefinedfields'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9064,7 +9123,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/userdefinedfields'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9086,7 +9145,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.put('{}/api/v2/passwords'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9110,7 +9169,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/accounts/{}/users'.format(self.base_url, accountId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9132,7 +9191,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/accounts/{}/users/{}'.format(self.base_url, accountId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9155,7 +9214,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/accounts/{}/users/{}'.format(self.base_url, accountId, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9186,7 +9245,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/accounts/{}/users/{}/entitlements'.format(self.base_url, accountId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9216,7 +9275,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/accounts/{}/users'.format(self.base_url, accountId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9246,7 +9305,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/users'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9269,7 +9328,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.put('{}/api/v2/accounts/{}/users/{}'.format(self.base_url, accountId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9290,7 +9349,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/utilities/subscriptions/{}'.format(self.base_url, serviceTypeId), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9310,7 +9369,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/utilities/subscriptions'.format(self.base_url), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9339,13 +9398,88 @@ 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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/utilities/ping'.format(self.base_url), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) r""" Swagger Name: AvaTaxBeverageClient + Fetches a previously stored age verification response. + + The request must meet the following criteria in order to be evaluated: + * *firstName*, *lastName*, and *address* are required fields. + * One of the following sets of attributes are required for the *address*: + * *line1, city, region* + * *line1, postalCode* + * Optionally, the request may use the following parameters: + * A *DOB* (Date of Birth) field. The value should be ISO-8601 compliant (e.g. 2020-07-21). + * Beyond the required *address* fields above, a *country* field is permitted + * The valid values for this attribute are [*US, USA*] + + :param model [AgeVerifyRequest] Information about the individual whose age is being verified. + :return AgeVerifyResult + """ + def find_age_verification(self, model): + if ('X-Avalara-Client' in self.client_header): + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","") + return requests.put('{}/api/v2/ageverification/store/identity/find'.format(self.base_url), + auth=self.auth, headers=self.client_header, json=model, + timeout=self.timeout_limit if self.timeout_limit else 1200) + r""" + Swagger Name: AvaTaxBeverageClient + + Stores an age verification response for the account. + + The request field must meet the following criteria in order to be evaluated: + * *firstName*, *lastName*, and *address* are required fields. + * One of the following sets of attributes are required for the *address*: + * *line1, city, region* + * *line1, postalCode* + * Optionally, request field may use the following parameters: + * A *DOB* (Date of Birth) field. The value should be ISO-8601 compliant (e.g. 2020-07-21). + * Beyond the required *address* fields above, a *country* field is permitted + * The valid values for this attribute are [*US, USA*] + The response field must meet the following criteria in order to be evaluated: + * *isOfAge*, *failureCodes* are required fields + + :param model [StoreAgeVerifyRequest] Information about the individual whose age has been verified and the corresponding age verification response. + :return + """ + def store_age_verification(self, model): + if ('X-Avalara-Client' in self.client_header): + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","") + return requests.put('{}/api/v2/ageverification/store/identity'.format(self.base_url), + auth=self.auth, headers=self.client_header, json=model, + timeout=self.timeout_limit if self.timeout_limit else 1200) + r""" + Swagger Name: AvaTaxBeverageClient + + Conditionally performs an age verification check. If a record matching the request is found in the internal store, the associated response is returned. Otherwise, an age verification check is performed and the response is stored if the individual is determined to be of age. + + The request must meet the following criteria in order to be evaluated: + * *firstName*, *lastName*, and *address* are required fields. + * One of the following sets of attributes are required for the *address*: + * *line1, city, region* + * *line1, postalCode* + * Optionally, the request may use the following parameters: + * A *DOB* (Date of Birth) field. The value should be ISO-8601 compliant (e.g. 2020-07-21). + * Beyond the required *address* fields above, a *country* field is permitted + * The valid values for this attribute are [*US, USA*] + + :param simulatedFailureCode [string] (Optional) The failure code included in the simulated response of the endpoint. Note that this endpoint is only available in Sandbox for testing purposes. + :param model [AgeVerifyRequest] Information about the individual whose age is being verified. + :return StoreIfVerifiedResult + """ + def store_if_verified(self, model, include=None): + if ('X-Avalara-Client' in self.client_header): + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","") + return requests.put('{}/api/v2/ageverification/store/identity/storeIfVerified'.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: AvaTaxBeverageClient + Determines whether an individual meets or exceeds the minimum legal drinking age. The request must meet the following criteria in order to be evaluated: diff --git a/src/client_methods.py b/src/client_methods.py index 45bde8e..4fa21f3 100644 --- a/src/client_methods.py +++ b/src/client_methods.py @@ -1,6 +1,8 @@ import requests from _str_version import str_type +from ava_logger import decorate_all_methods, ava_log +@decorate_all_methods(ava_log) # class decorator to implement logging class Mixin: """Mixin class contain methods attached to Client class.""" @@ -28,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/accounts/{}/resetlicensekey'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -53,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/accounts/{}/activate'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -84,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/accounts/{}/audit'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -109,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/accounts/{}/licensekey'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -130,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/accounts/{}/licensekey/{}'.format(self.base_url, id_, licensekeyname), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -152,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/accounts/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -178,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/accounts/{}/configuration'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -196,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/accounts/{}/licensekey/{}'.format(self.base_url, id_, licensekeyname), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -214,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/accounts/{}/licensekeys'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -243,7 +245,7 @@ def get_license_keys(self, id_): """ 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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/accounts'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -270,7 +272,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/accounts/{}/configuration'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -305,7 +307,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/addresses/resolve'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -329,7 +331,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/addresses/resolve'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -347,7 +349,7 @@ def resolve_address_post(self, model): """ def create_company_lookup_file(self, accountId, companyId, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/advancedrules/accounts/{}/companies/{}/lookupFiles'.format(self.base_url, accountId, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -364,7 +366,7 @@ def create_company_lookup_file(self, accountId, companyId, model): """ def delete_lookup_file(self, accountId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/advancedrules/accounts/{}/lookupFiles/{}'.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) @@ -381,7 +383,7 @@ def delete_lookup_file(self, accountId, id_): """ def get_company_lookup_files(self, accountId, companyId): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/advancedrules/accounts/{}/companies/{}/lookupFiles'.format(self.base_url, accountId, companyId), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -398,7 +400,7 @@ def get_company_lookup_files(self, accountId, companyId): """ def get_lookup_file(self, accountId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/advancedrules/accounts/{}/lookupFiles/{}'.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) @@ -416,7 +418,7 @@ def get_lookup_file(self, accountId, id_): """ def update_lookup_file(self, accountId, id_, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.put('{}/api/v2/advancedrules/accounts/{}/lookupFiles/{}'.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) @@ -436,7 +438,7 @@ def update_lookup_file(self, accountId, id_, 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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/avafileforms'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -455,7 +457,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/avafileforms/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -474,7 +476,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/avafileforms/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -497,7 +499,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/avafileforms'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -518,7 +520,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.put('{}/api/v2/avafileforms/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -545,7 +547,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/batches/{}/cancel'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -578,7 +580,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/batches'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -610,7 +612,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/batches/transactions'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -636,7 +638,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/companies/{}/batches/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -656,7 +658,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/batches/{}/files/{}/attachment'.format(self.base_url, companyId, batchId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -686,7 +688,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/batches/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -724,7 +726,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/batches'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -759,7 +761,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/batches'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -791,7 +793,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/customers/{}/certexpressinvites'.format(self.base_url, companyId, customerCode), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -824,7 +826,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/customers/{}/certexpressinvites/{}'.format(self.base_url, companyId, customerCode, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -859,7 +861,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/certexpressinvites'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -895,7 +897,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/certificates'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -924,7 +926,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/companies/{}/certificates/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -956,7 +958,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/certificates/{}/attachment'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -989,7 +991,7 @@ def download_certificate_image(self, companyId, id_, include=None): """ def get_certificate(self, companyId, id_, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/certificates/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1013,7 +1015,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/certificates/setup'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1044,7 +1046,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/certificates/{}/attributes/link'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1076,7 +1078,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/certificates/{}/customers/link'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1106,7 +1108,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/certificates/{}/attributes'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1137,7 +1139,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/certificates/{}/customers'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1173,7 +1175,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/certificates'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1198,7 +1200,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/certificates/setup'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1229,7 +1231,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/certificates/{}/attributes/unlink'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1262,7 +1264,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/certificates/{}/customers/unlink'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1291,7 +1293,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.put('{}/api/v2/companies/{}/certificates/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1322,7 +1324,7 @@ def update_certificate(self, companyId, id_, model): """ def upload_certificate_image(self, companyId, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/certificates/{}/attachment'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1361,7 +1363,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/certify'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1388,7 +1390,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/filingstatus'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1415,7 +1417,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/initialize'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1436,7 +1438,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1460,7 +1462,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/parameters'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1491,7 +1493,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/funding/setup'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1509,7 +1511,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/companies/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1531,7 +1533,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/companies/{}/parameters/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1553,7 +1555,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/funding/configuration'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1576,7 +1578,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/funding/configurations'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1606,7 +1608,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1632,7 +1634,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/configuration'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1654,7 +1656,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/parameters/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1682,7 +1684,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/filingstatus'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1706,7 +1708,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/paymentdetails/{}/{}'.format(self.base_url, id_, periodyear, periodmonth), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1733,7 +1735,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/parameters'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1755,7 +1757,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/funding'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1773,7 +1775,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/mrs'.format(self.base_url), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1808,7 +1810,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1835,7 +1837,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/configuration'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1860,7 +1862,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.put('{}/api/v2/companies/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1883,7 +1885,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.put('{}/api/v2/companies/{}/parameters/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1908,7 +1910,7 @@ def update_company_parameter_detail(self, companyId, id_, model): """ def query_tax_authority_jurisdiction_rates(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/compliance/taxauthorityjurisdictionrates'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1929,7 +1931,7 @@ def query_tax_authority_jurisdiction_rates(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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/contacts'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1948,7 +1950,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/companies/{}/contacts/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1969,7 +1971,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/contacts/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -1993,7 +1995,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/contacts'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2018,7 +2020,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/contacts'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2042,7 +2044,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.put('{}/api/v2/companies/{}/contacts/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2073,7 +2075,7 @@ def update_contact(self, companyId, id_, 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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/customers'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2102,7 +2104,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/companies/{}/customers/{}'.format(self.base_url, companyId, customerCode), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2136,7 +2138,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/customers/{}'.format(self.base_url, companyId, customerCode), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2168,7 +2170,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.put('{}/api/v2/companies/{}/customers/{}/attributes/link'.format(self.base_url, companyId, customerCode), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2198,7 +2200,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/customers/{}/certificates/link'.format(self.base_url, companyId, customerCode), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2228,7 +2230,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/customers/billto/{}/shipto/link'.format(self.base_url, companyId, code), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2259,7 +2261,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/customers/{}/attributes'.format(self.base_url, companyId, customerCode), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2293,7 +2295,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/customers/{}/certificates'.format(self.base_url, companyId, customerCode), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2326,7 +2328,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/customers/{}/certificates/{}/{}'.format(self.base_url, companyId, customerCode, country, region), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2362,7 +2364,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/customers'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2394,7 +2396,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.put('{}/api/v2/companies/{}/customers/{}/attributes/unlink'.format(self.base_url, companyId, customerCode), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2424,7 +2426,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/customers/{}/certificates/unlink'.format(self.base_url, companyId, customerCode), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2454,7 +2456,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.put('{}/api/v2/companies/{}/customers/{}'.format(self.base_url, companyId, customerCode), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2474,7 +2476,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/datasources'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2494,7 +2496,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/companies/{}/datasources/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2514,7 +2516,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/datasources/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2537,7 +2539,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/datasources'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2561,7 +2563,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/datasources'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2582,7 +2584,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.put('{}/api/v2/companies/{}/datasources/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2607,7 +2609,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/crossborder/{}/{}/hierarchy'.format(self.base_url, country, hsCode), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2628,7 +2630,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/filingcalendars/loginverifiers/{}'.format(self.base_url, form), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2647,7 +2649,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/listallmarketplacelocations'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2669,7 +2671,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/avafileforms'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2693,7 +2695,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/certificateattributes'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2716,7 +2718,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/certificateexemptreasons'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2739,7 +2741,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/certificateexposurezones'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2760,7 +2762,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/classification/parametersusage'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2780,7 +2782,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/communications/transactiontypes/{}/servicetypes'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2800,7 +2802,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/communications/transactiontypes'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2820,7 +2822,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/communications/tspairs'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2841,7 +2843,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/countries'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2865,7 +2867,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/coverletters'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2893,7 +2895,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/crossborder/{}/{}'.format(self.base_url, country, hsCode), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2914,7 +2916,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/crossborder/sections'.format(self.base_url), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2935,7 +2937,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/currencies'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2958,7 +2960,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/entityusecodes'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -2978,7 +2980,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/filingfrequencies'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3000,7 +3002,7 @@ def list_filing_frequencies(self, include=None): """ 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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/jurisdictions'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3030,7 +3032,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/jurisdictionsnearaddress'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3058,7 +3060,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/jurisdictions/countries/{}/taxtypes/{}/taxsubtypes/{}'.format(self.base_url, country, taxTypeId, taxSubTypeId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3077,7 +3079,7 @@ def list_jurisdictions_by_rate_type_tax_type_mapping(self, country, taxTypeId, t """ 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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/jurisdictionTypes/countries/{}/taxtypes/{}/taxsubtypes/{}'.format(self.base_url, country, taxTypeId, taxSubTypeId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3110,7 +3112,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/locationquestions'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3131,7 +3133,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/filingcalendars/loginverifiers'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3150,7 +3152,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/marketplacelocations'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3170,7 +3172,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/nexus'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3200,7 +3202,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/nexus/byaddress'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3221,7 +3223,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/nexus/{}'.format(self.base_url, country), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3243,7 +3245,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/nexus/{}/{}'.format(self.base_url, country, region), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3268,7 +3270,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/nexus/byform/{}'.format(self.base_url, formCode), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3289,7 +3291,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/nexus/bytaxtypegroup/{}'.format(self.base_url, taxTypeGroup), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3309,7 +3311,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/nexustaxtypegroups'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3329,7 +3331,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/noticecustomerfundingoptions'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3349,7 +3351,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/noticecustomertypes'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3369,7 +3371,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/noticefilingtypes'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3389,7 +3391,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/noticepriorities'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3409,7 +3411,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/noticereasons'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3429,7 +3431,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/noticeresponsibilities'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3449,7 +3451,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/noticerootcauses'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3469,7 +3471,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/noticestatuses'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3489,7 +3491,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/noticetypes'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3510,7 +3512,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/parameters'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3544,7 +3546,7 @@ def list_parameters(self, 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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/parameters/byitem/{}/{}'.format(self.base_url, companyCode, itemCode), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3565,7 +3567,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/parametersusage'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3583,7 +3585,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/permissions'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3602,7 +3604,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/postalcodes'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3627,7 +3629,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/preferredprograms'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3649,7 +3651,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/productclassificationsystems'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3678,7 +3680,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/productclassificationsystems/bycompany/{}'.format(self.base_url, companyCode), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3699,7 +3701,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/countries/{}/ratetypes'.format(self.base_url, country), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3722,7 +3724,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/countries/{}/taxtypes/{}/taxsubtypes/{}/ratetypes'.format(self.base_url, country, taxTypeId, taxSubTypeId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3743,7 +3745,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/regions'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3765,7 +3767,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/countries/{}/regions'.format(self.base_url, country), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3785,7 +3787,7 @@ def list_regions_by_country(self, country, include=None): """ def list_resource_file_types(self, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/resourcefiletypes'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3806,7 +3808,7 @@ def list_resource_file_types(self, include=None): """ 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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/returns/parametersusage'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3827,7 +3829,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/securityroles'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3849,7 +3851,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/subscriptiontypes'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3868,7 +3870,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/tags'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3888,7 +3890,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/taxauthorities'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3910,7 +3912,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/taxauthorityforms'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3930,7 +3932,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/taxauthoritytypes'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3955,7 +3957,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/taxcodes'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3974,7 +3976,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/taxcodetypes'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -3994,7 +3996,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/taxforms'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4014,7 +4016,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/taxsubtypes'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4036,7 +4038,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/taxsubtypes/countries/{}/taxtypes/{}'.format(self.base_url, country, taxTypeId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4058,7 +4060,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/taxsubtypes/{}/{}'.format(self.base_url, jurisdictionCode, region), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4078,7 +4080,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/taxtypegroups'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4098,7 +4100,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/taxtypes/countries/{}'.format(self.base_url, country), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4120,7 +4122,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/unitofbasis/countries/{}/taxtypes/{}/taxsubtypes/{}'.format(self.base_url, country, taxTypeId, taxSubTypeId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4140,7 +4142,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/definitions/unitofmeasurements'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4162,7 +4164,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/distancethresholds'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4184,7 +4186,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/companies/{}/distancethresholds/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4206,7 +4208,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/distancethresholds/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4232,7 +4234,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/distancethresholds'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4259,7 +4261,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/distancethresholds'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4284,7 +4286,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.put('{}/api/v2/companies/{}/distancethresholds/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4304,7 +4306,7 @@ def update_distance_threshold(self, companyId, id_, model): """ 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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/ecommercetokens'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4324,7 +4326,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.put('{}/api/v2/companies/{}/ecommercetokens'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4342,7 +4344,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/firmclientlinkages/{}/approve'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4366,7 +4368,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/firmclientlinkages/createandlinkclient'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4384,7 +4386,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/firmclientlinkages'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4402,7 +4404,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/firmclientlinkages/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4420,7 +4422,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/firmclientlinkages/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4438,7 +4440,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/firmclientlinkages'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4456,7 +4458,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/firmclientlinkages/{}/reject'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4474,7 +4476,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/firmclientlinkages/{}/reset'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4492,7 +4494,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/firmclientlinkages/{}/revoke'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4516,7 +4518,7 @@ def revoke_firm_client_linkage(self, id_): """ def request_free_trial(self, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/accounts/freetrials/request'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4548,7 +4550,7 @@ def request_free_trial(self, model): """ 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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/fundingrequests/{}/widget'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4578,7 +4580,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/fundingrequests/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4599,7 +4601,7 @@ def funding_request_status(self, id_, include=None): """ 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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/companies/{}/items/{}/classifications'.format(self.base_url, companyId, itemId), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4621,7 +4623,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/companies/{}/items/{}/parameters'.format(self.base_url, companyId, itemId), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4646,7 +4648,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/items/upload'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4669,7 +4671,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/items/{}/classifications'.format(self.base_url, companyId, itemId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4694,7 +4696,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/items/{}/parameters'.format(self.base_url, companyId, itemId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4719,7 +4721,7 @@ def create_item_parameters(self, companyId, itemId, model): """ def create_items(self, companyId, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/items'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4735,12 +4737,12 @@ def create_items(self, companyId, model): :param companyId [int] The ID of the company that defined these items :param itemId [int] The ID of the item as defined by the company that owns this tag. - :param model [ItemTagDetailModel] Tags you wish to associate with the Item - :return ItemTagDetailModel + :param model [ItemTagDetailInputModel] Tags you wish to associate with the Item + :return ItemTagDetailOutputModel """ 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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/items/{}/tags'.format(self.base_url, companyId, itemId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4762,7 +4764,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/classificationrequests/taxcode'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4792,7 +4794,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/companies/{}/itemcatalogue/{}'.format(self.base_url, companyId, itemCode), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4817,7 +4819,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/companies/{}/items/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4839,7 +4841,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/companies/{}/items/{}/classifications/{}'.format(self.base_url, companyId, itemId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4862,7 +4864,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/companies/{}/items/{}/parameters/{}'.format(self.base_url, companyId, itemId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4883,7 +4885,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/companies/{}/items/{}/tags/{}'.format(self.base_url, companyId, itemId, itemTagDetailId), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4903,7 +4905,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/companies/{}/items/{}/tags'.format(self.base_url, companyId, itemId), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4930,7 +4932,7 @@ def delete_item_tags(self, companyId, itemId): """ def get_classification_status(self, companyId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/classificationrequests/taxcode'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4955,7 +4957,7 @@ def get_classification_status(self, companyId, include=None): """ 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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/items/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -4977,7 +4979,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/items/{}/classifications/{}'.format(self.base_url, companyId, itemId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5000,7 +5002,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/items/{}/parameters/{}'.format(self.base_url, companyId, itemId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5023,7 +5025,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/items/{}/tags'.format(self.base_url, companyId, itemId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5051,7 +5053,7 @@ def get_item_tags(self, companyId, itemId, include=None): """ 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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/items/{}/premiumClassification/{}'.format(self.base_url, companyId, itemCode, systemCode), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5077,7 +5079,7 @@ def get_premium_classification(self, companyId, itemCode, systemCode): """ def get_tax_code_recommendations(self, companyId, requestId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/classificationrequests/taxcode/{}/recommendations'.format(self.base_url, companyId, requestId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5108,7 +5110,7 @@ def get_tax_code_recommendations(self, companyId, requestId, include=None): """ 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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/items/{}/restrictions/import/{}'.format(self.base_url, companyId, itemCode, countryOfImport), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5135,7 +5137,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/items/{}/classifications'.format(self.base_url, companyId, itemId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5163,7 +5165,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/items/{}/parameters'.format(self.base_url, companyId, itemId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5199,7 +5201,7 @@ def list_item_parameters(self, companyId, itemId, include=None): """ def list_items_by_company(self, companyId, include=None): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/items'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5228,7 +5230,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/items'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5259,7 +5261,7 @@ def query_items(self, 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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/items/bytags/{}'.format(self.base_url, companyId, tag), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5281,7 +5283,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/itemcatalogue'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5308,7 +5310,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/items/sync'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5336,7 +5338,7 @@ def sync_items(self, companyId, model): """ def update_item(self, companyId, id_, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.put('{}/api/v2/companies/{}/items/{}'.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) @@ -5360,7 +5362,7 @@ def update_item(self, companyId, id_, model): """ 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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.put('{}/api/v2/companies/{}/items/{}/classifications/{}'.format(self.base_url, companyId, itemId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5384,7 +5386,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.put('{}/api/v2/companies/{}/items/{}/parameters/{}'.format(self.base_url, companyId, itemId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5407,7 +5409,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/accounts/{}/jurisdictionoverrides'.format(self.base_url, accountId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5426,7 +5428,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/accounts/{}/jurisdictionoverrides/{}'.format(self.base_url, accountId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5449,7 +5451,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/accounts/{}/jurisdictionoverrides/{}'.format(self.base_url, accountId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5478,7 +5480,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/accounts/{}/jurisdictionoverrides'.format(self.base_url, accountId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5506,7 +5508,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/jurisdictionoverrides'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5526,7 +5528,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.put('{}/api/v2/accounts/{}/jurisdictionoverrides/{}'.format(self.base_url, accountId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5551,7 +5553,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/locations/{}/parameters'.format(self.base_url, companyId, locationId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5570,7 +5572,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/locations'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5589,7 +5591,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/companies/{}/locations/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5612,7 +5614,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/companies/{}/locations/{}/parameters/{}'.format(self.base_url, companyId, locationId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5639,7 +5641,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/locations/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5662,7 +5664,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/locations/{}/parameters/{}'.format(self.base_url, companyId, locationId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5690,7 +5692,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/locations/{}/parameters'.format(self.base_url, companyId, locationId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5722,7 +5724,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/locations'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5753,7 +5755,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/locations'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5775,7 +5777,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.put('{}/api/v2/companies/{}/locations/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5799,7 +5801,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.put('{}/api/v2/companies/{}/locations/{}/parameters/{}'.format(self.base_url, companyId, locationId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5820,7 +5822,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/locations/{}/validate'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5854,7 +5856,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/transactions/multidocument/{}/type/{}/adjust'.format(self.base_url, code, type), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5891,7 +5893,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/transactions/multidocument/{}/type/{}/audit'.format(self.base_url, code, type), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5921,7 +5923,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/transactions/multidocument/commit'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -5971,7 +5973,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/transactions/multidocument'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6007,7 +6009,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/transactions/multidocument/{}/type/{}'.format(self.base_url, code, type), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6049,7 +6051,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/transactions/multidocument/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6092,7 +6094,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/transactions/multidocument'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6147,7 +6149,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/transactions/multidocument/{}/type/{}/refund'.format(self.base_url, code, type), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6176,7 +6178,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/transactions/multidocument/verify'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6209,7 +6211,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/transactions/multidocument/{}/type/{}/void'.format(self.base_url, code, type), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6241,7 +6243,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/nexus'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6266,7 +6268,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/nexus/{}/parameters'.format(self.base_url, companyId, nexusId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6295,7 +6297,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/nexus/byaddress'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6320,7 +6322,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/companies/{}/nexus/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6343,7 +6345,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/companies/{}/nexus/{}/parameters/{}'.format(self.base_url, companyId, nexusId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6365,7 +6367,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/companies/{}/nexus/{}/parameters'.format(self.base_url, companyId, nexusId), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6390,7 +6392,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/nexus/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6418,7 +6420,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/nexus/byform/{}'.format(self.base_url, companyId, formCode), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6441,7 +6443,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/nexus/{}/parameters/{}'.format(self.base_url, companyId, nexusId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6471,7 +6473,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/nexus'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6502,7 +6504,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/nexus/byTaxTypeGroup/{}'.format(self.base_url, companyId, taxTypeGroup), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6530,7 +6532,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/nexus/{}/parameters'.format(self.base_url, companyId, nexusId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6559,7 +6561,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/nexus'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6592,7 +6594,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.put('{}/api/v2/companies/{}/nexus/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6616,7 +6618,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.put('{}/api/v2/companies/{}/nexus/{}/parameters/{}'.format(self.base_url, companyId, nexusId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6635,7 +6637,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/notices/responsibilities'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6654,7 +6656,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/notices/rootcauses'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6672,7 +6674,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/notices/responsibilities/{}'.format(self.base_url, responsibilityId), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6690,7 +6692,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/notices/rootcauses/{}'.format(self.base_url, rootCauseId), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6717,7 +6719,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.put('{}/api/v2/notifications/{}/dismiss'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6740,7 +6742,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/notifications/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6768,7 +6770,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/notifications'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6798,7 +6800,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/accounts/request'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6820,7 +6822,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/accounts/{}/entitlements/{}'.format(self.base_url, id_, offer), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6841,7 +6843,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/accounts'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6868,7 +6870,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/notifications'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6891,7 +6893,7 @@ def create_notifications(self, model): """ def create_service_types(self, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/servicetypes'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6913,7 +6915,7 @@ def create_service_types(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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/accounts/{}/subscriptions'.format(self.base_url, accountId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6934,7 +6936,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/accounts/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6959,7 +6961,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/notifications/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -6980,7 +6982,7 @@ def delete_notification(self, id_): """ def delete_service_type(self, id_): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/servicetypes/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7001,7 +7003,7 @@ def delete_service_type(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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/accounts/{}/subscriptions/{}'.format(self.base_url, accountId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7027,7 +7029,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/servicetypes/servicetypes'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7052,7 +7054,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/passwords/{}/reset'.format(self.base_url, userId), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7073,7 +7075,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.put('{}/api/v2/accounts/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7099,7 +7101,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.put('{}/api/v2/notifications/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7122,7 +7124,7 @@ def update_notification(self, id_, model): """ def update_service_type(self, id_, model): if ('X-Avalara-Client' in self.client_header): - self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.put('{}/api/v2/servicetypes/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7148,7 +7150,7 @@ def update_service_type(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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.put('{}/api/v2/accounts/{}/subscriptions/{}'.format(self.base_url, accountId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7175,7 +7177,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/reports/{}/attachment'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7198,7 +7200,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/reports/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7230,7 +7232,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/reports/exportdocumentline/initiate'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7258,7 +7260,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/reports'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7287,7 +7289,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/settings'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7313,7 +7315,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/companies/{}/settings/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7339,7 +7341,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/settings/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7371,7 +7373,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/settings'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7402,7 +7404,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/settings'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7431,7 +7433,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.put('{}/api/v2/companies/{}/settings/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7452,7 +7454,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/accounts/{}/subscriptions/{}'.format(self.base_url, accountId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7478,7 +7480,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/accounts/{}/subscriptions'.format(self.base_url, accountId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7503,7 +7505,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/subscriptions'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7526,7 +7528,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/taxcodes'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7545,7 +7547,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/companies/{}/taxcodes/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7568,7 +7570,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/taxcodes/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7597,7 +7599,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/taxcodes'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7625,7 +7627,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/taxcodes'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7651,7 +7653,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.put('{}/api/v2/companies/{}/taxcodes/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7686,7 +7688,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/pointofsaledata/build'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7726,7 +7728,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/locations/{}/pointofsaledata'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7777,7 +7779,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/taxratesbyzipcode/download/{}'.format(self.base_url, date), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7814,7 +7816,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/taxrates/byaddress'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7847,7 +7849,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/taxrates/bypostalcode'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7875,7 +7877,7 @@ def tax_rates_by_postal_code(self, include=None): """ 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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/taxrules'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7903,7 +7905,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/companies/{}/taxrules/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7931,7 +7933,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/taxrules/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7965,7 +7967,7 @@ def get_tax_rule(self, companyId, id_): """ 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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/taxrules'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -7998,7 +8000,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/taxrules'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8027,7 +8029,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.put('{}/api/v2/companies/{}/taxrules/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8062,7 +8064,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/transactions/lines/add'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8107,7 +8109,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/transactions/{}/adjust'.format(self.base_url, companyCode, transactionCode), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8144,7 +8146,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/transactions/{}/audit'.format(self.base_url, companyCode, transactionCode), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8182,7 +8184,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/transactions/{}/types/{}/audit'.format(self.base_url, companyCode, transactionCode, documentType), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8205,7 +8207,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/transactions/lock'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8249,7 +8251,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/transactions/{}/changecode'.format(self.base_url, companyCode, transactionCode), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8291,7 +8293,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/transactions/{}/commit'.format(self.base_url, companyCode, transactionCode), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8335,7 +8337,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/transactions/createoradjust'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8384,7 +8386,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/transactions/create'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8416,13 +8418,31 @@ 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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/transactions/lines/delete'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) r""" Swagger Name: AvaTaxClient + Fetches the Variance data generated for all the transactions done by Company. + + ### Security Policies + * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ProStoresOperator, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser. + * This API depends on the following active services:*Required* (all): AvaTaxPro, BasicReturns. + + :param companyCode [string] + :return VarianceResponseModel + """ + 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","22.11.0") + return requests.get('{}/api/v2/companies/{}/AllVariance'.format(self.base_url, companyCode), + auth=self.auth, headers=self.client_header, params=None, + timeout=self.timeout_limit if self.timeout_limit else 1200) + r""" + Swagger Name: AvaTaxClient + Retrieve a single transaction by code Get the current transaction identified by this company code, transaction code, and document type. @@ -8457,7 +8477,7 @@ def delete_lines(self, model, include=None): """ 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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/transactions/{}'.format(self.base_url, companyCode, transactionCode), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8486,7 +8506,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/transactions/{}/types/{}'.format(self.base_url, companyCode, transactionCode, documentType), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8517,13 +8537,32 @@ 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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/transactions/{}'.format(self.base_url, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) r""" Swagger Name: AvaTaxClient + Fetches the Variance data generated for particular Company by transaction ID + + ### Security Policies + * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ProStoresOperator, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser. + * This API depends on the following active services:*Required* (all): AvaTaxPro, BasicReturns. + + :param companyCode [string] + :param transactionId [string] + :return VarianceResponseModel + """ + 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","22.11.0") + return requests.get('{}/api/v2/companies/{}/transactions/{}/variance'.format(self.base_url, companyCode, transactionId), + auth=self.auth, headers=self.client_header, params=None, + timeout=self.timeout_limit if self.timeout_limit else 1200) + r""" + Swagger Name: AvaTaxClient + Retrieve all transactions List all transactions attached to this company. @@ -8563,7 +8602,7 @@ def get_transaction_by_id(self, id_, include=None): """ 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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/transactions'.format(self.base_url, companyCode), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8607,7 +8646,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/transactions/{}/lock'.format(self.base_url, companyCode, transactionCode), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8661,7 +8700,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/transactions/{}/refund'.format(self.base_url, companyCode, transactionCode), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8703,7 +8742,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/transactions/{}/settle'.format(self.base_url, companyCode, transactionCode), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8742,7 +8781,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/transactions/{}/uncommit'.format(self.base_url, companyCode, transactionCode), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8779,13 +8818,32 @@ 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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/transactions/{}/unvoid'.format(self.base_url, companyCode, transactionCode), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) r""" Swagger Name: AvaTaxClient + Generates the Variance report which will capture the difference between "Tax Calculated by Avalara" Vs "Actual Tax" paid at custom clearance at line / header level. + + ### Security Policies + * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ProStoresOperator, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser. + * This API depends on the following active services:*Required* (all): AvaTaxPro, BasicReturns. + + :param companyCode [string] + :param model [VarianceRequestModel] + :return VarianceResponseModel + """ + 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","22.11.0") + return requests.post('{}/api/v2/companies/{}/variance'.format(self.base_url, companyCode), + auth=self.auth, headers=self.client_header, json=model, + timeout=self.timeout_limit if self.timeout_limit else 1200) + r""" + Swagger Name: AvaTaxClient + Verify a transaction Verifies that the transaction uniquely identified by this URL matches certain expected values. @@ -8821,7 +8879,7 @@ def unvoid_transaction(self, companyCode, transactionCode, include=None): """ 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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/transactions/{}/verify'.format(self.base_url, companyCode, transactionCode), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8864,7 +8922,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/transactions/{}/void'.format(self.base_url, companyCode, transactionCode), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8885,7 +8943,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/upcs'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8905,7 +8963,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/companies/{}/upcs/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8926,7 +8984,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/upcs/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8953,7 +9011,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/upcs'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -8979,7 +9037,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/upcs'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9003,7 +9061,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.put('{}/api/v2/companies/{}/upcs/{}'.format(self.base_url, companyId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9023,7 +9081,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/companies/{}/userdefinedfields/{}'.format(self.base_url, companyId, accountId), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9043,7 +9101,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/companies/{}/userdefinedfields'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9064,7 +9122,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/companies/{}/userdefinedfields'.format(self.base_url, companyId), auth=self.auth, headers=self.client_header, params=include, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9086,7 +9144,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.put('{}/api/v2/passwords'.format(self.base_url), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9110,7 +9168,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.post('{}/api/v2/accounts/{}/users'.format(self.base_url, accountId), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9132,7 +9190,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.delete('{}/api/v2/accounts/{}/users/{}'.format(self.base_url, accountId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9155,7 +9213,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/accounts/{}/users/{}'.format(self.base_url, accountId, id_), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9186,7 +9244,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/accounts/{}/users/{}/entitlements'.format(self.base_url, accountId, id_), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9216,7 +9274,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/accounts/{}/users'.format(self.base_url, accountId), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9246,7 +9304,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/users'.format(self.base_url), auth=self.auth, headers=self.client_header, params=include, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9269,7 +9327,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.put('{}/api/v2/accounts/{}/users/{}'.format(self.base_url, accountId, id_), auth=self.auth, headers=self.client_header, json=model, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9290,7 +9348,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/utilities/subscriptions/{}'.format(self.base_url, serviceTypeId), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9310,7 +9368,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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/utilities/subscriptions'.format(self.base_url), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) @@ -9339,13 +9397,88 @@ 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","22.10.0") + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","22.11.0") return requests.get('{}/api/v2/utilities/ping'.format(self.base_url), auth=self.auth, headers=self.client_header, params=None, timeout=self.timeout_limit if self.timeout_limit else 1200) r""" Swagger Name: AvaTaxBeverageClient + Fetches a previously stored age verification response. + + The request must meet the following criteria in order to be evaluated: + * *firstName*, *lastName*, and *address* are required fields. + * One of the following sets of attributes are required for the *address*: + * *line1, city, region* + * *line1, postalCode* + * Optionally, the request may use the following parameters: + * A *DOB* (Date of Birth) field. The value should be ISO-8601 compliant (e.g. 2020-07-21). + * Beyond the required *address* fields above, a *country* field is permitted + * The valid values for this attribute are [*US, USA*] + + :param model [AgeVerifyRequest] Information about the individual whose age is being verified. + :return AgeVerifyResult + """ + def find_age_verification(self, model): + if ('X-Avalara-Client' in self.client_header): + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","") + return requests.put('{}/api/v2/ageverification/store/identity/find'.format(self.base_url), + auth=self.auth, headers=self.client_header, json=model, + timeout=self.timeout_limit if self.timeout_limit else 1200) + r""" + Swagger Name: AvaTaxBeverageClient + + Stores an age verification response for the account. + + The request field must meet the following criteria in order to be evaluated: + * *firstName*, *lastName*, and *address* are required fields. + * One of the following sets of attributes are required for the *address*: + * *line1, city, region* + * *line1, postalCode* + * Optionally, request field may use the following parameters: + * A *DOB* (Date of Birth) field. The value should be ISO-8601 compliant (e.g. 2020-07-21). + * Beyond the required *address* fields above, a *country* field is permitted + * The valid values for this attribute are [*US, USA*] + The response field must meet the following criteria in order to be evaluated: + * *isOfAge*, *failureCodes* are required fields + + :param model [StoreAgeVerifyRequest] Information about the individual whose age has been verified and the corresponding age verification response. + :return + """ + def store_age_verification(self, model): + if ('X-Avalara-Client' in self.client_header): + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","") + return requests.put('{}/api/v2/ageverification/store/identity'.format(self.base_url), + auth=self.auth, headers=self.client_header, json=model, + timeout=self.timeout_limit if self.timeout_limit else 1200) + r""" + Swagger Name: AvaTaxBeverageClient + + Conditionally performs an age verification check. If a record matching the request is found in the internal store, the associated response is returned. Otherwise, an age verification check is performed and the response is stored if the individual is determined to be of age. + + The request must meet the following criteria in order to be evaluated: + * *firstName*, *lastName*, and *address* are required fields. + * One of the following sets of attributes are required for the *address*: + * *line1, city, region* + * *line1, postalCode* + * Optionally, the request may use the following parameters: + * A *DOB* (Date of Birth) field. The value should be ISO-8601 compliant (e.g. 2020-07-21). + * Beyond the required *address* fields above, a *country* field is permitted + * The valid values for this attribute are [*US, USA*] + + :param simulatedFailureCode [string] (Optional) The failure code included in the simulated response of the endpoint. Note that this endpoint is only available in Sandbox for testing purposes. + :param model [AgeVerifyRequest] Information about the individual whose age is being verified. + :return StoreIfVerifiedResult + """ + def store_if_verified(self, model, include=None): + if ('X-Avalara-Client' in self.client_header): + self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","") + return requests.put('{}/api/v2/ageverification/store/identity/storeIfVerified'.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: AvaTaxBeverageClient + Determines whether an individual meets or exceeds the minimum legal drinking age. The request must meet the following criteria in order to be evaluated: