Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Avalara/SDK/api/A1099/V2/companies_w9_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
@author Jonathan Wenger <jonathan.wenger@avalara.com>
@copyright 2022 Avalara, Inc.
@license https://www.apache.org/licenses/LICENSE-2.0
@version 25.10.0
@version 25.10.1
@link https://github.com/avadev/AvaTax-REST-V3-Python-SDK
"""

Expand Down Expand Up @@ -60,7 +60,7 @@ def __verify_api_client(self,api_client):

def __set_configuration(self, api_client):
self.__verify_api_client(api_client)
api_client.set_sdk_version("25.10.0")
api_client.set_sdk_version("25.10.1")
self.api_client = api_client

self.create_company_endpoint = _Endpoint(
Expand Down
4 changes: 2 additions & 2 deletions Avalara/SDK/api/A1099/V2/forms1099_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
@author Jonathan Wenger <jonathan.wenger@avalara.com>
@copyright 2022 Avalara, Inc.
@license https://www.apache.org/licenses/LICENSE-2.0
@version 25.10.0
@version 25.10.1
@link https://github.com/avadev/AvaTax-REST-V3-Python-SDK
"""

Expand Down Expand Up @@ -61,7 +61,7 @@ def __verify_api_client(self,api_client):

def __set_configuration(self, api_client):
self.__verify_api_client(api_client)
api_client.set_sdk_version("25.10.0")
api_client.set_sdk_version("25.10.1")
self.api_client = api_client

self.bulk_upsert1099_forms_endpoint = _Endpoint(
Expand Down
147 changes: 145 additions & 2 deletions Avalara/SDK/api/A1099/V2/forms_w9_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
@author Jonathan Wenger <jonathan.wenger@avalara.com>
@copyright 2022 Avalara, Inc.
@license https://www.apache.org/licenses/LICENSE-2.0
@version 25.10.0
@version 25.10.1
@link https://github.com/avadev/AvaTax-REST-V3-Python-SDK
"""

Expand Down Expand Up @@ -61,7 +61,7 @@ def __verify_api_client(self,api_client):

def __set_configuration(self, api_client):
self.__verify_api_client(api_client)
api_client.set_sdk_version("25.10.0")
api_client.set_sdk_version("25.10.1")
self.api_client = api_client

self.create_and_send_w9_form_email_endpoint = _Endpoint(
Expand Down Expand Up @@ -348,6 +348,77 @@ def __set_configuration(self, api_client):
required_scopes='',
microservice='A1099'
)
self.get_w9_form_pdf_endpoint = _Endpoint(
settings={
'response_type': None,
'auth': [
'bearer'
],
'endpoint_path': '/w9/forms/{id}/pdf',
'operation_id': 'get_w9_form_pdf',
'http_method': 'GET',
'servers': None,
},
params_map={
'all': [
'id',
'avalara_version',
'x_correlation_id',
'x_avalara_client',
],
'required': [
'id',
'avalara_version',
],
'nullable': [
],
'enum': [
],
'validation': [
]
},
root_map={
'validations': {
},
'allowed_values': {
},
'openapi_types': {
'id':
(str,),
'avalara_version':
(str,),
'x_correlation_id':
(str,),
'x_avalara_client':
(str,),
},
'attribute_map': {
'id': 'id',
'avalara_version': 'avalara-version',
'x_correlation_id': 'X-Correlation-Id',
'x_avalara_client': 'X-Avalara-Client',
},
'location_map': {
'id': 'path',
'avalara_version': 'header',
'x_correlation_id': 'header',
'x_avalara_client': 'header',
},
'collection_format_map': {
}
},
headers_map={
'avalara-version': '2.0',
'accept': [
'application/pdf',
'application/json'
],
'content_type': [],
},
api_client=api_client,
required_scopes='',
microservice='A1099'
)
self.list_w9_forms_endpoint = _Endpoint(
settings={
'response_type': (PaginatedQueryResultModelW9FormBaseResponse,),
Expand Down Expand Up @@ -952,6 +1023,78 @@ def get_w9_form(
kwargs['avalara_version'] = avalara_version
return self.get_w9_form_endpoint.call_with_http_info(**kwargs)

@avalara_retry_oauth(max_retry_attempts=2)
def get_w9_form_pdf(
self,
id,
avalara_version,
**kwargs
):
"""Download the PDF for a W9/W4/W8 form. # noqa: E501

Returns the PDF file for a W9/W4/W8 form. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True

>>> thread = api.get_w9_form_pdf(id, avalara_version, async_req=True)
>>> result = thread.get()

Args:
id (str): Id of the form
avalara_version (str): API version

Keyword Args:
x_correlation_id (str): Unique correlation Id in a GUID format. [optional]
x_avalara_client (str): Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) .. [optional]
_return_http_data_only (bool): response data without head status
code and headers. Default is True.
_preload_content (bool): if False, the urllib3.HTTPResponse object
will be returned without reading/decoding response data.
Default is True.
_request_timeout (int/float/tuple): timeout setting for this request. If
one number provided, it will be total request timeout. It can also
be a pair (tuple) of (connection, read) timeouts.
Default is None.
_check_input_type (bool): specifies if type checking
should be done one the data sent to the server.
Default is True.
_check_return_type (bool): specifies if type checking
should be done one the data received from the server.
Default is True.
_host_index (int/None): specifies the index of the server
that we want to use.
Default is read from the configuration.
async_req (bool): execute request asynchronously

Returns:
None
If the method is called asynchronously, returns the request
thread.
"""
self.__verify_api_client(self.api_client)
kwargs['async_req'] = kwargs.get(
'async_req', False
)
kwargs['_return_http_data_only'] = kwargs.get(
'_return_http_data_only', True
)
kwargs['_preload_content'] = kwargs.get(
'_preload_content', True
)
kwargs['_request_timeout'] = kwargs.get(
'_request_timeout', None
)
kwargs['_check_input_type'] = kwargs.get(
'_check_input_type', True
)
kwargs['_check_return_type'] = kwargs.get(
'_check_return_type', True
)
kwargs['_host_index'] = kwargs.get('_host_index')
kwargs['id'] = id
kwargs['avalara_version'] = avalara_version
return self.get_w9_form_pdf_endpoint.call_with_http_info(**kwargs)

@avalara_retry_oauth(max_retry_attempts=2)
def list_w9_forms(
self,
Expand Down
4 changes: 2 additions & 2 deletions Avalara/SDK/api/A1099/V2/issuers1099_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
@author Jonathan Wenger <jonathan.wenger@avalara.com>
@copyright 2022 Avalara, Inc.
@license https://www.apache.org/licenses/LICENSE-2.0
@version 25.10.0
@version 25.10.1
@link https://github.com/avadev/AvaTax-REST-V3-Python-SDK
"""

Expand Down Expand Up @@ -60,7 +60,7 @@ def __verify_api_client(self,api_client):

def __set_configuration(self, api_client):
self.__verify_api_client(api_client)
api_client.set_sdk_version("25.10.0")
api_client.set_sdk_version("25.10.1")
self.api_client = api_client

self.create_issuer_endpoint = _Endpoint(
Expand Down
4 changes: 2 additions & 2 deletions Avalara/SDK/api/A1099/V2/jobs_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
@author Jonathan Wenger <jonathan.wenger@avalara.com>
@copyright 2022 Avalara, Inc.
@license https://www.apache.org/licenses/LICENSE-2.0
@version 25.10.0
@version 25.10.1
@link https://github.com/avadev/AvaTax-REST-V3-Python-SDK
"""

Expand Down Expand Up @@ -58,7 +58,7 @@ def __verify_api_client(self,api_client):

def __set_configuration(self, api_client):
self.__verify_api_client(api_client)
api_client.set_sdk_version("25.10.0")
api_client.set_sdk_version("25.10.1")
self.api_client = api_client

self.get_job_endpoint = _Endpoint(
Expand Down
4 changes: 2 additions & 2 deletions Avalara/SDK/api/EInvoicing/V1/data_input_fields_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
@author Jonathan Wenger <jonathan.wenger@avalara.com>
@copyright 2022 Avalara, Inc.
@license https://www.apache.org/licenses/LICENSE-2.0
@version 25.10.0
@version 25.10.1
@link https://github.com/avadev/AvaTax-REST-V3-Python-SDK
"""

Expand Down Expand Up @@ -58,7 +58,7 @@ def __verify_api_client(self,api_client):

def __set_configuration(self, api_client):
self.__verify_api_client(api_client)
api_client.set_sdk_version("25.10.0")
api_client.set_sdk_version("25.10.1")
self.api_client = api_client

self.get_data_input_fields_endpoint = _Endpoint(
Expand Down
4 changes: 2 additions & 2 deletions Avalara/SDK/api/EInvoicing/V1/documents_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
@author Jonathan Wenger <jonathan.wenger@avalara.com>
@copyright 2022 Avalara, Inc.
@license https://www.apache.org/licenses/LICENSE-2.0
@version 25.10.0
@version 25.10.1
@link https://github.com/avadev/AvaTax-REST-V3-Python-SDK
"""

Expand Down Expand Up @@ -64,7 +64,7 @@ def __verify_api_client(self,api_client):

def __set_configuration(self, api_client):
self.__verify_api_client(api_client)
api_client.set_sdk_version("25.10.0")
api_client.set_sdk_version("25.10.1")
self.api_client = api_client

self.download_document_endpoint = _Endpoint(
Expand Down
4 changes: 2 additions & 2 deletions Avalara/SDK/api/EInvoicing/V1/interop_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
@author Jonathan Wenger <jonathan.wenger@avalara.com>
@copyright 2022 Avalara, Inc.
@license https://www.apache.org/licenses/LICENSE-2.0
@version 25.10.0
@version 25.10.1
@link https://github.com/avadev/AvaTax-REST-V3-Python-SDK
"""

Expand Down Expand Up @@ -58,7 +58,7 @@ def __verify_api_client(self,api_client):

def __set_configuration(self, api_client):
self.__verify_api_client(api_client)
api_client.set_sdk_version("25.10.0")
api_client.set_sdk_version("25.10.1")
self.api_client = api_client

self.submit_interop_document_endpoint = _Endpoint(
Expand Down
4 changes: 2 additions & 2 deletions Avalara/SDK/api/EInvoicing/V1/mandates_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
@author Jonathan Wenger <jonathan.wenger@avalara.com>
@copyright 2022 Avalara, Inc.
@license https://www.apache.org/licenses/LICENSE-2.0
@version 25.10.0
@version 25.10.1
@link https://github.com/avadev/AvaTax-REST-V3-Python-SDK
"""

Expand Down Expand Up @@ -59,7 +59,7 @@ def __verify_api_client(self,api_client):

def __set_configuration(self, api_client):
self.__verify_api_client(api_client)
api_client.set_sdk_version("25.10.0")
api_client.set_sdk_version("25.10.1")
self.api_client = api_client

self.get_mandate_data_input_fields_endpoint = _Endpoint(
Expand Down
4 changes: 2 additions & 2 deletions Avalara/SDK/api/EInvoicing/V1/subscriptions_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
@author Jonathan Wenger <jonathan.wenger@avalara.com>
@copyright 2022 Avalara, Inc.
@license https://www.apache.org/licenses/LICENSE-2.0
@version 25.10.0
@version 25.10.1
@link https://github.com/avadev/AvaTax-REST-V3-Python-SDK
"""

Expand Down Expand Up @@ -61,7 +61,7 @@ def __verify_api_client(self,api_client):

def __set_configuration(self, api_client):
self.__verify_api_client(api_client)
api_client.set_sdk_version("25.10.0")
api_client.set_sdk_version("25.10.1")
self.api_client = api_client

self.create_webhook_subscription_endpoint = _Endpoint(
Expand Down
4 changes: 2 additions & 2 deletions Avalara/SDK/api/EInvoicing/V1/tax_identifiers_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
@author Jonathan Wenger <jonathan.wenger@avalara.com>
@copyright 2022 Avalara, Inc.
@license https://www.apache.org/licenses/LICENSE-2.0
@version 25.10.0
@version 25.10.1
@link https://github.com/avadev/AvaTax-REST-V3-Python-SDK
"""

Expand Down Expand Up @@ -60,7 +60,7 @@ def __verify_api_client(self,api_client):

def __set_configuration(self, api_client):
self.__verify_api_client(api_client)
api_client.set_sdk_version("25.10.0")
api_client.set_sdk_version("25.10.1")
self.api_client = api_client

self.tax_identifier_schema_by_country_endpoint = _Endpoint(
Expand Down
4 changes: 2 additions & 2 deletions Avalara/SDK/api/EInvoicing/V1/trading_partners_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
@author Jonathan Wenger <jonathan.wenger@avalara.com>
@copyright 2022 Avalara, Inc.
@license https://www.apache.org/licenses/LICENSE-2.0
@version 25.10.0
@version 25.10.1
@link https://github.com/avadev/AvaTax-REST-V3-Python-SDK
"""

Expand Down Expand Up @@ -66,7 +66,7 @@ def __verify_api_client(self,api_client):

def __set_configuration(self, api_client):
self.__verify_api_client(api_client)
api_client.set_sdk_version("25.10.0")
api_client.set_sdk_version("25.10.1")
self.api_client = api_client

self.batch_search_participants_endpoint = _Endpoint(
Expand Down
2 changes: 1 addition & 1 deletion Avalara/SDK/models/A1099/V2/company_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
@author Jonathan Wenger <jonathan.wenger@avalara.com>
@copyright 2022 Avalara, Inc.
@license https://www.apache.org/licenses/LICENSE-2.0
@version 25.10.0
@version 25.10.1
@link https://github.com/avadev/AvaTax-REST-V3-Python-SDK
"""

Expand Down
2 changes: 1 addition & 1 deletion Avalara/SDK/models/A1099/V2/company_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
@author Jonathan Wenger <jonathan.wenger@avalara.com>
@copyright 2022 Avalara, Inc.
@license https://www.apache.org/licenses/LICENSE-2.0
@version 25.10.0
@version 25.10.1
@link https://github.com/avadev/AvaTax-REST-V3-Python-SDK
"""

Expand Down
2 changes: 1 addition & 1 deletion Avalara/SDK/models/A1099/V2/company_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
@author Jonathan Wenger <jonathan.wenger@avalara.com>
@copyright 2022 Avalara, Inc.
@license https://www.apache.org/licenses/LICENSE-2.0
@version 25.10.0
@version 25.10.1
@link https://github.com/avadev/AvaTax-REST-V3-Python-SDK
"""

Expand Down
Loading