Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating SDK to 2.1.2 #83

Merged
merged 3 commits into from
Oct 30, 2024
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
2 changes: 0 additions & 2 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -517,5 +517,3 @@ setup.cfg
setup.py
test-requirements.txt
test/__init__.py
test/test_get_tax_profile_response.py
test/test_tax_profile.py
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ The Fatture in Cloud API is based on REST, and makes possible to interact with t

This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 2.1.2
- Package version: 2.1.1
- API version: 2.1.3
- Package version: 2.1.2
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
For more information, please visit [https://www.fattureincloud.it](https://www.fattureincloud.it)

Expand Down
16 changes: 8 additions & 8 deletions docs/IssuedDocumentsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **join_issued_documents**
> JoinIssuedDocumentsResponse join_issued_documents(company_id, ids, group=group, parameter=parameter)
> JoinIssuedDocumentsResponse join_issued_documents(company_id, ids, group=group, type=type)

Join Issued Documents

Expand Down Expand Up @@ -686,11 +686,11 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client:
company_id = 12345 # int | The ID of the company.
ids = '1,2,3,4' # str | Ids of the documents.
group = 56 # int | Group items. (optional)
parameter = 'delivery_notes, orders, quotes, work_reports' # str | Type of the parameters to be joined (optional)
type = 'delivery_notes, orders, quotes, work_reports' # str | Type of the documents to be joined (optional)

try:
# Join Issued Documents
api_response = api_instance.join_issued_documents(company_id, ids, group=group, parameter=parameter)
api_response = api_instance.join_issued_documents(company_id, ids, group=group, type=type)
print("The response of IssuedDocumentsApi->join_issued_documents:\n")
pprint(api_response)
except Exception as e:
Expand All @@ -707,7 +707,7 @@ Name | Type | Description | Notes
**company_id** | **int**| The ID of the company. |
**ids** | **str**| Ids of the documents. |
**group** | **int**| Group items. | [optional]
**parameter** | **str**| Type of the parameters to be joined | [optional]
**type** | **str**| Type of the documents to be joined | [optional]

### Return type

Expand Down Expand Up @@ -985,7 +985,7 @@ void (empty response body)
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **transform_issued_document**
> TransformIssuedDocumentResponse transform_issued_document(company_id, original_document_id, new_type, parameter=parameter, e_invoice=e_invoice, transform_keep_copy=transform_keep_copy)
> TransformIssuedDocumentResponse transform_issued_document(company_id, original_document_id, new_type, type=type, e_invoice=e_invoice, transform_keep_copy=transform_keep_copy)

Transform Issued Document

Expand Down Expand Up @@ -1021,13 +1021,13 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client:
company_id = 12345 # int | The ID of the company.
original_document_id = 56 # int | Original document id.
new_type = 'new_type_example' # str | New document type.
parameter = 'parameter_example' # str | Old document type. (optional)
type = 'type_example' # str | Current document type. (optional)
e_invoice = 56 # int | New document e_invoice. (optional)
transform_keep_copy = 56 # int | Keep the old document. (optional)

try:
# Transform Issued Document
api_response = api_instance.transform_issued_document(company_id, original_document_id, new_type, parameter=parameter, e_invoice=e_invoice, transform_keep_copy=transform_keep_copy)
api_response = api_instance.transform_issued_document(company_id, original_document_id, new_type, type=type, e_invoice=e_invoice, transform_keep_copy=transform_keep_copy)
print("The response of IssuedDocumentsApi->transform_issued_document:\n")
pprint(api_response)
except Exception as e:
Expand All @@ -1044,7 +1044,7 @@ Name | Type | Description | Notes
**company_id** | **int**| The ID of the company. |
**original_document_id** | **int**| Original document id. |
**new_type** | **str**| New document type. |
**parameter** | **str**| Old document type. | [optional]
**type** | **str**| Current document type. | [optional]
**e_invoice** | **int**| New document e_invoice. | [optional]
**transform_keep_copy** | **int**| Keep the old document. | [optional]

Expand Down
4 changes: 2 additions & 2 deletions fattureincloud_python_sdk/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@

Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.

The version of the OpenAPI document: 2.1.2
The version of the OpenAPI document: 2.1.3
Contact: [email protected]
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
""" # noqa: E501


__version__ = "2.1.1"
__version__ = "2.1.2"

# import apis into sdk package
from fattureincloud_python_sdk.api.archive_api import ArchiveApi
Expand Down
2 changes: 1 addition & 1 deletion fattureincloud_python_sdk/api/archive_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.

The version of the OpenAPI document: 2.1.2
The version of the OpenAPI document: 2.1.3
Contact: [email protected]
Generated by OpenAPI Generator (https://openapi-generator.tech)

Expand Down
2 changes: 1 addition & 1 deletion fattureincloud_python_sdk/api/cashbook_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.

The version of the OpenAPI document: 2.1.2
The version of the OpenAPI document: 2.1.3
Contact: [email protected]
Generated by OpenAPI Generator (https://openapi-generator.tech)

Expand Down
2 changes: 1 addition & 1 deletion fattureincloud_python_sdk/api/clients_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.

The version of the OpenAPI document: 2.1.2
The version of the OpenAPI document: 2.1.3
Contact: [email protected]
Generated by OpenAPI Generator (https://openapi-generator.tech)

Expand Down
2 changes: 1 addition & 1 deletion fattureincloud_python_sdk/api/companies_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.

The version of the OpenAPI document: 2.1.2
The version of the OpenAPI document: 2.1.3
Contact: [email protected]
Generated by OpenAPI Generator (https://openapi-generator.tech)

Expand Down
2 changes: 1 addition & 1 deletion fattureincloud_python_sdk/api/emails_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.

The version of the OpenAPI document: 2.1.2
The version of the OpenAPI document: 2.1.3
Contact: [email protected]
Generated by OpenAPI Generator (https://openapi-generator.tech)

Expand Down
2 changes: 1 addition & 1 deletion fattureincloud_python_sdk/api/info_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.

The version of the OpenAPI document: 2.1.2
The version of the OpenAPI document: 2.1.3
Contact: [email protected]
Generated by OpenAPI Generator (https://openapi-generator.tech)

Expand Down
77 changes: 37 additions & 40 deletions fattureincloud_python_sdk/api/issued_documents_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.

The version of the OpenAPI document: 2.1.2
The version of the OpenAPI document: 2.1.3
Contact: [email protected]
Generated by OpenAPI Generator (https://openapi-generator.tech)

Expand Down Expand Up @@ -2284,9 +2284,8 @@ def join_issued_documents(
company_id: Annotated[StrictInt, Field(description="The ID of the company.")],
ids: Annotated[StrictStr, Field(description="Ids of the documents.")],
group: Annotated[Optional[StrictInt], Field(description="Group items.")] = None,
parameter: Annotated[
Optional[StrictStr],
Field(description="Type of the parameters to be joined"),
type: Annotated[
Optional[StrictStr], Field(description="Type of the documents to be joined")
] = None,
_request_timeout: Union[
None,
Expand All @@ -2310,8 +2309,8 @@ def join_issued_documents(
:type ids: str
:param group: Group items.
:type group: int
:param parameter: Type of the parameters to be joined
:type parameter: str
:param type: Type of the documents to be joined
:type type: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
Expand All @@ -2338,7 +2337,7 @@ def join_issued_documents(
company_id=company_id,
ids=ids,
group=group,
parameter=parameter,
type=type,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
Expand All @@ -2363,9 +2362,8 @@ def join_issued_documents_with_http_info(
company_id: Annotated[StrictInt, Field(description="The ID of the company.")],
ids: Annotated[StrictStr, Field(description="Ids of the documents.")],
group: Annotated[Optional[StrictInt], Field(description="Group items.")] = None,
parameter: Annotated[
Optional[StrictStr],
Field(description="Type of the parameters to be joined"),
type: Annotated[
Optional[StrictStr], Field(description="Type of the documents to be joined")
] = None,
_request_timeout: Union[
None,
Expand All @@ -2389,8 +2387,8 @@ def join_issued_documents_with_http_info(
:type ids: str
:param group: Group items.
:type group: int
:param parameter: Type of the parameters to be joined
:type parameter: str
:param type: Type of the documents to be joined
:type type: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
Expand All @@ -2417,7 +2415,7 @@ def join_issued_documents_with_http_info(
company_id=company_id,
ids=ids,
group=group,
parameter=parameter,
type=type,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
Expand All @@ -2442,9 +2440,8 @@ def join_issued_documents_without_preload_content(
company_id: Annotated[StrictInt, Field(description="The ID of the company.")],
ids: Annotated[StrictStr, Field(description="Ids of the documents.")],
group: Annotated[Optional[StrictInt], Field(description="Group items.")] = None,
parameter: Annotated[
Optional[StrictStr],
Field(description="Type of the parameters to be joined"),
type: Annotated[
Optional[StrictStr], Field(description="Type of the documents to be joined")
] = None,
_request_timeout: Union[
None,
Expand All @@ -2468,8 +2465,8 @@ def join_issued_documents_without_preload_content(
:type ids: str
:param group: Group items.
:type group: int
:param parameter: Type of the parameters to be joined
:type parameter: str
:param type: Type of the documents to be joined
:type type: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
Expand All @@ -2496,7 +2493,7 @@ def join_issued_documents_without_preload_content(
company_id=company_id,
ids=ids,
group=group,
parameter=parameter,
type=type,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
Expand All @@ -2516,7 +2513,7 @@ def _join_issued_documents_serialize(
company_id,
ids,
group,
parameter,
type,
_request_auth,
_content_type,
_headers,
Expand Down Expand Up @@ -2548,9 +2545,9 @@ def _join_issued_documents_serialize(

_query_params.append(("group", group))

if parameter is not None:
if type is not None:

_query_params.append(("parameter", parameter))
_query_params.append(("type", type))

# process the header parameters
# process the form parameters
Expand Down Expand Up @@ -3626,8 +3623,8 @@ def transform_issued_document(
StrictInt, Field(description="Original document id.")
],
new_type: Annotated[StrictStr, Field(description="New document type.")],
parameter: Annotated[
Optional[StrictStr], Field(description="Old document type.")
type: Annotated[
Optional[StrictStr], Field(description="Current document type.")
] = None,
e_invoice: Annotated[
Optional[StrictInt], Field(description="New document e_invoice.")
Expand Down Expand Up @@ -3657,8 +3654,8 @@ def transform_issued_document(
:type original_document_id: int
:param new_type: New document type. (required)
:type new_type: str
:param parameter: Old document type.
:type parameter: str
:param type: Current document type.
:type type: str
:param e_invoice: New document e_invoice.
:type e_invoice: int
:param transform_keep_copy: Keep the old document.
Expand Down Expand Up @@ -3689,7 +3686,7 @@ def transform_issued_document(
company_id=company_id,
original_document_id=original_document_id,
new_type=new_type,
parameter=parameter,
type=type,
e_invoice=e_invoice,
transform_keep_copy=transform_keep_copy,
_request_auth=_request_auth,
Expand Down Expand Up @@ -3718,8 +3715,8 @@ def transform_issued_document_with_http_info(
StrictInt, Field(description="Original document id.")
],
new_type: Annotated[StrictStr, Field(description="New document type.")],
parameter: Annotated[
Optional[StrictStr], Field(description="Old document type.")
type: Annotated[
Optional[StrictStr], Field(description="Current document type.")
] = None,
e_invoice: Annotated[
Optional[StrictInt], Field(description="New document e_invoice.")
Expand Down Expand Up @@ -3749,8 +3746,8 @@ def transform_issued_document_with_http_info(
:type original_document_id: int
:param new_type: New document type. (required)
:type new_type: str
:param parameter: Old document type.
:type parameter: str
:param type: Current document type.
:type type: str
:param e_invoice: New document e_invoice.
:type e_invoice: int
:param transform_keep_copy: Keep the old document.
Expand Down Expand Up @@ -3781,7 +3778,7 @@ def transform_issued_document_with_http_info(
company_id=company_id,
original_document_id=original_document_id,
new_type=new_type,
parameter=parameter,
type=type,
e_invoice=e_invoice,
transform_keep_copy=transform_keep_copy,
_request_auth=_request_auth,
Expand Down Expand Up @@ -3810,8 +3807,8 @@ def transform_issued_document_without_preload_content(
StrictInt, Field(description="Original document id.")
],
new_type: Annotated[StrictStr, Field(description="New document type.")],
parameter: Annotated[
Optional[StrictStr], Field(description="Old document type.")
type: Annotated[
Optional[StrictStr], Field(description="Current document type.")
] = None,
e_invoice: Annotated[
Optional[StrictInt], Field(description="New document e_invoice.")
Expand Down Expand Up @@ -3841,8 +3838,8 @@ def transform_issued_document_without_preload_content(
:type original_document_id: int
:param new_type: New document type. (required)
:type new_type: str
:param parameter: Old document type.
:type parameter: str
:param type: Current document type.
:type type: str
:param e_invoice: New document e_invoice.
:type e_invoice: int
:param transform_keep_copy: Keep the old document.
Expand Down Expand Up @@ -3873,7 +3870,7 @@ def transform_issued_document_without_preload_content(
company_id=company_id,
original_document_id=original_document_id,
new_type=new_type,
parameter=parameter,
type=type,
e_invoice=e_invoice,
transform_keep_copy=transform_keep_copy,
_request_auth=_request_auth,
Expand All @@ -3895,7 +3892,7 @@ def _transform_issued_document_serialize(
company_id,
original_document_id,
new_type,
parameter,
type,
e_invoice,
transform_keep_copy,
_request_auth,
Expand Down Expand Up @@ -3929,9 +3926,9 @@ def _transform_issued_document_serialize(

_query_params.append(("new_type", new_type))

if parameter is not None:
if type is not None:

_query_params.append(("parameter", parameter))
_query_params.append(("type", type))

if e_invoice is not None:

Expand Down
Loading