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
395 changes: 395 additions & 0 deletions Avalara/SDK/api/EInvoicing/V1/code_lists_api.py

Large diffs are not rendered by default.

18 changes: 9 additions & 9 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.11.2
@version 26.4.0
@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.11.2")
api_client.set_sdk_version("26.4.0")
self.api_client = api_client

self.get_data_input_fields_endpoint = _Endpoint(
Expand Down Expand Up @@ -135,7 +135,7 @@ def __set_configuration(self, api_client):
}
},
headers_map={
'avalara-version': '1.4',
'avalara-version': '1.6',
'accept': [
'application/json'
],
Expand All @@ -154,23 +154,23 @@ def get_data_input_fields(
):
"""Returns the optionality of document fields for different country mandates # noqa: E501

This endpoint provides a list of required, conditional, and optional fields for each country mandate. You can use the <code>mandates</code> endpoint to retrieve all available country mandates. You can use the $filter query parameter to retrieve fields for a particular mandate # noqa: E501
This endpoint returns a list of required, conditional, and optional fields for each country mandate. Use the mandates endpoint to retrieve all available country mandates. Use the $filter query parameter to retrieve fields for a specific mandate. # 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_data_input_fields(avalara_version, async_req=True)
>>> result = thread.get()

Args:
avalara_version (str): The HTTP Header meant to specify the version of the API intended to be used
avalara_version (str): Header that specifies the API version to use (for example \"1.6\").

Keyword Args:
x_avalara_client (str): You can freely use any text you wish for this value. This feature can help you diagnose and solve problems with your software. The header can be treated like a fingerprint.. [optional]
filter (str): Filter by field name and value. This filter only supports <code>eq</code> and <code>contains</code>. Refer to [https://developer.avalara.com/avatax/filtering-in-rest/](https://developer.avalara.com/avatax/filtering-in-rest/) for more information on filtering.. [optional]
x_avalara_client (str): Optional header for a client identifier string used for diagnostics (for example \"Fingerprint\").. [optional]
filter (str): Filter by field name and value. This filter supports only eq and contains. For more information, refer to the Avalara filtering guide.. [optional]
top (int): The number of items to include in the result.. [optional]
skip (int): The number of items to skip in the result.. [optional]
count (bool): When set to true, the count of the collection is also returned in the response body. [optional]
count_only (bool): When set to true, only the count of the collection is returned. [optional]
count (bool): When set to true, the response body also includes the count of items in the collection.. [optional]
count_only (bool): When set to true, the response returns only the count of items in the collection.. [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
Expand Down
66 changes: 36 additions & 30 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.11.2
@version 26.4.0
@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.11.2")
api_client.set_sdk_version("26.4.0")
self.api_client = api_client

self.download_document_endpoint = _Endpoint(
Expand Down Expand Up @@ -128,7 +128,7 @@ def __set_configuration(self, api_client):
}
},
headers_map={
'avalara-version': '1.4',
'avalara-version': '1.6',
'accept': [
'application/pdf',
'application/xml',
Expand Down Expand Up @@ -194,7 +194,7 @@ def __set_configuration(self, api_client):
}
},
headers_map={
'avalara-version': '1.4',
'avalara-version': '1.6',
'accept': [
'application/json'
],
Expand Down Expand Up @@ -227,6 +227,7 @@ def __set_configuration(self, api_client):
'count',
'count_only',
'filter',
'include',
'top',
'skip',
],
Expand Down Expand Up @@ -262,6 +263,8 @@ def __set_configuration(self, api_client):
(str,),
'filter':
(str,),
'include':
(str,),
'top':
(int,),
'skip':
Expand All @@ -276,6 +279,7 @@ def __set_configuration(self, api_client):
'count': '$count',
'count_only': '$countOnly',
'filter': '$filter',
'include': '$include',
'top': '$top',
'skip': '$skip',
},
Expand All @@ -288,14 +292,15 @@ def __set_configuration(self, api_client):
'count': 'query',
'count_only': 'query',
'filter': 'query',
'include': 'query',
'top': 'query',
'skip': 'query',
},
'collection_format_map': {
}
},
headers_map={
'avalara-version': '1.4',
'avalara-version': '1.6',
'accept': [
'application/json'
],
Expand Down Expand Up @@ -360,7 +365,7 @@ def __set_configuration(self, api_client):
}
},
headers_map={
'avalara-version': '1.4',
'avalara-version': '1.6',
'accept': [
'application/json'
],
Expand Down Expand Up @@ -431,7 +436,7 @@ def __set_configuration(self, api_client):
}
},
headers_map={
'avalara-version': '1.4',
'avalara-version': '1.6',
'accept': [
'application/json',
'text/xml'
Expand All @@ -455,20 +460,20 @@ def download_document(
):
"""Returns a copy of the document # noqa: E501

When the document is available, use this endpoint to download it as text, XML, or PDF. The output format needs to be specified in the Accept header, and it will vary depending on the mandate. If the file has not yet been created, then status code 404 (not found) is returned. # noqa: E501
Downloads the document when it is available. Specify the output format in the Accept header. Returns 404 if the file has not been created. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True

>>> thread = api.download_document(avalara_version, accept, document_id, async_req=True)
>>> result = thread.get()

Args:
avalara_version (str): The HTTP Header meant to specify the version of the API intended to be used
accept (str): This header indicates the MIME type of the document
document_id (str): The unique ID for this document that was returned in the POST /einvoicing/document response body
avalara_version (str): Header that specifies the API version to use (for example \"1.6\").
accept (str): Header that specifies the MIME type of the returned document.
document_id (str): The unique documentId returned in the POST /documents response body.

Keyword Args:
x_avalara_client (str): You can freely use any text you wish for this value. This feature can help you diagnose and solve problems with your software. The header can be treated like a fingerprint.. [optional]
x_avalara_client (str): Optional header for a client identifier string used for diagnostics (for example \"Fingerprint\").. [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
Expand Down Expand Up @@ -528,19 +533,19 @@ def fetch_documents(
):
"""Fetch the inbound document from a tax authority # noqa: E501

This API allows you to retrieve an inbound document. Pass key-value pairs as parameters in the request, such as the confirmation number, supplier number, and buyer VAT number. # noqa: E501
Retrieves an inbound document. Provide key-value pairs as request parameters. Supported parameters vary by tax authority and country. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True

>>> thread = api.fetch_documents(avalara_version, fetch_documents_request, async_req=True)
>>> result = thread.get()

Args:
avalara_version (str): The HTTP Header meant to specify the version of the API intended to be used
avalara_version (str): Header that specifies the API version to use (for example \"1.6\").
fetch_documents_request (FetchDocumentsRequest):

Keyword Args:
x_avalara_client (str): You can freely use any text you wish for this value. This feature can help you diagnose and solve problems with your software. The header can be treated like a fingerprint.. [optional]
x_avalara_client (str): Optional header for a client identifier string used for diagnostics (for example \"Fingerprint\").. [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
Expand Down Expand Up @@ -598,24 +603,25 @@ def get_document_list(
):
"""Returns a summary of documents for a date range # noqa: E501

Get a list of documents on the Avalara E-Invoicing platform that have a processing date within the specified date range. # noqa: E501
Returns a list of document summaries with a processing date within the specified date range. # 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_document_list(avalara_version, async_req=True)
>>> result = thread.get()

Args:
avalara_version (str): The HTTP Header meant to specify the version of the API intended to be used
avalara_version (str): Header that specifies the API version to use (for example \"1.6\").

Keyword Args:
x_avalara_client (str): You can freely use any text you wish for this value. This feature can help you diagnose and solve problems with your software. The header can be treated like a fingerprint.. [optional]
start_date (datetime): Start date of documents to return. This defaults to the previous month.. [optional]
end_date (datetime): End date of documents to return. This defaults to the current date.. [optional]
flow (str): Optionally filter by document direction, where issued = `out` and received = `in`. [optional]
count (str): When set to true, the count of the collection is also returned in the response body. [optional]
count_only (str): When set to true, only the count of the collection is returned. [optional]
filter (str): Filter by field name and value. This filter only supports <code>eq</code> . Refer to [https://developer.avalara.com/avatax/filtering-in-rest/](https://developer.avalara.com/avatax/filtering-in-rest/) for more information on filtering. Filtering will be done over the provided startDate and endDate. If no startDate or endDate is provided, defaults will be assumed.. [optional]
x_avalara_client (str): Optional header for a client identifier string used for diagnostics (for example \"Fingerprint\").. [optional]
start_date (datetime): Start date for documents to return. Defaults to the previous month. Format: \"YYYY-MM-DDThh:mm:ss\".. [optional]
end_date (datetime): End date for documents to return. Defaults to the current date. Format: \"YYYY-MM-DDThh:mm:ss\".. [optional]
flow (str): Optional filter for document direction: issued uses \"out\" and received uses \"in\".. [optional]
count (str): When set to true, the response body also includes the count of items in the collection.. [optional]
count_only (str): When set to true, the response returns only the count of items in the collection.. [optional]
filter (str): Filter by field name and value. This filter supports only eq. For more information, refer to the Avalara filtering guide.. [optional]
include (str): When set to `events`, each document in the response includes its events array. Omit this parameter or use any other value to exclude events from the response.. [optional]
top (int): The number of items to include in the result.. [optional]
skip (int): The number of items to skip in the result.. [optional]
_return_http_data_only (bool): response data without head status
Expand Down Expand Up @@ -675,19 +681,19 @@ def get_document_status(
):
"""Checks the status of a document # noqa: E501

Using the unique ID from POST /einvoicing/documents response body, request the current status of a document. # noqa: E501
Uses the documentId from the POST /documents response body to return the current status of a document. # 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_document_status(avalara_version, document_id, async_req=True)
>>> result = thread.get()

Args:
avalara_version (str): The HTTP Header meant to specify the version of the API intended to be used
document_id (str): The unique ID for this document that was returned in the POST /einvoicing/documents response body
avalara_version (str): Header that specifies the API version to use (for example \"1.6\").
document_id (str): The unique documentId returned in the POST /documents response body.

Keyword Args:
x_avalara_client (str): You can freely use any text you wish for this value. This feature can help you diagnose and solve problems with your software. The header can be treated like a fingerprint.. [optional]
x_avalara_client (str): Optional header for a client identifier string used for diagnostics (for example \"Fingerprint\").. [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
Expand Down Expand Up @@ -755,12 +761,12 @@ def submit_document(
>>> result = thread.get()

Args:
avalara_version (str): The HTTP Header meant to specify the version of the API intended to be used
avalara_version (str): Header that specifies the API version to use (for example \"1.6\").
metadata (SubmitDocumentMetadata):
data (object): The document to be submitted, as indicated by the metadata fields 'dataFormat' and 'dataFormatVersion'

Keyword Args:
x_avalara_client (str): You can freely use any text you wish for this value. This feature can help you diagnose and solve problems with your software. The header can be treated like a fingerprint.. [optional]
x_avalara_client (str): Optional header for a client identifier string used for diagnostics (for example \"Fingerprint\").. [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
Expand Down
14 changes: 7 additions & 7 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.11.2
@version 26.4.0
@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.11.2")
api_client.set_sdk_version("26.4.0")
self.api_client = api_client

self.submit_interop_document_endpoint = _Endpoint(
Expand Down Expand Up @@ -145,7 +145,7 @@ def __set_configuration(self, api_client):
}
},
headers_map={
'avalara-version': '1.4',
'avalara-version': '1.6',
'accept': [
'application/json'
],
Expand All @@ -168,7 +168,7 @@ def submit_interop_document(
):
"""Submit a document # noqa: E501

This API used by the interoperability partners to submit a document to their trading partners in Avalara on behalf of their customers. # noqa: E501
Upload documents on behalf of interoperability partners and submit them to trading partners through the Avalara platform. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True

Expand All @@ -178,11 +178,11 @@ def submit_interop_document(
Args:
document_type (str): Type of the document being uploaded. Partners will be configured in Avalara system to send only certain types of documents.
interchange_type (str): Type of interchange (codes in Avalara system that uniquely identifies a type of interchange). Partners will be configured in Avalara system to send documents belonging to certain types of interchanges.
avalara_version (str): The HTTP Header meant to specify the version of the API intended to be used
avalara_version (str): Header that specifies the API version to use (for example \"1.6\").

Keyword Args:
x_avalara_client (str): You can freely use any text you wish for this value. This feature can help you diagnose and solve problems with your software. The header can be treated like a \"Fingerprint\". [optional]
x_correlation_id (str): The caller can use this as an identifier to use as a correlation id to trace the call.. [optional]
x_avalara_client (str): Optional header for a client identifier string used for diagnostics (for example \"Fingerprint\").. [optional]
x_correlation_id (str): Optional correlation identifier provided by the caller to trace the call (for example \"f3f0d19a-01a1-4748-8a58-f000d0424f43\").. [optional]
file_name (bytearray): The file to be uploaded (e.g., UBL XML, CII XML).. [optional]
_return_http_data_only (bool): response data without head status
code and headers. Default is True.
Expand Down
Loading
Loading