Skip to content

Commit 641a18a

Browse files
committed
19.12.0 update
1 parent 583e6ce commit 641a18a

File tree

2 files changed

+18
-33
lines changed

2 files changed

+18
-33
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.12.0',
12+
version='19.10.0',
1313
url='https://github.com/avadev/AvaTax-REST-V2-Python-SDK',
1414
package_dir={'': 'src'},
1515
packages=['avalara'],

src/client_methods.py

Lines changed: 17 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ def resolve_address_post(self, model):
231231
### Security Policies
232232
* This API requires the user role Compliance Root User.
233233
* This API depends on the following active services<br />*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.<br />*Firm Managed* (for accounts managed by a firm): ARA, ARAManaged.
234+
* This API is available by invitation only.<br />*Exempt security roles*: ComplianceRootUser, ComplianceAdmin, ComplianceUser, TechnicalSupportAdmin, TechnicalSupportUser.
234235
235236
:param model [AvaFileFormModel] The AvaFileForm you wish to create.
236237
:return AvaFileFormModel
@@ -247,6 +248,7 @@ def create_ava_file_forms(self, model):
247248
### Security Policies
248249
* This API requires one of the following user roles: Compliance Root User, ComplianceUser, FirmAdmin.
249250
* This API depends on the following active services<br />*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.<br />*Firm Managed* (for accounts managed by a firm): ARA, ARAManaged.
251+
* This API is available by invitation only.<br />*Exempt security roles*: ComplianceRootUser, ComplianceAdmin, ComplianceUser, TechnicalSupportAdmin, TechnicalSupportUser.
250252
251253
:param id_ [int] The ID of the AvaFileForm you wish to delete.
252254
:return ErrorDetail
@@ -262,6 +264,7 @@ def delete_ava_file_form(self, id_):
262264
Get the AvaFileForm object identified by this URL.
263265
### Security Policies
264266
* This API requires one of the following user roles: AccountAdmin, AccountOperator, CompanyAdmin, CompanyUser, Compliance Root User, Compliance Temp User, ComplianceAdmin, ComplianceUser, FirmAdmin, FirmUser, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin.
267+
* This API is available by invitation only.<br />*Exempt security roles*: ComplianceRootUser, ComplianceAdmin, ComplianceUser, TechnicalSupportAdmin, TechnicalSupportUser.
265268
* This API depends on the following active services<br />*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.<br />*Firm Managed* (for accounts managed by a firm): ARA, ARAManaged.
266269
267270
:param id_ [int] The primary key of this AvaFileForm
@@ -280,6 +283,7 @@ def get_ava_file_form(self, id_):
280283
### Security Policies
281284
* This API requires one of the following user roles: AccountAdmin, AccountOperator, CompanyAdmin, CompanyUser, Compliance Root User, Compliance Temp User, ComplianceAdmin, ComplianceUser, FirmAdmin, FirmUser, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin.
282285
* This API depends on the following active services<br />*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.<br />*Firm Managed* (for accounts managed by a firm): ARA, ARAManaged.
286+
* This API is available by invitation only.<br />*Exempt security roles*: ComplianceRootUser, ComplianceAdmin, ComplianceUser, TechnicalSupportAdmin, TechnicalSupportUser.
283287
284288
:param filter [string] A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).<br />*Not filterable:* outletTypeId
285289
:param top [int] If nonzero, return no more than this number of results. Used with `$skip` to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records.
@@ -300,6 +304,7 @@ def query_ava_file_forms(self, include=None):
300304
### Security Policies
301305
* This API requires the user role Compliance Root User.
302306
* This API depends on the following active services<br />*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.<br />*Firm Managed* (for accounts managed by a firm): ARA, ARAManaged.
307+
* This API is available by invitation only.<br />*Exempt security roles*: ComplianceRootUser, ComplianceAdmin, ComplianceUser, TechnicalSupportAdmin, TechnicalSupportUser.
303308
304309
:param id_ [int] The ID of the AvaFileForm you wish to update
305310
:param model [AvaFileFormModel] The AvaFileForm model you wish to update.
@@ -1136,6 +1141,7 @@ def delete_company(self, id_):
11361141
### Security Policies
11371142
* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, ProStoresOperator, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
11381143
* This API depends on the following active services<br />*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.<br />*Firm Managed* (for accounts managed by a firm): ARA, ARAManaged.
1144+
* This API is available by invitation only.<br />*Exempt security roles*: ComplianceRootUser, ComplianceAdmin, ComplianceUser, TechnicalSupportAdmin, TechnicalSupportUser.
11391145
11401146
:param companyId [int] The unique identifier of the company
11411147
:return FundingConfigurationModel
@@ -1155,6 +1161,7 @@ def funding_configuration_by_company(self, companyId):
11551161
### Security Policies
11561162
* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, ProStoresOperator, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
11571163
* This API depends on the following active services<br />*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.<br />*Firm Managed* (for accounts managed by a firm): ARA, ARAManaged.
1164+
* This API is available by invitation only.<br />*Exempt security roles*: ComplianceRootUser, ComplianceAdmin, ComplianceUser, TechnicalSupportAdmin, TechnicalSupportUser.
11581165
11591166
:param companyId [int] The unique identifier of the company
11601167
:param currency [string] The currency of the funding. USD and CAD are the only valid currencies
@@ -1526,7 +1533,7 @@ def create_customers(self, companyId, model):
15261533
15271534
:param companyId [int] The unique ID number of the company that recorded this customer
15281535
:param customerCode [string] The unique code representing this customer
1529-
:return CustomerModel
1536+
:return ErrorDetail
15301537
"""
15311538
def delete_customer(self, companyId, customerCode):
15321539
return requests.delete('{}/api/v2/companies/{}/customers/{}'.format(self.base_url, companyId, customerCode),
@@ -2024,13 +2031,12 @@ def list_ava_file_forms(self, include=None):
20242031
r"""
20252032
List certificate attributes used by a company
20262033
2027-
List the certificate attributes defined by a company either specified by the user or the user's default company.
2034+
List the certificate attributes defined by a company.
20282035
A certificate may have multiple attributes that control its behavior. You may apply or remove attributes to a
20292036
certificate at any time.
20302037
If you see the 'CertCaptureNotConfiguredError', please use CheckProvision and RequestProvision endpoints to
20312038
check and provision account.
20322039
2033-
:param companyid [int] Id of the company the user wish to fetch the certificates' attributes from. If not specified the API will use user's default company.
20342040
:param filter [string] A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
20352041
:param top [int] If nonzero, return no more than this number of results. Used with `$skip` to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records.
20362042
:param skip [int] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
@@ -3159,30 +3165,6 @@ def update_distance_threshold(self, companyId, id_, model):
31593165
auth=self.auth, headers=self.client_header, json=model,
31603166
timeout=self.timeout_limit if self.timeout_limit else 10)
31613167

3162-
r"""
3163-
Retrieve a list of filed returns for the specified company in the year and month of a given filing period.
3164-
3165-
### Security Policies
3166-
* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, ProStoresOperator, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
3167-
* This API is available by invitation only.<br />*Exempt security roles*: ComplianceRootUser, ComplianceAdmin, ComplianceUser, TechnicalSupportAdmin, TechnicalSupportUser, CompanyUser, AccountUser, CompanyAdmin, AccountAdmin.
3168-
* This API depends on the following active services<br />*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.<br />*Firm Managed* (for accounts managed by a firm): ARA, ARAManaged.
3169-
3170-
:param companyId [int] The ID of the company that owns these batches
3171-
:param endPeriodMonth [int] The month of the period you are trying to retrieve
3172-
:param endPeriodYear [int] The year of the period you are trying to retrieve
3173-
:param frequency [FilingFrequencyId] The frequency of the return you are trying to retrieve (See FilingFrequencyId::* for a list of allowable values)
3174-
:param status [FilingStatusId] The status of the return(s) you are trying to retrieve (See FilingStatusId::* for a list of allowable values)
3175-
:param country [string] The country of the return(s) you are trying to retrieve
3176-
:param region [string] The region of the return(s) you are trying to retrieve
3177-
:param filingCalendarId [int] The filing calendar id of the return you are trying to retrieve
3178-
:param taxformCode [string] The unique tax form code of the form.
3179-
:return FetchResult
3180-
"""
3181-
def get_filed_returns(self, companyId, include=None):
3182-
return requests.get('{}/api/v2/companies/{}/filings/returns/filed'.format(self.base_url, companyId),
3183-
auth=self.auth, headers=self.client_header, params=include,
3184-
timeout=self.timeout_limit if self.timeout_limit else 10)
3185-
31863168
r"""
31873169
Approves linkage to a firm for a client account
31883170
@@ -3433,6 +3415,7 @@ def tax_rates_by_postal_code(self, include=None):
34333415
### Security Policies
34343416
* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, ProStoresOperator, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
34353417
* This API depends on the following active services<br />*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.<br />*Firm Managed* (for accounts managed by a firm): ARA, ARAManaged.
3418+
* This API is available by invitation only.<br />*Exempt security roles*: ComplianceRootUser, ComplianceAdmin, ComplianceUser, TechnicalSupportAdmin, TechnicalSupportUser.
34363419
34373420
:param id_ [int] The unique ID number of this funding request
34383421
:return FundingStatusModel
@@ -3458,6 +3441,7 @@ def activate_funding_request(self, id_):
34583441
### Security Policies
34593442
* This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
34603443
* This API depends on the following active services<br />*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.<br />*Firm Managed* (for accounts managed by a firm): ARA, ARAManaged.
3444+
* This API is available by invitation only.<br />*Exempt security roles*: ComplianceRootUser, ComplianceAdmin, ComplianceUser, TechnicalSupportAdmin, TechnicalSupportUser.
34613445
34623446
:param id_ [int] The unique ID number of this funding request
34633447
:return FundingStatusModel
@@ -4714,7 +4698,7 @@ def list_notifications(self, include=None):
47144698
r"""
47154699
Request a new Avalara account
47164700
4717-
This API is for use by partner provisioning services customers only.
4701+
This API is for use by partner onboarding services customers only.
47184702
Avalara invites select partners to refer new customers to the AvaTax service using the onboarding features
47194703
of AvaTax. These partners can create accounts for new customers using this API.
47204704
Calling this API creates an account with the specified product subscriptions, but does not configure billing.
@@ -4728,7 +4712,7 @@ def list_notifications(self, include=None):
47284712
### Security Policies
47294713
* This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
47304714
* This API is available by invitation only.
4731-
* This API is available by invitation only. To request access to this feature, please speak to a business development manager and request access to [Provisioning:RequestNewAccount].
4715+
* This API is available by invitation only. To request access to this feature, please speak to a business development manager and request access to [Onboarding:RequestNewAccount].
47324716
47334717
:param model [NewAccountRequestModel] Information about the account you wish to create and the selected product offerings.
47344718
:return NewAccountModel
@@ -4741,12 +4725,12 @@ def request_new_account(self, model):
47414725
r"""
47424726
Request a new entitilement to an existing customer
47434727
4744-
This API is for use by partner provisioning services customers only. This will allow the partners to allow
4728+
This API is for use by partner onboarding services customers only. This will allow the partners to allow
47454729
the add new entitlement to an existing customer
47464730
### Security Policies
47474731
* This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
47484732
* This API is available by invitation only.
4749-
* This API is available by invitation only. To request access to this feature, please speak to a business development manager and request access to [Provisioning:RequestNewAccount].
4733+
* This API is available by invitation only. To request access to this feature, please speak to a business development manager and request access to [Onboarding:RequestNewAccount].
47504734
47514735
:param id_ [int] The avatax account id of the customer
47524736
:param offer [string] The offer to be added to an already existing customer
@@ -5823,6 +5807,7 @@ def audit_transaction_with_type(self, companyCode, transactionCode, documentType
58235807
### Security Policies
58245808
* This API requires the user role Compliance Root User.
58255809
* This API depends on the following active services<br />*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.<br />*Firm Managed* (for accounts managed by a firm): ARA, ARAManaged.
5810+
* This API is available by invitation only.<br />*Exempt security roles*: ComplianceRootUser, ComplianceAdmin, ComplianceUser, TechnicalSupportAdmin, TechnicalSupportUser.
58265811
58275812
:param model [BulkLockTransactionModel] bulk lock request
58285813
:return BulkLockTransactionResult
@@ -6720,7 +6705,7 @@ def update_user(self, id_, accountId, model):
67206705
or subscription to provide useful information to the current user as to whether they are entitled to use
67216706
specific features of AvaTax.
67226707
6723-
:param serviceTypeId [string] The service to check
6708+
:param serviceTypeId [ServiceTypeId] The service to check (See ServiceTypeId::* for a list of allowable values)
67246709
:return SubscriptionModel
67256710
"""
67266711
def get_my_subscription(self, serviceTypeId):

0 commit comments

Comments
 (0)