Skip to content

Commit b1de3e4

Browse files
authored
Merge pull request #63 from avadev/19.6.0
Update for 19.6.0
2 parents 5371314 + a4b18cd commit b1de3e4

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
setup(
1111
name='Avalara',
12-
version='19.5.0',
12+
version='19.6.0',
1313
url='https://github.com/avadev/AvaTax-REST-V2-Python-SDK',
1414
package_dir={'': 'src'},
1515
py_modules=[

src/client_methods.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2921,6 +2921,27 @@ def update_distance_threshold(self, companyId, id_, model):
29212921
auth=self.auth, headers=self.client_header, json=model,
29222922
timeout=self.timeout_limit if self.timeout_limit else 10)
29232923

2924+
r"""
2925+
Checks to see if the company has a valid POA for a tax form code
2926+
2927+
This API is available by invitation only.
2928+
This API fetches valid POA's for a company by TaxFormCode or by country/region
2929+
### Security Policies
2930+
* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, Compliance Operator, Compliance Root User, Compliance Temp User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, ProStoresOperator, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, SystemOperator, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
2931+
* This API depends on the following active services<br />*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.
2932+
* This API is available by invitation only.
2933+
2934+
:param companyId [int] The company id that we are checking about
2935+
:param taxFormCode [string] The tax form code that we are checking
2936+
:param country [string] The country we are fetching POAs for
2937+
:param region [string] The region we are fetching POAs for
2938+
:return PowerOfAttorneyCheckModel
2939+
"""
2940+
def active_power_of_attorney(self, companyId, include=None):
2941+
return requests.get('{}/api/v2/companies/{}/filingcalendars/powerofattorney'.format(self.base_url, companyId),
2942+
auth=self.auth, headers=self.client_header, params=include,
2943+
timeout=self.timeout_limit if self.timeout_limit else 10)
2944+
29242945
r"""
29252946
Retrieve a list of filings for the specified company in the year and month of a given filing period.
29262947

0 commit comments

Comments
 (0)