diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 3fb92c21..48e402f2 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -20,6 +20,7 @@ docs/CompanyInfoPlanInfo.md docs/CompanyInfoPlanInfoFunctions.md docs/CompanyInfoPlanInfoFunctionsStatus.md docs/CompanyInfoPlanInfoLimits.md +docs/CompanyPlanUsage.md docs/CompanyType.md docs/ControlledCompany.md docs/CreateArchiveDocumentRequest.md @@ -66,11 +67,13 @@ docs/EntityType.md docs/EventType.md docs/F24.md docs/F24Status.md +docs/FattureInCloudPlanType.md docs/FunctionStatus.md docs/GetArchiveDocumentResponse.md docs/GetCashbookEntryResponse.md docs/GetClientResponse.md docs/GetCompanyInfoResponse.md +docs/GetCompanyPlanUsageResponse.md docs/GetEInvoiceRejectionReasonResponse.md docs/GetEmailDataResponse.md docs/GetExistingIssuedDocumentTotalsRequest.md @@ -285,6 +288,7 @@ fattureincloud_python_sdk/models/company_info_plan_info.py fattureincloud_python_sdk/models/company_info_plan_info_functions.py fattureincloud_python_sdk/models/company_info_plan_info_functions_status.py fattureincloud_python_sdk/models/company_info_plan_info_limits.py +fattureincloud_python_sdk/models/company_plan_usage.py fattureincloud_python_sdk/models/company_type.py fattureincloud_python_sdk/models/controlled_company.py fattureincloud_python_sdk/models/create_archive_document_request.py @@ -330,11 +334,13 @@ fattureincloud_python_sdk/models/entity_type.py fattureincloud_python_sdk/models/event_type.py fattureincloud_python_sdk/models/f24.py fattureincloud_python_sdk/models/f24_status.py +fattureincloud_python_sdk/models/fatture_in_cloud_plan_type.py fattureincloud_python_sdk/models/function_status.py fattureincloud_python_sdk/models/get_archive_document_response.py fattureincloud_python_sdk/models/get_cashbook_entry_response.py fattureincloud_python_sdk/models/get_client_response.py fattureincloud_python_sdk/models/get_company_info_response.py +fattureincloud_python_sdk/models/get_company_plan_usage_response.py fattureincloud_python_sdk/models/get_e_invoice_rejection_reason_response.py fattureincloud_python_sdk/models/get_email_data_response.py fattureincloud_python_sdk/models/get_existing_issued_document_totals_request.py @@ -507,3 +513,6 @@ setup.cfg setup.py test-requirements.txt test/__init__.py +test/test_company_plan_usage.py +test/test_fatture_in_cloud_plan_type.py +test/test_get_company_plan_usage_response.py diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION index 3769235d..8b23b8d4 100644 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -7.1.0 \ No newline at end of file +7.3.0 \ No newline at end of file diff --git a/README.md b/README.md index 1cbd98a2..d85a825f 100644 --- a/README.md +++ b/README.md @@ -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.0.30 -- Package version: 2.0.17 +- API version: 2.0.32 +- Package version: 2.0.18 - Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit [https://www.fattureincloud.it](https://www.fattureincloud.it) @@ -39,7 +39,6 @@ Please follow the [installation procedure](#installation--usage) and then run th ```python -import time import fattureincloud_python_sdk from fattureincloud_python_sdk.rest import ApiException from pprint import pprint @@ -98,6 +97,7 @@ Class | Method | HTTP request | Description *ClientsApi* | [**list_clients**](docs/ClientsApi.md#list_clients) | **GET** /c/{company_id}/entities/clients | List Clients *ClientsApi* | [**modify_client**](docs/ClientsApi.md#modify_client) | **PUT** /c/{company_id}/entities/clients/{client_id} | Modify Client *CompaniesApi* | [**get_company_info**](docs/CompaniesApi.md#get_company_info) | **GET** /c/{company_id}/company/info | Get Company Info +*CompaniesApi* | [**get_company_plan_usage**](docs/CompaniesApi.md#get_company_plan_usage) | **GET** /c/{company_id}/company/plan_usage | Get Company Plan Usage *EmailsApi* | [**list_emails**](docs/EmailsApi.md#list_emails) | **GET** /c/{company_id}/emails | List Emails *InfoApi* | [**list_archive_categories**](docs/InfoApi.md#list_archive_categories) | **GET** /c/{company_id}/info/archive_categories | List Archive Categories *InfoApi* | [**list_cities**](docs/InfoApi.md#list_cities) | **GET** /info/cities | List Cities @@ -206,6 +206,7 @@ Class | Method | HTTP request | Description - [CompanyInfoPlanInfoFunctions](docs/CompanyInfoPlanInfoFunctions.md) - [CompanyInfoPlanInfoFunctionsStatus](docs/CompanyInfoPlanInfoFunctionsStatus.md) - [CompanyInfoPlanInfoLimits](docs/CompanyInfoPlanInfoLimits.md) + - [CompanyPlanUsage](docs/CompanyPlanUsage.md) - [CompanyType](docs/CompanyType.md) - [ControlledCompany](docs/ControlledCompany.md) - [CreateArchiveDocumentRequest](docs/CreateArchiveDocumentRequest.md) @@ -251,11 +252,13 @@ Class | Method | HTTP request | Description - [EventType](docs/EventType.md) - [F24](docs/F24.md) - [F24Status](docs/F24Status.md) + - [FattureInCloudPlanType](docs/FattureInCloudPlanType.md) - [FunctionStatus](docs/FunctionStatus.md) - [GetArchiveDocumentResponse](docs/GetArchiveDocumentResponse.md) - [GetCashbookEntryResponse](docs/GetCashbookEntryResponse.md) - [GetClientResponse](docs/GetClientResponse.md) - [GetCompanyInfoResponse](docs/GetCompanyInfoResponse.md) + - [GetCompanyPlanUsageResponse](docs/GetCompanyPlanUsageResponse.md) - [GetEInvoiceRejectionReasonResponse](docs/GetEInvoiceRejectionReasonResponse.md) - [GetEmailDataResponse](docs/GetEmailDataResponse.md) - [GetExistingIssuedDocumentTotalsRequest](docs/GetExistingIssuedDocumentTotalsRequest.md) diff --git a/docs/ArchiveApi.md b/docs/ArchiveApi.md index 4eaacec3..02ac204a 100644 --- a/docs/ArchiveApi.md +++ b/docs/ArchiveApi.md @@ -22,9 +22,8 @@ Creates a new archive document. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.create_archive_document_request import CreateArchiveDocumentRequest from fattureincloud_python_sdk.models.create_archive_document_response import CreateArchiveDocumentResponse @@ -64,6 +63,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -83,6 +83,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | The Archive Document. | - | @@ -101,9 +102,8 @@ Deletes the specified archive document. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.rest import ApiException from pprint import pprint @@ -139,6 +139,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -158,6 +159,7 @@ void (empty response body) - **Accept**: Not defined ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Document removed. | - | @@ -176,9 +178,8 @@ Gets the specified archive document. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.get_archive_document_response import GetArchiveDocumentResponse from fattureincloud_python_sdk.rest import ApiException @@ -219,6 +220,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -240,6 +242,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Archive Document Details | - | @@ -258,9 +261,8 @@ Lists the archive documents. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.list_archive_documents_response import ListArchiveDocumentsResponse from fattureincloud_python_sdk.rest import ApiException @@ -304,6 +306,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -328,6 +331,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Results list. | - | @@ -346,9 +350,8 @@ Modifies the specified archive document. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.modify_archive_document_request import ModifyArchiveDocumentRequest from fattureincloud_python_sdk.models.modify_archive_document_response import ModifyArchiveDocumentResponse @@ -389,6 +392,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -409,6 +413,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | The modified Archived Document | - | @@ -427,9 +432,8 @@ Uploads an attachment destined to an archive document. The actual association be ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.upload_archive_attachment_response import UploadArchiveAttachmentResponse from fattureincloud_python_sdk.rest import ApiException @@ -469,6 +473,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -489,6 +494,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Example response | - | diff --git a/docs/ArchiveDocument.md b/docs/ArchiveDocument.md index 825c03ec..051b4300 100644 --- a/docs/ArchiveDocument.md +++ b/docs/ArchiveDocument.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **int** | Archive document id | [optional] diff --git a/docs/AttachmentData.md b/docs/AttachmentData.md index 10976ccc..4a20484d 100644 --- a/docs/AttachmentData.md +++ b/docs/AttachmentData.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **attachment_token** | **str** | Uploaded attachment token. | [optional] diff --git a/docs/CashbookApi.md b/docs/CashbookApi.md index ba0c9c01..d3927a0f 100644 --- a/docs/CashbookApi.md +++ b/docs/CashbookApi.md @@ -21,9 +21,8 @@ Creates a new cashbook entry. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.create_cashbook_entry_request import CreateCashbookEntryRequest from fattureincloud_python_sdk.models.create_cashbook_entry_response import CreateCashbookEntryResponse @@ -63,6 +62,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -82,6 +82,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | The created Cashbook Entry. | - | @@ -100,9 +101,8 @@ Deletes the specified cashbook entry. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.rest import ApiException from pprint import pprint @@ -138,6 +138,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -157,6 +158,7 @@ void (empty response body) - **Accept**: Not defined ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Document removed. | - | @@ -175,9 +177,8 @@ Gets the specified cashbook entry. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.get_cashbook_entry_response import GetCashbookEntryResponse from fattureincloud_python_sdk.rest import ApiException @@ -218,6 +219,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -239,6 +241,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Cashbook Entry. | - | @@ -257,9 +260,8 @@ Lists the cashbook entries. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.list_cashbook_entries_response import ListCashbookEntriesResponse from fattureincloud_python_sdk.rest import ApiException @@ -302,6 +304,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -325,6 +328,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Results list. | - | @@ -343,9 +347,8 @@ Modifies the specified cashbook entry. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.modify_cashbook_entry_request import ModifyCashbookEntryRequest from fattureincloud_python_sdk.models.modify_cashbook_entry_response import ModifyCashbookEntryResponse @@ -386,6 +389,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -406,6 +410,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | The modified Cashbook Entry | - | diff --git a/docs/CashbookEntry.md b/docs/CashbookEntry.md index c0a40910..174ad782 100644 --- a/docs/CashbookEntry.md +++ b/docs/CashbookEntry.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **str** | Cashbook id | [optional] diff --git a/docs/CashbookEntryDocument.md b/docs/CashbookEntryDocument.md index 1152cc53..a03505b6 100644 --- a/docs/CashbookEntryDocument.md +++ b/docs/CashbookEntryDocument.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **int** | Cashbook related document id | [optional] diff --git a/docs/CashbookEntryKind.md b/docs/CashbookEntryKind.md index afc7de9c..40568c2a 100644 --- a/docs/CashbookEntryKind.md +++ b/docs/CashbookEntryKind.md @@ -3,6 +3,7 @@ Cashbook kind ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/docs/CashbookEntryType.md b/docs/CashbookEntryType.md index 72f686b6..9fb688f6 100644 --- a/docs/CashbookEntryType.md +++ b/docs/CashbookEntryType.md @@ -3,6 +3,7 @@ Cashbook type ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/docs/City.md b/docs/City.md index 74039cd6..77847f97 100644 --- a/docs/City.md +++ b/docs/City.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **postal_code** | **str** | City postal code | [optional] diff --git a/docs/Client.md b/docs/Client.md index 055a5e63..05c4d71d 100644 --- a/docs/Client.md +++ b/docs/Client.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **int** | Client id | [optional] diff --git a/docs/ClientType.md b/docs/ClientType.md index 2ec0b419..3b0583a8 100644 --- a/docs/ClientType.md +++ b/docs/ClientType.md @@ -3,6 +3,7 @@ Client type ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/docs/ClientsApi.md b/docs/ClientsApi.md index 25170061..91fb7881 100644 --- a/docs/ClientsApi.md +++ b/docs/ClientsApi.md @@ -21,9 +21,8 @@ Creates a new client. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.create_client_request import CreateClientRequest from fattureincloud_python_sdk.models.create_client_response import CreateClientResponse @@ -63,6 +62,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -82,6 +82,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Example response | - | @@ -98,9 +99,8 @@ Deletes the specified client. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.rest import ApiException from pprint import pprint @@ -136,6 +136,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -155,6 +156,7 @@ void (empty response body) - **Accept**: Not defined ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Entity Removed | - | @@ -173,9 +175,8 @@ Gets the specified client. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.get_client_response import GetClientResponse from fattureincloud_python_sdk.rest import ApiException @@ -216,6 +217,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -237,6 +239,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Client Details. | - | @@ -255,9 +258,8 @@ Lists the clients. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.list_clients_response import ListClientsResponse from fattureincloud_python_sdk.rest import ApiException @@ -301,6 +303,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -325,6 +328,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Example response | - | @@ -342,9 +346,8 @@ Modifies the specified client. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.modify_client_request import ModifyClientRequest from fattureincloud_python_sdk.models.modify_client_response import ModifyClientResponse @@ -385,6 +388,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -405,6 +409,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Client modified. | - | diff --git a/docs/CompaniesApi.md b/docs/CompaniesApi.md index 9bd1a8c7..11bfba01 100644 --- a/docs/CompaniesApi.md +++ b/docs/CompaniesApi.md @@ -5,6 +5,7 @@ All URIs are relative to *https://api-v2.fattureincloud.it* Method | HTTP request | Description ------------- | ------------- | ------------- [**get_company_info**](CompaniesApi.md#get_company_info) | **GET** /c/{company_id}/company/info | Get Company Info +[**get_company_plan_usage**](CompaniesApi.md#get_company_plan_usage) | **GET** /c/{company_id}/company/plan_usage | Get Company Plan Usage # **get_company_info** @@ -17,9 +18,8 @@ Gets the company detailed info. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.get_company_info_response import GetCompanyInfoResponse from fattureincloud_python_sdk.rest import ApiException @@ -57,6 +57,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -75,6 +76,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Company info. | - | @@ -82,3 +84,81 @@ 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) +# **get_company_plan_usage** +> GetCompanyPlanUsageResponse get_company_plan_usage(company_id, category) + +Get Company Plan Usage + +Gets the company limits usage. + +### Example + +* OAuth Authentication (OAuth2AuthenticationCodeFlow): + +```python +import fattureincloud_python_sdk +from fattureincloud_python_sdk.models.get_company_plan_usage_response import GetCompanyPlanUsageResponse +from fattureincloud_python_sdk.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api-v2.fattureincloud.it +# See configuration.py for a list of all supported configuration parameters. +configuration = fattureincloud_python_sdk.Configuration( + host = "https://api-v2.fattureincloud.it" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Enter a context with an instance of the API client +with fattureincloud_python_sdk.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fattureincloud_python_sdk.CompaniesApi(api_client) + company_id = 12345 # int | The ID of the company. + category = 'category_example' # str | Category + + try: + # Get Company Plan Usage + api_response = api_instance.get_company_plan_usage(company_id, category) + print("The response of CompaniesApi->get_company_plan_usage:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling CompaniesApi->get_company_plan_usage: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **company_id** | **int**| The ID of the company. | + **category** | **str**| Category | + +### Return type + +[**GetCompanyPlanUsageResponse**](GetCompanyPlanUsageResponse.md) + +### Authorization + +[OAuth2AuthenticationCodeFlow](../README.md#OAuth2AuthenticationCodeFlow) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Example response | - | +**401** | Unauthorized. | - | + +[[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) + diff --git a/docs/Company.md b/docs/Company.md index 736bc3c8..5645bb95 100644 --- a/docs/Company.md +++ b/docs/Company.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **int** | Company id | [optional] @@ -9,6 +10,8 @@ Name | Type | Description | Notes **type** | [**CompanyType**](CompanyType.md) | | [optional] **access_token** | **str** | Company authentication token for this company. [Only if type=company] | [optional] **controlled_companies** | [**List[ControlledCompany]**](ControlledCompany.md) | Company list of controlled companies [Only if type=accountant] | [optional] +**fic_license_expire** | **date** | | [optional] +**fic_plan** | [**FattureInCloudPlanType**](FattureInCloudPlanType.md) | | [optional] **connection_id** | **int** | Company connection id | [optional] **tax_code** | **str** | Company tax code | [optional] diff --git a/docs/CompanyInfo.md b/docs/CompanyInfo.md index aa274ec0..9953c3a5 100644 --- a/docs/CompanyInfo.md +++ b/docs/CompanyInfo.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **int** | Company id | [optional] @@ -9,6 +10,8 @@ Name | Type | Description | Notes **email** | **str** | Company email | [optional] **type** | [**CompanyType**](CompanyType.md) | | [optional] **access_info** | [**CompanyInfoAccessInfo**](CompanyInfoAccessInfo.md) | | [optional] +**fic_license_expire** | **date** | | [optional] +**fic_plan_name** | [**FattureInCloudPlanType**](FattureInCloudPlanType.md) | | [optional] **plan_info** | [**CompanyInfoPlanInfo**](CompanyInfoPlanInfo.md) | | [optional] **accountant_id** | **int** | Company accountant id | [optional] **is_accountant** | **bool** | Is the logged account an accountant. | [optional] diff --git a/docs/CompanyInfoAccessInfo.md b/docs/CompanyInfoAccessInfo.md index ee0eed66..7d0a9c43 100644 --- a/docs/CompanyInfoAccessInfo.md +++ b/docs/CompanyInfoAccessInfo.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **role** | [**UserCompanyRole**](UserCompanyRole.md) | | [optional] diff --git a/docs/CompanyInfoPlanInfo.md b/docs/CompanyInfoPlanInfo.md index 80a96fff..93409d02 100644 --- a/docs/CompanyInfoPlanInfo.md +++ b/docs/CompanyInfoPlanInfo.md @@ -3,6 +3,7 @@ Company plan info ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **limits** | [**CompanyInfoPlanInfoLimits**](CompanyInfoPlanInfoLimits.md) | | [optional] diff --git a/docs/CompanyInfoPlanInfoFunctions.md b/docs/CompanyInfoPlanInfoFunctions.md index 5373fa48..a1bffe3a 100644 --- a/docs/CompanyInfoPlanInfoFunctions.md +++ b/docs/CompanyInfoPlanInfoFunctions.md @@ -3,6 +3,7 @@ Access to functions for this company. ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **archive** | **bool** | | [optional] diff --git a/docs/CompanyInfoPlanInfoFunctionsStatus.md b/docs/CompanyInfoPlanInfoFunctionsStatus.md index e291c2dc..5afc571d 100644 --- a/docs/CompanyInfoPlanInfoFunctionsStatus.md +++ b/docs/CompanyInfoPlanInfoFunctionsStatus.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ts_digital** | [**FunctionStatus**](FunctionStatus.md) | | [optional] diff --git a/docs/CompanyInfoPlanInfoLimits.md b/docs/CompanyInfoPlanInfoLimits.md index 07f1c4e0..2811ac40 100644 --- a/docs/CompanyInfoPlanInfoLimits.md +++ b/docs/CompanyInfoPlanInfoLimits.md @@ -3,6 +3,7 @@ Company plan limits ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **clients** | **int** | Company plan clients limits | [optional] diff --git a/docs/CompanyPlanUsage.md b/docs/CompanyPlanUsage.md new file mode 100644 index 00000000..c22d552d --- /dev/null +++ b/docs/CompanyPlanUsage.md @@ -0,0 +1,30 @@ +# CompanyPlanUsage + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**limit** | **float** | Plan limit | [optional] +**usage** | **float** | Plan usage | [optional] + +## Example + +```python +from fattureincloud_python_sdk.models.company_plan_usage import CompanyPlanUsage + +# TODO update the JSON string below +json = "{}" +# create an instance of CompanyPlanUsage from a JSON string +company_plan_usage_instance = CompanyPlanUsage.from_json(json) +# print the JSON string representation of the object +print CompanyPlanUsage.to_json() + +# convert the object into a dict +company_plan_usage_dict = company_plan_usage_instance.to_dict() +# create an instance of CompanyPlanUsage from a dict +company_plan_usage_form_dict = company_plan_usage.from_dict(company_plan_usage_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CompanyType.md b/docs/CompanyType.md index 4b4c4416..9ef1f6c6 100644 --- a/docs/CompanyType.md +++ b/docs/CompanyType.md @@ -3,6 +3,7 @@ Company type ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/docs/ControlledCompany.md b/docs/ControlledCompany.md index 3ad4365c..3c807ef9 100644 --- a/docs/ControlledCompany.md +++ b/docs/ControlledCompany.md @@ -2,12 +2,15 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **int** | Controlled company id | [optional] **name** | **str** | Controlled company id | [optional] **type** | [**CompanyType**](CompanyType.md) | | [optional] **access_token** | **str** | Controlled company access token Only if type=company] | [optional] +**fic_license_expire** | **date** | | [optional] +**fic_plan** | [**FattureInCloudPlanType**](FattureInCloudPlanType.md) | | [optional] **connection_id** | **float** | Controlled company connection id | [optional] **tax_code** | **str** | Controlled company tax code | [optional] diff --git a/docs/CreateArchiveDocumentRequest.md b/docs/CreateArchiveDocumentRequest.md index 7ffd6698..0150bf22 100644 --- a/docs/CreateArchiveDocumentRequest.md +++ b/docs/CreateArchiveDocumentRequest.md @@ -3,6 +3,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**ArchiveDocument**](ArchiveDocument.md) | | [optional] diff --git a/docs/CreateArchiveDocumentResponse.md b/docs/CreateArchiveDocumentResponse.md index 6ba8d1a0..d9626de2 100644 --- a/docs/CreateArchiveDocumentResponse.md +++ b/docs/CreateArchiveDocumentResponse.md @@ -3,6 +3,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**ArchiveDocument**](ArchiveDocument.md) | | [optional] diff --git a/docs/CreateCashbookEntryRequest.md b/docs/CreateCashbookEntryRequest.md index d1e3b159..f298f73e 100644 --- a/docs/CreateCashbookEntryRequest.md +++ b/docs/CreateCashbookEntryRequest.md @@ -3,6 +3,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**CashbookEntry**](CashbookEntry.md) | | [optional] diff --git a/docs/CreateCashbookEntryResponse.md b/docs/CreateCashbookEntryResponse.md index 76e76765..c2bd35dd 100644 --- a/docs/CreateCashbookEntryResponse.md +++ b/docs/CreateCashbookEntryResponse.md @@ -3,6 +3,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**CashbookEntry**](CashbookEntry.md) | | [optional] diff --git a/docs/CreateClientRequest.md b/docs/CreateClientRequest.md index 5d7ce345..eba2b865 100644 --- a/docs/CreateClientRequest.md +++ b/docs/CreateClientRequest.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**Client**](Client.md) | | [optional] diff --git a/docs/CreateClientResponse.md b/docs/CreateClientResponse.md index a9870518..fee055a5 100644 --- a/docs/CreateClientResponse.md +++ b/docs/CreateClientResponse.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**Client**](Client.md) | | [optional] diff --git a/docs/CreateF24Request.md b/docs/CreateF24Request.md index 5f9ba1ce..3de93db9 100644 --- a/docs/CreateF24Request.md +++ b/docs/CreateF24Request.md @@ -3,6 +3,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**F24**](F24.md) | | [optional] diff --git a/docs/CreateF24Response.md b/docs/CreateF24Response.md index 588b3f63..890301d1 100644 --- a/docs/CreateF24Response.md +++ b/docs/CreateF24Response.md @@ -3,6 +3,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**F24**](F24.md) | | [optional] diff --git a/docs/CreateIssuedDocumentRequest.md b/docs/CreateIssuedDocumentRequest.md index 675f1b40..4ed1a3b2 100644 --- a/docs/CreateIssuedDocumentRequest.md +++ b/docs/CreateIssuedDocumentRequest.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**IssuedDocument**](IssuedDocument.md) | | [optional] diff --git a/docs/CreateIssuedDocumentResponse.md b/docs/CreateIssuedDocumentResponse.md index 0a2fae20..537df0f5 100644 --- a/docs/CreateIssuedDocumentResponse.md +++ b/docs/CreateIssuedDocumentResponse.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**IssuedDocument**](IssuedDocument.md) | | [optional] diff --git a/docs/CreatePaymentAccountRequest.md b/docs/CreatePaymentAccountRequest.md index 5ee58bd9..10348292 100644 --- a/docs/CreatePaymentAccountRequest.md +++ b/docs/CreatePaymentAccountRequest.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**PaymentAccount**](PaymentAccount.md) | | [optional] diff --git a/docs/CreatePaymentAccountResponse.md b/docs/CreatePaymentAccountResponse.md index 33363b88..0807359c 100644 --- a/docs/CreatePaymentAccountResponse.md +++ b/docs/CreatePaymentAccountResponse.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**PaymentAccount**](PaymentAccount.md) | | [optional] diff --git a/docs/CreatePaymentMethodRequest.md b/docs/CreatePaymentMethodRequest.md index f2c7a4ab..0530f498 100644 --- a/docs/CreatePaymentMethodRequest.md +++ b/docs/CreatePaymentMethodRequest.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**PaymentMethod**](PaymentMethod.md) | | [optional] diff --git a/docs/CreatePaymentMethodResponse.md b/docs/CreatePaymentMethodResponse.md index 3b69e227..a14c932c 100644 --- a/docs/CreatePaymentMethodResponse.md +++ b/docs/CreatePaymentMethodResponse.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**PaymentMethod**](PaymentMethod.md) | | [optional] diff --git a/docs/CreateProductRequest.md b/docs/CreateProductRequest.md index 3cfd446e..ace556af 100644 --- a/docs/CreateProductRequest.md +++ b/docs/CreateProductRequest.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**Product**](Product.md) | | [optional] diff --git a/docs/CreateProductResponse.md b/docs/CreateProductResponse.md index 240d6194..81c25517 100644 --- a/docs/CreateProductResponse.md +++ b/docs/CreateProductResponse.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**Product**](Product.md) | | [optional] diff --git a/docs/CreateReceiptRequest.md b/docs/CreateReceiptRequest.md index e2215fde..8b3ba37e 100644 --- a/docs/CreateReceiptRequest.md +++ b/docs/CreateReceiptRequest.md @@ -3,6 +3,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**Receipt**](Receipt.md) | | [optional] diff --git a/docs/CreateReceiptResponse.md b/docs/CreateReceiptResponse.md index c3c41de6..67fa1e68 100644 --- a/docs/CreateReceiptResponse.md +++ b/docs/CreateReceiptResponse.md @@ -3,6 +3,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**Receipt**](Receipt.md) | | [optional] diff --git a/docs/CreateReceivedDocumentRequest.md b/docs/CreateReceivedDocumentRequest.md index 3694d77b..f6d601c6 100644 --- a/docs/CreateReceivedDocumentRequest.md +++ b/docs/CreateReceivedDocumentRequest.md @@ -3,6 +3,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **pending_id** | **int** | Pending received document id of the document from which the new document is created. | [optional] diff --git a/docs/CreateReceivedDocumentResponse.md b/docs/CreateReceivedDocumentResponse.md index f9931aae..60f6173e 100644 --- a/docs/CreateReceivedDocumentResponse.md +++ b/docs/CreateReceivedDocumentResponse.md @@ -3,6 +3,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**ReceivedDocument**](ReceivedDocument.md) | | [optional] diff --git a/docs/CreateSupplierRequest.md b/docs/CreateSupplierRequest.md index d33c7b0a..cbf55240 100644 --- a/docs/CreateSupplierRequest.md +++ b/docs/CreateSupplierRequest.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**Supplier**](Supplier.md) | | [optional] diff --git a/docs/CreateSupplierResponse.md b/docs/CreateSupplierResponse.md index 953a1ee3..3d072c5f 100644 --- a/docs/CreateSupplierResponse.md +++ b/docs/CreateSupplierResponse.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**Supplier**](Supplier.md) | | [optional] diff --git a/docs/CreateVatTypeRequest.md b/docs/CreateVatTypeRequest.md index 99ca73e5..d0749b03 100644 --- a/docs/CreateVatTypeRequest.md +++ b/docs/CreateVatTypeRequest.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**VatType**](VatType.md) | | [optional] diff --git a/docs/CreateVatTypeResponse.md b/docs/CreateVatTypeResponse.md index f4e8ad7c..26c164be 100644 --- a/docs/CreateVatTypeResponse.md +++ b/docs/CreateVatTypeResponse.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**VatType**](VatType.md) | | [optional] diff --git a/docs/CreateWebhooksSubscriptionRequest.md b/docs/CreateWebhooksSubscriptionRequest.md index 21fa48a8..50245213 100644 --- a/docs/CreateWebhooksSubscriptionRequest.md +++ b/docs/CreateWebhooksSubscriptionRequest.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**WebhooksSubscription**](WebhooksSubscription.md) | | [optional] diff --git a/docs/CreateWebhooksSubscriptionResponse.md b/docs/CreateWebhooksSubscriptionResponse.md index 2710dd97..5fbfb82c 100644 --- a/docs/CreateWebhooksSubscriptionResponse.md +++ b/docs/CreateWebhooksSubscriptionResponse.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**WebhooksSubscription**](WebhooksSubscription.md) | | [optional] diff --git a/docs/Currency.md b/docs/Currency.md index 43373b1f..b703ab1c 100644 --- a/docs/Currency.md +++ b/docs/Currency.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **str** | Currency code | [optional] diff --git a/docs/DetailedCountry.md b/docs/DetailedCountry.md index 700e8fef..10b228de 100644 --- a/docs/DetailedCountry.md +++ b/docs/DetailedCountry.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | Country name | [optional] diff --git a/docs/DocumentTemplate.md b/docs/DocumentTemplate.md index 6d74425e..5ac04d16 100644 --- a/docs/DocumentTemplate.md +++ b/docs/DocumentTemplate.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **int** | Template id | [optional] diff --git a/docs/EInvoiceRejectionReason.md b/docs/EInvoiceRejectionReason.md index 7d92301a..f50747a6 100644 --- a/docs/EInvoiceRejectionReason.md +++ b/docs/EInvoiceRejectionReason.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **reason** | **str** | E-invoice rejection reason | [optional] diff --git a/docs/Email.md b/docs/Email.md index 09b96a18..6bafb0ef 100644 --- a/docs/Email.md +++ b/docs/Email.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **int** | Email id | [optional] diff --git a/docs/EmailAttachment.md b/docs/EmailAttachment.md index 3cdcf743..cffcc5f6 100644 --- a/docs/EmailAttachment.md +++ b/docs/EmailAttachment.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **filename** | **str** | Email attachment filename | [optional] diff --git a/docs/EmailData.md b/docs/EmailData.md index bcd89c83..becb41ef 100644 --- a/docs/EmailData.md +++ b/docs/EmailData.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **recipient_email** | **str** | Email recipient | [optional] diff --git a/docs/EmailDataDefaultSenderEmail.md b/docs/EmailDataDefaultSenderEmail.md index 7720b315..52c687de 100644 --- a/docs/EmailDataDefaultSenderEmail.md +++ b/docs/EmailDataDefaultSenderEmail.md @@ -3,6 +3,7 @@ Default sender email. (Other emails can be found in **sender_emails_list**) ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **int** | Default sender email id | [optional] diff --git a/docs/EmailRecipientStatus.md b/docs/EmailRecipientStatus.md index 2db1b371..7c24d092 100644 --- a/docs/EmailRecipientStatus.md +++ b/docs/EmailRecipientStatus.md @@ -3,6 +3,7 @@ Email recipient status ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/docs/EmailSchedule.md b/docs/EmailSchedule.md index 891bbb08..4ff8f29d 100644 --- a/docs/EmailSchedule.md +++ b/docs/EmailSchedule.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **sender_id** | **int** | Email sender id [required if **sender_email** is not specified] | [optional] diff --git a/docs/EmailScheduleInclude.md b/docs/EmailScheduleInclude.md index 0e51918b..36a99360 100644 --- a/docs/EmailScheduleInclude.md +++ b/docs/EmailScheduleInclude.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **document** | **bool** | Include a button to view the document | [optional] diff --git a/docs/EmailStatus.md b/docs/EmailStatus.md index 570cc1b6..bd69220b 100644 --- a/docs/EmailStatus.md +++ b/docs/EmailStatus.md @@ -3,6 +3,7 @@ Email status ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/docs/EmailsApi.md b/docs/EmailsApi.md index 11a62313..4c95c0db 100644 --- a/docs/EmailsApi.md +++ b/docs/EmailsApi.md @@ -17,9 +17,8 @@ List Emails. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.list_emails_response import ListEmailsResponse from fattureincloud_python_sdk.rest import ApiException @@ -57,6 +56,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -75,6 +75,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Example response | - | diff --git a/docs/Entity.md b/docs/Entity.md index 0c1557b0..1ff2e5e3 100644 --- a/docs/Entity.md +++ b/docs/Entity.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **int** | Entity id | [optional] diff --git a/docs/EntityType.md b/docs/EntityType.md index f898be66..08f89646 100644 --- a/docs/EntityType.md +++ b/docs/EntityType.md @@ -3,6 +3,7 @@ Entity type ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/docs/EventType.md b/docs/EventType.md index 93c7f7d8..f0c4c011 100644 --- a/docs/EventType.md +++ b/docs/EventType.md @@ -3,6 +3,7 @@ Webhooks event type ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/docs/F24.md b/docs/F24.md index fdfe5a8a..6e0640c1 100644 --- a/docs/F24.md +++ b/docs/F24.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **int** | F24 id | [optional] diff --git a/docs/F24Status.md b/docs/F24Status.md index 02ab6bf8..4c7752e7 100644 --- a/docs/F24Status.md +++ b/docs/F24Status.md @@ -3,6 +3,7 @@ F24 status ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/docs/FattureInCloudPlanType.md b/docs/FattureInCloudPlanType.md new file mode 100644 index 00000000..52ff4b09 --- /dev/null +++ b/docs/FattureInCloudPlanType.md @@ -0,0 +1,12 @@ +# FattureInCloudPlanType + +Fatture in Cloud account plan type. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FunctionStatus.md b/docs/FunctionStatus.md index 7f5106b4..3733a034 100644 --- a/docs/FunctionStatus.md +++ b/docs/FunctionStatus.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **active** | **bool** | | [optional] diff --git a/docs/GetArchiveDocumentResponse.md b/docs/GetArchiveDocumentResponse.md index e3f81c3b..ecbb77d8 100644 --- a/docs/GetArchiveDocumentResponse.md +++ b/docs/GetArchiveDocumentResponse.md @@ -3,6 +3,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**ArchiveDocument**](ArchiveDocument.md) | | [optional] diff --git a/docs/GetCashbookEntryResponse.md b/docs/GetCashbookEntryResponse.md index d7f3725e..8643b082 100644 --- a/docs/GetCashbookEntryResponse.md +++ b/docs/GetCashbookEntryResponse.md @@ -3,6 +3,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**CashbookEntry**](CashbookEntry.md) | | [optional] diff --git a/docs/GetClientResponse.md b/docs/GetClientResponse.md index 60dd3286..f84caf30 100644 --- a/docs/GetClientResponse.md +++ b/docs/GetClientResponse.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**Client**](Client.md) | | [optional] diff --git a/docs/GetCompanyInfoResponse.md b/docs/GetCompanyInfoResponse.md index 5130e31c..83abaa6d 100644 --- a/docs/GetCompanyInfoResponse.md +++ b/docs/GetCompanyInfoResponse.md @@ -3,6 +3,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**CompanyInfo**](CompanyInfo.md) | | [optional] diff --git a/docs/GetCompanyPlanUsageResponse.md b/docs/GetCompanyPlanUsageResponse.md new file mode 100644 index 00000000..b6ebe524 --- /dev/null +++ b/docs/GetCompanyPlanUsageResponse.md @@ -0,0 +1,30 @@ +# GetCompanyPlanUsageResponse + + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**CompanyPlanUsage**](CompanyPlanUsage.md) | | [optional] + +## Example + +```python +from fattureincloud_python_sdk.models.get_company_plan_usage_response import GetCompanyPlanUsageResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetCompanyPlanUsageResponse from a JSON string +get_company_plan_usage_response_instance = GetCompanyPlanUsageResponse.from_json(json) +# print the JSON string representation of the object +print GetCompanyPlanUsageResponse.to_json() + +# convert the object into a dict +get_company_plan_usage_response_dict = get_company_plan_usage_response_instance.to_dict() +# create an instance of GetCompanyPlanUsageResponse from a dict +get_company_plan_usage_response_form_dict = get_company_plan_usage_response.from_dict(get_company_plan_usage_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GetEInvoiceRejectionReasonResponse.md b/docs/GetEInvoiceRejectionReasonResponse.md index 969d0dfe..cb4d33d6 100644 --- a/docs/GetEInvoiceRejectionReasonResponse.md +++ b/docs/GetEInvoiceRejectionReasonResponse.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**EInvoiceRejectionReason**](EInvoiceRejectionReason.md) | | [optional] diff --git a/docs/GetEmailDataResponse.md b/docs/GetEmailDataResponse.md index 894d1d3a..6564569a 100644 --- a/docs/GetEmailDataResponse.md +++ b/docs/GetEmailDataResponse.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**EmailData**](EmailData.md) | | [optional] diff --git a/docs/GetExistingIssuedDocumentTotalsRequest.md b/docs/GetExistingIssuedDocumentTotalsRequest.md index 34f7f3e3..12d3f5e8 100644 --- a/docs/GetExistingIssuedDocumentTotalsRequest.md +++ b/docs/GetExistingIssuedDocumentTotalsRequest.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**IssuedDocument**](IssuedDocument.md) | | [optional] diff --git a/docs/GetExistingIssuedDocumentTotalsResponse.md b/docs/GetExistingIssuedDocumentTotalsResponse.md index 0fe5a12d..8f830d1f 100644 --- a/docs/GetExistingIssuedDocumentTotalsResponse.md +++ b/docs/GetExistingIssuedDocumentTotalsResponse.md @@ -3,6 +3,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**IssuedDocumentTotals**](IssuedDocumentTotals.md) | | [optional] diff --git a/docs/GetExistingReceivedDocumentTotalsRequest.md b/docs/GetExistingReceivedDocumentTotalsRequest.md index d4ff0c58..980e42fd 100644 --- a/docs/GetExistingReceivedDocumentTotalsRequest.md +++ b/docs/GetExistingReceivedDocumentTotalsRequest.md @@ -3,6 +3,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**ReceivedDocument**](ReceivedDocument.md) | | [optional] diff --git a/docs/GetExistingReceivedDocumentTotalsResponse.md b/docs/GetExistingReceivedDocumentTotalsResponse.md index 9d43eba0..38644e4f 100644 --- a/docs/GetExistingReceivedDocumentTotalsResponse.md +++ b/docs/GetExistingReceivedDocumentTotalsResponse.md @@ -3,6 +3,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**ReceivedDocumentTotals**](ReceivedDocumentTotals.md) | | [optional] diff --git a/docs/GetF24Response.md b/docs/GetF24Response.md index 4807bd6b..f460db1b 100644 --- a/docs/GetF24Response.md +++ b/docs/GetF24Response.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**F24**](F24.md) | | [optional] diff --git a/docs/GetIssuedDocumentPreCreateInfoResponse.md b/docs/GetIssuedDocumentPreCreateInfoResponse.md index 973a2ae9..babee9f3 100644 --- a/docs/GetIssuedDocumentPreCreateInfoResponse.md +++ b/docs/GetIssuedDocumentPreCreateInfoResponse.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**IssuedDocumentPreCreateInfo**](IssuedDocumentPreCreateInfo.md) | | [optional] diff --git a/docs/GetIssuedDocumentResponse.md b/docs/GetIssuedDocumentResponse.md index 34d6bdeb..d699707c 100644 --- a/docs/GetIssuedDocumentResponse.md +++ b/docs/GetIssuedDocumentResponse.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**IssuedDocument**](IssuedDocument.md) | | [optional] diff --git a/docs/GetNewIssuedDocumentTotalsRequest.md b/docs/GetNewIssuedDocumentTotalsRequest.md index e6373857..87e49d29 100644 --- a/docs/GetNewIssuedDocumentTotalsRequest.md +++ b/docs/GetNewIssuedDocumentTotalsRequest.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**IssuedDocument**](IssuedDocument.md) | | [optional] diff --git a/docs/GetNewIssuedDocumentTotalsResponse.md b/docs/GetNewIssuedDocumentTotalsResponse.md index 5b54b649..fa81ac8d 100644 --- a/docs/GetNewIssuedDocumentTotalsResponse.md +++ b/docs/GetNewIssuedDocumentTotalsResponse.md @@ -3,6 +3,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**IssuedDocumentTotals**](IssuedDocumentTotals.md) | | [optional] diff --git a/docs/GetNewReceivedDocumentTotalsRequest.md b/docs/GetNewReceivedDocumentTotalsRequest.md index 208cd9f6..608b0cf4 100644 --- a/docs/GetNewReceivedDocumentTotalsRequest.md +++ b/docs/GetNewReceivedDocumentTotalsRequest.md @@ -3,6 +3,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**ReceivedDocument**](ReceivedDocument.md) | | [optional] diff --git a/docs/GetNewReceivedDocumentTotalsResponse.md b/docs/GetNewReceivedDocumentTotalsResponse.md index 437bd5a4..a4c2a79a 100644 --- a/docs/GetNewReceivedDocumentTotalsResponse.md +++ b/docs/GetNewReceivedDocumentTotalsResponse.md @@ -3,6 +3,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**ReceivedDocumentTotals**](ReceivedDocumentTotals.md) | | [optional] diff --git a/docs/GetPaymentAccountResponse.md b/docs/GetPaymentAccountResponse.md index e7c42355..540fe630 100644 --- a/docs/GetPaymentAccountResponse.md +++ b/docs/GetPaymentAccountResponse.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**PaymentAccount**](PaymentAccount.md) | | [optional] diff --git a/docs/GetPaymentMethodResponse.md b/docs/GetPaymentMethodResponse.md index 629997c4..9cbe1fda 100644 --- a/docs/GetPaymentMethodResponse.md +++ b/docs/GetPaymentMethodResponse.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**PaymentMethod**](PaymentMethod.md) | | [optional] diff --git a/docs/GetProductResponse.md b/docs/GetProductResponse.md index a99eb8f5..0fb30316 100644 --- a/docs/GetProductResponse.md +++ b/docs/GetProductResponse.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**Product**](Product.md) | | [optional] diff --git a/docs/GetReceiptPreCreateInfoResponse.md b/docs/GetReceiptPreCreateInfoResponse.md index 3f85b3ea..7ebf3774 100644 --- a/docs/GetReceiptPreCreateInfoResponse.md +++ b/docs/GetReceiptPreCreateInfoResponse.md @@ -3,6 +3,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**ReceiptPreCreateInfo**](ReceiptPreCreateInfo.md) | | [optional] diff --git a/docs/GetReceiptResponse.md b/docs/GetReceiptResponse.md index 9017d275..ae7783a2 100644 --- a/docs/GetReceiptResponse.md +++ b/docs/GetReceiptResponse.md @@ -3,6 +3,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**Receipt**](Receipt.md) | | [optional] diff --git a/docs/GetReceiptsMonthlyTotalsResponse.md b/docs/GetReceiptsMonthlyTotalsResponse.md index a8984cc6..0cc2b541 100644 --- a/docs/GetReceiptsMonthlyTotalsResponse.md +++ b/docs/GetReceiptsMonthlyTotalsResponse.md @@ -3,6 +3,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**List[MonthlyTotal]**](MonthlyTotal.md) | | [optional] diff --git a/docs/GetReceivedDocumentPreCreateInfoResponse.md b/docs/GetReceivedDocumentPreCreateInfoResponse.md index 371c2ddf..d867a300 100644 --- a/docs/GetReceivedDocumentPreCreateInfoResponse.md +++ b/docs/GetReceivedDocumentPreCreateInfoResponse.md @@ -3,6 +3,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**ReceivedDocumentInfo**](ReceivedDocumentInfo.md) | | [optional] diff --git a/docs/GetReceivedDocumentResponse.md b/docs/GetReceivedDocumentResponse.md index 85faaf79..8fa7774d 100644 --- a/docs/GetReceivedDocumentResponse.md +++ b/docs/GetReceivedDocumentResponse.md @@ -3,6 +3,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**ReceivedDocument**](ReceivedDocument.md) | | [optional] diff --git a/docs/GetSupplierResponse.md b/docs/GetSupplierResponse.md index 9b4bec10..59e7aa3c 100644 --- a/docs/GetSupplierResponse.md +++ b/docs/GetSupplierResponse.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**Supplier**](Supplier.md) | | [optional] diff --git a/docs/GetUserInfoResponse.md b/docs/GetUserInfoResponse.md index 28377e58..6c177110 100644 --- a/docs/GetUserInfoResponse.md +++ b/docs/GetUserInfoResponse.md @@ -3,6 +3,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**User**](User.md) | | [optional] diff --git a/docs/GetUserInfoResponseEmailConfirmationState.md b/docs/GetUserInfoResponseEmailConfirmationState.md index da5dd54b..15f76c9e 100644 --- a/docs/GetUserInfoResponseEmailConfirmationState.md +++ b/docs/GetUserInfoResponseEmailConfirmationState.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **need_confirmation** | **bool** | | [optional] diff --git a/docs/GetUserInfoResponseInfo.md b/docs/GetUserInfoResponseInfo.md index 63230b59..30e6f413 100644 --- a/docs/GetUserInfoResponseInfo.md +++ b/docs/GetUserInfoResponseInfo.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **need_marketing_consents_confirmation** | **bool** | | [optional] diff --git a/docs/GetVatTypeResponse.md b/docs/GetVatTypeResponse.md index 2b9faf3c..7ec60af4 100644 --- a/docs/GetVatTypeResponse.md +++ b/docs/GetVatTypeResponse.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**VatType**](VatType.md) | | [optional] diff --git a/docs/GetWebhooksSubscriptionResponse.md b/docs/GetWebhooksSubscriptionResponse.md index 3275f571..d2381693 100644 --- a/docs/GetWebhooksSubscriptionResponse.md +++ b/docs/GetWebhooksSubscriptionResponse.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**WebhooksSubscription**](WebhooksSubscription.md) | | [optional] diff --git a/docs/InfoApi.md b/docs/InfoApi.md index 0cb017c4..b8b275a5 100644 --- a/docs/InfoApi.md +++ b/docs/InfoApi.md @@ -32,9 +32,8 @@ Lists the archive categories. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.list_archive_categories_response import ListArchiveCategoriesResponse from fattureincloud_python_sdk.rest import ApiException @@ -72,6 +71,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -90,6 +90,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Archive Categories list. | - | @@ -108,9 +109,8 @@ Lists the Italian cities. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.list_cities_response import ListCitiesResponse from fattureincloud_python_sdk.rest import ApiException @@ -149,6 +149,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **postal_code** | **str**| Postal code for filtering. | [optional] @@ -168,6 +169,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Cities List. | - | @@ -184,9 +186,8 @@ Lists the cost centers. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.list_cost_centers_response import ListCostCentersResponse from fattureincloud_python_sdk.rest import ApiException @@ -224,6 +225,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -242,6 +244,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | List of Cost Centers | - | @@ -260,9 +263,8 @@ Lists the supported countries. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.list_countries_response import ListCountriesResponse from fattureincloud_python_sdk.rest import ApiException @@ -298,6 +300,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + This endpoint does not need any parameter. ### Return type @@ -314,6 +317,7 @@ This endpoint does not need any parameter. - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | List of countries | - | @@ -331,9 +335,8 @@ Lists the supported currencies. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.list_currencies_response import ListCurrenciesResponse from fattureincloud_python_sdk.rest import ApiException @@ -369,6 +372,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + This endpoint does not need any parameter. ### Return type @@ -385,6 +389,7 @@ This endpoint does not need any parameter. - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Currencies List. | - | @@ -402,9 +407,8 @@ Lists the delivery note default causals. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.list_delivery_notes_default_causals_response import ListDeliveryNotesDefaultCausalsResponse from fattureincloud_python_sdk.rest import ApiException @@ -440,6 +444,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + This endpoint does not need any parameter. ### Return type @@ -456,6 +461,7 @@ This endpoint does not need any parameter. - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | List of Delivery Notes Default Causals | - | @@ -473,9 +479,8 @@ Lists the supported countries. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.list_detailed_countries_response import ListDetailedCountriesResponse from fattureincloud_python_sdk.rest import ApiException @@ -511,6 +516,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + This endpoint does not need any parameter. ### Return type @@ -527,6 +533,7 @@ This endpoint does not need any parameter. - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | List of detailed countries | - | @@ -544,9 +551,8 @@ Lists the supported languages. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.list_languages_response import ListLanguagesResponse from fattureincloud_python_sdk.rest import ApiException @@ -582,6 +588,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + This endpoint does not need any parameter. ### Return type @@ -598,6 +605,7 @@ This endpoint does not need any parameter. - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | LanguagesList | - | @@ -615,9 +623,8 @@ Lists the available payment accounts. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.list_payment_accounts_response import ListPaymentAccountsResponse from fattureincloud_python_sdk.rest import ApiException @@ -658,6 +665,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -679,6 +687,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Payment accounts list. | - | @@ -697,9 +706,8 @@ Lists the available payment methods. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.list_payment_methods_response import ListPaymentMethodsResponse from fattureincloud_python_sdk.rest import ApiException @@ -740,6 +748,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -761,6 +770,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Payment methods list. | - | @@ -779,9 +789,8 @@ Lists the product categories. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.list_product_categories_response import ListProductCategoriesResponse from fattureincloud_python_sdk.rest import ApiException @@ -820,6 +829,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -839,6 +849,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Product Categories List | - | @@ -857,9 +868,8 @@ Lists the received document categories. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.list_received_document_categories_response import ListReceivedDocumentCategoriesResponse from fattureincloud_python_sdk.rest import ApiException @@ -897,6 +907,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -915,6 +926,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Received Document Categories List | - | @@ -931,9 +943,8 @@ Lists the revenue centers. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.list_revenue_centers_response import ListRevenueCentersResponse from fattureincloud_python_sdk.rest import ApiException @@ -971,6 +982,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -989,6 +1001,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | List of Revenue Centers | - | @@ -1007,9 +1020,8 @@ Lists the available templates. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.list_templates_response import ListTemplatesResponse from fattureincloud_python_sdk.rest import ApiException @@ -1048,6 +1060,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **type** | **str**| Type of the templates. | [optional] [default to 'all'] @@ -1067,6 +1080,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Templates list. | - | @@ -1084,9 +1098,8 @@ Lists the units of measure. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.list_units_of_measure_response import ListUnitsOfMeasureResponse from fattureincloud_python_sdk.rest import ApiException @@ -1122,6 +1135,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + This endpoint does not need any parameter. ### Return type @@ -1138,6 +1152,7 @@ This endpoint does not need any parameter. - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Units of measure. | - | @@ -1155,9 +1170,8 @@ Lists the available vat types. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.list_vat_types_response import ListVatTypesResponse from fattureincloud_python_sdk.rest import ApiException @@ -1196,6 +1210,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -1215,6 +1230,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | List of Vat Types. | - | diff --git a/docs/IssuedDocument.md b/docs/IssuedDocument.md index 7ee27e06..f40069a5 100644 --- a/docs/IssuedDocument.md +++ b/docs/IssuedDocument.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **int** | Issued document id | [optional] diff --git a/docs/IssuedDocumentEiData.md b/docs/IssuedDocumentEiData.md index 03c15e75..d378b78d 100644 --- a/docs/IssuedDocumentEiData.md +++ b/docs/IssuedDocumentEiData.md @@ -3,6 +3,7 @@ Issued document e-invoice data [Only if e_invoice=true] ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **vat_kind** | [**VatKind**](VatKind.md) | | [optional] diff --git a/docs/IssuedDocumentExtraData.md b/docs/IssuedDocumentExtraData.md index 0b222ee6..cf65264e 100644 --- a/docs/IssuedDocumentExtraData.md +++ b/docs/IssuedDocumentExtraData.md @@ -3,6 +3,7 @@ Issued document extra data [TS fields follow the technical specifications provided by \"Sistema Tessera Sanitaria\"] ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **show_sofort_button** | **bool** | | [optional] diff --git a/docs/IssuedDocumentItemsListItem.md b/docs/IssuedDocumentItemsListItem.md index e2d96476..234de2b9 100644 --- a/docs/IssuedDocumentItemsListItem.md +++ b/docs/IssuedDocumentItemsListItem.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **int** | Issued document item id | [optional] diff --git a/docs/IssuedDocumentOptions.md b/docs/IssuedDocumentOptions.md index 3b1db0ea..a2def4bd 100644 --- a/docs/IssuedDocumentOptions.md +++ b/docs/IssuedDocumentOptions.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **fix_payments** | **bool** | Fixes your last payment amount to match your document total | [optional] diff --git a/docs/IssuedDocumentPaymentsListItem.md b/docs/IssuedDocumentPaymentsListItem.md index a5f9d1c0..ffa6a85f 100644 --- a/docs/IssuedDocumentPaymentsListItem.md +++ b/docs/IssuedDocumentPaymentsListItem.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **int** | Issued document payment item id | [optional] diff --git a/docs/IssuedDocumentPaymentsListItemPaymentTerms.md b/docs/IssuedDocumentPaymentsListItemPaymentTerms.md index c578d7d7..696a8c19 100644 --- a/docs/IssuedDocumentPaymentsListItemPaymentTerms.md +++ b/docs/IssuedDocumentPaymentsListItemPaymentTerms.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **days** | **int** | Issued document payment number of days by which the payment must be made | [optional] diff --git a/docs/IssuedDocumentPreCreateInfo.md b/docs/IssuedDocumentPreCreateInfo.md index e22cccef..2fa93522 100644 --- a/docs/IssuedDocumentPreCreateInfo.md +++ b/docs/IssuedDocumentPreCreateInfo.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **numerations** | **Dict[str, Dict[str, int]]** | | [optional] diff --git a/docs/IssuedDocumentPreCreateInfoDefaultValues.md b/docs/IssuedDocumentPreCreateInfoDefaultValues.md index b8467e55..f43c12e8 100644 --- a/docs/IssuedDocumentPreCreateInfoDefaultValues.md +++ b/docs/IssuedDocumentPreCreateInfoDefaultValues.md @@ -3,6 +3,7 @@ Issued document default values ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **default_template** | [**DocumentTemplate**](DocumentTemplate.md) | | [optional] diff --git a/docs/IssuedDocumentPreCreateInfoExtraDataDefaultValues.md b/docs/IssuedDocumentPreCreateInfoExtraDataDefaultValues.md index 1d0858bd..fdc9f0d8 100644 --- a/docs/IssuedDocumentPreCreateInfoExtraDataDefaultValues.md +++ b/docs/IssuedDocumentPreCreateInfoExtraDataDefaultValues.md @@ -3,6 +3,7 @@ Issued document extra data default values ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ts_communication** | **bool** | | [optional] diff --git a/docs/IssuedDocumentPreCreateInfoItemsDefaultValues.md b/docs/IssuedDocumentPreCreateInfoItemsDefaultValues.md index 8d2f8bc0..bc09acc3 100644 --- a/docs/IssuedDocumentPreCreateInfoItemsDefaultValues.md +++ b/docs/IssuedDocumentPreCreateInfoItemsDefaultValues.md @@ -3,6 +3,7 @@ Issued document items default values ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **vat** | [**VatType**](VatType.md) | | [optional] diff --git a/docs/IssuedDocumentStatus.md b/docs/IssuedDocumentStatus.md index d635b0e9..3fcba02c 100644 --- a/docs/IssuedDocumentStatus.md +++ b/docs/IssuedDocumentStatus.md @@ -3,6 +3,7 @@ Issued document status ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/docs/IssuedDocumentTotals.md b/docs/IssuedDocumentTotals.md index 435f6d73..26aa57cb 100644 --- a/docs/IssuedDocumentTotals.md +++ b/docs/IssuedDocumentTotals.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **amount_net** | **float** | Issued document total net amount | [optional] diff --git a/docs/IssuedDocumentType.md b/docs/IssuedDocumentType.md index ee1532b6..15b5aa91 100644 --- a/docs/IssuedDocumentType.md +++ b/docs/IssuedDocumentType.md @@ -3,6 +3,7 @@ Issued document type ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/docs/IssuedDocumentsApi.md b/docs/IssuedDocumentsApi.md index a9a02edd..660c82e9 100644 --- a/docs/IssuedDocumentsApi.md +++ b/docs/IssuedDocumentsApi.md @@ -30,9 +30,8 @@ Creates a new document. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.create_issued_document_request import CreateIssuedDocumentRequest from fattureincloud_python_sdk.models.create_issued_document_response import CreateIssuedDocumentResponse @@ -72,6 +71,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -91,6 +91,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Document created. | - | @@ -108,9 +109,8 @@ Deletes the specified document. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.rest import ApiException from pprint import pprint @@ -146,6 +146,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -165,6 +166,7 @@ void (empty response body) - **Accept**: Not defined ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Document removed | - | @@ -183,9 +185,8 @@ Removes the attachment of the specified document. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.rest import ApiException from pprint import pprint @@ -221,6 +222,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -240,6 +242,7 @@ void (empty response body) - **Accept**: Not defined ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | File removed. | - | @@ -258,9 +261,8 @@ Gets the pre-compiled email details. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.get_email_data_response import GetEmailDataResponse from fattureincloud_python_sdk.rest import ApiException @@ -299,6 +301,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -318,6 +321,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | EmailData | - | @@ -334,9 +338,8 @@ Returns the totals for a specified document. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.get_existing_issued_document_totals_request import GetExistingIssuedDocumentTotalsRequest from fattureincloud_python_sdk.models.get_existing_issued_document_totals_response import GetExistingIssuedDocumentTotalsResponse @@ -377,6 +380,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -397,6 +401,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Totals. | - | @@ -415,9 +420,8 @@ Gets the specified document. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.get_issued_document_response import GetIssuedDocumentResponse from fattureincloud_python_sdk.rest import ApiException @@ -458,6 +462,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -479,6 +484,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Document Details. | - | @@ -497,9 +503,8 @@ Retrieves the information useful while creating a new document. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.get_issued_document_pre_create_info_response import GetIssuedDocumentPreCreateInfoResponse from fattureincloud_python_sdk.rest import ApiException @@ -538,6 +543,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -557,6 +563,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Pre-create info. | - | @@ -573,9 +580,8 @@ Returns the totals for a new document. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.get_new_issued_document_totals_request import GetNewIssuedDocumentTotalsRequest from fattureincloud_python_sdk.models.get_new_issued_document_totals_response import GetNewIssuedDocumentTotalsResponse @@ -615,6 +621,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -634,6 +641,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Totals. | - | @@ -651,9 +659,8 @@ Joins issued documents. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.join_issued_documents_response import JoinIssuedDocumentsResponse from fattureincloud_python_sdk.rest import ApiException @@ -694,6 +701,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -715,6 +723,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Example response | - | @@ -731,9 +740,8 @@ Lists the issued documents. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.list_issued_documents_response import ListIssuedDocumentsResponse from fattureincloud_python_sdk.rest import ApiException @@ -779,6 +787,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -805,6 +814,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Results list. | - | @@ -823,9 +833,8 @@ Modifies the specified document. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.modify_issued_document_request import ModifyIssuedDocumentRequest from fattureincloud_python_sdk.models.modify_issued_document_response import ModifyIssuedDocumentResponse @@ -866,6 +875,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -886,6 +896,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Document edited | - | @@ -904,9 +915,8 @@ Schedules the sending of a document by email. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.schedule_email_request import ScheduleEmailRequest from fattureincloud_python_sdk.rest import ApiException @@ -944,6 +954,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -964,6 +975,7 @@ void (empty response body) - **Accept**: Not defined ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | @@ -982,9 +994,8 @@ Transforms the document. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.transform_issued_document_response import TransformIssuedDocumentResponse from fattureincloud_python_sdk.rest import ApiException @@ -1026,6 +1037,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -1048,6 +1060,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Example response | - | @@ -1064,9 +1077,8 @@ Uploads an attachment destined to an issued document. The actual association bet ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.upload_issued_document_attachment_response import UploadIssuedDocumentAttachmentResponse from fattureincloud_python_sdk.rest import ApiException @@ -1106,6 +1118,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -1126,6 +1139,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Attachment Token. | - | diff --git a/docs/IssuedEInvoicesApi.md b/docs/IssuedEInvoicesApi.md index e755f5ec..5aa99e2f 100644 --- a/docs/IssuedEInvoicesApi.md +++ b/docs/IssuedEInvoicesApi.md @@ -20,9 +20,8 @@ Get e-invoice rejection reason ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.get_e_invoice_rejection_reason_response import GetEInvoiceRejectionReasonResponse from fattureincloud_python_sdk.rest import ApiException @@ -61,6 +60,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -80,6 +80,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Example response | - | @@ -96,9 +97,8 @@ Downloads the e-invoice in XML format. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.rest import ApiException from pprint import pprint @@ -137,6 +137,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -157,6 +158,7 @@ Name | Type | Description | Notes - **Accept**: text/xml ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | | - | @@ -175,9 +177,8 @@ Sends the e-invoice to SDI. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.send_e_invoice_request import SendEInvoiceRequest from fattureincloud_python_sdk.models.send_e_invoice_response import SendEInvoiceResponse @@ -218,6 +219,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -238,6 +240,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Example response | - | @@ -256,9 +259,8 @@ Verifies the e-invoice XML format. Checks if all of the mandatory fields are fil ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.verify_e_invoice_xml_response import VerifyEInvoiceXmlResponse from fattureincloud_python_sdk.rest import ApiException @@ -297,6 +299,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -316,6 +319,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Example response | - | diff --git a/docs/JoinIssuedDocumentsResponse.md b/docs/JoinIssuedDocumentsResponse.md index 4206e15a..81f87a32 100644 --- a/docs/JoinIssuedDocumentsResponse.md +++ b/docs/JoinIssuedDocumentsResponse.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**IssuedDocument**](IssuedDocument.md) | | [optional] diff --git a/docs/Language.md b/docs/Language.md index 33b5c461..af17b6b3 100644 --- a/docs/Language.md +++ b/docs/Language.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **code** | **str** | Language code | [optional] diff --git a/docs/ListArchiveCategoriesResponse.md b/docs/ListArchiveCategoriesResponse.md index 7e520495..c951c043 100644 --- a/docs/ListArchiveCategoriesResponse.md +++ b/docs/ListArchiveCategoriesResponse.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | **List[str]** | | [optional] diff --git a/docs/ListArchiveDocumentsResponse.md b/docs/ListArchiveDocumentsResponse.md index 2acd5044..e2676119 100644 --- a/docs/ListArchiveDocumentsResponse.md +++ b/docs/ListArchiveDocumentsResponse.md @@ -3,6 +3,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **current_page** | **int** | Current page number. | [optional] diff --git a/docs/ListArchiveDocumentsResponsePage.md b/docs/ListArchiveDocumentsResponsePage.md index bcec21db..d6a159a5 100644 --- a/docs/ListArchiveDocumentsResponsePage.md +++ b/docs/ListArchiveDocumentsResponsePage.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**List[ArchiveDocument]**](ArchiveDocument.md) | | [optional] diff --git a/docs/ListCashbookEntriesResponse.md b/docs/ListCashbookEntriesResponse.md index d2da1776..18f23f19 100644 --- a/docs/ListCashbookEntriesResponse.md +++ b/docs/ListCashbookEntriesResponse.md @@ -3,6 +3,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**List[CashbookEntry]**](CashbookEntry.md) | | [optional] diff --git a/docs/ListCitiesResponse.md b/docs/ListCitiesResponse.md index cf40c7c9..efa6b5a4 100644 --- a/docs/ListCitiesResponse.md +++ b/docs/ListCitiesResponse.md @@ -3,6 +3,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**List[City]**](City.md) | | [optional] diff --git a/docs/ListClientsResponse.md b/docs/ListClientsResponse.md index e5e03d90..628fa77c 100644 --- a/docs/ListClientsResponse.md +++ b/docs/ListClientsResponse.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **current_page** | **int** | Current page number. | [optional] diff --git a/docs/ListClientsResponsePage.md b/docs/ListClientsResponsePage.md index 0c3129d8..51c01c66 100644 --- a/docs/ListClientsResponsePage.md +++ b/docs/ListClientsResponsePage.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**List[Client]**](Client.md) | | [optional] diff --git a/docs/ListCostCentersResponse.md b/docs/ListCostCentersResponse.md index 800f4b4a..78033e13 100644 --- a/docs/ListCostCentersResponse.md +++ b/docs/ListCostCentersResponse.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | **List[str]** | | [optional] diff --git a/docs/ListCountriesResponse.md b/docs/ListCountriesResponse.md index a1b96b10..e4a78a82 100644 --- a/docs/ListCountriesResponse.md +++ b/docs/ListCountriesResponse.md @@ -3,6 +3,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | **List[str]** | | [optional] diff --git a/docs/ListCurrenciesResponse.md b/docs/ListCurrenciesResponse.md index 51c145aa..b9a1a404 100644 --- a/docs/ListCurrenciesResponse.md +++ b/docs/ListCurrenciesResponse.md @@ -3,6 +3,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**List[Currency]**](Currency.md) | | [optional] diff --git a/docs/ListDeliveryNotesDefaultCausalsResponse.md b/docs/ListDeliveryNotesDefaultCausalsResponse.md index c4a613a2..753f17a7 100644 --- a/docs/ListDeliveryNotesDefaultCausalsResponse.md +++ b/docs/ListDeliveryNotesDefaultCausalsResponse.md @@ -3,6 +3,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | **List[str]** | | [optional] diff --git a/docs/ListDetailedCountriesResponse.md b/docs/ListDetailedCountriesResponse.md index e2466f3f..c180fb5a 100644 --- a/docs/ListDetailedCountriesResponse.md +++ b/docs/ListDetailedCountriesResponse.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**List[DetailedCountry]**](DetailedCountry.md) | | [optional] diff --git a/docs/ListEmailsResponse.md b/docs/ListEmailsResponse.md index 6acaea58..83d50e1e 100644 --- a/docs/ListEmailsResponse.md +++ b/docs/ListEmailsResponse.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **current_page** | **int** | Current page number. | [optional] diff --git a/docs/ListEmailsResponsePage.md b/docs/ListEmailsResponsePage.md index 389a1bba..3c3b0b37 100644 --- a/docs/ListEmailsResponsePage.md +++ b/docs/ListEmailsResponsePage.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**List[Email]**](Email.md) | | [optional] diff --git a/docs/ListF24Response.md b/docs/ListF24Response.md index 3065d1a4..02c3832c 100644 --- a/docs/ListF24Response.md +++ b/docs/ListF24Response.md @@ -3,6 +3,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **current_page** | **int** | Current page number. | [optional] diff --git a/docs/ListF24ResponseAggregatedData.md b/docs/ListF24ResponseAggregatedData.md index 606731b8..0e9e9559 100644 --- a/docs/ListF24ResponseAggregatedData.md +++ b/docs/ListF24ResponseAggregatedData.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **amount** | **float** | Total amount. | [optional] diff --git a/docs/ListF24ResponseAggregation.md b/docs/ListF24ResponseAggregation.md index dd99ab66..54852b29 100644 --- a/docs/ListF24ResponseAggregation.md +++ b/docs/ListF24ResponseAggregation.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **aggregated_data** | [**ListF24ResponseAggregatedData**](ListF24ResponseAggregatedData.md) | | [optional] diff --git a/docs/ListF24ResponsePage.md b/docs/ListF24ResponsePage.md index cbf0c94f..2bbb73e0 100644 --- a/docs/ListF24ResponsePage.md +++ b/docs/ListF24ResponsePage.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**List[F24]**](F24.md) | | [optional] diff --git a/docs/ListIssuedDocumentsResponse.md b/docs/ListIssuedDocumentsResponse.md index a6c650d8..a8de62f3 100644 --- a/docs/ListIssuedDocumentsResponse.md +++ b/docs/ListIssuedDocumentsResponse.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **current_page** | **int** | Current page number. | [optional] diff --git a/docs/ListIssuedDocumentsResponsePage.md b/docs/ListIssuedDocumentsResponsePage.md index 2b4f957e..5070c083 100644 --- a/docs/ListIssuedDocumentsResponsePage.md +++ b/docs/ListIssuedDocumentsResponsePage.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**List[IssuedDocument]**](IssuedDocument.md) | | [optional] diff --git a/docs/ListLanguagesResponse.md b/docs/ListLanguagesResponse.md index c03c9e74..e6e71280 100644 --- a/docs/ListLanguagesResponse.md +++ b/docs/ListLanguagesResponse.md @@ -3,6 +3,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**List[Language]**](Language.md) | | [optional] diff --git a/docs/ListPaymentAccountsResponse.md b/docs/ListPaymentAccountsResponse.md index 31e6f0de..a77f0d72 100644 --- a/docs/ListPaymentAccountsResponse.md +++ b/docs/ListPaymentAccountsResponse.md @@ -3,6 +3,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**List[PaymentAccount]**](PaymentAccount.md) | | [optional] diff --git a/docs/ListPaymentMethodsResponse.md b/docs/ListPaymentMethodsResponse.md index 4cad476e..68170c27 100644 --- a/docs/ListPaymentMethodsResponse.md +++ b/docs/ListPaymentMethodsResponse.md @@ -3,6 +3,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**List[PaymentMethod]**](PaymentMethod.md) | | [optional] diff --git a/docs/ListProductCategoriesResponse.md b/docs/ListProductCategoriesResponse.md index c2163d9b..02ef2a11 100644 --- a/docs/ListProductCategoriesResponse.md +++ b/docs/ListProductCategoriesResponse.md @@ -3,6 +3,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | **List[str]** | | [optional] diff --git a/docs/ListProductsResponse.md b/docs/ListProductsResponse.md index 3cf66443..590c4047 100644 --- a/docs/ListProductsResponse.md +++ b/docs/ListProductsResponse.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **current_page** | **int** | Current page number. | [optional] diff --git a/docs/ListProductsResponsePage.md b/docs/ListProductsResponsePage.md index a216d4d9..7cdda582 100644 --- a/docs/ListProductsResponsePage.md +++ b/docs/ListProductsResponsePage.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**List[Product]**](Product.md) | | [optional] diff --git a/docs/ListReceiptsResponse.md b/docs/ListReceiptsResponse.md index 31887084..8926c377 100644 --- a/docs/ListReceiptsResponse.md +++ b/docs/ListReceiptsResponse.md @@ -3,6 +3,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **current_page** | **int** | Current page number. | [optional] diff --git a/docs/ListReceiptsResponsePage.md b/docs/ListReceiptsResponsePage.md index c4079abe..579147ee 100644 --- a/docs/ListReceiptsResponsePage.md +++ b/docs/ListReceiptsResponsePage.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**List[Receipt]**](Receipt.md) | | [optional] diff --git a/docs/ListReceivedDocumentCategoriesResponse.md b/docs/ListReceivedDocumentCategoriesResponse.md index 8033d226..db19e421 100644 --- a/docs/ListReceivedDocumentCategoriesResponse.md +++ b/docs/ListReceivedDocumentCategoriesResponse.md @@ -3,6 +3,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | **List[str]** | | [optional] diff --git a/docs/ListReceivedDocumentsResponse.md b/docs/ListReceivedDocumentsResponse.md index 2764159c..736f6a54 100644 --- a/docs/ListReceivedDocumentsResponse.md +++ b/docs/ListReceivedDocumentsResponse.md @@ -3,6 +3,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **current_page** | **int** | Current page number. | [optional] diff --git a/docs/ListReceivedDocumentsResponsePage.md b/docs/ListReceivedDocumentsResponsePage.md index 6c07ad42..f9862fd2 100644 --- a/docs/ListReceivedDocumentsResponsePage.md +++ b/docs/ListReceivedDocumentsResponsePage.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**List[ReceivedDocument]**](ReceivedDocument.md) | | [optional] diff --git a/docs/ListRevenueCentersResponse.md b/docs/ListRevenueCentersResponse.md index 128ed288..dce3ead0 100644 --- a/docs/ListRevenueCentersResponse.md +++ b/docs/ListRevenueCentersResponse.md @@ -3,6 +3,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | **List[str]** | | [optional] diff --git a/docs/ListSuppliersResponse.md b/docs/ListSuppliersResponse.md index 43dd947e..6fe61581 100644 --- a/docs/ListSuppliersResponse.md +++ b/docs/ListSuppliersResponse.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **current_page** | **int** | Current page number. | [optional] diff --git a/docs/ListSuppliersResponsePage.md b/docs/ListSuppliersResponsePage.md index 836a487b..97ab0cd0 100644 --- a/docs/ListSuppliersResponsePage.md +++ b/docs/ListSuppliersResponsePage.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**List[Supplier]**](Supplier.md) | | [optional] diff --git a/docs/ListTemplatesResponse.md b/docs/ListTemplatesResponse.md index 8fe851e0..a38b3a8e 100644 --- a/docs/ListTemplatesResponse.md +++ b/docs/ListTemplatesResponse.md @@ -3,6 +3,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**List[DocumentTemplate]**](DocumentTemplate.md) | | [optional] diff --git a/docs/ListUnitsOfMeasureResponse.md b/docs/ListUnitsOfMeasureResponse.md index b83dd5f2..249c680c 100644 --- a/docs/ListUnitsOfMeasureResponse.md +++ b/docs/ListUnitsOfMeasureResponse.md @@ -3,6 +3,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | **List[str]** | | [optional] diff --git a/docs/ListUserCompaniesResponse.md b/docs/ListUserCompaniesResponse.md index 8e14723e..05aaf831 100644 --- a/docs/ListUserCompaniesResponse.md +++ b/docs/ListUserCompaniesResponse.md @@ -3,6 +3,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**ListUserCompaniesResponseData**](ListUserCompaniesResponseData.md) | | [optional] diff --git a/docs/ListUserCompaniesResponseData.md b/docs/ListUserCompaniesResponseData.md index 7a917bd3..2cf90391 100644 --- a/docs/ListUserCompaniesResponseData.md +++ b/docs/ListUserCompaniesResponseData.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **companies** | [**List[Company]**](Company.md) | | [optional] diff --git a/docs/ListVatTypesResponse.md b/docs/ListVatTypesResponse.md index fb9b723e..f10ace69 100644 --- a/docs/ListVatTypesResponse.md +++ b/docs/ListVatTypesResponse.md @@ -3,6 +3,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**List[VatType]**](VatType.md) | | [optional] diff --git a/docs/ListWebhooksSubscriptionsResponse.md b/docs/ListWebhooksSubscriptionsResponse.md index e4c6748f..d7d45e25 100644 --- a/docs/ListWebhooksSubscriptionsResponse.md +++ b/docs/ListWebhooksSubscriptionsResponse.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**List[WebhooksSubscription]**](WebhooksSubscription.md) | | [optional] diff --git a/docs/ModifyArchiveDocumentRequest.md b/docs/ModifyArchiveDocumentRequest.md index ce9fbabf..fc6898c9 100644 --- a/docs/ModifyArchiveDocumentRequest.md +++ b/docs/ModifyArchiveDocumentRequest.md @@ -3,6 +3,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**ArchiveDocument**](ArchiveDocument.md) | | [optional] diff --git a/docs/ModifyArchiveDocumentResponse.md b/docs/ModifyArchiveDocumentResponse.md index 1b395c29..4c7e1946 100644 --- a/docs/ModifyArchiveDocumentResponse.md +++ b/docs/ModifyArchiveDocumentResponse.md @@ -3,6 +3,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**ArchiveDocument**](ArchiveDocument.md) | | [optional] diff --git a/docs/ModifyCashbookEntryRequest.md b/docs/ModifyCashbookEntryRequest.md index 51ccc192..299df174 100644 --- a/docs/ModifyCashbookEntryRequest.md +++ b/docs/ModifyCashbookEntryRequest.md @@ -3,6 +3,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**CashbookEntry**](CashbookEntry.md) | | [optional] diff --git a/docs/ModifyCashbookEntryResponse.md b/docs/ModifyCashbookEntryResponse.md index c71d7b8a..1ca77f0c 100644 --- a/docs/ModifyCashbookEntryResponse.md +++ b/docs/ModifyCashbookEntryResponse.md @@ -3,6 +3,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**CashbookEntry**](CashbookEntry.md) | | [optional] diff --git a/docs/ModifyClientRequest.md b/docs/ModifyClientRequest.md index a384564f..c3e59e60 100644 --- a/docs/ModifyClientRequest.md +++ b/docs/ModifyClientRequest.md @@ -3,6 +3,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**Client**](Client.md) | | [optional] diff --git a/docs/ModifyClientResponse.md b/docs/ModifyClientResponse.md index 4cabdc3f..5039cb4f 100644 --- a/docs/ModifyClientResponse.md +++ b/docs/ModifyClientResponse.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**Client**](Client.md) | | [optional] diff --git a/docs/ModifyF24Request.md b/docs/ModifyF24Request.md index 22962d16..c3bdd509 100644 --- a/docs/ModifyF24Request.md +++ b/docs/ModifyF24Request.md @@ -3,6 +3,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**F24**](F24.md) | | [optional] diff --git a/docs/ModifyF24Response.md b/docs/ModifyF24Response.md index 6296f831..d73ddcc7 100644 --- a/docs/ModifyF24Response.md +++ b/docs/ModifyF24Response.md @@ -3,6 +3,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**F24**](F24.md) | | [optional] diff --git a/docs/ModifyIssuedDocumentRequest.md b/docs/ModifyIssuedDocumentRequest.md index bad4b3a5..62a3c92b 100644 --- a/docs/ModifyIssuedDocumentRequest.md +++ b/docs/ModifyIssuedDocumentRequest.md @@ -3,6 +3,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**IssuedDocument**](IssuedDocument.md) | | [optional] diff --git a/docs/ModifyIssuedDocumentResponse.md b/docs/ModifyIssuedDocumentResponse.md index d76bd6e6..af236500 100644 --- a/docs/ModifyIssuedDocumentResponse.md +++ b/docs/ModifyIssuedDocumentResponse.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**IssuedDocument**](IssuedDocument.md) | | [optional] diff --git a/docs/ModifyPaymentAccountRequest.md b/docs/ModifyPaymentAccountRequest.md index 10f83aec..dc4b84e9 100644 --- a/docs/ModifyPaymentAccountRequest.md +++ b/docs/ModifyPaymentAccountRequest.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**PaymentAccount**](PaymentAccount.md) | | [optional] diff --git a/docs/ModifyPaymentAccountResponse.md b/docs/ModifyPaymentAccountResponse.md index f9494f1f..eee3b04c 100644 --- a/docs/ModifyPaymentAccountResponse.md +++ b/docs/ModifyPaymentAccountResponse.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**PaymentAccount**](PaymentAccount.md) | | [optional] diff --git a/docs/ModifyPaymentMethodRequest.md b/docs/ModifyPaymentMethodRequest.md index 56a1977e..209d8f29 100644 --- a/docs/ModifyPaymentMethodRequest.md +++ b/docs/ModifyPaymentMethodRequest.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**PaymentMethod**](PaymentMethod.md) | | [optional] diff --git a/docs/ModifyPaymentMethodResponse.md b/docs/ModifyPaymentMethodResponse.md index 1781b6dd..f2e41895 100644 --- a/docs/ModifyPaymentMethodResponse.md +++ b/docs/ModifyPaymentMethodResponse.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**PaymentMethod**](PaymentMethod.md) | | [optional] diff --git a/docs/ModifyProductRequest.md b/docs/ModifyProductRequest.md index b941cd5a..d14ac773 100644 --- a/docs/ModifyProductRequest.md +++ b/docs/ModifyProductRequest.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**Product**](Product.md) | | [optional] diff --git a/docs/ModifyProductResponse.md b/docs/ModifyProductResponse.md index b9731e3c..250314ee 100644 --- a/docs/ModifyProductResponse.md +++ b/docs/ModifyProductResponse.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**Product**](Product.md) | | [optional] diff --git a/docs/ModifyReceiptRequest.md b/docs/ModifyReceiptRequest.md index 4e878367..8e5550a2 100644 --- a/docs/ModifyReceiptRequest.md +++ b/docs/ModifyReceiptRequest.md @@ -3,6 +3,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**Receipt**](Receipt.md) | | [optional] diff --git a/docs/ModifyReceiptResponse.md b/docs/ModifyReceiptResponse.md index f02dcce0..e9f3f29d 100644 --- a/docs/ModifyReceiptResponse.md +++ b/docs/ModifyReceiptResponse.md @@ -3,6 +3,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**Receipt**](Receipt.md) | | [optional] diff --git a/docs/ModifyReceivedDocumentRequest.md b/docs/ModifyReceivedDocumentRequest.md index afa51c21..de7df0a9 100644 --- a/docs/ModifyReceivedDocumentRequest.md +++ b/docs/ModifyReceivedDocumentRequest.md @@ -3,6 +3,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**ReceivedDocument**](ReceivedDocument.md) | | [optional] diff --git a/docs/ModifyReceivedDocumentResponse.md b/docs/ModifyReceivedDocumentResponse.md index 416562cc..54afb25d 100644 --- a/docs/ModifyReceivedDocumentResponse.md +++ b/docs/ModifyReceivedDocumentResponse.md @@ -3,6 +3,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**ReceivedDocument**](ReceivedDocument.md) | | [optional] diff --git a/docs/ModifySupplierRequest.md b/docs/ModifySupplierRequest.md index 54044938..d2c6ea37 100644 --- a/docs/ModifySupplierRequest.md +++ b/docs/ModifySupplierRequest.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**Supplier**](Supplier.md) | | [optional] diff --git a/docs/ModifySupplierResponse.md b/docs/ModifySupplierResponse.md index a78d020b..902f0166 100644 --- a/docs/ModifySupplierResponse.md +++ b/docs/ModifySupplierResponse.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**Supplier**](Supplier.md) | | [optional] diff --git a/docs/ModifyVatTypeRequest.md b/docs/ModifyVatTypeRequest.md index 5625cc39..67bc50c8 100644 --- a/docs/ModifyVatTypeRequest.md +++ b/docs/ModifyVatTypeRequest.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**VatType**](VatType.md) | | [optional] diff --git a/docs/ModifyVatTypeResponse.md b/docs/ModifyVatTypeResponse.md index 0b3466f3..0a863988 100644 --- a/docs/ModifyVatTypeResponse.md +++ b/docs/ModifyVatTypeResponse.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**VatType**](VatType.md) | | [optional] diff --git a/docs/ModifyWebhooksSubscriptionRequest.md b/docs/ModifyWebhooksSubscriptionRequest.md index 1fd61787..51d6bfde 100644 --- a/docs/ModifyWebhooksSubscriptionRequest.md +++ b/docs/ModifyWebhooksSubscriptionRequest.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**WebhooksSubscription**](WebhooksSubscription.md) | | [optional] diff --git a/docs/ModifyWebhooksSubscriptionResponse.md b/docs/ModifyWebhooksSubscriptionResponse.md index 66e31178..0fdf057a 100644 --- a/docs/ModifyWebhooksSubscriptionResponse.md +++ b/docs/ModifyWebhooksSubscriptionResponse.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**WebhooksSubscription**](WebhooksSubscription.md) | | [optional] diff --git a/docs/MonthlyTotal.md b/docs/MonthlyTotal.md index 20910151..81424b1a 100644 --- a/docs/MonthlyTotal.md +++ b/docs/MonthlyTotal.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **net** | **float** | Monthly total net amount | [optional] diff --git a/docs/OriginalDocumentType.md b/docs/OriginalDocumentType.md index c70d9178..7f8714ed 100644 --- a/docs/OriginalDocumentType.md +++ b/docs/OriginalDocumentType.md @@ -3,6 +3,7 @@ Issued document original document type ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/docs/Pagination.md b/docs/Pagination.md index db44cd79..7343dda4 100644 --- a/docs/Pagination.md +++ b/docs/Pagination.md @@ -3,6 +3,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **current_page** | **int** | Current page number. | [optional] diff --git a/docs/PaymentAccount.md b/docs/PaymentAccount.md index 0838eafc..cb982241 100644 --- a/docs/PaymentAccount.md +++ b/docs/PaymentAccount.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **int** | Payment account id | [optional] diff --git a/docs/PaymentAccountType.md b/docs/PaymentAccountType.md index 014699ef..13754066 100644 --- a/docs/PaymentAccountType.md +++ b/docs/PaymentAccountType.md @@ -3,6 +3,7 @@ Payment account type ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/docs/PaymentMethod.md b/docs/PaymentMethod.md index d70182cd..572a3e20 100644 --- a/docs/PaymentMethod.md +++ b/docs/PaymentMethod.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **int** | Payment method id | [optional] diff --git a/docs/PaymentMethodDetails.md b/docs/PaymentMethodDetails.md index 534396ab..d7822285 100644 --- a/docs/PaymentMethodDetails.md +++ b/docs/PaymentMethodDetails.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **title** | **str** | Payment method details title | [optional] diff --git a/docs/PaymentMethodType.md b/docs/PaymentMethodType.md index 6fc15e88..1b9f16a4 100644 --- a/docs/PaymentMethodType.md +++ b/docs/PaymentMethodType.md @@ -3,6 +3,7 @@ Payment method type ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/docs/PaymentTermsType.md b/docs/PaymentTermsType.md index 1fc5364b..ea2beb7d 100644 --- a/docs/PaymentTermsType.md +++ b/docs/PaymentTermsType.md @@ -3,6 +3,7 @@ Payment terms type ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/docs/PermissionLevel.md b/docs/PermissionLevel.md index b81d1bd8..b6776b87 100644 --- a/docs/PermissionLevel.md +++ b/docs/PermissionLevel.md @@ -3,6 +3,7 @@ Permission level ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/docs/Permissions.md b/docs/Permissions.md index d728706b..1f4cba56 100644 --- a/docs/Permissions.md +++ b/docs/Permissions.md @@ -3,6 +3,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **fic_situation** | [**PermissionLevel**](PermissionLevel.md) | | [optional] diff --git a/docs/PermissionsFicIssuedDocumentsDetailed.md b/docs/PermissionsFicIssuedDocumentsDetailed.md index 4defa3b8..abca3f48 100644 --- a/docs/PermissionsFicIssuedDocumentsDetailed.md +++ b/docs/PermissionsFicIssuedDocumentsDetailed.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **quotes** | [**PermissionLevel**](PermissionLevel.md) | | [optional] diff --git a/docs/Product.md b/docs/Product.md index 3bafabb7..d691ca0b 100644 --- a/docs/Product.md +++ b/docs/Product.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **int** | Product id | [optional] diff --git a/docs/ProductsApi.md b/docs/ProductsApi.md index d3227561..6bf3c44b 100644 --- a/docs/ProductsApi.md +++ b/docs/ProductsApi.md @@ -21,9 +21,8 @@ Creates a new product. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.create_product_request import CreateProductRequest from fattureincloud_python_sdk.models.create_product_response import CreateProductResponse @@ -63,6 +62,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -82,6 +82,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Example response | - | @@ -98,9 +99,8 @@ Deletes the specified product. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.rest import ApiException from pprint import pprint @@ -136,6 +136,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -155,6 +156,7 @@ void (empty response body) - **Accept**: Not defined ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Product removed. | - | @@ -173,9 +175,8 @@ Gets the specified product. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.get_product_response import GetProductResponse from fattureincloud_python_sdk.rest import ApiException @@ -216,6 +217,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -237,6 +239,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Example response | - | @@ -255,9 +258,8 @@ Lists the products. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.list_products_response import ListProductsResponse from fattureincloud_python_sdk.rest import ApiException @@ -301,6 +303,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -325,6 +328,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Products List. | - | @@ -342,9 +346,8 @@ Modifies the specified product. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.modify_product_request import ModifyProductRequest from fattureincloud_python_sdk.models.modify_product_response import ModifyProductResponse @@ -385,6 +388,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -405,6 +409,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Example response | - | diff --git a/docs/Receipt.md b/docs/Receipt.md index dc2df382..748ae9a0 100644 --- a/docs/Receipt.md +++ b/docs/Receipt.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **int** | Receipt id | [optional] diff --git a/docs/ReceiptItemsListItem.md b/docs/ReceiptItemsListItem.md index f8a0a230..b8c68a55 100644 --- a/docs/ReceiptItemsListItem.md +++ b/docs/ReceiptItemsListItem.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **int** | Receipt item id | [optional] diff --git a/docs/ReceiptPreCreateInfo.md b/docs/ReceiptPreCreateInfo.md index 6b5138f0..6d8d268c 100644 --- a/docs/ReceiptPreCreateInfo.md +++ b/docs/ReceiptPreCreateInfo.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **numerations** | **Dict[str, Dict[str, int]]** | | [optional] diff --git a/docs/ReceiptType.md b/docs/ReceiptType.md index 5c1cf1d2..b887e590 100644 --- a/docs/ReceiptType.md +++ b/docs/ReceiptType.md @@ -3,6 +3,7 @@ Receipt type ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/docs/ReceiptsApi.md b/docs/ReceiptsApi.md index 71a6e8fb..c0df7b1e 100644 --- a/docs/ReceiptsApi.md +++ b/docs/ReceiptsApi.md @@ -23,9 +23,8 @@ Creates a new receipt. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.create_receipt_request import CreateReceiptRequest from fattureincloud_python_sdk.models.create_receipt_response import CreateReceiptResponse @@ -65,6 +64,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -84,6 +84,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Created Receipt. | - | @@ -101,9 +102,8 @@ Deletes the specified receipt. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.rest import ApiException from pprint import pprint @@ -139,6 +139,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -158,6 +159,7 @@ void (empty response body) - **Accept**: Not defined ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Document removed. | - | @@ -176,9 +178,8 @@ Gets the specified receipt. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.get_receipt_response import GetReceiptResponse from fattureincloud_python_sdk.rest import ApiException @@ -219,6 +220,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -240,6 +242,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Receipt Details. | - | @@ -258,9 +261,8 @@ Retrieves the information useful while creating a new receipt. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.get_receipt_pre_create_info_response import GetReceiptPreCreateInfoResponse from fattureincloud_python_sdk.rest import ApiException @@ -298,6 +300,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -316,6 +319,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Pre-create info. | - | @@ -334,9 +338,8 @@ Returns the monthly totals by year and receipt type. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.get_receipts_monthly_totals_response import GetReceiptsMonthlyTotalsResponse from fattureincloud_python_sdk.rest import ApiException @@ -376,6 +379,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -396,6 +400,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Monthly Totals. | - | @@ -414,9 +419,8 @@ Lists the receipts. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.list_receipts_response import ListReceiptsResponse from fattureincloud_python_sdk.rest import ApiException @@ -460,6 +464,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -484,6 +489,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Receipts list. | - | @@ -501,9 +507,8 @@ Modifies the specified receipt. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.modify_receipt_request import ModifyReceiptRequest from fattureincloud_python_sdk.models.modify_receipt_response import ModifyReceiptResponse @@ -544,6 +549,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -564,6 +570,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Modified receipt. | - | diff --git a/docs/ReceivedDocument.md b/docs/ReceivedDocument.md index e40a2c79..b707e799 100644 --- a/docs/ReceivedDocument.md +++ b/docs/ReceivedDocument.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **int** | Received document id | [optional] diff --git a/docs/ReceivedDocumentInfo.md b/docs/ReceivedDocumentInfo.md index 848cfe0f..bc1885ac 100644 --- a/docs/ReceivedDocumentInfo.md +++ b/docs/ReceivedDocumentInfo.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **default_values** | [**ReceivedDocumentInfoDefaultValues**](ReceivedDocumentInfoDefaultValues.md) | | [optional] diff --git a/docs/ReceivedDocumentInfoDefaultValues.md b/docs/ReceivedDocumentInfoDefaultValues.md index 13ccb16d..e4b0ff3c 100644 --- a/docs/ReceivedDocumentInfoDefaultValues.md +++ b/docs/ReceivedDocumentInfoDefaultValues.md @@ -3,6 +3,7 @@ Received document default values ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **detailed** | **bool** | | [optional] diff --git a/docs/ReceivedDocumentInfoItemsDefaultValues.md b/docs/ReceivedDocumentInfoItemsDefaultValues.md index fafb5b6d..b29b658d 100644 --- a/docs/ReceivedDocumentInfoItemsDefaultValues.md +++ b/docs/ReceivedDocumentInfoItemsDefaultValues.md @@ -3,6 +3,7 @@ Received document items default values ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **vat** | **float** | Vat default value | [optional] diff --git a/docs/ReceivedDocumentItemsListItem.md b/docs/ReceivedDocumentItemsListItem.md index 5bec3b79..b9e4fca3 100644 --- a/docs/ReceivedDocumentItemsListItem.md +++ b/docs/ReceivedDocumentItemsListItem.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **int** | Received document item id | [optional] diff --git a/docs/ReceivedDocumentPaymentsListItem.md b/docs/ReceivedDocumentPaymentsListItem.md index 7c50457b..e59247d5 100644 --- a/docs/ReceivedDocumentPaymentsListItem.md +++ b/docs/ReceivedDocumentPaymentsListItem.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **int** | Received document payment id | [optional] diff --git a/docs/ReceivedDocumentPaymentsListItemPaymentTerms.md b/docs/ReceivedDocumentPaymentsListItemPaymentTerms.md index 0141f9d4..e86ed635 100644 --- a/docs/ReceivedDocumentPaymentsListItemPaymentTerms.md +++ b/docs/ReceivedDocumentPaymentsListItemPaymentTerms.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **days** | **int** | Received document payment number of days by which the payment must be made | [optional] diff --git a/docs/ReceivedDocumentTotals.md b/docs/ReceivedDocumentTotals.md index 28ee64ef..dfec3a44 100644 --- a/docs/ReceivedDocumentTotals.md +++ b/docs/ReceivedDocumentTotals.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **amount_net** | **float** | Received document total net amount | [optional] diff --git a/docs/ReceivedDocumentType.md b/docs/ReceivedDocumentType.md index dd3a89a0..146ffa2c 100644 --- a/docs/ReceivedDocumentType.md +++ b/docs/ReceivedDocumentType.md @@ -3,6 +3,7 @@ Received document type ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/docs/ReceivedDocumentsApi.md b/docs/ReceivedDocumentsApi.md index 6e406515..7c4866c4 100644 --- a/docs/ReceivedDocumentsApi.md +++ b/docs/ReceivedDocumentsApi.md @@ -26,9 +26,8 @@ Creates a new document. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.create_received_document_request import CreateReceivedDocumentRequest from fattureincloud_python_sdk.models.create_received_document_response import CreateReceivedDocumentResponse @@ -68,6 +67,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -87,6 +87,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Document created. | - | @@ -103,9 +104,8 @@ Deletes the specified document. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.rest import ApiException from pprint import pprint @@ -141,6 +141,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -160,6 +161,7 @@ void (empty response body) - **Accept**: Not defined ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Document removed. | - | @@ -178,9 +180,8 @@ Removes the attachment of the specified document. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.rest import ApiException from pprint import pprint @@ -216,6 +217,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -235,6 +237,7 @@ void (empty response body) - **Accept**: Not defined ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | File removed | - | @@ -253,9 +256,8 @@ Returns the totals for the specified document. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.get_existing_received_document_totals_request import GetExistingReceivedDocumentTotalsRequest from fattureincloud_python_sdk.models.get_existing_received_document_totals_response import GetExistingReceivedDocumentTotalsResponse @@ -296,6 +298,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -316,6 +319,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Document Totals. | - | @@ -332,9 +336,8 @@ Returns the totals for a new document. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.get_new_received_document_totals_request import GetNewReceivedDocumentTotalsRequest from fattureincloud_python_sdk.models.get_new_received_document_totals_response import GetNewReceivedDocumentTotalsResponse @@ -374,6 +377,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -393,6 +397,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Document Totals. | - | @@ -411,9 +416,8 @@ Gets the specified document. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.get_received_document_response import GetReceivedDocumentResponse from fattureincloud_python_sdk.rest import ApiException @@ -454,6 +458,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -475,6 +480,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Document details. | - | @@ -493,9 +499,8 @@ Retrieves the information useful while creating a new document. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.get_received_document_pre_create_info_response import GetReceivedDocumentPreCreateInfoResponse from fattureincloud_python_sdk.rest import ApiException @@ -534,6 +539,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -553,6 +559,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Pre-create info | - | @@ -569,9 +576,8 @@ Lists the received documents. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.list_received_documents_response import ListReceivedDocumentsResponse from fattureincloud_python_sdk.rest import ApiException @@ -616,6 +622,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -641,6 +648,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Results list. | - | @@ -658,9 +666,8 @@ Modifies the specified document. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.modify_received_document_request import ModifyReceivedDocumentRequest from fattureincloud_python_sdk.models.modify_received_document_response import ModifyReceivedDocumentResponse @@ -701,6 +708,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -721,6 +729,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Modified document. | - | @@ -739,9 +748,8 @@ Uploads an attachment destined to a received document. The actual association be ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.upload_received_document_attachment_response import UploadReceivedDocumentAttachmentResponse from fattureincloud_python_sdk.rest import ApiException @@ -781,6 +789,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -801,6 +810,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Attachment Token. | - | diff --git a/docs/ScheduleEmailRequest.md b/docs/ScheduleEmailRequest.md index e2a0b69a..83d17f76 100644 --- a/docs/ScheduleEmailRequest.md +++ b/docs/ScheduleEmailRequest.md @@ -3,6 +3,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**EmailSchedule**](EmailSchedule.md) | | [optional] diff --git a/docs/SendEInvoiceRequest.md b/docs/SendEInvoiceRequest.md index 5bd896e7..3a14c9e5 100644 --- a/docs/SendEInvoiceRequest.md +++ b/docs/SendEInvoiceRequest.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**SendEInvoiceRequestData**](SendEInvoiceRequestData.md) | | [optional] diff --git a/docs/SendEInvoiceRequestData.md b/docs/SendEInvoiceRequestData.md index d5ae7e70..1b2049ae 100644 --- a/docs/SendEInvoiceRequestData.md +++ b/docs/SendEInvoiceRequestData.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **cassa_type** | **str** | Value of TipoCassa used (optional, override the company default value). | [optional] diff --git a/docs/SendEInvoiceRequestOptions.md b/docs/SendEInvoiceRequestOptions.md index 4db62077..f9784279 100644 --- a/docs/SendEInvoiceRequestOptions.md +++ b/docs/SendEInvoiceRequestOptions.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **dry_run** | **bool** | If set to true the e-invoice will not be sent to the SDI. | [optional] diff --git a/docs/SendEInvoiceResponse.md b/docs/SendEInvoiceResponse.md index 6e58108c..ab91ffe3 100644 --- a/docs/SendEInvoiceResponse.md +++ b/docs/SendEInvoiceResponse.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**SendEInvoiceResponseData**](SendEInvoiceResponseData.md) | | [optional] diff --git a/docs/SendEInvoiceResponseData.md b/docs/SendEInvoiceResponseData.md index b1d76313..b356f106 100644 --- a/docs/SendEInvoiceResponseData.md +++ b/docs/SendEInvoiceResponseData.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | Response message. | [optional] diff --git a/docs/SenderEmail.md b/docs/SenderEmail.md index 12aad03b..ce3c57ab 100644 --- a/docs/SenderEmail.md +++ b/docs/SenderEmail.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **int** | Sender email id | [optional] diff --git a/docs/SettingsApi.md b/docs/SettingsApi.md index 72ead256..26ceb83d 100644 --- a/docs/SettingsApi.md +++ b/docs/SettingsApi.md @@ -28,9 +28,8 @@ Creates a new payment account. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.create_payment_account_request import CreatePaymentAccountRequest from fattureincloud_python_sdk.models.create_payment_account_response import CreatePaymentAccountResponse @@ -70,6 +69,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -89,6 +89,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Example response | - | @@ -105,9 +106,8 @@ Creates a new payment method. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.create_payment_method_request import CreatePaymentMethodRequest from fattureincloud_python_sdk.models.create_payment_method_response import CreatePaymentMethodResponse @@ -147,6 +147,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -166,6 +167,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Example response | - | @@ -182,9 +184,8 @@ Creates a vat type. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.create_vat_type_request import CreateVatTypeRequest from fattureincloud_python_sdk.models.create_vat_type_response import CreateVatTypeResponse @@ -224,6 +225,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -243,6 +245,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Example response | - | @@ -259,9 +262,8 @@ Deletes the specified payment account. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.rest import ApiException from pprint import pprint @@ -297,6 +299,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -316,6 +319,7 @@ void (empty response body) - **Accept**: Not defined ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | @@ -332,9 +336,8 @@ Deletes the specified payment method. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.rest import ApiException from pprint import pprint @@ -370,6 +373,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -389,6 +393,7 @@ void (empty response body) - **Accept**: Not defined ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | @@ -405,9 +410,8 @@ Deletes the specified vat type. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.rest import ApiException from pprint import pprint @@ -443,6 +447,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -462,6 +467,7 @@ void (empty response body) - **Accept**: Not defined ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | @@ -478,9 +484,8 @@ Gets the specified payment account. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.get_payment_account_response import GetPaymentAccountResponse from fattureincloud_python_sdk.rest import ApiException @@ -521,6 +526,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -542,6 +548,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Example response | - | @@ -558,9 +565,8 @@ Gets the specified payment method. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.get_payment_method_response import GetPaymentMethodResponse from fattureincloud_python_sdk.rest import ApiException @@ -601,6 +607,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -622,6 +629,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Example response | - | @@ -638,9 +646,8 @@ Gets the specified vat type. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.get_vat_type_response import GetVatTypeResponse from fattureincloud_python_sdk.rest import ApiException @@ -679,6 +686,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -698,6 +706,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Example response | - | @@ -714,9 +723,8 @@ Modifies the specified payment account. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.modify_payment_account_request import ModifyPaymentAccountRequest from fattureincloud_python_sdk.models.modify_payment_account_response import ModifyPaymentAccountResponse @@ -757,6 +765,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -777,6 +786,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Example response | - | @@ -793,9 +803,8 @@ Modifies the specified payment method. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.modify_payment_method_request import ModifyPaymentMethodRequest from fattureincloud_python_sdk.models.modify_payment_method_response import ModifyPaymentMethodResponse @@ -836,6 +845,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -856,6 +866,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Example response | - | @@ -872,9 +883,8 @@ Modifies the specified vat type. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.modify_vat_type_request import ModifyVatTypeRequest from fattureincloud_python_sdk.models.modify_vat_type_response import ModifyVatTypeResponse @@ -915,6 +925,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -935,6 +946,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Example response | - | diff --git a/docs/ShowTotalsMode.md b/docs/ShowTotalsMode.md index d9c9a5a9..074be97a 100644 --- a/docs/ShowTotalsMode.md +++ b/docs/ShowTotalsMode.md @@ -3,6 +3,7 @@ Show totals mode ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/docs/Supplier.md b/docs/Supplier.md index 99ec143a..35b61642 100644 --- a/docs/Supplier.md +++ b/docs/Supplier.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **int** | Supplier id | [optional] diff --git a/docs/SupplierType.md b/docs/SupplierType.md index 36131afd..eca9427b 100644 --- a/docs/SupplierType.md +++ b/docs/SupplierType.md @@ -3,6 +3,7 @@ Supplier type ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/docs/SuppliersApi.md b/docs/SuppliersApi.md index c0cd5506..e8438c88 100644 --- a/docs/SuppliersApi.md +++ b/docs/SuppliersApi.md @@ -21,9 +21,8 @@ Creates a new supplier. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.create_supplier_request import CreateSupplierRequest from fattureincloud_python_sdk.models.create_supplier_response import CreateSupplierResponse @@ -63,6 +62,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -82,6 +82,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Example response | - | @@ -98,9 +99,8 @@ Deletes the specified supplier. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.rest import ApiException from pprint import pprint @@ -136,6 +136,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -155,6 +156,7 @@ void (empty response body) - **Accept**: Not defined ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Entity Removed | - | @@ -173,9 +175,8 @@ Gets the specified supplier. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.get_supplier_response import GetSupplierResponse from fattureincloud_python_sdk.rest import ApiException @@ -216,6 +217,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -237,6 +239,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Example response | - | @@ -255,9 +258,8 @@ Lists the suppliers. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.list_suppliers_response import ListSuppliersResponse from fattureincloud_python_sdk.rest import ApiException @@ -301,6 +303,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -325,6 +328,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Example response | - | @@ -342,9 +346,8 @@ Modifies the specified supplier. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.modify_supplier_request import ModifySupplierRequest from fattureincloud_python_sdk.models.modify_supplier_response import ModifySupplierResponse @@ -385,6 +388,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -405,6 +409,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Example response | - | diff --git a/docs/TaxesApi.md b/docs/TaxesApi.md index 74d13134..bd91e634 100644 --- a/docs/TaxesApi.md +++ b/docs/TaxesApi.md @@ -23,9 +23,8 @@ Creates a new F24. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.create_f24_request import CreateF24Request from fattureincloud_python_sdk.models.create_f24_response import CreateF24Response @@ -65,6 +64,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -84,6 +84,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | The created F24 | - | @@ -102,9 +103,8 @@ Removes the specified F24. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.rest import ApiException from pprint import pprint @@ -140,6 +140,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -159,6 +160,7 @@ void (empty response body) - **Accept**: Not defined ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Document removed. | - | @@ -177,9 +179,8 @@ Removes the attachment of the specified F24. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.rest import ApiException from pprint import pprint @@ -215,6 +216,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -234,6 +236,7 @@ void (empty response body) - **Accept**: Not defined ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | File Removed. | - | @@ -252,9 +255,8 @@ Gets the specified F24. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.get_f24_response import GetF24Response from fattureincloud_python_sdk.rest import ApiException @@ -295,6 +297,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -316,6 +319,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | The F24 | - | @@ -334,9 +338,8 @@ Lists the F24s. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.list_f24_response import ListF24Response from fattureincloud_python_sdk.rest import ApiException @@ -380,6 +383,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -404,6 +408,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Results list. | - | @@ -421,9 +426,8 @@ Modifies the specified F24. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.modify_f24_request import ModifyF24Request from fattureincloud_python_sdk.models.modify_f24_response import ModifyF24Response @@ -464,6 +468,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -484,6 +489,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | The modified F24 | - | @@ -502,9 +508,8 @@ Uploads an attachment destined to a F24. The actual association between the docu ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.upload_f24_attachment_response import UploadF24AttachmentResponse from fattureincloud_python_sdk.rest import ApiException @@ -544,6 +549,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -564,6 +570,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Attachment Token. | - | diff --git a/docs/TransformIssuedDocumentResponse.md b/docs/TransformIssuedDocumentResponse.md index 4c934df2..28976e27 100644 --- a/docs/TransformIssuedDocumentResponse.md +++ b/docs/TransformIssuedDocumentResponse.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**IssuedDocument**](IssuedDocument.md) | | [optional] diff --git a/docs/UploadArchiveAttachmentResponse.md b/docs/UploadArchiveAttachmentResponse.md index 5ddafd5e..b6924038 100644 --- a/docs/UploadArchiveAttachmentResponse.md +++ b/docs/UploadArchiveAttachmentResponse.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**AttachmentData**](AttachmentData.md) | | [optional] diff --git a/docs/UploadF24AttachmentResponse.md b/docs/UploadF24AttachmentResponse.md index 9bb34ae0..34ce49d6 100644 --- a/docs/UploadF24AttachmentResponse.md +++ b/docs/UploadF24AttachmentResponse.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**AttachmentData**](AttachmentData.md) | | [optional] diff --git a/docs/UploadIssuedDocumentAttachmentResponse.md b/docs/UploadIssuedDocumentAttachmentResponse.md index 6f0cdc83..13a750c3 100644 --- a/docs/UploadIssuedDocumentAttachmentResponse.md +++ b/docs/UploadIssuedDocumentAttachmentResponse.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**AttachmentData**](AttachmentData.md) | | [optional] diff --git a/docs/UploadReceivedDocumentAttachmentResponse.md b/docs/UploadReceivedDocumentAttachmentResponse.md index fe469630..d0d780f8 100644 --- a/docs/UploadReceivedDocumentAttachmentResponse.md +++ b/docs/UploadReceivedDocumentAttachmentResponse.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**AttachmentData**](AttachmentData.md) | | [optional] diff --git a/docs/User.md b/docs/User.md index 864fa58f..112a0323 100644 --- a/docs/User.md +++ b/docs/User.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **int** | User id | [optional] diff --git a/docs/UserApi.md b/docs/UserApi.md index b21883d1..67ee10c2 100644 --- a/docs/UserApi.md +++ b/docs/UserApi.md @@ -18,9 +18,8 @@ Gets the current user's info. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.get_user_info_response import GetUserInfoResponse from fattureincloud_python_sdk.rest import ApiException @@ -56,6 +55,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + This endpoint does not need any parameter. ### Return type @@ -72,6 +72,7 @@ This endpoint does not need any parameter. - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | | - | @@ -89,9 +90,8 @@ Lists the companies controlled by the current user. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.list_user_companies_response import ListUserCompaniesResponse from fattureincloud_python_sdk.rest import ApiException @@ -127,6 +127,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + This endpoint does not need any parameter. ### Return type @@ -143,6 +144,7 @@ This endpoint does not need any parameter. - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | User Companies. | - | diff --git a/docs/UserCompanyRole.md b/docs/UserCompanyRole.md index 19d0575a..378057ab 100644 --- a/docs/UserCompanyRole.md +++ b/docs/UserCompanyRole.md @@ -3,6 +3,7 @@ User company role ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/docs/VatItem.md b/docs/VatItem.md index a1b4ed25..01876dc8 100644 --- a/docs/VatItem.md +++ b/docs/VatItem.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **amount_net** | **float** | Vat item net amount | [optional] diff --git a/docs/VatKind.md b/docs/VatKind.md index e8fe1e61..5795c7b3 100644 --- a/docs/VatKind.md +++ b/docs/VatKind.md @@ -3,6 +3,7 @@ Vat kind [esigibilità IVA] ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/docs/VatType.md b/docs/VatType.md index 4d17b623..4b024846 100644 --- a/docs/VatType.md +++ b/docs/VatType.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **int** | Vat type id | [optional] diff --git a/docs/VerifyEInvoiceXmlErrorResponse.md b/docs/VerifyEInvoiceXmlErrorResponse.md index 3d556959..40755a14 100644 --- a/docs/VerifyEInvoiceXmlErrorResponse.md +++ b/docs/VerifyEInvoiceXmlErrorResponse.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **error** | [**VerifyEInvoiceXmlErrorResponseError**](VerifyEInvoiceXmlErrorResponseError.md) | | [optional] diff --git a/docs/VerifyEInvoiceXmlErrorResponseError.md b/docs/VerifyEInvoiceXmlErrorResponseError.md index bfb69675..946c5c74 100644 --- a/docs/VerifyEInvoiceXmlErrorResponseError.md +++ b/docs/VerifyEInvoiceXmlErrorResponseError.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **message** | **str** | | [optional] diff --git a/docs/VerifyEInvoiceXmlErrorResponseErrorValidationResult.md b/docs/VerifyEInvoiceXmlErrorResponseErrorValidationResult.md index af51a6e1..89037bfe 100644 --- a/docs/VerifyEInvoiceXmlErrorResponseErrorValidationResult.md +++ b/docs/VerifyEInvoiceXmlErrorResponseErrorValidationResult.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **xml_errors** | **List[str]** | | [optional] diff --git a/docs/VerifyEInvoiceXmlErrorResponseExtra.md b/docs/VerifyEInvoiceXmlErrorResponseExtra.md index a3234f13..965605f1 100644 --- a/docs/VerifyEInvoiceXmlErrorResponseExtra.md +++ b/docs/VerifyEInvoiceXmlErrorResponseExtra.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **errors** | **List[str]** | | [optional] diff --git a/docs/VerifyEInvoiceXmlResponse.md b/docs/VerifyEInvoiceXmlResponse.md index 102ffd1c..10edc8b5 100644 --- a/docs/VerifyEInvoiceXmlResponse.md +++ b/docs/VerifyEInvoiceXmlResponse.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**VerifyEInvoiceXmlResponseData**](VerifyEInvoiceXmlResponseData.md) | | [optional] diff --git a/docs/VerifyEInvoiceXmlResponseData.md b/docs/VerifyEInvoiceXmlResponseData.md index 2d3001c1..36fb34a4 100644 --- a/docs/VerifyEInvoiceXmlResponseData.md +++ b/docs/VerifyEInvoiceXmlResponseData.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **success** | **bool** | Determine if the invoice XML is valid. | [optional] diff --git a/docs/WebhooksApi.md b/docs/WebhooksApi.md index 5784b8af..bd657b3f 100644 --- a/docs/WebhooksApi.md +++ b/docs/WebhooksApi.md @@ -21,9 +21,8 @@ Register some webhooks Subscriptions. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.create_webhooks_subscription_request import CreateWebhooksSubscriptionRequest from fattureincloud_python_sdk.models.create_webhooks_subscription_response import CreateWebhooksSubscriptionResponse @@ -63,6 +62,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -82,6 +82,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Example response | - | @@ -98,9 +99,8 @@ Delete a webhooks subscription. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.rest import ApiException from pprint import pprint @@ -136,6 +136,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -155,6 +156,7 @@ void (empty response body) - **Accept**: Not defined ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | @@ -171,9 +173,8 @@ Get a webhooks subscription. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.get_webhooks_subscription_response import GetWebhooksSubscriptionResponse from fattureincloud_python_sdk.rest import ApiException @@ -212,6 +213,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -231,6 +233,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Example response | - | @@ -247,9 +250,8 @@ List active webhooks subscriptions. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.list_webhooks_subscriptions_response import ListWebhooksSubscriptionsResponse from fattureincloud_python_sdk.rest import ApiException @@ -287,6 +289,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -305,6 +308,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Example response | - | @@ -321,9 +325,8 @@ Edit a webhooks subscription. ### Example * OAuth Authentication (OAuth2AuthenticationCodeFlow): + ```python -import time -import os import fattureincloud_python_sdk from fattureincloud_python_sdk.models.modify_webhooks_subscription_request import ModifyWebhooksSubscriptionRequest from fattureincloud_python_sdk.models.modify_webhooks_subscription_response import ModifyWebhooksSubscriptionResponse @@ -364,6 +367,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | @@ -384,6 +388,7 @@ Name | Type | Description | Notes - **Accept**: application/json ### HTTP response details + | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Example response | - | diff --git a/docs/WebhooksSubscription.md b/docs/WebhooksSubscription.md index 94758a90..64284a51 100644 --- a/docs/WebhooksSubscription.md +++ b/docs/WebhooksSubscription.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **str** | Webhooks subscription id | [optional] diff --git a/docs/WebhooksSubscriptionConfig.md b/docs/WebhooksSubscriptionConfig.md index 6efdd4a6..b7b79932 100644 --- a/docs/WebhooksSubscriptionConfig.md +++ b/docs/WebhooksSubscriptionConfig.md @@ -2,6 +2,7 @@ ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **mapping** | [**WebhooksSubscriptionMapping**](WebhooksSubscriptionMapping.md) | | [optional] diff --git a/docs/WebhooksSubscriptionMapping.md b/docs/WebhooksSubscriptionMapping.md index 63817ea2..d264b2bd 100644 --- a/docs/WebhooksSubscriptionMapping.md +++ b/docs/WebhooksSubscriptionMapping.md @@ -3,6 +3,7 @@ Webhooks Subscription mapping ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/fattureincloud_python_sdk/__init__.py b/fattureincloud_python_sdk/__init__.py index 4932a6b6..6dd01625 100644 --- a/fattureincloud_python_sdk/__init__.py +++ b/fattureincloud_python_sdk/__init__.py @@ -7,7 +7,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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -15,7 +15,7 @@ """ # noqa: E501 -__version__ = "2.0.17" +__version__ = "2.0.18" # import apis into sdk package from fattureincloud_python_sdk.api.archive_api import ArchiveApi @@ -73,6 +73,7 @@ from fattureincloud_python_sdk.models.company_info_plan_info_limits import ( CompanyInfoPlanInfoLimits, ) +from fattureincloud_python_sdk.models.company_plan_usage import CompanyPlanUsage from fattureincloud_python_sdk.models.company_type import CompanyType from fattureincloud_python_sdk.models.controlled_company import ControlledCompany from fattureincloud_python_sdk.models.create_archive_document_request import ( @@ -162,6 +163,9 @@ from fattureincloud_python_sdk.models.event_type import EventType from fattureincloud_python_sdk.models.f24 import F24 from fattureincloud_python_sdk.models.f24_status import F24Status +from fattureincloud_python_sdk.models.fatture_in_cloud_plan_type import ( + FattureInCloudPlanType, +) from fattureincloud_python_sdk.models.function_status import FunctionStatus from fattureincloud_python_sdk.models.get_archive_document_response import ( GetArchiveDocumentResponse, @@ -173,6 +177,9 @@ from fattureincloud_python_sdk.models.get_company_info_response import ( GetCompanyInfoResponse, ) +from fattureincloud_python_sdk.models.get_company_plan_usage_response import ( + GetCompanyPlanUsageResponse, +) from fattureincloud_python_sdk.models.get_e_invoice_rejection_reason_response import ( GetEInvoiceRejectionReasonResponse, ) diff --git a/fattureincloud_python_sdk/api/archive_api.py b/fattureincloud_python_sdk/api/archive_api.py index c0de415e..092623cf 100644 --- a/fattureincloud_python_sdk/api/archive_api.py +++ b/fattureincloud_python_sdk/api/archive_api.py @@ -5,31 +5,22 @@ 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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 - -import io import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Dict, List, Optional, Tuple, Union, Any - -try: - from typing import Annotated -except ImportError: - from typing_extensions import Annotated - -from pydantic import Field +from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from pydantic import StrictBytes, StrictInt, StrictStr, field_validator +from pydantic import Field, StrictBytes, StrictInt, StrictStr, field_validator from typing import Optional, Union - +from typing_extensions import Annotated from fattureincloud_python_sdk.models.create_archive_document_request import ( CreateArchiveDocumentRequest, ) @@ -52,7 +43,7 @@ UploadArchiveAttachmentResponse, ) -from fattureincloud_python_sdk.api_client import ApiClient +from fattureincloud_python_sdk.api_client import ApiClient, RequestSerialized from fattureincloud_python_sdk.api_response import ApiResponse from fattureincloud_python_sdk.rest import RESTResponseType @@ -292,7 +283,8 @@ def _create_archive_document_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -403,7 +395,11 @@ def delete_archive_document( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {} + _response_types_map: Dict[str, Optional[str]] = { + "200": None, + "401": None, + "404": None, + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -469,7 +465,11 @@ def delete_archive_document_with_http_info( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {} + _response_types_map: Dict[str, Optional[str]] = { + "200": None, + "401": None, + "404": None, + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -535,7 +535,11 @@ def delete_archive_document_without_preload_content( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {} + _response_types_map: Dict[str, Optional[str]] = { + "200": None, + "401": None, + "404": None, + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -549,7 +553,8 @@ def _delete_archive_document_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -841,7 +846,8 @@ def _get_archive_document_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -860,9 +866,11 @@ def _get_archive_document_serialize( _path_params["document_id"] = document_id # process the query parameters if fields is not None: + _query_params.append(("fields", fields)) if fieldset is not None: + _query_params.append(("fieldset", fieldset)) # process the header parameters @@ -1219,7 +1227,8 @@ def _list_archive_documents_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -1236,21 +1245,27 @@ def _list_archive_documents_serialize( _path_params["company_id"] = company_id # process the query parameters if fields is not None: + _query_params.append(("fields", fields)) if fieldset is not None: + _query_params.append(("fieldset", fieldset)) if sort is not None: + _query_params.append(("sort", sort)) if page is not None: + _query_params.append(("page", page)) if per_page is not None: + _query_params.append(("per_page", per_page)) if q is not None: + _query_params.append(("q", q)) # process the header parameters @@ -1516,7 +1531,8 @@ def _modify_archive_document_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -1821,7 +1837,8 @@ def _upload_archive_document_attachment_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} diff --git a/fattureincloud_python_sdk/api/cashbook_api.py b/fattureincloud_python_sdk/api/cashbook_api.py index d0246514..70117404 100644 --- a/fattureincloud_python_sdk/api/cashbook_api.py +++ b/fattureincloud_python_sdk/api/cashbook_api.py @@ -5,31 +5,22 @@ 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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 - -import io import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Dict, List, Optional, Tuple, Union, Any - -try: - from typing import Annotated -except ImportError: - from typing_extensions import Annotated - -from pydantic import Field +from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from pydantic import StrictInt, StrictStr, field_validator +from pydantic import Field, StrictInt, StrictStr, field_validator from typing import Optional - +from typing_extensions import Annotated from fattureincloud_python_sdk.models.create_cashbook_entry_request import ( CreateCashbookEntryRequest, ) @@ -49,7 +40,7 @@ ModifyCashbookEntryResponse, ) -from fattureincloud_python_sdk.api_client import ApiClient +from fattureincloud_python_sdk.api_client import ApiClient, RequestSerialized from fattureincloud_python_sdk.api_response import ApiResponse from fattureincloud_python_sdk.rest import RESTResponseType @@ -286,7 +277,8 @@ def _create_cashbook_entry_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -397,7 +389,11 @@ def delete_cashbook_entry( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {} + _response_types_map: Dict[str, Optional[str]] = { + "200": None, + "401": None, + "404": None, + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -463,7 +459,11 @@ def delete_cashbook_entry_with_http_info( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {} + _response_types_map: Dict[str, Optional[str]] = { + "200": None, + "401": None, + "404": None, + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -529,7 +529,11 @@ def delete_cashbook_entry_without_preload_content( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {} + _response_types_map: Dict[str, Optional[str]] = { + "200": None, + "401": None, + "404": None, + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -543,7 +547,8 @@ def _delete_cashbook_entry_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -835,7 +840,8 @@ def _get_cashbook_entry_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -854,9 +860,11 @@ def _get_cashbook_entry_serialize( _path_params["document_id"] = document_id # process the query parameters if fields is not None: + _query_params.append(("fields", fields)) if fieldset is not None: + _query_params.append(("fieldset", fieldset)) # process the header parameters @@ -1170,7 +1178,8 @@ def _list_cashbook_entries_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -1187,18 +1196,23 @@ def _list_cashbook_entries_serialize( _path_params["company_id"] = company_id # process the query parameters if date_from is not None: + _query_params.append(("date_from", date_from)) if date_to is not None: + _query_params.append(("date_to", date_to)) if year is not None: + _query_params.append(("year", year)) if type is not None: + _query_params.append(("type", type)) if payment_account_id is not None: + _query_params.append(("payment_account_id", payment_account_id)) # process the header parameters @@ -1461,7 +1475,8 @@ def _modify_cashbook_entry_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} diff --git a/fattureincloud_python_sdk/api/clients_api.py b/fattureincloud_python_sdk/api/clients_api.py index 35b334ae..698562df 100644 --- a/fattureincloud_python_sdk/api/clients_api.py +++ b/fattureincloud_python_sdk/api/clients_api.py @@ -5,31 +5,22 @@ 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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 - -import io import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Dict, List, Optional, Tuple, Union, Any - -try: - from typing import Annotated -except ImportError: - from typing_extensions import Annotated - -from pydantic import Field +from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from pydantic import StrictInt, StrictStr, field_validator +from pydantic import Field, StrictInt, StrictStr, field_validator from typing import Optional - +from typing_extensions import Annotated from fattureincloud_python_sdk.models.create_client_request import CreateClientRequest from fattureincloud_python_sdk.models.create_client_response import CreateClientResponse from fattureincloud_python_sdk.models.get_client_response import GetClientResponse @@ -37,7 +28,7 @@ from fattureincloud_python_sdk.models.modify_client_request import ModifyClientRequest from fattureincloud_python_sdk.models.modify_client_response import ModifyClientResponse -from fattureincloud_python_sdk.api_client import ApiClient +from fattureincloud_python_sdk.api_client import ApiClient, RequestSerialized from fattureincloud_python_sdk.api_response import ApiResponse from fattureincloud_python_sdk.rest import RESTResponseType @@ -112,7 +103,9 @@ def create_client( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {"200": "CreateClientResponse"} + _response_types_map: Dict[str, Optional[str]] = { + "200": "CreateClientResponse", + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -180,7 +173,9 @@ def create_client_with_http_info( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {"200": "CreateClientResponse"} + _response_types_map: Dict[str, Optional[str]] = { + "200": "CreateClientResponse", + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -248,7 +243,9 @@ def create_client_without_preload_content( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {"200": "CreateClientResponse"} + _response_types_map: Dict[str, Optional[str]] = { + "200": "CreateClientResponse", + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -262,7 +259,8 @@ def _create_client_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -373,7 +371,11 @@ def delete_client( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {} + _response_types_map: Dict[str, Optional[str]] = { + "200": None, + "401": None, + "404": None, + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -439,7 +441,11 @@ def delete_client_with_http_info( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {} + _response_types_map: Dict[str, Optional[str]] = { + "200": None, + "401": None, + "404": None, + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -505,7 +511,11 @@ def delete_client_without_preload_content( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {} + _response_types_map: Dict[str, Optional[str]] = { + "200": None, + "401": None, + "404": None, + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -519,7 +529,8 @@ def _delete_client_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -811,7 +822,8 @@ def _get_client_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -830,9 +842,11 @@ def _get_client_serialize( _path_params["client_id"] = client_id # process the query parameters if fields is not None: + _query_params.append(("fields", fields)) if fieldset is not None: + _query_params.append(("fieldset", fieldset)) # process the header parameters @@ -1186,7 +1200,8 @@ def _list_clients_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -1203,21 +1218,27 @@ def _list_clients_serialize( _path_params["company_id"] = company_id # process the query parameters if fields is not None: + _query_params.append(("fields", fields)) if fieldset is not None: + _query_params.append(("fieldset", fieldset)) if sort is not None: + _query_params.append(("sort", sort)) if page is not None: + _query_params.append(("page", page)) if per_page is not None: + _query_params.append(("per_page", per_page)) if q is not None: + _query_params.append(("q", q)) # process the header parameters @@ -1489,7 +1510,8 @@ def _modify_client_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} diff --git a/fattureincloud_python_sdk/api/companies_api.py b/fattureincloud_python_sdk/api/companies_api.py index 518557cb..be5cb4ce 100644 --- a/fattureincloud_python_sdk/api/companies_api.py +++ b/fattureincloud_python_sdk/api/companies_api.py @@ -5,34 +5,29 @@ 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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 - -import io import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Dict, List, Optional, Tuple, Union, Any - -try: - from typing import Annotated -except ImportError: - from typing_extensions import Annotated - -from pydantic import Field +from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from pydantic import StrictInt +from pydantic import Field, StrictInt, StrictStr, field_validator +from typing_extensions import Annotated from fattureincloud_python_sdk.models.get_company_info_response import ( GetCompanyInfoResponse, ) +from fattureincloud_python_sdk.models.get_company_plan_usage_response import ( + GetCompanyPlanUsageResponse, +) -from fattureincloud_python_sdk.api_client import ApiClient +from fattureincloud_python_sdk.api_client import ApiClient, RequestSerialized from fattureincloud_python_sdk.api_response import ApiResponse from fattureincloud_python_sdk.rest import RESTResponseType @@ -247,7 +242,8 @@ def _get_company_info_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -289,3 +285,262 @@ def _get_company_info_serialize( _host=_host, _request_auth=_request_auth, ) + + @validate_call + def get_company_plan_usage( + self, + company_id: Annotated[StrictInt, Field(description="The ID of the company.")], + category: Annotated[StrictStr, Field(description="Category")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetCompanyPlanUsageResponse: + """Get Company Plan Usage + + Gets the company limits usage. + + :param company_id: The ID of the company. (required) + :type company_id: int + :param category: Category (required) + :type category: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_company_plan_usage_serialize( + company_id=company_id, + category=category, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "200": "GetCompanyPlanUsageResponse", + "401": None, + } + response_data = self.api_client.call_api( + *_param, _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + @validate_call + def get_company_plan_usage_with_http_info( + self, + company_id: Annotated[StrictInt, Field(description="The ID of the company.")], + category: Annotated[StrictStr, Field(description="Category")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetCompanyPlanUsageResponse]: + """Get Company Plan Usage + + Gets the company limits usage. + + :param company_id: The ID of the company. (required) + :type company_id: int + :param category: Category (required) + :type category: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_company_plan_usage_serialize( + company_id=company_id, + category=category, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "200": "GetCompanyPlanUsageResponse", + "401": None, + } + response_data = self.api_client.call_api( + *_param, _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + @validate_call + def get_company_plan_usage_without_preload_content( + self, + company_id: Annotated[StrictInt, Field(description="The ID of the company.")], + category: Annotated[StrictStr, Field(description="Category")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get Company Plan Usage + + Gets the company limits usage. + + :param company_id: The ID of the company. (required) + :type company_id: int + :param category: Category (required) + :type category: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_company_plan_usage_serialize( + company_id=company_id, + category=category, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "200": "GetCompanyPlanUsageResponse", + "401": None, + } + response_data = self.api_client.call_api( + *_param, _request_timeout=_request_timeout + ) + return response_data.response + + def _get_company_plan_usage_serialize( + self, + company_id, + category, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = {} + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if company_id is not None: + _path_params["company_id"] = company_id + # process the query parameters + if category is not None: + + _query_params.append(("category", category)) + + # process the header parameters + # process the form parameters + # process the body parameter + + # set the HTTP header `Accept` + _header_params["Accept"] = self.api_client.select_header_accept( + ["application/json"] + ) + + # authentication setting + _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + + return self.api_client.param_serialize( + method="GET", + resource_path="/c/{company_id}/company/plan_usage", + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth, + ) diff --git a/fattureincloud_python_sdk/api/emails_api.py b/fattureincloud_python_sdk/api/emails_api.py index bf35face..e3a174ea 100644 --- a/fattureincloud_python_sdk/api/emails_api.py +++ b/fattureincloud_python_sdk/api/emails_api.py @@ -5,32 +5,24 @@ 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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 - -import io import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Dict, List, Optional, Tuple, Union, Any - -try: - from typing import Annotated -except ImportError: - from typing_extensions import Annotated - -from pydantic import Field +from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from pydantic import StrictInt +from pydantic import Field, StrictInt +from typing_extensions import Annotated from fattureincloud_python_sdk.models.list_emails_response import ListEmailsResponse -from fattureincloud_python_sdk.api_client import ApiClient +from fattureincloud_python_sdk.api_client import ApiClient, RequestSerialized from fattureincloud_python_sdk.api_response import ApiResponse from fattureincloud_python_sdk.rest import RESTResponseType @@ -99,7 +91,9 @@ def list_emails( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {"200": "ListEmailsResponse"} + _response_types_map: Dict[str, Optional[str]] = { + "200": "ListEmailsResponse", + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -161,7 +155,9 @@ def list_emails_with_http_info( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {"200": "ListEmailsResponse"} + _response_types_map: Dict[str, Optional[str]] = { + "200": "ListEmailsResponse", + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -223,7 +219,9 @@ def list_emails_without_preload_content( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {"200": "ListEmailsResponse"} + _response_types_map: Dict[str, Optional[str]] = { + "200": "ListEmailsResponse", + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -236,7 +234,8 @@ def _list_emails_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} diff --git a/fattureincloud_python_sdk/api/info_api.py b/fattureincloud_python_sdk/api/info_api.py index c79b7cc4..2934e610 100644 --- a/fattureincloud_python_sdk/api/info_api.py +++ b/fattureincloud_python_sdk/api/info_api.py @@ -5,31 +5,22 @@ 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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 - -import io import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Dict, List, Optional, Tuple, Union, Any - -try: - from typing import Annotated -except ImportError: - from typing_extensions import Annotated - -from pydantic import Field +from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from pydantic import StrictBool, StrictInt, StrictStr, field_validator +from pydantic import Field, StrictBool, StrictInt, StrictStr, field_validator from typing import Optional - +from typing_extensions import Annotated from fattureincloud_python_sdk.models.list_archive_categories_response import ( ListArchiveCategoriesResponse, ) @@ -77,7 +68,7 @@ ListVatTypesResponse, ) -from fattureincloud_python_sdk.api_client import ApiClient +from fattureincloud_python_sdk.api_client import ApiClient, RequestSerialized from fattureincloud_python_sdk.api_response import ApiResponse from fattureincloud_python_sdk.rest import RESTResponseType @@ -295,7 +286,8 @@ def _list_archive_categories_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -399,7 +391,9 @@ def list_cities( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {"200": "ListCitiesResponse"} + _response_types_map: Dict[str, Optional[str]] = { + "200": "ListCitiesResponse", + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -470,7 +464,9 @@ def list_cities_with_http_info( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {"200": "ListCitiesResponse"} + _response_types_map: Dict[str, Optional[str]] = { + "200": "ListCitiesResponse", + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -541,7 +537,9 @@ def list_cities_without_preload_content( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {"200": "ListCitiesResponse"} + _response_types_map: Dict[str, Optional[str]] = { + "200": "ListCitiesResponse", + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -555,7 +553,8 @@ def _list_cities_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -570,9 +569,11 @@ def _list_cities_serialize( # process the path parameters # process the query parameters if postal_code is not None: + _query_params.append(("postal_code", postal_code)) if city is not None: + _query_params.append(("city", city)) # process the header parameters @@ -803,7 +804,8 @@ def _list_cost_centers_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -1031,7 +1033,8 @@ def _list_countries_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -1257,7 +1260,8 @@ def _list_currencies_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -1483,7 +1487,8 @@ def _list_delivery_notes_default_causals_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -1709,7 +1714,8 @@ def _list_detailed_countries_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -1935,7 +1941,8 @@ def _list_languages_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -2243,7 +2250,8 @@ def _list_payment_accounts_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -2260,12 +2268,15 @@ def _list_payment_accounts_serialize( _path_params["company_id"] = company_id # process the query parameters if fields is not None: + _query_params.append(("fields", fields)) if fieldset is not None: + _query_params.append(("fieldset", fieldset)) if sort is not None: + _query_params.append(("sort", sort)) # process the header parameters @@ -2562,7 +2573,8 @@ def _list_payment_methods_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -2579,12 +2591,15 @@ def _list_payment_methods_serialize( _path_params["company_id"] = company_id # process the query parameters if fields is not None: + _query_params.append(("fields", fields)) if fieldset is not None: + _query_params.append(("fieldset", fieldset)) if sort is not None: + _query_params.append(("sort", sort)) # process the header parameters @@ -2828,7 +2843,8 @@ def _list_product_categories_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -2845,6 +2861,7 @@ def _list_product_categories_serialize( _path_params["company_id"] = company_id # process the query parameters if context is not None: + _query_params.append(("context", context)) # process the header parameters @@ -2927,7 +2944,7 @@ def list_received_document_categories( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListReceivedDocumentCategoriesResponse" + "200": "ListReceivedDocumentCategoriesResponse", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -2991,7 +3008,7 @@ def list_received_document_categories_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListReceivedDocumentCategoriesResponse" + "200": "ListReceivedDocumentCategoriesResponse", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -3055,7 +3072,7 @@ def list_received_document_categories_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListReceivedDocumentCategoriesResponse" + "200": "ListReceivedDocumentCategoriesResponse", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -3069,7 +3086,8 @@ def _list_received_document_categories_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -3313,7 +3331,8 @@ def _list_revenue_centers_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -3588,7 +3607,8 @@ def _list_templates_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -3603,9 +3623,11 @@ def _list_templates_serialize( # process the path parameters # process the query parameters if type is not None: + _query_params.append(("type", type)) if by_type is not None: + _query_params.append(("by_type", by_type)) # process the header parameters @@ -3820,7 +3842,8 @@ def _list_units_of_measure_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -4081,7 +4104,8 @@ def _list_vat_types_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -4098,6 +4122,7 @@ def _list_vat_types_serialize( _path_params["company_id"] = company_id # process the query parameters if fieldset is not None: + _query_params.append(("fieldset", fieldset)) # process the header parameters diff --git a/fattureincloud_python_sdk/api/issued_documents_api.py b/fattureincloud_python_sdk/api/issued_documents_api.py index ca823128..881c2d2d 100644 --- a/fattureincloud_python_sdk/api/issued_documents_api.py +++ b/fattureincloud_python_sdk/api/issued_documents_api.py @@ -5,31 +5,22 @@ 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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 - -import io import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Dict, List, Optional, Tuple, Union, Any - -try: - from typing import Annotated -except ImportError: - from typing_extensions import Annotated - -from pydantic import Field +from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from pydantic import StrictBytes, StrictInt, StrictStr, field_validator +from pydantic import Field, StrictBytes, StrictInt, StrictStr, field_validator from typing import Optional, Union - +from typing_extensions import Annotated from fattureincloud_python_sdk.models.create_issued_document_request import ( CreateIssuedDocumentRequest, ) @@ -77,7 +68,7 @@ UploadIssuedDocumentAttachmentResponse, ) -from fattureincloud_python_sdk.api_client import ApiClient +from fattureincloud_python_sdk.api_client import ApiClient, RequestSerialized from fattureincloud_python_sdk.api_response import ApiResponse from fattureincloud_python_sdk.rest import RESTResponseType @@ -314,7 +305,8 @@ def _create_issued_document_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -425,7 +417,11 @@ def delete_issued_document( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {} + _response_types_map: Dict[str, Optional[str]] = { + "200": None, + "401": None, + "404": None, + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -491,7 +487,11 @@ def delete_issued_document_with_http_info( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {} + _response_types_map: Dict[str, Optional[str]] = { + "200": None, + "401": None, + "404": None, + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -557,7 +557,11 @@ def delete_issued_document_without_preload_content( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {} + _response_types_map: Dict[str, Optional[str]] = { + "200": None, + "401": None, + "404": None, + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -571,7 +575,8 @@ def _delete_issued_document_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -667,7 +672,11 @@ def delete_issued_document_attachment( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {} + _response_types_map: Dict[str, Optional[str]] = { + "200": None, + "401": None, + "404": None, + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -733,7 +742,11 @@ def delete_issued_document_attachment_with_http_info( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {} + _response_types_map: Dict[str, Optional[str]] = { + "200": None, + "401": None, + "404": None, + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -799,7 +812,11 @@ def delete_issued_document_attachment_without_preload_content( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {} + _response_types_map: Dict[str, Optional[str]] = { + "200": None, + "401": None, + "404": None, + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -813,7 +830,8 @@ def _delete_issued_document_attachment_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -909,7 +927,9 @@ def get_email_data( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {"200": "GetEmailDataResponse"} + _response_types_map: Dict[str, Optional[str]] = { + "200": "GetEmailDataResponse", + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -975,7 +995,9 @@ def get_email_data_with_http_info( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {"200": "GetEmailDataResponse"} + _response_types_map: Dict[str, Optional[str]] = { + "200": "GetEmailDataResponse", + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -1041,7 +1063,9 @@ def get_email_data_without_preload_content( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {"200": "GetEmailDataResponse"} + _response_types_map: Dict[str, Optional[str]] = { + "200": "GetEmailDataResponse", + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -1055,7 +1079,8 @@ def _get_email_data_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -1333,7 +1358,8 @@ def _get_existing_issued_document_totals_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -1642,7 +1668,8 @@ def _get_issued_document_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -1661,9 +1688,11 @@ def _get_issued_document_serialize( _path_params["document_id"] = document_id # process the query parameters if fields is not None: + _query_params.append(("fields", fields)) if fieldset is not None: + _query_params.append(("fieldset", fieldset)) # process the header parameters @@ -1752,7 +1781,7 @@ def get_issued_document_pre_create_info( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetIssuedDocumentPreCreateInfoResponse" + "200": "GetIssuedDocumentPreCreateInfoResponse", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -1822,7 +1851,7 @@ def get_issued_document_pre_create_info_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetIssuedDocumentPreCreateInfoResponse" + "200": "GetIssuedDocumentPreCreateInfoResponse", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -1892,7 +1921,7 @@ def get_issued_document_pre_create_info_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetIssuedDocumentPreCreateInfoResponse" + "200": "GetIssuedDocumentPreCreateInfoResponse", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -1907,7 +1936,8 @@ def _get_issued_document_pre_create_info_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -1924,6 +1954,7 @@ def _get_issued_document_pre_create_info_serialize( _path_params["company_id"] = company_id # process the query parameters if type is not None: + _query_params.append(("type", type)) # process the header parameters @@ -2170,7 +2201,8 @@ def _get_new_issued_document_totals_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -2292,7 +2324,7 @@ def join_issued_documents( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "JoinIssuedDocumentsResponse" + "200": "JoinIssuedDocumentsResponse", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -2370,7 +2402,7 @@ def join_issued_documents_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "JoinIssuedDocumentsResponse" + "200": "JoinIssuedDocumentsResponse", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -2448,7 +2480,7 @@ def join_issued_documents_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "JoinIssuedDocumentsResponse" + "200": "JoinIssuedDocumentsResponse", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -2465,7 +2497,8 @@ def _join_issued_documents_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -2482,12 +2515,15 @@ def _join_issued_documents_serialize( _path_params["company_id"] = company_id # process the query parameters if ids is not None: + _query_params.append(("ids", ids)) if group is not None: + _query_params.append(("group", group)) if e_invoice is not None: + _query_params.append(("e_invoice", e_invoice)) # process the header parameters @@ -2891,7 +2927,8 @@ def _list_issued_documents_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -2908,27 +2945,35 @@ def _list_issued_documents_serialize( _path_params["company_id"] = company_id # process the query parameters if type is not None: + _query_params.append(("type", type)) if fields is not None: + _query_params.append(("fields", fields)) if fieldset is not None: + _query_params.append(("fieldset", fieldset)) if sort is not None: + _query_params.append(("sort", sort)) if page is not None: + _query_params.append(("page", page)) if per_page is not None: + _query_params.append(("per_page", per_page)) if q is not None: + _query_params.append(("q", q)) if inclusive is not None: + _query_params.append(("inclusive", inclusive)) # process the header parameters @@ -3194,7 +3239,8 @@ def _modify_issued_document_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -3313,7 +3359,11 @@ def schedule_email( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {} + _response_types_map: Dict[str, Optional[str]] = { + "200": None, + "401": None, + "404": None, + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -3385,7 +3435,11 @@ def schedule_email_with_http_info( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {} + _response_types_map: Dict[str, Optional[str]] = { + "200": None, + "401": None, + "404": None, + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -3457,7 +3511,11 @@ def schedule_email_without_preload_content( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {} + _response_types_map: Dict[str, Optional[str]] = { + "200": None, + "401": None, + "404": None, + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -3472,7 +3530,8 @@ def _schedule_email_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -3599,7 +3658,7 @@ def transform_issued_document( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "TransformIssuedDocumentResponse" + "200": "TransformIssuedDocumentResponse", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -3685,7 +3744,7 @@ def transform_issued_document_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "TransformIssuedDocumentResponse" + "200": "TransformIssuedDocumentResponse", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -3771,7 +3830,7 @@ def transform_issued_document_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "TransformIssuedDocumentResponse" + "200": "TransformIssuedDocumentResponse", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -3789,7 +3848,8 @@ def _transform_issued_document_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -3806,15 +3866,19 @@ def _transform_issued_document_serialize( _path_params["company_id"] = company_id # process the query parameters if original_document_id is not None: + _query_params.append(("original_document_id", original_document_id)) if new_type is not None: + _query_params.append(("new_type", new_type)) if e_invoice is not None: + _query_params.append(("e_invoice", e_invoice)) if transform_keep_copy is not None: + _query_params.append(("transform_keep_copy", transform_keep_copy)) # process the header parameters @@ -4089,7 +4153,8 @@ def _upload_issued_document_attachment_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} diff --git a/fattureincloud_python_sdk/api/issued_e_invoices_api.py b/fattureincloud_python_sdk/api/issued_e_invoices_api.py index 9aa04537..52222b94 100644 --- a/fattureincloud_python_sdk/api/issued_e_invoices_api.py +++ b/fattureincloud_python_sdk/api/issued_e_invoices_api.py @@ -5,31 +5,22 @@ 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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 - -import io import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Dict, List, Optional, Tuple, Union, Any - -try: - from typing import Annotated -except ImportError: - from typing_extensions import Annotated - -from pydantic import Field +from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from pydantic import StrictBool, StrictInt +from pydantic import Field, StrictBool, StrictInt from typing import Optional - +from typing_extensions import Annotated from fattureincloud_python_sdk.models.get_e_invoice_rejection_reason_response import ( GetEInvoiceRejectionReasonResponse, ) @@ -41,7 +32,7 @@ VerifyEInvoiceXmlResponse, ) -from fattureincloud_python_sdk.api_client import ApiClient +from fattureincloud_python_sdk.api_client import ApiClient, RequestSerialized from fattureincloud_python_sdk.api_response import ApiResponse from fattureincloud_python_sdk.rest import RESTResponseType @@ -115,7 +106,7 @@ def get_e_invoice_rejection_reason( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetEInvoiceRejectionReasonResponse" + "200": "GetEInvoiceRejectionReasonResponse", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -183,7 +174,7 @@ def get_e_invoice_rejection_reason_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetEInvoiceRejectionReasonResponse" + "200": "GetEInvoiceRejectionReasonResponse", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -251,7 +242,7 @@ def get_e_invoice_rejection_reason_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetEInvoiceRejectionReasonResponse" + "200": "GetEInvoiceRejectionReasonResponse", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -266,7 +257,8 @@ def _get_e_invoice_rejection_reason_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -547,7 +539,8 @@ def _get_e_invoice_xml_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -566,6 +559,7 @@ def _get_e_invoice_xml_serialize( _path_params["document_id"] = document_id # process the query parameters if include_attachment is not None: + _query_params.append(("include_attachment", include_attachment)) # process the header parameters @@ -820,7 +814,8 @@ def _send_e_invoice_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -1094,7 +1089,8 @@ def _verify_e_invoice_xml_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} diff --git a/fattureincloud_python_sdk/api/products_api.py b/fattureincloud_python_sdk/api/products_api.py index fb806d6c..45abfb85 100644 --- a/fattureincloud_python_sdk/api/products_api.py +++ b/fattureincloud_python_sdk/api/products_api.py @@ -5,31 +5,22 @@ 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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 - -import io import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Dict, List, Optional, Tuple, Union, Any - -try: - from typing import Annotated -except ImportError: - from typing_extensions import Annotated - -from pydantic import Field +from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from pydantic import StrictInt, StrictStr, field_validator +from pydantic import Field, StrictInt, StrictStr, field_validator from typing import Optional - +from typing_extensions import Annotated from fattureincloud_python_sdk.models.create_product_request import CreateProductRequest from fattureincloud_python_sdk.models.create_product_response import ( CreateProductResponse, @@ -41,7 +32,7 @@ ModifyProductResponse, ) -from fattureincloud_python_sdk.api_client import ApiClient +from fattureincloud_python_sdk.api_client import ApiClient, RequestSerialized from fattureincloud_python_sdk.api_response import ApiResponse from fattureincloud_python_sdk.rest import RESTResponseType @@ -114,7 +105,9 @@ def create_product( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {"200": "CreateProductResponse"} + _response_types_map: Dict[str, Optional[str]] = { + "200": "CreateProductResponse", + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -180,7 +173,9 @@ def create_product_with_http_info( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {"200": "CreateProductResponse"} + _response_types_map: Dict[str, Optional[str]] = { + "200": "CreateProductResponse", + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -246,7 +241,9 @@ def create_product_without_preload_content( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {"200": "CreateProductResponse"} + _response_types_map: Dict[str, Optional[str]] = { + "200": "CreateProductResponse", + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -260,7 +257,8 @@ def _create_product_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -371,7 +369,11 @@ def delete_product( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {} + _response_types_map: Dict[str, Optional[str]] = { + "200": None, + "401": None, + "404": None, + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -437,7 +439,11 @@ def delete_product_with_http_info( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {} + _response_types_map: Dict[str, Optional[str]] = { + "200": None, + "401": None, + "404": None, + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -503,7 +509,11 @@ def delete_product_without_preload_content( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {} + _response_types_map: Dict[str, Optional[str]] = { + "200": None, + "401": None, + "404": None, + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -517,7 +527,8 @@ def _delete_product_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -809,7 +820,8 @@ def _get_product_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -828,9 +840,11 @@ def _get_product_serialize( _path_params["product_id"] = product_id # process the query parameters if fields is not None: + _query_params.append(("fields", fields)) if fieldset is not None: + _query_params.append(("fieldset", fieldset)) # process the header parameters @@ -1184,7 +1198,8 @@ def _list_products_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -1201,21 +1216,27 @@ def _list_products_serialize( _path_params["company_id"] = company_id # process the query parameters if fields is not None: + _query_params.append(("fields", fields)) if fieldset is not None: + _query_params.append(("fieldset", fieldset)) if sort is not None: + _query_params.append(("sort", sort)) if page is not None: + _query_params.append(("page", page)) if per_page is not None: + _query_params.append(("per_page", per_page)) if q is not None: + _query_params.append(("q", q)) # process the header parameters @@ -1481,7 +1502,8 @@ def _modify_product_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} diff --git a/fattureincloud_python_sdk/api/receipts_api.py b/fattureincloud_python_sdk/api/receipts_api.py index c149006a..40123cc3 100644 --- a/fattureincloud_python_sdk/api/receipts_api.py +++ b/fattureincloud_python_sdk/api/receipts_api.py @@ -5,31 +5,22 @@ 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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 - -import io import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Dict, List, Optional, Tuple, Union, Any - -try: - from typing import Annotated -except ImportError: - from typing_extensions import Annotated - -from pydantic import Field +from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from pydantic import StrictInt, StrictStr, field_validator +from pydantic import Field, StrictInt, StrictStr, field_validator from typing import Optional - +from typing_extensions import Annotated from fattureincloud_python_sdk.models.create_receipt_request import CreateReceiptRequest from fattureincloud_python_sdk.models.create_receipt_response import ( CreateReceiptResponse, @@ -47,7 +38,7 @@ ModifyReceiptResponse, ) -from fattureincloud_python_sdk.api_client import ApiClient +from fattureincloud_python_sdk.api_client import ApiClient, RequestSerialized from fattureincloud_python_sdk.api_response import ApiResponse from fattureincloud_python_sdk.rest import RESTResponseType @@ -281,7 +272,8 @@ def _create_receipt_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -392,7 +384,11 @@ def delete_receipt( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {} + _response_types_map: Dict[str, Optional[str]] = { + "200": None, + "401": None, + "404": None, + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -458,7 +454,11 @@ def delete_receipt_with_http_info( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {} + _response_types_map: Dict[str, Optional[str]] = { + "200": None, + "401": None, + "404": None, + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -524,7 +524,11 @@ def delete_receipt_without_preload_content( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {} + _response_types_map: Dict[str, Optional[str]] = { + "200": None, + "401": None, + "404": None, + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -538,7 +542,8 @@ def _delete_receipt_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -830,7 +835,8 @@ def _get_receipt_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -849,9 +855,11 @@ def _get_receipt_serialize( _path_params["document_id"] = document_id # process the query parameters if fields is not None: + _query_params.append(("fields", fields)) if fieldset is not None: + _query_params.append(("fieldset", fieldset)) # process the header parameters @@ -1082,7 +1090,8 @@ def _get_receipt_pre_create_info_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -1358,7 +1367,8 @@ def _get_receipts_monthly_totals_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -1375,9 +1385,11 @@ def _get_receipts_monthly_totals_serialize( _path_params["company_id"] = company_id # process the query parameters if type is not None: + _query_params.append(("type", type)) if year is not None: + _query_params.append(("year", year)) # process the header parameters @@ -1731,7 +1743,8 @@ def _list_receipts_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -1748,21 +1761,27 @@ def _list_receipts_serialize( _path_params["company_id"] = company_id # process the query parameters if fields is not None: + _query_params.append(("fields", fields)) if fieldset is not None: + _query_params.append(("fieldset", fieldset)) if page is not None: + _query_params.append(("page", page)) if per_page is not None: + _query_params.append(("per_page", per_page)) if sort is not None: + _query_params.append(("sort", sort)) if q is not None: + _query_params.append(("q", q)) # process the header parameters @@ -2025,7 +2044,8 @@ def _modify_receipt_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} diff --git a/fattureincloud_python_sdk/api/received_documents_api.py b/fattureincloud_python_sdk/api/received_documents_api.py index 17c44153..880c3336 100644 --- a/fattureincloud_python_sdk/api/received_documents_api.py +++ b/fattureincloud_python_sdk/api/received_documents_api.py @@ -5,31 +5,22 @@ 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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 - -import io import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Dict, List, Optional, Tuple, Union, Any - -try: - from typing import Annotated -except ImportError: - from typing_extensions import Annotated - -from pydantic import Field +from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from pydantic import StrictBytes, StrictInt, StrictStr, field_validator +from pydantic import Field, StrictBytes, StrictInt, StrictStr, field_validator from typing import Optional, Union - +from typing_extensions import Annotated from fattureincloud_python_sdk.models.create_received_document_request import ( CreateReceivedDocumentRequest, ) @@ -67,7 +58,7 @@ UploadReceivedDocumentAttachmentResponse, ) -from fattureincloud_python_sdk.api_client import ApiClient +from fattureincloud_python_sdk.api_client import ApiClient, RequestSerialized from fattureincloud_python_sdk.api_response import ApiResponse from fattureincloud_python_sdk.rest import RESTResponseType @@ -144,7 +135,7 @@ def create_received_document( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateReceivedDocumentResponse" + "200": "CreateReceivedDocumentResponse", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -215,7 +206,7 @@ def create_received_document_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateReceivedDocumentResponse" + "200": "CreateReceivedDocumentResponse", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -286,7 +277,7 @@ def create_received_document_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateReceivedDocumentResponse" + "200": "CreateReceivedDocumentResponse", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -301,7 +292,8 @@ def _create_received_document_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -412,7 +404,11 @@ def delete_received_document( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {} + _response_types_map: Dict[str, Optional[str]] = { + "200": None, + "401": None, + "404": None, + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -478,7 +474,11 @@ def delete_received_document_with_http_info( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {} + _response_types_map: Dict[str, Optional[str]] = { + "200": None, + "401": None, + "404": None, + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -544,7 +544,11 @@ def delete_received_document_without_preload_content( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {} + _response_types_map: Dict[str, Optional[str]] = { + "200": None, + "401": None, + "404": None, + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -558,7 +562,8 @@ def _delete_received_document_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -654,7 +659,11 @@ def delete_received_document_attachment( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {} + _response_types_map: Dict[str, Optional[str]] = { + "200": None, + "401": None, + "404": None, + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -720,7 +729,11 @@ def delete_received_document_attachment_with_http_info( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {} + _response_types_map: Dict[str, Optional[str]] = { + "200": None, + "401": None, + "404": None, + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -786,7 +799,11 @@ def delete_received_document_attachment_without_preload_content( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {} + _response_types_map: Dict[str, Optional[str]] = { + "200": None, + "401": None, + "404": None, + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -800,7 +817,8 @@ def _delete_received_document_attachment_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -904,7 +922,7 @@ def get_existing_received_document_totals( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetExistingReceivedDocumentTotalsResponse" + "200": "GetExistingReceivedDocumentTotalsResponse", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -979,7 +997,7 @@ def get_existing_received_document_totals_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetExistingReceivedDocumentTotalsResponse" + "200": "GetExistingReceivedDocumentTotalsResponse", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -1054,7 +1072,7 @@ def get_existing_received_document_totals_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetExistingReceivedDocumentTotalsResponse" + "200": "GetExistingReceivedDocumentTotalsResponse", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -1070,7 +1088,8 @@ def _get_existing_received_document_totals_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -1350,7 +1369,8 @@ def _get_new_received_document_totals_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -1657,7 +1677,8 @@ def _get_received_document_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -1676,9 +1697,11 @@ def _get_received_document_serialize( _path_params["document_id"] = document_id # process the query parameters if fields is not None: + _query_params.append(("fields", fields)) if fieldset is not None: + _query_params.append(("fieldset", fieldset)) # process the header parameters @@ -1767,7 +1790,7 @@ def get_received_document_pre_create_info( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetReceivedDocumentPreCreateInfoResponse" + "200": "GetReceivedDocumentPreCreateInfoResponse", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -1837,7 +1860,7 @@ def get_received_document_pre_create_info_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetReceivedDocumentPreCreateInfoResponse" + "200": "GetReceivedDocumentPreCreateInfoResponse", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -1907,7 +1930,7 @@ def get_received_document_pre_create_info_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetReceivedDocumentPreCreateInfoResponse" + "200": "GetReceivedDocumentPreCreateInfoResponse", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -1922,7 +1945,8 @@ def _get_received_document_pre_create_info_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -1939,6 +1963,7 @@ def _get_received_document_pre_create_info_serialize( _path_params["company_id"] = company_id # process the query parameters if type is not None: + _query_params.append(("type", type)) # process the header parameters @@ -2311,7 +2336,8 @@ def _list_received_documents_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -2328,24 +2354,31 @@ def _list_received_documents_serialize( _path_params["company_id"] = company_id # process the query parameters if type is not None: + _query_params.append(("type", type)) if fields is not None: + _query_params.append(("fields", fields)) if fieldset is not None: + _query_params.append(("fieldset", fieldset)) if sort is not None: + _query_params.append(("sort", sort)) if page is not None: + _query_params.append(("page", page)) if per_page is not None: + _query_params.append(("per_page", per_page)) if q is not None: + _query_params.append(("q", q)) # process the header parameters @@ -2611,7 +2644,8 @@ def _modify_received_document_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -2913,7 +2947,8 @@ def _upload_received_document_attachment_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} diff --git a/fattureincloud_python_sdk/api/settings_api.py b/fattureincloud_python_sdk/api/settings_api.py index 3bcda486..7d79f970 100644 --- a/fattureincloud_python_sdk/api/settings_api.py +++ b/fattureincloud_python_sdk/api/settings_api.py @@ -5,31 +5,22 @@ 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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 - -import io import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Dict, List, Optional, Tuple, Union, Any - -try: - from typing import Annotated -except ImportError: - from typing_extensions import Annotated - -from pydantic import Field +from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from pydantic import StrictInt, StrictStr, field_validator +from pydantic import Field, StrictInt, StrictStr, field_validator from typing import Optional - +from typing_extensions import Annotated from fattureincloud_python_sdk.models.create_payment_account_request import ( CreatePaymentAccountRequest, ) @@ -74,7 +65,7 @@ ModifyVatTypeResponse, ) -from fattureincloud_python_sdk.api_client import ApiClient +from fattureincloud_python_sdk.api_client import ApiClient, RequestSerialized from fattureincloud_python_sdk.api_response import ApiResponse from fattureincloud_python_sdk.rest import RESTResponseType @@ -148,7 +139,7 @@ def create_payment_account( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreatePaymentAccountResponse" + "200": "CreatePaymentAccountResponse", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -216,7 +207,7 @@ def create_payment_account_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreatePaymentAccountResponse" + "200": "CreatePaymentAccountResponse", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -284,7 +275,7 @@ def create_payment_account_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreatePaymentAccountResponse" + "200": "CreatePaymentAccountResponse", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -299,7 +290,8 @@ def _create_payment_account_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -411,7 +403,7 @@ def create_payment_method( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreatePaymentMethodResponse" + "200": "CreatePaymentMethodResponse", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -479,7 +471,7 @@ def create_payment_method_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreatePaymentMethodResponse" + "200": "CreatePaymentMethodResponse", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -547,7 +539,7 @@ def create_payment_method_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreatePaymentMethodResponse" + "200": "CreatePaymentMethodResponse", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -562,7 +554,8 @@ def _create_payment_method_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -673,7 +666,9 @@ def create_vat_type( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {"200": "CreateVatTypeResponse"} + _response_types_map: Dict[str, Optional[str]] = { + "200": "CreateVatTypeResponse", + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -739,7 +734,9 @@ def create_vat_type_with_http_info( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {"200": "CreateVatTypeResponse"} + _response_types_map: Dict[str, Optional[str]] = { + "200": "CreateVatTypeResponse", + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -805,7 +802,9 @@ def create_vat_type_without_preload_content( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {"200": "CreateVatTypeResponse"} + _response_types_map: Dict[str, Optional[str]] = { + "200": "CreateVatTypeResponse", + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -819,7 +818,8 @@ def _create_vat_type_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -932,7 +932,9 @@ def delete_payment_account( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {} + _response_types_map: Dict[str, Optional[str]] = { + "200": None, + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -1000,7 +1002,9 @@ def delete_payment_account_with_http_info( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {} + _response_types_map: Dict[str, Optional[str]] = { + "200": None, + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -1068,7 +1072,9 @@ def delete_payment_account_without_preload_content( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {} + _response_types_map: Dict[str, Optional[str]] = { + "200": None, + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -1082,7 +1088,8 @@ def _delete_payment_account_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -1180,7 +1187,9 @@ def delete_payment_method( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {} + _response_types_map: Dict[str, Optional[str]] = { + "200": None, + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -1248,7 +1257,9 @@ def delete_payment_method_with_http_info( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {} + _response_types_map: Dict[str, Optional[str]] = { + "200": None, + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -1316,7 +1327,9 @@ def delete_payment_method_without_preload_content( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {} + _response_types_map: Dict[str, Optional[str]] = { + "200": None, + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -1330,7 +1343,8 @@ def _delete_payment_method_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -1428,7 +1442,9 @@ def delete_vat_type( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {} + _response_types_map: Dict[str, Optional[str]] = { + "200": None, + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -1496,7 +1512,9 @@ def delete_vat_type_with_http_info( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {} + _response_types_map: Dict[str, Optional[str]] = { + "200": None, + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -1564,7 +1582,9 @@ def delete_vat_type_without_preload_content( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {} + _response_types_map: Dict[str, Optional[str]] = { + "200": None, + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -1578,7 +1598,8 @@ def _delete_vat_type_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -1689,7 +1710,7 @@ def get_payment_account( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetPaymentAccountResponse" + "200": "GetPaymentAccountResponse", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -1771,7 +1792,7 @@ def get_payment_account_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetPaymentAccountResponse" + "200": "GetPaymentAccountResponse", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -1853,7 +1874,7 @@ def get_payment_account_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetPaymentAccountResponse" + "200": "GetPaymentAccountResponse", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -1870,7 +1891,8 @@ def _get_payment_account_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -1889,9 +1911,11 @@ def _get_payment_account_serialize( _path_params["payment_account_id"] = payment_account_id # process the query parameters if fields is not None: + _query_params.append(("fields", fields)) if fieldset is not None: + _query_params.append(("fieldset", fieldset)) # process the header parameters @@ -1992,7 +2016,7 @@ def get_payment_method( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetPaymentMethodResponse" + "200": "GetPaymentMethodResponse", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -2074,7 +2098,7 @@ def get_payment_method_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetPaymentMethodResponse" + "200": "GetPaymentMethodResponse", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -2156,7 +2180,7 @@ def get_payment_method_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetPaymentMethodResponse" + "200": "GetPaymentMethodResponse", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -2173,7 +2197,8 @@ def _get_payment_method_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -2192,9 +2217,11 @@ def _get_payment_method_serialize( _path_params["payment_method_id"] = payment_method_id # process the query parameters if fields is not None: + _query_params.append(("fields", fields)) if fieldset is not None: + _query_params.append(("fieldset", fieldset)) # process the header parameters @@ -2282,7 +2309,9 @@ def get_vat_type( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {"200": "GetVatTypeResponse"} + _response_types_map: Dict[str, Optional[str]] = { + "200": "GetVatTypeResponse", + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -2350,7 +2379,9 @@ def get_vat_type_with_http_info( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {"200": "GetVatTypeResponse"} + _response_types_map: Dict[str, Optional[str]] = { + "200": "GetVatTypeResponse", + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -2418,7 +2449,9 @@ def get_vat_type_without_preload_content( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {"200": "GetVatTypeResponse"} + _response_types_map: Dict[str, Optional[str]] = { + "200": "GetVatTypeResponse", + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -2432,7 +2465,8 @@ def _get_vat_type_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -2540,7 +2574,7 @@ def modify_payment_account( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ModifyPaymentAccountResponse" + "200": "ModifyPaymentAccountResponse", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -2614,7 +2648,7 @@ def modify_payment_account_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ModifyPaymentAccountResponse" + "200": "ModifyPaymentAccountResponse", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -2688,7 +2722,7 @@ def modify_payment_account_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ModifyPaymentAccountResponse" + "200": "ModifyPaymentAccountResponse", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -2704,7 +2738,8 @@ def _modify_payment_account_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -2824,7 +2859,7 @@ def modify_payment_method( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ModifyPaymentMethodResponse" + "200": "ModifyPaymentMethodResponse", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -2898,7 +2933,7 @@ def modify_payment_method_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ModifyPaymentMethodResponse" + "200": "ModifyPaymentMethodResponse", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -2972,7 +3007,7 @@ def modify_payment_method_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ModifyPaymentMethodResponse" + "200": "ModifyPaymentMethodResponse", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -2988,7 +3023,8 @@ def _modify_payment_method_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -3107,7 +3143,9 @@ def modify_vat_type( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {"200": "ModifyVatTypeResponse"} + _response_types_map: Dict[str, Optional[str]] = { + "200": "ModifyVatTypeResponse", + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -3179,7 +3217,9 @@ def modify_vat_type_with_http_info( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {"200": "ModifyVatTypeResponse"} + _response_types_map: Dict[str, Optional[str]] = { + "200": "ModifyVatTypeResponse", + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -3251,7 +3291,9 @@ def modify_vat_type_without_preload_content( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {"200": "ModifyVatTypeResponse"} + _response_types_map: Dict[str, Optional[str]] = { + "200": "ModifyVatTypeResponse", + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -3266,7 +3308,8 @@ def _modify_vat_type_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} diff --git a/fattureincloud_python_sdk/api/suppliers_api.py b/fattureincloud_python_sdk/api/suppliers_api.py index d18d043b..6313b3ff 100644 --- a/fattureincloud_python_sdk/api/suppliers_api.py +++ b/fattureincloud_python_sdk/api/suppliers_api.py @@ -5,31 +5,22 @@ 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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 - -import io import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Dict, List, Optional, Tuple, Union, Any - -try: - from typing import Annotated -except ImportError: - from typing_extensions import Annotated - -from pydantic import Field +from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from pydantic import StrictInt, StrictStr, field_validator +from pydantic import Field, StrictInt, StrictStr, field_validator from typing import Optional - +from typing_extensions import Annotated from fattureincloud_python_sdk.models.create_supplier_request import ( CreateSupplierRequest, ) @@ -47,7 +38,7 @@ ModifySupplierResponse, ) -from fattureincloud_python_sdk.api_client import ApiClient +from fattureincloud_python_sdk.api_client import ApiClient, RequestSerialized from fattureincloud_python_sdk.api_response import ApiResponse from fattureincloud_python_sdk.rest import RESTResponseType @@ -123,7 +114,7 @@ def create_supplier( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateSupplierResponse" + "200": "CreateSupplierResponse", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -193,7 +184,7 @@ def create_supplier_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateSupplierResponse" + "200": "CreateSupplierResponse", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -263,7 +254,7 @@ def create_supplier_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateSupplierResponse" + "200": "CreateSupplierResponse", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -278,7 +269,8 @@ def _create_supplier_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -389,7 +381,11 @@ def delete_supplier( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {} + _response_types_map: Dict[str, Optional[str]] = { + "200": None, + "401": None, + "404": None, + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -455,7 +451,11 @@ def delete_supplier_with_http_info( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {} + _response_types_map: Dict[str, Optional[str]] = { + "200": None, + "401": None, + "404": None, + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -521,7 +521,11 @@ def delete_supplier_without_preload_content( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {} + _response_types_map: Dict[str, Optional[str]] = { + "200": None, + "401": None, + "404": None, + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -535,7 +539,8 @@ def _delete_supplier_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -827,7 +832,8 @@ def _get_supplier_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -846,9 +852,11 @@ def _get_supplier_serialize( _path_params["supplier_id"] = supplier_id # process the query parameters if fields is not None: + _query_params.append(("fields", fields)) if fieldset is not None: + _query_params.append(("fieldset", fieldset)) # process the header parameters @@ -1202,7 +1210,8 @@ def _list_suppliers_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -1219,21 +1228,27 @@ def _list_suppliers_serialize( _path_params["company_id"] = company_id # process the query parameters if fields is not None: + _query_params.append(("fields", fields)) if fieldset is not None: + _query_params.append(("fieldset", fieldset)) if sort is not None: + _query_params.append(("sort", sort)) if page is not None: + _query_params.append(("page", page)) if per_page is not None: + _query_params.append(("per_page", per_page)) if q is not None: + _query_params.append(("q", q)) # process the header parameters @@ -1505,7 +1520,8 @@ def _modify_supplier_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} diff --git a/fattureincloud_python_sdk/api/taxes_api.py b/fattureincloud_python_sdk/api/taxes_api.py index 55342ff5..e27bcf1b 100644 --- a/fattureincloud_python_sdk/api/taxes_api.py +++ b/fattureincloud_python_sdk/api/taxes_api.py @@ -5,31 +5,22 @@ 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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 - -import io import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Dict, List, Optional, Tuple, Union, Any - -try: - from typing import Annotated -except ImportError: - from typing_extensions import Annotated - -from pydantic import Field +from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from pydantic import StrictBytes, StrictInt, StrictStr, field_validator +from pydantic import Field, StrictBytes, StrictInt, StrictStr, field_validator from typing import Optional, Union - +from typing_extensions import Annotated from fattureincloud_python_sdk.models.create_f24_request import CreateF24Request from fattureincloud_python_sdk.models.create_f24_response import CreateF24Response from fattureincloud_python_sdk.models.get_f24_response import GetF24Response @@ -40,7 +31,7 @@ UploadF24AttachmentResponse, ) -from fattureincloud_python_sdk.api_client import ApiClient +from fattureincloud_python_sdk.api_client import ApiClient, RequestSerialized from fattureincloud_python_sdk.api_response import ApiResponse from fattureincloud_python_sdk.rest import RESTResponseType @@ -277,7 +268,8 @@ def _create_f24_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -388,7 +380,11 @@ def delete_f24( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {} + _response_types_map: Dict[str, Optional[str]] = { + "200": None, + "401": None, + "404": None, + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -454,7 +450,11 @@ def delete_f24_with_http_info( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {} + _response_types_map: Dict[str, Optional[str]] = { + "200": None, + "401": None, + "404": None, + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -520,7 +520,11 @@ def delete_f24_without_preload_content( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {} + _response_types_map: Dict[str, Optional[str]] = { + "200": None, + "401": None, + "404": None, + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -534,7 +538,8 @@ def _delete_f24_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -630,7 +635,11 @@ def delete_f24_attachment( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {} + _response_types_map: Dict[str, Optional[str]] = { + "200": None, + "401": None, + "404": None, + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -696,7 +705,11 @@ def delete_f24_attachment_with_http_info( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {} + _response_types_map: Dict[str, Optional[str]] = { + "200": None, + "401": None, + "404": None, + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -762,7 +775,11 @@ def delete_f24_attachment_without_preload_content( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {} + _response_types_map: Dict[str, Optional[str]] = { + "200": None, + "401": None, + "404": None, + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -776,7 +793,8 @@ def _delete_f24_attachment_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -1068,7 +1086,8 @@ def _get_f24_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -1087,9 +1106,11 @@ def _get_f24_serialize( _path_params["document_id"] = document_id # process the query parameters if fields is not None: + _query_params.append(("fields", fields)) if fieldset is not None: + _query_params.append(("fieldset", fieldset)) # process the header parameters @@ -1443,7 +1464,8 @@ def _list_f24_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -1460,21 +1482,27 @@ def _list_f24_serialize( _path_params["company_id"] = company_id # process the query parameters if fields is not None: + _query_params.append(("fields", fields)) if fieldset is not None: + _query_params.append(("fieldset", fieldset)) if sort is not None: + _query_params.append(("sort", sort)) if page is not None: + _query_params.append(("page", page)) if per_page is not None: + _query_params.append(("per_page", per_page)) if q is not None: + _query_params.append(("q", q)) # process the header parameters @@ -1737,7 +1765,8 @@ def _modify_f24_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -1862,7 +1891,7 @@ def upload_f24_attachment( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UploadF24AttachmentResponse" + "200": "UploadF24AttachmentResponse", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -1941,7 +1970,7 @@ def upload_f24_attachment_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UploadF24AttachmentResponse" + "200": "UploadF24AttachmentResponse", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -2020,7 +2049,7 @@ def upload_f24_attachment_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UploadF24AttachmentResponse" + "200": "UploadF24AttachmentResponse", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -2036,7 +2065,8 @@ def _upload_f24_attachment_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} diff --git a/fattureincloud_python_sdk/api/user_api.py b/fattureincloud_python_sdk/api/user_api.py index bebc4160..071cbc85 100644 --- a/fattureincloud_python_sdk/api/user_api.py +++ b/fattureincloud_python_sdk/api/user_api.py @@ -5,31 +5,25 @@ 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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 - -import io import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Dict, List, Optional, Tuple, Union, Any - -try: - from typing import Annotated -except ImportError: - from typing_extensions import Annotated +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated from fattureincloud_python_sdk.models.get_user_info_response import GetUserInfoResponse from fattureincloud_python_sdk.models.list_user_companies_response import ( ListUserCompaniesResponse, ) -from fattureincloud_python_sdk.api_client import ApiClient +from fattureincloud_python_sdk.api_client import ApiClient, RequestSerialized from fattureincloud_python_sdk.api_response import ApiResponse from fattureincloud_python_sdk.rest import RESTResponseType @@ -231,7 +225,8 @@ def _get_user_info_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -457,7 +452,8 @@ def _list_user_companies_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} diff --git a/fattureincloud_python_sdk/api/webhooks_api.py b/fattureincloud_python_sdk/api/webhooks_api.py index 65852d2f..4a8fad1d 100644 --- a/fattureincloud_python_sdk/api/webhooks_api.py +++ b/fattureincloud_python_sdk/api/webhooks_api.py @@ -5,31 +5,22 @@ 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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 - -import io import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Dict, List, Optional, Tuple, Union, Any - -try: - from typing import Annotated -except ImportError: - from typing_extensions import Annotated - -from pydantic import Field +from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from pydantic import StrictInt, StrictStr +from pydantic import Field, StrictInt, StrictStr from typing import Optional - +from typing_extensions import Annotated from fattureincloud_python_sdk.models.create_webhooks_subscription_request import ( CreateWebhooksSubscriptionRequest, ) @@ -49,7 +40,7 @@ ModifyWebhooksSubscriptionResponse, ) -from fattureincloud_python_sdk.api_client import ApiClient +from fattureincloud_python_sdk.api_client import ApiClient, RequestSerialized from fattureincloud_python_sdk.api_response import ApiResponse from fattureincloud_python_sdk.rest import RESTResponseType @@ -125,7 +116,7 @@ def create_webhooks_subscription( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateWebhooksSubscriptionResponse" + "200": "CreateWebhooksSubscriptionResponse", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -195,7 +186,7 @@ def create_webhooks_subscription_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateWebhooksSubscriptionResponse" + "200": "CreateWebhooksSubscriptionResponse", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -265,7 +256,7 @@ def create_webhooks_subscription_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateWebhooksSubscriptionResponse" + "200": "CreateWebhooksSubscriptionResponse", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -280,7 +271,8 @@ def _create_webhooks_subscription_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -393,7 +385,9 @@ def delete_webhooks_subscription( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {} + _response_types_map: Dict[str, Optional[str]] = { + "200": None, + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -461,7 +455,9 @@ def delete_webhooks_subscription_with_http_info( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {} + _response_types_map: Dict[str, Optional[str]] = { + "200": None, + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -529,7 +525,9 @@ def delete_webhooks_subscription_without_preload_content( _host_index=_host_index, ) - _response_types_map: Dict[str, Optional[str]] = {} + _response_types_map: Dict[str, Optional[str]] = { + "200": None, + } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout ) @@ -543,7 +541,8 @@ def _delete_webhooks_subscription_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -642,7 +641,7 @@ def get_webhooks_subscription( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetWebhooksSubscriptionResponse" + "200": "GetWebhooksSubscriptionResponse", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -712,7 +711,7 @@ def get_webhooks_subscription_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetWebhooksSubscriptionResponse" + "200": "GetWebhooksSubscriptionResponse", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -782,7 +781,7 @@ def get_webhooks_subscription_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetWebhooksSubscriptionResponse" + "200": "GetWebhooksSubscriptionResponse", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -797,7 +796,8 @@ def _get_webhooks_subscription_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -895,7 +895,7 @@ def list_webhooks_subscriptions( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListWebhooksSubscriptionsResponse" + "200": "ListWebhooksSubscriptionsResponse", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -959,7 +959,7 @@ def list_webhooks_subscriptions_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListWebhooksSubscriptionsResponse" + "200": "ListWebhooksSubscriptionsResponse", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -1023,7 +1023,7 @@ def list_webhooks_subscriptions_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListWebhooksSubscriptionsResponse" + "200": "ListWebhooksSubscriptionsResponse", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -1037,7 +1037,8 @@ def _list_webhooks_subscriptions_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} @@ -1145,7 +1146,7 @@ def modify_webhooks_subscription( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ModifyWebhooksSubscriptionResponse" + "200": "ModifyWebhooksSubscriptionResponse", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -1221,7 +1222,7 @@ def modify_webhooks_subscription_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ModifyWebhooksSubscriptionResponse" + "200": "ModifyWebhooksSubscriptionResponse", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -1297,7 +1298,7 @@ def modify_webhooks_subscription_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ModifyWebhooksSubscriptionResponse" + "200": "ModifyWebhooksSubscriptionResponse", } response_data = self.api_client.call_api( *_param, _request_timeout=_request_timeout @@ -1313,7 +1314,8 @@ def _modify_webhooks_subscription_serialize( _content_type, _headers, _host_index, - ) -> Tuple: + ) -> RequestSerialized: + _host = None _collection_formats: Dict[str, str] = {} diff --git a/fattureincloud_python_sdk/api_client.py b/fattureincloud_python_sdk/api_client.py index ded7f8f1..83173f5b 100644 --- a/fattureincloud_python_sdk/api_client.py +++ b/fattureincloud_python_sdk/api_client.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -13,9 +13,9 @@ """ # noqa: E501 -import atexit import datetime from dateutil.parser import parse +from enum import Enum import json import mimetypes import os @@ -23,10 +23,10 @@ import tempfile from urllib.parse import quote -from typing import Tuple, Optional, List +from typing import Tuple, Optional, List, Dict from fattureincloud_python_sdk.configuration import Configuration -from fattureincloud_python_sdk.api_response import ApiResponse +from fattureincloud_python_sdk.api_response import ApiResponse, T as ApiResponseT import fattureincloud_python_sdk.models from fattureincloud_python_sdk import rest from fattureincloud_python_sdk.exceptions import ( @@ -39,6 +39,8 @@ ServiceException, ) +RequestSerialized = Tuple[str, str, Dict[str, str], Optional[str], List[str]] + class ApiClient: """Generic API client for OpenAPI client library builds. @@ -83,7 +85,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = "FattureInCloud/2.0.17/Python-SDK" + self.user_agent = "FattureInCloud/2.0.18/Python-SDK" self.client_side_validation = configuration.client_side_validation def __enter__(self): @@ -144,7 +146,7 @@ def param_serialize( collection_formats=None, _host=None, _request_auth=None, - ) -> Tuple: + ) -> RequestSerialized: """Builds the HTTP request params needed by the request. :param method: Method to call. :param resource_path: Path to method endpoint. @@ -260,21 +262,24 @@ def call_api( ) except ApiException as e: - if e.body: - e.body = e.body.decode("utf-8") raise e return response_data def response_deserialize( - self, response_data=None, response_types_map=None - ) -> ApiResponse: + self, + response_data: rest.RESTResponse, + response_types_map: Optional[Dict[str, ApiResponseT]] = None, + ) -> ApiResponse[ApiResponseT]: """Deserializes response into an object. :param response_data: RESTResponse object to be deserialized. :param response_types_map: dict of response types. :return: ApiResponse """ + msg = "RESTResponse.read() must be called before passing it to response_deserialize()" + assert response_data.data is not None, msg + response_type = response_types_map.get(str(response_data.status), None) if ( not response_type @@ -286,39 +291,29 @@ def response_deserialize( str(response_data.status)[0] + "XX", None ) - if not 200 <= response_data.status <= 299: - if response_data.status == 400: - raise BadRequestException(http_resp=response_data) - - if response_data.status == 401: - raise UnauthorizedException(http_resp=response_data) - - if response_data.status == 403: - raise ForbiddenException(http_resp=response_data) - - if response_data.status == 404: - raise NotFoundException(http_resp=response_data) - - if 500 <= response_data.status <= 599: - raise ServiceException(http_resp=response_data) - raise ApiException(http_resp=response_data) - # deserialize response data - - if response_type == "bytearray": - return_data = response_data.data - elif response_type is None: - return_data = None - elif response_type == "file": - return_data = self.__deserialize_file(response_data) - else: - match = None - content_type = response_data.getheader("content-type") - if content_type is not None: - match = re.search(r"charset=([a-zA-Z\-\d]+)[\s;]?", content_type) - encoding = match.group(1) if match else "utf-8" - response_text = response_data.data.decode(encoding) - return_data = self.deserialize(response_text, response_type) + response_text = None + return_data = None + try: + if response_type == "bytearray": + return_data = response_data.data + elif response_type == "file": + return_data = self.__deserialize_file(response_data) + elif response_type is not None: + match = None + content_type = response_data.getheader("content-type") + if content_type is not None: + match = re.search(r"charset=([a-zA-Z\-\d]+)[\s;]?", content_type) + encoding = match.group(1) if match else "utf-8" + response_text = response_data.data.decode(encoding) + return_data = self.deserialize(response_text, response_type) + finally: + if not 200 <= response_data.status <= 299: + raise ApiException.from_response( + http_resp=response_data, + body=response_text, + data=return_data, + ) return ApiResponse( status_code=response_data.status, @@ -397,11 +392,15 @@ def __deserialize(self, data, klass): if isinstance(klass, str): if klass.startswith("List["): - sub_kls = re.match(r"List\[(.*)]", klass).group(1) + m = re.match(r"List\[(.*)]", klass) + assert m is not None, "Malformed List type definition" + sub_kls = m.group(1) return [self.__deserialize(sub_data, sub_kls) for sub_data in data] if klass.startswith("Dict["): - sub_kls = re.match(r"Dict\[([^,]*), (.*)]", klass).group(2) + m = re.match(r"Dict\[([^,]*), (.*)]", klass) + assert m is not None, "Malformed Dict type definition" + sub_kls = m.group(2) return {k: self.__deserialize(v, sub_kls) for k, v in data.items()} # convert str to class @@ -418,6 +417,8 @@ def __deserialize(self, data, klass): return self.__deserialize_date(data) elif klass == datetime.datetime: return self.__deserialize_datetime(data) + elif issubclass(klass, Enum): + return self.__deserialize_enum(data, klass) else: return self.__deserialize_model(data, klass) @@ -428,7 +429,7 @@ def parameters_to_tuples(self, params, collection_formats): :param dict collection_formats: Parameter collection formats :return: Parameters as list of tuples, collections formatted """ - new_params = [] + new_params: List[Tuple[str, str]] = [] if collection_formats is None: collection_formats = {} for k, v in params.items() if isinstance(params, dict) else params: @@ -457,7 +458,7 @@ def parameters_to_url_query(self, params, collection_formats): :param dict collection_formats: Parameter collection formats :return: URL query string (e.g. a=Hello%20World&b=123) """ - new_params = [] + new_params: List[Tuple[str, str]] = [] if collection_formats is None: collection_formats = {} for k, v in params.items() if isinstance(params, dict) else params: @@ -471,7 +472,7 @@ def parameters_to_url_query(self, params, collection_formats): if k in collection_formats: collection_format = collection_formats[k] if collection_format == "multi": - new_params.extend((k, value) for value in v) + new_params.extend((k, str(value)) for value in v) else: if collection_format == "ssv": delimiter = " " @@ -487,7 +488,7 @@ def parameters_to_url_query(self, params, collection_formats): else: new_params.append((k, quote(str(v)))) - return "&".join(["=".join(item) for item in new_params]) + return "&".join(["=".join(map(str, item)) for item in new_params]) def files_parameters(self, files=None): """Builds form parameters. @@ -622,9 +623,9 @@ def __deserialize_file(self, response): content_disposition = response.getheader("Content-Disposition") if content_disposition: - filename = re.search( - r'filename=[\'"]?([^\'"\s]+)[\'"]?', content_disposition - ).group(1) + m = re.search(r'filename=[\'"]?([^\'"\s]+)[\'"]?', content_disposition) + assert m is not None, "Unexpected 'content-disposition' header value" + filename = m.group(1) path = os.path.join(os.path.dirname(path), filename) with open(path, "wb") as f: @@ -687,6 +688,20 @@ def __deserialize_datetime(self, string): reason=("Failed to parse `{0}` as datetime object".format(string)), ) + def __deserialize_enum(self, data, klass): + """Deserializes primitive type to enum. + + :param data: primitive type. + :param klass: class literal. + :return: enum value. + """ + try: + return klass(data) + except ValueError: + raise rest.ApiException( + status=0, reason=("Failed to parse `{0}` as `{1}`".format(data, klass)) + ) + def __deserialize_model(self, data, klass): """Deserializes list or dict to model. diff --git a/fattureincloud_python_sdk/api_response.py b/fattureincloud_python_sdk/api_response.py index f3855566..1ce13729 100644 --- a/fattureincloud_python_sdk/api_response.py +++ b/fattureincloud_python_sdk/api_response.py @@ -1,8 +1,8 @@ """API response object.""" from __future__ import annotations -from typing import Any, Dict, Optional, Generic, TypeVar -from pydantic import Field, StrictInt, StrictStr, StrictBytes, BaseModel +from typing import Optional, Generic, Mapping, TypeVar +from pydantic import Field, StrictInt, StrictBytes, BaseModel T = TypeVar("T") @@ -13,9 +13,7 @@ class ApiResponse(BaseModel, Generic[T]): """ status_code: StrictInt = Field(description="HTTP status code") - headers: Optional[Dict[StrictStr, StrictStr]] = Field( - None, description="HTTP headers" - ) + headers: Optional[Mapping[str, str]] = Field(None, description="HTTP headers") data: T = Field(description="Deserialized data given the data type") raw_data: StrictBytes = Field(description="Raw data (HTTP response body)") diff --git a/fattureincloud_python_sdk/configuration.py b/fattureincloud_python_sdk/configuration.py index d1df0496..fa30b5c9 100644 --- a/fattureincloud_python_sdk/configuration.py +++ b/fattureincloud_python_sdk/configuration.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -15,7 +15,10 @@ import copy import logging +from logging import FileHandler +import multiprocessing import sys +from typing import Optional import urllib3 import http.client as httplib @@ -129,7 +132,7 @@ def __init__( self.logger_stream_handler = None """Log stream handler """ - self.logger_file_handler = None + self.logger_file_handler: Optional[FileHandler] = None """Log file handler """ self.logger_file = None @@ -161,7 +164,15 @@ def __init__( Set this to the SNI value expected by the server. """ - self.proxy = None + self.connection_pool_maxsize = multiprocessing.cpu_count() * 5 + """urllib3 connection pool's maximum number of connections saved + per pool. urllib3 uses 1 connection as default value, but this is + not the best value when you are making a lot of possibly parallel + requests to the same host, which is often the case here. + cpu_count * 5 is used as default value to increase performance. + """ + + self.proxy: Optional[str] = None """Proxy URL """ self.proxy_headers = None @@ -383,8 +394,8 @@ def to_debug_report(self): "Python SDK Debug Report:\n" "OS: {env}\n" "Python Version: {pyversion}\n" - "Version of the API: 2.0.30\n" - "SDK Package Version: 2.0.17".format( + "Version of the API: 2.0.32\n" + "SDK Package Version: 2.0.18".format( env=sys.platform, pyversion=sys.version ) ) diff --git a/fattureincloud_python_sdk/exceptions.py b/fattureincloud_python_sdk/exceptions.py index e39bf722..691eeb2a 100644 --- a/fattureincloud_python_sdk/exceptions.py +++ b/fattureincloud_python_sdk/exceptions.py @@ -5,13 +5,16 @@ 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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 +from typing import Any, Optional +from typing_extensions import Self + class OpenApiException(Exception): """The base exception class for all OpenAPIExceptions""" @@ -102,17 +105,57 @@ def __init__(self, msg, path_to_item=None) -> None: class ApiException(OpenApiException): - def __init__(self, status=None, reason=None, http_resp=None) -> None: + + def __init__( + self, + status=None, + reason=None, + http_resp=None, + *, + body: Optional[str] = None, + data: Optional[Any] = None, + ) -> None: + self.status = status + self.reason = reason + self.body = body + self.data = data + self.headers = None + if http_resp: - self.status = http_resp.status - self.reason = http_resp.reason - self.body = http_resp.data.decode("utf-8") + if self.status is None: + self.status = http_resp.status + if self.reason is None: + self.reason = http_resp.reason + if self.body is None: + try: + self.body = http_resp.data.decode("utf-8") + except Exception: + pass self.headers = http_resp.getheaders() - else: - self.status = status - self.reason = reason - self.body = None - self.headers = None + + @classmethod + def from_response( + cls, + *, + http_resp, + body: Optional[str], + data: Optional[Any], + ) -> Self: + if http_resp.status == 400: + raise BadRequestException(http_resp=http_resp, body=body, data=data) + + if http_resp.status == 401: + raise UnauthorizedException(http_resp=http_resp, body=body, data=data) + + if http_resp.status == 403: + raise ForbiddenException(http_resp=http_resp, body=body, data=data) + + if http_resp.status == 404: + raise NotFoundException(http_resp=http_resp, body=body, data=data) + + if 500 <= http_resp.status <= 599: + raise ServiceException(http_resp=http_resp, body=body, data=data) + raise ApiException(http_resp=http_resp, body=body, data=data) def __str__(self): """Custom error messages for exception""" @@ -120,35 +163,30 @@ def __str__(self): if self.headers: error_message += "HTTP response headers: {0}\n".format(self.headers) - if self.body: - error_message += "HTTP response body: {0}\n".format(self.body) + if self.data or self.body: + error_message += "HTTP response body: {0}\n".format(self.data or self.body) return error_message class BadRequestException(ApiException): - def __init__(self, status=None, reason=None, http_resp=None) -> None: - super(BadRequestException, self).__init__(status, reason, http_resp) + pass class NotFoundException(ApiException): - def __init__(self, status=None, reason=None, http_resp=None) -> None: - super(NotFoundException, self).__init__(status, reason, http_resp) + pass class UnauthorizedException(ApiException): - def __init__(self, status=None, reason=None, http_resp=None) -> None: - super(UnauthorizedException, self).__init__(status, reason, http_resp) + pass class ForbiddenException(ApiException): - def __init__(self, status=None, reason=None, http_resp=None) -> None: - super(ForbiddenException, self).__init__(status, reason, http_resp) + pass class ServiceException(ApiException): - def __init__(self, status=None, reason=None, http_resp=None) -> None: - super(ServiceException, self).__init__(status, reason, http_resp) + pass def render_path(path_to_item): diff --git a/fattureincloud_python_sdk/models/__init__.py b/fattureincloud_python_sdk/models/__init__.py index 809f7595..4e740532 100644 --- a/fattureincloud_python_sdk/models/__init__.py +++ b/fattureincloud_python_sdk/models/__init__.py @@ -6,7 +6,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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -41,6 +41,7 @@ from fattureincloud_python_sdk.models.company_info_plan_info_limits import ( CompanyInfoPlanInfoLimits, ) +from fattureincloud_python_sdk.models.company_plan_usage import CompanyPlanUsage from fattureincloud_python_sdk.models.company_type import CompanyType from fattureincloud_python_sdk.models.controlled_company import ControlledCompany from fattureincloud_python_sdk.models.create_archive_document_request import ( @@ -130,6 +131,9 @@ from fattureincloud_python_sdk.models.event_type import EventType from fattureincloud_python_sdk.models.f24 import F24 from fattureincloud_python_sdk.models.f24_status import F24Status +from fattureincloud_python_sdk.models.fatture_in_cloud_plan_type import ( + FattureInCloudPlanType, +) from fattureincloud_python_sdk.models.function_status import FunctionStatus from fattureincloud_python_sdk.models.get_archive_document_response import ( GetArchiveDocumentResponse, @@ -141,6 +145,9 @@ from fattureincloud_python_sdk.models.get_company_info_response import ( GetCompanyInfoResponse, ) +from fattureincloud_python_sdk.models.get_company_plan_usage_response import ( + GetCompanyPlanUsageResponse, +) from fattureincloud_python_sdk.models.get_e_invoice_rejection_reason_response import ( GetEInvoiceRejectionReasonResponse, ) diff --git a/fattureincloud_python_sdk/models/archive_document.py b/fattureincloud_python_sdk/models/archive_document.py index 16ed31bc..40d0bfb0 100644 --- a/fattureincloud_python_sdk/models/archive_document.py +++ b/fattureincloud_python_sdk/models/archive_document.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -19,14 +19,10 @@ import json from datetime import date +from pydantic import BaseModel, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt, StrictStr -from pydantic import Field - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class ArchiveDocument(BaseModel): @@ -61,7 +57,11 @@ class ArchiveDocument(BaseModel): "attachment_token", ] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -73,7 +73,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ArchiveDocument from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -88,17 +88,21 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * OpenAPI `readOnly` fields are excluded. """ + excluded_fields: Set[str] = set( + [ + "attachment_url", + ] + ) + _dict = self.model_dump( by_alias=True, - exclude={ - "attachment_url", - }, + exclude=excluded_fields, exclude_none=True, ) return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ArchiveDocument from a dict""" if obj is None: return None diff --git a/fattureincloud_python_sdk/models/attachment_data.py b/fattureincloud_python_sdk/models/attachment_data.py index 1e028d11..01680eb0 100644 --- a/fattureincloud_python_sdk/models/attachment_data.py +++ b/fattureincloud_python_sdk/models/attachment_data.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,10 @@ import re # noqa: F401 import json - +from pydantic import BaseModel, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictStr -from pydantic import Field - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class AttachmentData(BaseModel): @@ -39,7 +34,11 @@ class AttachmentData(BaseModel): ) __properties: ClassVar[List[str]] = ["attachment_token"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -51,7 +50,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of AttachmentData from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -65,15 +64,17 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of AttachmentData from a dict""" if obj is None: return None diff --git a/fattureincloud_python_sdk/models/cashbook_entry.py b/fattureincloud_python_sdk/models/cashbook_entry.py index 3ef87491..d6222f8a 100644 --- a/fattureincloud_python_sdk/models/cashbook_entry.py +++ b/fattureincloud_python_sdk/models/cashbook_entry.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -19,20 +19,16 @@ import json from datetime import date +from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union -from pydantic import BaseModel, StrictFloat, StrictInt, StrictStr -from pydantic import Field from fattureincloud_python_sdk.models.cashbook_entry_document import ( CashbookEntryDocument, ) from fattureincloud_python_sdk.models.cashbook_entry_kind import CashbookEntryKind from fattureincloud_python_sdk.models.cashbook_entry_type import CashbookEntryType from fattureincloud_python_sdk.models.payment_account import PaymentAccount - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class CashbookEntry(BaseModel): @@ -77,7 +73,11 @@ class CashbookEntry(BaseModel): "payment_account_out", ] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -89,7 +89,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CashbookEntry from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -103,9 +103,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of document @@ -120,7 +122,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of CashbookEntry from a dict""" if obj is None: return None @@ -136,21 +138,23 @@ def from_dict(cls, obj: Dict) -> Self: "kind": obj.get("kind"), "type": obj.get("type"), "entity_name": obj.get("entity_name"), - "document": CashbookEntryDocument.from_dict(obj.get("document")) - if obj.get("document") is not None - else None, + "document": ( + CashbookEntryDocument.from_dict(obj["document"]) + if obj.get("document") is not None + else None + ), "amount_in": obj.get("amount_in"), - "payment_account_in": PaymentAccount.from_dict( - obj.get("payment_account_in") - ) - if obj.get("payment_account_in") is not None - else None, + "payment_account_in": ( + PaymentAccount.from_dict(obj["payment_account_in"]) + if obj.get("payment_account_in") is not None + else None + ), "amount_out": obj.get("amount_out"), - "payment_account_out": PaymentAccount.from_dict( - obj.get("payment_account_out") - ) - if obj.get("payment_account_out") is not None - else None, + "payment_account_out": ( + PaymentAccount.from_dict(obj["payment_account_out"]) + if obj.get("payment_account_out") is not None + else None + ), } ) return _obj diff --git a/fattureincloud_python_sdk/models/cashbook_entry_document.py b/fattureincloud_python_sdk/models/cashbook_entry_document.py index 25333f5c..e056114c 100644 --- a/fattureincloud_python_sdk/models/cashbook_entry_document.py +++ b/fattureincloud_python_sdk/models/cashbook_entry_document.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,10 @@ import re # noqa: F401 import json - +from pydantic import BaseModel, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt, StrictStr -from pydantic import Field - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class CashbookEntryDocument(BaseModel): @@ -45,7 +40,11 @@ class CashbookEntryDocument(BaseModel): ) __properties: ClassVar[List[str]] = ["id", "type", "path"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -57,7 +56,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CashbookEntryDocument from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -71,15 +70,17 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of CashbookEntryDocument from a dict""" if obj is None: return None diff --git a/fattureincloud_python_sdk/models/cashbook_entry_kind.py b/fattureincloud_python_sdk/models/cashbook_entry_kind.py index 83fb10d4..21d9ad77 100644 --- a/fattureincloud_python_sdk/models/cashbook_entry_kind.py +++ b/fattureincloud_python_sdk/models/cashbook_entry_kind.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -15,15 +15,8 @@ from __future__ import annotations import json -import pprint -import re # noqa: F401 from enum import Enum - - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing_extensions import Self class CashbookEntryKind(str, Enum): diff --git a/fattureincloud_python_sdk/models/cashbook_entry_type.py b/fattureincloud_python_sdk/models/cashbook_entry_type.py index 98fda16d..e2cc8677 100644 --- a/fattureincloud_python_sdk/models/cashbook_entry_type.py +++ b/fattureincloud_python_sdk/models/cashbook_entry_type.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -15,15 +15,8 @@ from __future__ import annotations import json -import pprint -import re # noqa: F401 from enum import Enum - - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing_extensions import Self class CashbookEntryType(str, Enum): diff --git a/fattureincloud_python_sdk/models/city.py b/fattureincloud_python_sdk/models/city.py index d650dde8..8dfc181c 100644 --- a/fattureincloud_python_sdk/models/city.py +++ b/fattureincloud_python_sdk/models/city.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,10 @@ import re # noqa: F401 import json - +from pydantic import BaseModel, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictStr -from pydantic import Field - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class City(BaseModel): @@ -41,7 +36,11 @@ class City(BaseModel): province: Optional[StrictStr] = Field(default=None, description="City province") __properties: ClassVar[List[str]] = ["postal_code", "city", "province"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -53,7 +52,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of City from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -67,15 +66,17 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of City from a dict""" if obj is None: return None diff --git a/fattureincloud_python_sdk/models/client.py b/fattureincloud_python_sdk/models/client.py index 00c89f1c..ac7041e7 100644 --- a/fattureincloud_python_sdk/models/client.py +++ b/fattureincloud_python_sdk/models/client.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -19,18 +19,14 @@ import json from datetime import date +from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union -from pydantic import BaseModel, StrictBool, StrictFloat, StrictInt, StrictStr -from pydantic import Field from fattureincloud_python_sdk.models.client_type import ClientType from fattureincloud_python_sdk.models.payment_method import PaymentMethod from fattureincloud_python_sdk.models.payment_terms_type import PaymentTermsType from fattureincloud_python_sdk.models.vat_type import VatType - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class Client(BaseModel): @@ -161,7 +157,11 @@ class Client(BaseModel): "updated_at", ] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -173,7 +173,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of Client from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -187,9 +187,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of default_vat @@ -201,7 +203,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of Client from a dict""" if obj is None: return None @@ -232,16 +234,18 @@ def from_dict(cls, obj: Dict) -> Self: "phone": obj.get("phone"), "fax": obj.get("fax"), "notes": obj.get("notes"), - "default_vat": VatType.from_dict(obj.get("default_vat")) - if obj.get("default_vat") is not None - else None, + "default_vat": ( + VatType.from_dict(obj["default_vat"]) + if obj.get("default_vat") is not None + else None + ), "default_payment_terms": obj.get("default_payment_terms"), "default_payment_terms_type": obj.get("default_payment_terms_type"), - "default_payment_method": PaymentMethod.from_dict( - obj.get("default_payment_method") - ) - if obj.get("default_payment_method") is not None - else None, + "default_payment_method": ( + PaymentMethod.from_dict(obj["default_payment_method"]) + if obj.get("default_payment_method") is not None + else None + ), "bank_name": obj.get("bank_name"), "bank_iban": obj.get("bank_iban"), "bank_swift_code": obj.get("bank_swift_code"), diff --git a/fattureincloud_python_sdk/models/client_type.py b/fattureincloud_python_sdk/models/client_type.py index 7cf6c90b..36e3e865 100644 --- a/fattureincloud_python_sdk/models/client_type.py +++ b/fattureincloud_python_sdk/models/client_type.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -15,15 +15,8 @@ from __future__ import annotations import json -import pprint -import re # noqa: F401 from enum import Enum - - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing_extensions import Self class ClientType(str, Enum): diff --git a/fattureincloud_python_sdk/models/company.py b/fattureincloud_python_sdk/models/company.py index 02ba47f1..4d0bf4df 100644 --- a/fattureincloud_python_sdk/models/company.py +++ b/fattureincloud_python_sdk/models/company.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,17 +18,16 @@ import re # noqa: F401 import json - +from datetime import date +from pydantic import BaseModel, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt, StrictStr -from pydantic import Field from fattureincloud_python_sdk.models.company_type import CompanyType from fattureincloud_python_sdk.models.controlled_company import ControlledCompany - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from fattureincloud_python_sdk.models.fatture_in_cloud_plan_type import ( + FattureInCloudPlanType, +) +from typing import Optional, Set +from typing_extensions import Self class Company(BaseModel): @@ -47,6 +46,8 @@ class Company(BaseModel): default=None, description="Company list of controlled companies [Only if type=accountant]", ) + fic_license_expire: Optional[date] = None + fic_plan: Optional[FattureInCloudPlanType] = None connection_id: Optional[StrictInt] = Field( default=None, description="Company connection id" ) @@ -57,11 +58,17 @@ class Company(BaseModel): "type", "access_token", "controlled_companies", + "fic_license_expire", + "fic_plan", "connection_id", "tax_code", ] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -73,7 +80,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of Company from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -87,9 +94,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of each item in controlled_companies (list) @@ -102,7 +111,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of Company from a dict""" if obj is None: return None @@ -116,12 +125,16 @@ def from_dict(cls, obj: Dict) -> Self: "name": obj.get("name"), "type": obj.get("type"), "access_token": obj.get("access_token"), - "controlled_companies": [ - ControlledCompany.from_dict(_item) - for _item in obj.get("controlled_companies") - ] - if obj.get("controlled_companies") is not None - else None, + "controlled_companies": ( + [ + ControlledCompany.from_dict(_item) + for _item in obj["controlled_companies"] + ] + if obj.get("controlled_companies") is not None + else None + ), + "fic_license_expire": obj.get("fic_license_expire"), + "fic_plan": obj.get("fic_plan"), "connection_id": obj.get("connection_id"), "tax_code": obj.get("tax_code"), } diff --git a/fattureincloud_python_sdk/models/company_info.py b/fattureincloud_python_sdk/models/company_info.py index 901927ff..aed9aaf5 100644 --- a/fattureincloud_python_sdk/models/company_info.py +++ b/fattureincloud_python_sdk/models/company_info.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,20 +18,19 @@ import re # noqa: F401 import json - +from datetime import date +from pydantic import BaseModel, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictBool, StrictInt, StrictStr -from pydantic import Field from fattureincloud_python_sdk.models.company_info_access_info import ( CompanyInfoAccessInfo, ) from fattureincloud_python_sdk.models.company_info_plan_info import CompanyInfoPlanInfo from fattureincloud_python_sdk.models.company_type import CompanyType - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from fattureincloud_python_sdk.models.fatture_in_cloud_plan_type import ( + FattureInCloudPlanType, +) +from typing import Optional, Set +from typing_extensions import Self class CompanyInfo(BaseModel): @@ -44,6 +43,8 @@ class CompanyInfo(BaseModel): email: Optional[StrictStr] = Field(default=None, description="Company email") type: Optional[CompanyType] = None access_info: Optional[CompanyInfoAccessInfo] = None + fic_license_expire: Optional[date] = None + fic_plan_name: Optional[FattureInCloudPlanType] = None plan_info: Optional[CompanyInfoPlanInfo] = None accountant_id: Optional[StrictInt] = Field( default=None, description="Company accountant id" @@ -57,12 +58,18 @@ class CompanyInfo(BaseModel): "email", "type", "access_info", + "fic_license_expire", + "fic_plan_name", "plan_info", "accountant_id", "is_accountant", ] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -74,7 +81,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CompanyInfo from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -88,9 +95,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of access_info @@ -102,7 +111,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of CompanyInfo from a dict""" if obj is None: return None @@ -116,12 +125,18 @@ def from_dict(cls, obj: Dict) -> Self: "name": obj.get("name"), "email": obj.get("email"), "type": obj.get("type"), - "access_info": CompanyInfoAccessInfo.from_dict(obj.get("access_info")) - if obj.get("access_info") is not None - else None, - "plan_info": CompanyInfoPlanInfo.from_dict(obj.get("plan_info")) - if obj.get("plan_info") is not None - else None, + "access_info": ( + CompanyInfoAccessInfo.from_dict(obj["access_info"]) + if obj.get("access_info") is not None + else None + ), + "fic_license_expire": obj.get("fic_license_expire"), + "fic_plan_name": obj.get("fic_plan_name"), + "plan_info": ( + CompanyInfoPlanInfo.from_dict(obj["plan_info"]) + if obj.get("plan_info") is not None + else None + ), "accountant_id": obj.get("accountant_id"), "is_accountant": obj.get("is_accountant"), } diff --git a/fattureincloud_python_sdk/models/company_info_access_info.py b/fattureincloud_python_sdk/models/company_info_access_info.py index 112cb4fa..6bbfd1b5 100644 --- a/fattureincloud_python_sdk/models/company_info_access_info.py +++ b/fattureincloud_python_sdk/models/company_info_access_info.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,17 +18,12 @@ import re # noqa: F401 import json - +from pydantic import BaseModel, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictBool -from pydantic import Field from fattureincloud_python_sdk.models.permissions import Permissions from fattureincloud_python_sdk.models.user_company_role import UserCompanyRole - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class CompanyInfoAccessInfo(BaseModel): @@ -43,7 +38,11 @@ class CompanyInfoAccessInfo(BaseModel): ) __properties: ClassVar[List[str]] = ["role", "permissions", "through_accountant"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -55,7 +54,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CompanyInfoAccessInfo from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -69,9 +68,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of permissions @@ -80,7 +81,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of CompanyInfoAccessInfo from a dict""" if obj is None: return None @@ -91,9 +92,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { "role": obj.get("role"), - "permissions": Permissions.from_dict(obj.get("permissions")) - if obj.get("permissions") is not None - else None, + "permissions": ( + Permissions.from_dict(obj["permissions"]) + if obj.get("permissions") is not None + else None + ), "through_accountant": obj.get("through_accountant"), } ) diff --git a/fattureincloud_python_sdk/models/company_info_plan_info.py b/fattureincloud_python_sdk/models/company_info_plan_info.py index 03c6dc10..41bcd463 100644 --- a/fattureincloud_python_sdk/models/company_info_plan_info.py +++ b/fattureincloud_python_sdk/models/company_info_plan_info.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,9 +18,8 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.company_info_plan_info_functions import ( CompanyInfoPlanInfoFunctions, ) @@ -30,11 +29,8 @@ from fattureincloud_python_sdk.models.company_info_plan_info_limits import ( CompanyInfoPlanInfoLimits, ) - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class CompanyInfoPlanInfo(BaseModel): @@ -47,7 +43,11 @@ class CompanyInfoPlanInfo(BaseModel): functions_status: Optional[CompanyInfoPlanInfoFunctionsStatus] = None __properties: ClassVar[List[str]] = ["limits", "functions", "functions_status"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -59,7 +59,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CompanyInfoPlanInfo from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -73,9 +73,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of limits @@ -90,7 +92,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of CompanyInfoPlanInfo from a dict""" if obj is None: return None @@ -100,19 +102,23 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "limits": CompanyInfoPlanInfoLimits.from_dict(obj.get("limits")) - if obj.get("limits") is not None - else None, - "functions": CompanyInfoPlanInfoFunctions.from_dict( - obj.get("functions") - ) - if obj.get("functions") is not None - else None, - "functions_status": CompanyInfoPlanInfoFunctionsStatus.from_dict( - obj.get("functions_status") - ) - if obj.get("functions_status") is not None - else None, + "limits": ( + CompanyInfoPlanInfoLimits.from_dict(obj["limits"]) + if obj.get("limits") is not None + else None + ), + "functions": ( + CompanyInfoPlanInfoFunctions.from_dict(obj["functions"]) + if obj.get("functions") is not None + else None + ), + "functions_status": ( + CompanyInfoPlanInfoFunctionsStatus.from_dict( + obj["functions_status"] + ) + if obj.get("functions_status") is not None + else None + ), } ) return _obj diff --git a/fattureincloud_python_sdk/models/company_info_plan_info_functions.py b/fattureincloud_python_sdk/models/company_info_plan_info_functions.py index 188a3dc8..2bf1e877 100644 --- a/fattureincloud_python_sdk/models/company_info_plan_info_functions.py +++ b/fattureincloud_python_sdk/models/company_info_plan_info_functions.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,14 +18,10 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel, StrictBool - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self class CompanyInfoPlanInfoFunctions(BaseModel): @@ -72,7 +68,11 @@ class CompanyInfoPlanInfoFunctions(BaseModel): "ts_pay", ] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -84,7 +84,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CompanyInfoPlanInfoFunctions from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -98,15 +98,17 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of CompanyInfoPlanInfoFunctions from a dict""" if obj is None: return None diff --git a/fattureincloud_python_sdk/models/company_info_plan_info_functions_status.py b/fattureincloud_python_sdk/models/company_info_plan_info_functions_status.py index e691fb95..19cf6d8f 100644 --- a/fattureincloud_python_sdk/models/company_info_plan_info_functions_status.py +++ b/fattureincloud_python_sdk/models/company_info_plan_info_functions_status.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.function_status import FunctionStatus - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class CompanyInfoPlanInfoFunctionsStatus(BaseModel): @@ -38,7 +34,11 @@ class CompanyInfoPlanInfoFunctionsStatus(BaseModel): ts_pay: Optional[FunctionStatus] = None __properties: ClassVar[List[str]] = ["ts_digital", "ts_pay"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -50,7 +50,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CompanyInfoPlanInfoFunctionsStatus from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -64,9 +64,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of ts_digital @@ -78,7 +80,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of CompanyInfoPlanInfoFunctionsStatus from a dict""" if obj is None: return None @@ -88,12 +90,16 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "ts_digital": FunctionStatus.from_dict(obj.get("ts_digital")) - if obj.get("ts_digital") is not None - else None, - "ts_pay": FunctionStatus.from_dict(obj.get("ts_pay")) - if obj.get("ts_pay") is not None - else None, + "ts_digital": ( + FunctionStatus.from_dict(obj["ts_digital"]) + if obj.get("ts_digital") is not None + else None + ), + "ts_pay": ( + FunctionStatus.from_dict(obj["ts_pay"]) + if obj.get("ts_pay") is not None + else None + ), } ) return _obj diff --git a/fattureincloud_python_sdk/models/company_info_plan_info_limits.py b/fattureincloud_python_sdk/models/company_info_plan_info_limits.py index 48365e4c..4744077d 100644 --- a/fattureincloud_python_sdk/models/company_info_plan_info_limits.py +++ b/fattureincloud_python_sdk/models/company_info_plan_info_limits.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,10 @@ import re # noqa: F401 import json - +from pydantic import BaseModel, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt -from pydantic import Field - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class CompanyInfoPlanInfoLimits(BaseModel): @@ -53,7 +48,11 @@ class CompanyInfoPlanInfoLimits(BaseModel): "documents", ] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -65,7 +64,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CompanyInfoPlanInfoLimits from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -79,15 +78,17 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of CompanyInfoPlanInfoLimits from a dict""" if obj is None: return None diff --git a/fattureincloud_python_sdk/models/company_plan_usage.py b/fattureincloud_python_sdk/models/company_plan_usage.py new file mode 100644 index 00000000..8b8e2a15 --- /dev/null +++ b/fattureincloud_python_sdk/models/company_plan_usage.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Fatture in Cloud API v2 - API Reference + + 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.0.32 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, Field, StrictFloat, StrictInt +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + + +class CompanyPlanUsage(BaseModel): + """ + CompanyPlanUsage + """ # noqa: E501 + + limit: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, description="Plan limit" + ) + usage: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, description="Plan usage" + ) + __properties: ClassVar[List[str]] = ["limit", "usage"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CompanyPlanUsage from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CompanyPlanUsage from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate( + {"limit": obj.get("limit"), "usage": obj.get("usage")} + ) + return _obj diff --git a/fattureincloud_python_sdk/models/company_type.py b/fattureincloud_python_sdk/models/company_type.py index 169c01f1..a882c0d1 100644 --- a/fattureincloud_python_sdk/models/company_type.py +++ b/fattureincloud_python_sdk/models/company_type.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -15,15 +15,8 @@ from __future__ import annotations import json -import pprint -import re # noqa: F401 from enum import Enum - - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing_extensions import Self class CompanyType(str, Enum): diff --git a/fattureincloud_python_sdk/models/controlled_company.py b/fattureincloud_python_sdk/models/controlled_company.py index 198ce3a8..1a0d12c8 100644 --- a/fattureincloud_python_sdk/models/controlled_company.py +++ b/fattureincloud_python_sdk/models/controlled_company.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,16 +18,15 @@ import re # noqa: F401 import json - +from datetime import date +from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union -from pydantic import BaseModel, StrictFloat, StrictInt, StrictStr -from pydantic import Field from fattureincloud_python_sdk.models.company_type import CompanyType - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from fattureincloud_python_sdk.models.fatture_in_cloud_plan_type import ( + FattureInCloudPlanType, +) +from typing import Optional, Set +from typing_extensions import Self class ControlledCompany(BaseModel): @@ -42,6 +41,8 @@ class ControlledCompany(BaseModel): default=None, description="Controlled company access token Only if type=company]", ) + fic_license_expire: Optional[date] = None + fic_plan: Optional[FattureInCloudPlanType] = None connection_id: Optional[Union[StrictFloat, StrictInt]] = Field( default=None, description="Controlled company connection id" ) @@ -53,11 +54,17 @@ class ControlledCompany(BaseModel): "name", "type", "access_token", + "fic_license_expire", + "fic_plan", "connection_id", "tax_code", ] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -69,7 +76,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ControlledCompany from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -83,15 +90,17 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ControlledCompany from a dict""" if obj is None: return None @@ -105,6 +114,8 @@ def from_dict(cls, obj: Dict) -> Self: "name": obj.get("name"), "type": obj.get("type"), "access_token": obj.get("access_token"), + "fic_license_expire": obj.get("fic_license_expire"), + "fic_plan": obj.get("fic_plan"), "connection_id": obj.get("connection_id"), "tax_code": obj.get("tax_code"), } diff --git a/fattureincloud_python_sdk/models/create_archive_document_request.py b/fattureincloud_python_sdk/models/create_archive_document_request.py index 9e1cf4da..7c234c1a 100644 --- a/fattureincloud_python_sdk/models/create_archive_document_request.py +++ b/fattureincloud_python_sdk/models/create_archive_document_request.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.archive_document import ArchiveDocument - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class CreateArchiveDocumentRequest(BaseModel): @@ -35,7 +31,11 @@ class CreateArchiveDocumentRequest(BaseModel): data: Optional[ArchiveDocument] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -47,7 +47,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CreateArchiveDocumentRequest from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -61,9 +61,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -72,7 +74,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of CreateArchiveDocumentRequest from a dict""" if obj is None: return None @@ -82,9 +84,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": ArchiveDocument.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + ArchiveDocument.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/create_archive_document_response.py b/fattureincloud_python_sdk/models/create_archive_document_response.py index 58f9abd7..77ac2648 100644 --- a/fattureincloud_python_sdk/models/create_archive_document_response.py +++ b/fattureincloud_python_sdk/models/create_archive_document_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.archive_document import ArchiveDocument - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class CreateArchiveDocumentResponse(BaseModel): @@ -35,7 +31,11 @@ class CreateArchiveDocumentResponse(BaseModel): data: Optional[ArchiveDocument] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -47,7 +47,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CreateArchiveDocumentResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -61,9 +61,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -72,7 +74,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of CreateArchiveDocumentResponse from a dict""" if obj is None: return None @@ -82,9 +84,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": ArchiveDocument.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + ArchiveDocument.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/create_cashbook_entry_request.py b/fattureincloud_python_sdk/models/create_cashbook_entry_request.py index af217900..bb5d952e 100644 --- a/fattureincloud_python_sdk/models/create_cashbook_entry_request.py +++ b/fattureincloud_python_sdk/models/create_cashbook_entry_request.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.cashbook_entry import CashbookEntry - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class CreateCashbookEntryRequest(BaseModel): @@ -35,7 +31,11 @@ class CreateCashbookEntryRequest(BaseModel): data: Optional[CashbookEntry] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -47,7 +47,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CreateCashbookEntryRequest from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -61,9 +61,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -72,7 +74,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of CreateCashbookEntryRequest from a dict""" if obj is None: return None @@ -82,9 +84,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": CashbookEntry.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + CashbookEntry.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/create_cashbook_entry_response.py b/fattureincloud_python_sdk/models/create_cashbook_entry_response.py index 32533b82..710f2bd9 100644 --- a/fattureincloud_python_sdk/models/create_cashbook_entry_response.py +++ b/fattureincloud_python_sdk/models/create_cashbook_entry_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.cashbook_entry import CashbookEntry - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class CreateCashbookEntryResponse(BaseModel): @@ -35,7 +31,11 @@ class CreateCashbookEntryResponse(BaseModel): data: Optional[CashbookEntry] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -47,7 +47,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CreateCashbookEntryResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -61,9 +61,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -72,7 +74,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of CreateCashbookEntryResponse from a dict""" if obj is None: return None @@ -82,9 +84,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": CashbookEntry.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + CashbookEntry.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/create_client_request.py b/fattureincloud_python_sdk/models/create_client_request.py index 4e8a4695..9316b27e 100644 --- a/fattureincloud_python_sdk/models/create_client_request.py +++ b/fattureincloud_python_sdk/models/create_client_request.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.client import Client - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class CreateClientRequest(BaseModel): @@ -37,7 +33,11 @@ class CreateClientRequest(BaseModel): data: Optional[Client] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -49,7 +49,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CreateClientRequest from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -63,9 +63,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -74,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of CreateClientRequest from a dict""" if obj is None: return None @@ -84,9 +86,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": Client.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + Client.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/create_client_response.py b/fattureincloud_python_sdk/models/create_client_response.py index 00b3337a..5b6bd09c 100644 --- a/fattureincloud_python_sdk/models/create_client_response.py +++ b/fattureincloud_python_sdk/models/create_client_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.client import Client - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class CreateClientResponse(BaseModel): @@ -37,7 +33,11 @@ class CreateClientResponse(BaseModel): data: Optional[Client] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -49,7 +49,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CreateClientResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -63,9 +63,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -74,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of CreateClientResponse from a dict""" if obj is None: return None @@ -84,9 +86,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": Client.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + Client.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/create_f24_request.py b/fattureincloud_python_sdk/models/create_f24_request.py index 426cea83..0f3dc2b0 100644 --- a/fattureincloud_python_sdk/models/create_f24_request.py +++ b/fattureincloud_python_sdk/models/create_f24_request.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.f24 import F24 - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class CreateF24Request(BaseModel): @@ -35,7 +31,11 @@ class CreateF24Request(BaseModel): data: Optional[F24] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -47,7 +47,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CreateF24Request from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -61,9 +61,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -72,7 +74,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of CreateF24Request from a dict""" if obj is None: return None @@ -82,9 +84,9 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": F24.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + F24.from_dict(obj["data"]) if obj.get("data") is not None else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/create_f24_response.py b/fattureincloud_python_sdk/models/create_f24_response.py index 7ef15fca..301def80 100644 --- a/fattureincloud_python_sdk/models/create_f24_response.py +++ b/fattureincloud_python_sdk/models/create_f24_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.f24 import F24 - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class CreateF24Response(BaseModel): @@ -35,7 +31,11 @@ class CreateF24Response(BaseModel): data: Optional[F24] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -47,7 +47,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CreateF24Response from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -61,9 +61,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -72,7 +74,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of CreateF24Response from a dict""" if obj is None: return None @@ -82,9 +84,9 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": F24.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + F24.from_dict(obj["data"]) if obj.get("data") is not None else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/create_issued_document_request.py b/fattureincloud_python_sdk/models/create_issued_document_request.py index dade6c5d..b76751dd 100644 --- a/fattureincloud_python_sdk/models/create_issued_document_request.py +++ b/fattureincloud_python_sdk/models/create_issued_document_request.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,18 +18,14 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.issued_document import IssuedDocument from fattureincloud_python_sdk.models.issued_document_options import ( IssuedDocumentOptions, ) - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class CreateIssuedDocumentRequest(BaseModel): @@ -41,7 +37,11 @@ class CreateIssuedDocumentRequest(BaseModel): options: Optional[IssuedDocumentOptions] = None __properties: ClassVar[List[str]] = ["data", "options"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -53,7 +53,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CreateIssuedDocumentRequest from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -67,9 +67,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -81,7 +83,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of CreateIssuedDocumentRequest from a dict""" if obj is None: return None @@ -91,12 +93,16 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": IssuedDocument.from_dict(obj.get("data")) - if obj.get("data") is not None - else None, - "options": IssuedDocumentOptions.from_dict(obj.get("options")) - if obj.get("options") is not None - else None, + "data": ( + IssuedDocument.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ), + "options": ( + IssuedDocumentOptions.from_dict(obj["options"]) + if obj.get("options") is not None + else None + ), } ) return _obj diff --git a/fattureincloud_python_sdk/models/create_issued_document_response.py b/fattureincloud_python_sdk/models/create_issued_document_response.py index f0641e5a..720ed64b 100644 --- a/fattureincloud_python_sdk/models/create_issued_document_response.py +++ b/fattureincloud_python_sdk/models/create_issued_document_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.issued_document import IssuedDocument - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class CreateIssuedDocumentResponse(BaseModel): @@ -37,7 +33,11 @@ class CreateIssuedDocumentResponse(BaseModel): data: Optional[IssuedDocument] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -49,7 +49,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CreateIssuedDocumentResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -63,9 +63,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -74,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of CreateIssuedDocumentResponse from a dict""" if obj is None: return None @@ -84,9 +86,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": IssuedDocument.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + IssuedDocument.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/create_payment_account_request.py b/fattureincloud_python_sdk/models/create_payment_account_request.py index 5ad15593..414411b1 100644 --- a/fattureincloud_python_sdk/models/create_payment_account_request.py +++ b/fattureincloud_python_sdk/models/create_payment_account_request.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.payment_account import PaymentAccount - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class CreatePaymentAccountRequest(BaseModel): @@ -37,7 +33,11 @@ class CreatePaymentAccountRequest(BaseModel): data: Optional[PaymentAccount] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -49,7 +49,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CreatePaymentAccountRequest from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -63,9 +63,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -74,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of CreatePaymentAccountRequest from a dict""" if obj is None: return None @@ -84,9 +86,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": PaymentAccount.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + PaymentAccount.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/create_payment_account_response.py b/fattureincloud_python_sdk/models/create_payment_account_response.py index cee098da..864f407d 100644 --- a/fattureincloud_python_sdk/models/create_payment_account_response.py +++ b/fattureincloud_python_sdk/models/create_payment_account_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.payment_account import PaymentAccount - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class CreatePaymentAccountResponse(BaseModel): @@ -37,7 +33,11 @@ class CreatePaymentAccountResponse(BaseModel): data: Optional[PaymentAccount] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -49,7 +49,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CreatePaymentAccountResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -63,9 +63,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -74,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of CreatePaymentAccountResponse from a dict""" if obj is None: return None @@ -84,9 +86,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": PaymentAccount.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + PaymentAccount.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/create_payment_method_request.py b/fattureincloud_python_sdk/models/create_payment_method_request.py index 79d270d5..e0ad8439 100644 --- a/fattureincloud_python_sdk/models/create_payment_method_request.py +++ b/fattureincloud_python_sdk/models/create_payment_method_request.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.payment_method import PaymentMethod - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class CreatePaymentMethodRequest(BaseModel): @@ -37,7 +33,11 @@ class CreatePaymentMethodRequest(BaseModel): data: Optional[PaymentMethod] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -49,7 +49,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CreatePaymentMethodRequest from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -63,9 +63,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -74,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of CreatePaymentMethodRequest from a dict""" if obj is None: return None @@ -84,9 +86,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": PaymentMethod.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + PaymentMethod.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/create_payment_method_response.py b/fattureincloud_python_sdk/models/create_payment_method_response.py index 649cfa06..a592e181 100644 --- a/fattureincloud_python_sdk/models/create_payment_method_response.py +++ b/fattureincloud_python_sdk/models/create_payment_method_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.payment_method import PaymentMethod - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class CreatePaymentMethodResponse(BaseModel): @@ -37,7 +33,11 @@ class CreatePaymentMethodResponse(BaseModel): data: Optional[PaymentMethod] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -49,7 +49,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CreatePaymentMethodResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -63,9 +63,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -74,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of CreatePaymentMethodResponse from a dict""" if obj is None: return None @@ -84,9 +86,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": PaymentMethod.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + PaymentMethod.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/create_product_request.py b/fattureincloud_python_sdk/models/create_product_request.py index 2a93cdfc..8564e994 100644 --- a/fattureincloud_python_sdk/models/create_product_request.py +++ b/fattureincloud_python_sdk/models/create_product_request.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.product import Product - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class CreateProductRequest(BaseModel): @@ -37,7 +33,11 @@ class CreateProductRequest(BaseModel): data: Optional[Product] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -49,7 +49,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CreateProductRequest from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -63,9 +63,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -74,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of CreateProductRequest from a dict""" if obj is None: return None @@ -84,9 +86,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": Product.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + Product.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/create_product_response.py b/fattureincloud_python_sdk/models/create_product_response.py index e9e0b2eb..cbef809d 100644 --- a/fattureincloud_python_sdk/models/create_product_response.py +++ b/fattureincloud_python_sdk/models/create_product_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.product import Product - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class CreateProductResponse(BaseModel): @@ -37,7 +33,11 @@ class CreateProductResponse(BaseModel): data: Optional[Product] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -49,7 +49,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CreateProductResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -63,9 +63,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -74,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of CreateProductResponse from a dict""" if obj is None: return None @@ -84,9 +86,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": Product.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + Product.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/create_receipt_request.py b/fattureincloud_python_sdk/models/create_receipt_request.py index a74d3717..b5b766f8 100644 --- a/fattureincloud_python_sdk/models/create_receipt_request.py +++ b/fattureincloud_python_sdk/models/create_receipt_request.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,16 +18,11 @@ import re # noqa: F401 import json - +from pydantic import BaseModel, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictBool -from pydantic import Field from fattureincloud_python_sdk.models.receipt import Receipt - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class CreateReceiptRequest(BaseModel): @@ -39,7 +34,11 @@ class CreateReceiptRequest(BaseModel): ) __properties: ClassVar[List[str]] = ["data", "autocomplete_number"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -51,7 +50,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CreateReceiptRequest from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -65,9 +64,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -76,7 +77,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of CreateReceiptRequest from a dict""" if obj is None: return None @@ -86,9 +87,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": Receipt.from_dict(obj.get("data")) - if obj.get("data") is not None - else None, + "data": ( + Receipt.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ), "autocomplete_number": obj.get("autocomplete_number"), } ) diff --git a/fattureincloud_python_sdk/models/create_receipt_response.py b/fattureincloud_python_sdk/models/create_receipt_response.py index bc927141..cb4923bf 100644 --- a/fattureincloud_python_sdk/models/create_receipt_response.py +++ b/fattureincloud_python_sdk/models/create_receipt_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.receipt import Receipt - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class CreateReceiptResponse(BaseModel): @@ -35,7 +31,11 @@ class CreateReceiptResponse(BaseModel): data: Optional[Receipt] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -47,7 +47,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CreateReceiptResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -61,9 +61,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -72,7 +74,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of CreateReceiptResponse from a dict""" if obj is None: return None @@ -82,9 +84,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": Receipt.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + Receipt.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/create_received_document_request.py b/fattureincloud_python_sdk/models/create_received_document_request.py index b8806077..21cf41fa 100644 --- a/fattureincloud_python_sdk/models/create_received_document_request.py +++ b/fattureincloud_python_sdk/models/create_received_document_request.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,16 +18,11 @@ import re # noqa: F401 import json - +from pydantic import BaseModel, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt -from pydantic import Field from fattureincloud_python_sdk.models.received_document import ReceivedDocument - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class CreateReceivedDocumentRequest(BaseModel): @@ -40,7 +35,11 @@ class CreateReceivedDocumentRequest(BaseModel): data: Optional[ReceivedDocument] = None __properties: ClassVar[List[str]] = ["pending_id", "data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -52,7 +51,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CreateReceivedDocumentRequest from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -66,9 +65,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -77,7 +78,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of CreateReceivedDocumentRequest from a dict""" if obj is None: return None @@ -88,9 +89,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { "pending_id": obj.get("pending_id"), - "data": ReceivedDocument.from_dict(obj.get("data")) - if obj.get("data") is not None - else None, + "data": ( + ReceivedDocument.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ), } ) return _obj diff --git a/fattureincloud_python_sdk/models/create_received_document_response.py b/fattureincloud_python_sdk/models/create_received_document_response.py index 1d983bcf..46c4f69d 100644 --- a/fattureincloud_python_sdk/models/create_received_document_response.py +++ b/fattureincloud_python_sdk/models/create_received_document_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.received_document import ReceivedDocument - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class CreateReceivedDocumentResponse(BaseModel): @@ -35,7 +31,11 @@ class CreateReceivedDocumentResponse(BaseModel): data: Optional[ReceivedDocument] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -47,7 +47,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CreateReceivedDocumentResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -61,9 +61,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -72,7 +74,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of CreateReceivedDocumentResponse from a dict""" if obj is None: return None @@ -82,9 +84,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": ReceivedDocument.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + ReceivedDocument.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/create_supplier_request.py b/fattureincloud_python_sdk/models/create_supplier_request.py index 4470e51d..bb9cbf55 100644 --- a/fattureincloud_python_sdk/models/create_supplier_request.py +++ b/fattureincloud_python_sdk/models/create_supplier_request.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.supplier import Supplier - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class CreateSupplierRequest(BaseModel): @@ -37,7 +33,11 @@ class CreateSupplierRequest(BaseModel): data: Optional[Supplier] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -49,7 +49,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CreateSupplierRequest from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -63,9 +63,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -74,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of CreateSupplierRequest from a dict""" if obj is None: return None @@ -84,9 +86,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": Supplier.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + Supplier.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/create_supplier_response.py b/fattureincloud_python_sdk/models/create_supplier_response.py index cb3ad99f..3bedb6ab 100644 --- a/fattureincloud_python_sdk/models/create_supplier_response.py +++ b/fattureincloud_python_sdk/models/create_supplier_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.supplier import Supplier - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class CreateSupplierResponse(BaseModel): @@ -37,7 +33,11 @@ class CreateSupplierResponse(BaseModel): data: Optional[Supplier] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -49,7 +49,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CreateSupplierResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -63,9 +63,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -74,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of CreateSupplierResponse from a dict""" if obj is None: return None @@ -84,9 +86,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": Supplier.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + Supplier.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/create_vat_type_request.py b/fattureincloud_python_sdk/models/create_vat_type_request.py index ce02bbd6..b4149231 100644 --- a/fattureincloud_python_sdk/models/create_vat_type_request.py +++ b/fattureincloud_python_sdk/models/create_vat_type_request.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.vat_type import VatType - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class CreateVatTypeRequest(BaseModel): @@ -37,7 +33,11 @@ class CreateVatTypeRequest(BaseModel): data: Optional[VatType] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -49,7 +49,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CreateVatTypeRequest from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -63,9 +63,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -74,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of CreateVatTypeRequest from a dict""" if obj is None: return None @@ -84,9 +86,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": VatType.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + VatType.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/create_vat_type_response.py b/fattureincloud_python_sdk/models/create_vat_type_response.py index 3edc95dd..72039f73 100644 --- a/fattureincloud_python_sdk/models/create_vat_type_response.py +++ b/fattureincloud_python_sdk/models/create_vat_type_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.vat_type import VatType - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class CreateVatTypeResponse(BaseModel): @@ -37,7 +33,11 @@ class CreateVatTypeResponse(BaseModel): data: Optional[VatType] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -49,7 +49,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CreateVatTypeResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -63,9 +63,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -74,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of CreateVatTypeResponse from a dict""" if obj is None: return None @@ -84,9 +86,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": VatType.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + VatType.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/create_webhooks_subscription_request.py b/fattureincloud_python_sdk/models/create_webhooks_subscription_request.py index febece2a..89aaa880 100644 --- a/fattureincloud_python_sdk/models/create_webhooks_subscription_request.py +++ b/fattureincloud_python_sdk/models/create_webhooks_subscription_request.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.webhooks_subscription import WebhooksSubscription - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class CreateWebhooksSubscriptionRequest(BaseModel): @@ -37,7 +33,11 @@ class CreateWebhooksSubscriptionRequest(BaseModel): data: Optional[WebhooksSubscription] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -49,7 +49,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CreateWebhooksSubscriptionRequest from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -63,9 +63,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -74,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of CreateWebhooksSubscriptionRequest from a dict""" if obj is None: return None @@ -84,9 +86,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": WebhooksSubscription.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + WebhooksSubscription.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/create_webhooks_subscription_response.py b/fattureincloud_python_sdk/models/create_webhooks_subscription_response.py index 97b76500..7ce91577 100644 --- a/fattureincloud_python_sdk/models/create_webhooks_subscription_response.py +++ b/fattureincloud_python_sdk/models/create_webhooks_subscription_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,16 +18,11 @@ import re # noqa: F401 import json - +from pydantic import BaseModel, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictStr -from pydantic import Field from fattureincloud_python_sdk.models.webhooks_subscription import WebhooksSubscription - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class CreateWebhooksSubscriptionResponse(BaseModel): @@ -41,7 +36,11 @@ class CreateWebhooksSubscriptionResponse(BaseModel): ) __properties: ClassVar[List[str]] = ["data", "warnings"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -53,7 +52,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of CreateWebhooksSubscriptionResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -67,9 +66,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -78,7 +79,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of CreateWebhooksSubscriptionResponse from a dict""" if obj is None: return None @@ -88,9 +89,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": WebhooksSubscription.from_dict(obj.get("data")) - if obj.get("data") is not None - else None, + "data": ( + WebhooksSubscription.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ), "warnings": obj.get("warnings"), } ) diff --git a/fattureincloud_python_sdk/models/currency.py b/fattureincloud_python_sdk/models/currency.py index 44ede9a4..04e6b9a5 100644 --- a/fattureincloud_python_sdk/models/currency.py +++ b/fattureincloud_python_sdk/models/currency.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,10 @@ import re # noqa: F401 import json - +from pydantic import BaseModel, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictStr -from pydantic import Field - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class Currency(BaseModel): @@ -44,7 +39,11 @@ class Currency(BaseModel): ) __properties: ClassVar[List[str]] = ["id", "symbol", "exchange_rate", "html_symbol"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -56,7 +55,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of Currency from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -70,15 +69,17 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of Currency from a dict""" if obj is None: return None diff --git a/fattureincloud_python_sdk/models/detailed_country.py b/fattureincloud_python_sdk/models/detailed_country.py index 9aa181e4..c4a779e4 100644 --- a/fattureincloud_python_sdk/models/detailed_country.py +++ b/fattureincloud_python_sdk/models/detailed_country.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,10 @@ import re # noqa: F401 import json - +from pydantic import BaseModel, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictStr -from pydantic import Field - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class DetailedCountry(BaseModel): @@ -51,7 +46,11 @@ class DetailedCountry(BaseModel): "uic", ] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -63,7 +62,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of DetailedCountry from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -77,15 +76,17 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of DetailedCountry from a dict""" if obj is None: return None diff --git a/fattureincloud_python_sdk/models/document_template.py b/fattureincloud_python_sdk/models/document_template.py index 544adaf5..6103a1ad 100644 --- a/fattureincloud_python_sdk/models/document_template.py +++ b/fattureincloud_python_sdk/models/document_template.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,10 @@ import re # noqa: F401 import json - +from pydantic import BaseModel, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt, StrictStr -from pydantic import Field - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class DocumentTemplate(BaseModel): @@ -39,7 +34,11 @@ class DocumentTemplate(BaseModel): type: Optional[StrictStr] = Field(default=None, description="Template type") __properties: ClassVar[List[str]] = ["id", "name", "type"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -51,7 +50,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of DocumentTemplate from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -65,15 +64,17 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of DocumentTemplate from a dict""" if obj is None: return None diff --git a/fattureincloud_python_sdk/models/e_invoice_rejection_reason.py b/fattureincloud_python_sdk/models/e_invoice_rejection_reason.py index b134d90a..ddb851ed 100644 --- a/fattureincloud_python_sdk/models/e_invoice_rejection_reason.py +++ b/fattureincloud_python_sdk/models/e_invoice_rejection_reason.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -19,14 +19,10 @@ import json from datetime import datetime +from pydantic import BaseModel, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictStr -from pydantic import Field - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class EInvoiceRejectionReason(BaseModel): @@ -53,7 +49,11 @@ class EInvoiceRejectionReason(BaseModel): "date", ] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -65,7 +65,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of EInvoiceRejectionReason from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -79,15 +79,17 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of EInvoiceRejectionReason from a dict""" if obj is None: return None diff --git a/fattureincloud_python_sdk/models/email.py b/fattureincloud_python_sdk/models/email.py index 5f320a53..42e46035 100644 --- a/fattureincloud_python_sdk/models/email.py +++ b/fattureincloud_python_sdk/models/email.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -19,17 +19,13 @@ import json from datetime import datetime +from pydantic import BaseModel, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt, StrictStr -from pydantic import Field from fattureincloud_python_sdk.models.email_attachment import EmailAttachment from fattureincloud_python_sdk.models.email_recipient_status import EmailRecipientStatus from fattureincloud_python_sdk.models.email_status import EmailStatus - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class Email(BaseModel): @@ -86,7 +82,11 @@ class Email(BaseModel): "attachments", ] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -98,7 +98,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of Email from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -112,9 +112,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of each item in attachments (list) @@ -127,7 +129,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of Email from a dict""" if obj is None: return None @@ -152,11 +154,11 @@ def from_dict(cls, obj: Dict) -> Self: "recipient_status": obj.get("recipient_status"), "recipient_date": obj.get("recipient_date"), "kind": obj.get("kind"), - "attachments": [ - EmailAttachment.from_dict(_item) for _item in obj.get("attachments") - ] - if obj.get("attachments") is not None - else None, + "attachments": ( + [EmailAttachment.from_dict(_item) for _item in obj["attachments"]] + if obj.get("attachments") is not None + else None + ), } ) return _obj diff --git a/fattureincloud_python_sdk/models/email_attachment.py b/fattureincloud_python_sdk/models/email_attachment.py index fae67c17..7efcdc60 100644 --- a/fattureincloud_python_sdk/models/email_attachment.py +++ b/fattureincloud_python_sdk/models/email_attachment.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,10 @@ import re # noqa: F401 import json - +from pydantic import BaseModel, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictStr -from pydantic import Field - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class EmailAttachment(BaseModel): @@ -40,7 +35,11 @@ class EmailAttachment(BaseModel): url: Optional[StrictStr] = Field(default=None, description="Email attachment url") __properties: ClassVar[List[str]] = ["filename", "url"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -52,7 +51,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of EmailAttachment from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -66,15 +65,17 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of EmailAttachment from a dict""" if obj is None: return None diff --git a/fattureincloud_python_sdk/models/email_data.py b/fattureincloud_python_sdk/models/email_data.py index 3e68e930..577fa6b8 100644 --- a/fattureincloud_python_sdk/models/email_data.py +++ b/fattureincloud_python_sdk/models/email_data.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,19 +18,14 @@ import re # noqa: F401 import json - +from pydantic import BaseModel, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictBool, StrictStr -from pydantic import Field from fattureincloud_python_sdk.models.email_data_default_sender_email import ( EmailDataDefaultSenderEmail, ) from fattureincloud_python_sdk.models.sender_email import SenderEmail - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class EmailData(BaseModel): @@ -80,7 +75,11 @@ class EmailData(BaseModel): "default_attach_pdf", ] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -92,7 +91,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of EmailData from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -106,9 +105,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of default_sender_email @@ -124,7 +125,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of EmailData from a dict""" if obj is None: return None @@ -135,17 +136,19 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { "recipient_email": obj.get("recipient_email"), - "default_sender_email": EmailDataDefaultSenderEmail.from_dict( - obj.get("default_sender_email") - ) - if obj.get("default_sender_email") is not None - else None, - "sender_emails_list": [ - SenderEmail.from_dict(_item) - for _item in obj.get("sender_emails_list") - ] - if obj.get("sender_emails_list") is not None - else None, + "default_sender_email": ( + EmailDataDefaultSenderEmail.from_dict(obj["default_sender_email"]) + if obj.get("default_sender_email") is not None + else None + ), + "sender_emails_list": ( + [ + SenderEmail.from_dict(_item) + for _item in obj["sender_emails_list"] + ] + if obj.get("sender_emails_list") is not None + else None + ), "cc_email": obj.get("cc_email"), "subject": obj.get("subject"), "body": obj.get("body"), diff --git a/fattureincloud_python_sdk/models/email_data_default_sender_email.py b/fattureincloud_python_sdk/models/email_data_default_sender_email.py index c2be188b..8b387913 100644 --- a/fattureincloud_python_sdk/models/email_data_default_sender_email.py +++ b/fattureincloud_python_sdk/models/email_data_default_sender_email.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,10 @@ import re # noqa: F401 import json - +from pydantic import BaseModel, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt, StrictStr -from pydantic import Field - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class EmailDataDefaultSenderEmail(BaseModel): @@ -40,7 +35,11 @@ class EmailDataDefaultSenderEmail(BaseModel): ) __properties: ClassVar[List[str]] = ["id", "email"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -52,7 +51,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of EmailDataDefaultSenderEmail from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -66,15 +65,17 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of EmailDataDefaultSenderEmail from a dict""" if obj is None: return None diff --git a/fattureincloud_python_sdk/models/email_recipient_status.py b/fattureincloud_python_sdk/models/email_recipient_status.py index 00dc1d75..a0009239 100644 --- a/fattureincloud_python_sdk/models/email_recipient_status.py +++ b/fattureincloud_python_sdk/models/email_recipient_status.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -15,15 +15,8 @@ from __future__ import annotations import json -import pprint -import re # noqa: F401 from enum import Enum - - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing_extensions import Self class EmailRecipientStatus(str, Enum): diff --git a/fattureincloud_python_sdk/models/email_schedule.py b/fattureincloud_python_sdk/models/email_schedule.py index e5e85489..9d172e63 100644 --- a/fattureincloud_python_sdk/models/email_schedule.py +++ b/fattureincloud_python_sdk/models/email_schedule.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,16 +18,11 @@ import re # noqa: F401 import json - +from pydantic import BaseModel, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictBool, StrictInt, StrictStr -from pydantic import Field from fattureincloud_python_sdk.models.email_schedule_include import EmailScheduleInclude - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class EmailSchedule(BaseModel): @@ -69,7 +64,11 @@ class EmailSchedule(BaseModel): "send_copy", ] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -81,7 +80,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of EmailSchedule from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -95,9 +94,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of include @@ -106,7 +107,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of EmailSchedule from a dict""" if obj is None: return None @@ -121,9 +122,11 @@ def from_dict(cls, obj: Dict) -> Self: "recipient_email": obj.get("recipient_email"), "subject": obj.get("subject"), "body": obj.get("body"), - "include": EmailScheduleInclude.from_dict(obj.get("include")) - if obj.get("include") is not None - else None, + "include": ( + EmailScheduleInclude.from_dict(obj["include"]) + if obj.get("include") is not None + else None + ), "attach_pdf": obj.get("attach_pdf"), "send_copy": obj.get("send_copy"), } diff --git a/fattureincloud_python_sdk/models/email_schedule_include.py b/fattureincloud_python_sdk/models/email_schedule_include.py index 9c0e79dd..dcad0686 100644 --- a/fattureincloud_python_sdk/models/email_schedule_include.py +++ b/fattureincloud_python_sdk/models/email_schedule_include.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,10 @@ import re # noqa: F401 import json - +from pydantic import BaseModel, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictBool -from pydantic import Field - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class EmailScheduleInclude(BaseModel): @@ -53,7 +48,11 @@ class EmailScheduleInclude(BaseModel): "accompanying_invoice", ] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -65,7 +64,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of EmailScheduleInclude from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -79,15 +78,17 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of EmailScheduleInclude from a dict""" if obj is None: return None diff --git a/fattureincloud_python_sdk/models/email_status.py b/fattureincloud_python_sdk/models/email_status.py index 0892f2d2..444235f1 100644 --- a/fattureincloud_python_sdk/models/email_status.py +++ b/fattureincloud_python_sdk/models/email_status.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -15,15 +15,8 @@ from __future__ import annotations import json -import pprint -import re # noqa: F401 from enum import Enum - - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing_extensions import Self class EmailStatus(str, Enum): diff --git a/fattureincloud_python_sdk/models/entity.py b/fattureincloud_python_sdk/models/entity.py index b1761288..7f5ee38d 100644 --- a/fattureincloud_python_sdk/models/entity.py +++ b/fattureincloud_python_sdk/models/entity.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -19,18 +19,14 @@ import json from datetime import date +from pydantic import BaseModel, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictBool, StrictInt, StrictStr -from pydantic import Field from fattureincloud_python_sdk.models.entity_type import EntityType from fattureincloud_python_sdk.models.payment_method import PaymentMethod from fattureincloud_python_sdk.models.payment_terms_type import PaymentTermsType from fattureincloud_python_sdk.models.vat_type import VatType - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class Entity(BaseModel): @@ -159,7 +155,11 @@ class Entity(BaseModel): "updated_at", ] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -171,7 +171,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of Entity from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -185,9 +185,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of default_vat @@ -199,7 +201,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of Entity from a dict""" if obj is None: return None @@ -231,15 +233,17 @@ def from_dict(cls, obj: Dict) -> Self: "fax": obj.get("fax"), "notes": obj.get("notes"), "default_payment_terms": obj.get("default_payment_terms"), - "default_vat": VatType.from_dict(obj.get("default_vat")) - if obj.get("default_vat") is not None - else None, + "default_vat": ( + VatType.from_dict(obj["default_vat"]) + if obj.get("default_vat") is not None + else None + ), "default_payment_terms_type": obj.get("default_payment_terms_type"), - "default_payment_method": PaymentMethod.from_dict( - obj.get("default_payment_method") - ) - if obj.get("default_payment_method") is not None - else None, + "default_payment_method": ( + PaymentMethod.from_dict(obj["default_payment_method"]) + if obj.get("default_payment_method") is not None + else None + ), "bank_name": obj.get("bank_name"), "bank_iban": obj.get("bank_iban"), "bank_swift_code": obj.get("bank_swift_code"), diff --git a/fattureincloud_python_sdk/models/entity_type.py b/fattureincloud_python_sdk/models/entity_type.py index c4f8f5bb..8d2ad3f1 100644 --- a/fattureincloud_python_sdk/models/entity_type.py +++ b/fattureincloud_python_sdk/models/entity_type.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -15,15 +15,8 @@ from __future__ import annotations import json -import pprint -import re # noqa: F401 from enum import Enum - - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing_extensions import Self class EntityType(str, Enum): diff --git a/fattureincloud_python_sdk/models/event_type.py b/fattureincloud_python_sdk/models/event_type.py index 9d288a21..8c39a597 100644 --- a/fattureincloud_python_sdk/models/event_type.py +++ b/fattureincloud_python_sdk/models/event_type.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -15,15 +15,8 @@ from __future__ import annotations import json -import pprint -import re # noqa: F401 from enum import Enum - - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing_extensions import Self class EventType(str, Enum): @@ -160,6 +153,15 @@ class EventType(str, Enum): TAXES_DELETE = ( "it.fattureincloud.webhooks.taxes.delete" ) + ARCHIVE_DOCUMENTS_CREATE = ( + "it.fattureincloud.webhooks.archive_documents.create" + ) + ARCHIVE_DOCUMENTS_UPDATE = ( + "it.fattureincloud.webhooks.archive_documents.update" + ) + ARCHIVE_DOCUMENTS_DELETE = ( + "it.fattureincloud.webhooks.archive_documents.delete" + ) CASHBOOK_CREATE = ( "it.fattureincloud.webhooks.cashbook.create" ) @@ -211,8 +213,8 @@ class EventType(str, Enum): ISSUED_DOCUMENTS_E_INVOICES_STATUS_UPDATE = ( "it.fattureincloud.webhooks.issued_documents.e_invoices.status_update" ) - RECEIVED_DOCUMENTS_E_INVOICES_STATUS_UPDATE = ( - "it.fattureincloud.webhooks.received_documents.e_invoices.status_update" + RECEIVED_DOCUMENTS_E_INVOICES_RECEIVE = ( + "it.fattureincloud.webhooks.received_documents.e_invoices.receive" ) @classmethod diff --git a/fattureincloud_python_sdk/models/f24.py b/fattureincloud_python_sdk/models/f24.py index 053016f6..035dba83 100644 --- a/fattureincloud_python_sdk/models/f24.py +++ b/fattureincloud_python_sdk/models/f24.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -19,16 +19,12 @@ import json from datetime import date +from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union -from pydantic import BaseModel, StrictFloat, StrictInt, StrictStr -from pydantic import Field from fattureincloud_python_sdk.models.f24_status import F24Status from fattureincloud_python_sdk.models.payment_account import PaymentAccount - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class F24(BaseModel): @@ -64,7 +60,11 @@ class F24(BaseModel): "description", ] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -76,7 +76,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of F24 from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -91,11 +91,15 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * OpenAPI `readOnly` fields are excluded. """ + excluded_fields: Set[str] = set( + [ + "attachment_url", + ] + ) + _dict = self.model_dump( by_alias=True, - exclude={ - "attachment_url", - }, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of payment_account @@ -104,7 +108,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of F24 from a dict""" if obj is None: return None @@ -117,9 +121,11 @@ def from_dict(cls, obj: Dict) -> Self: "id": obj.get("id"), "due_date": obj.get("due_date"), "status": obj.get("status"), - "payment_account": PaymentAccount.from_dict(obj.get("payment_account")) - if obj.get("payment_account") is not None - else None, + "payment_account": ( + PaymentAccount.from_dict(obj["payment_account"]) + if obj.get("payment_account") is not None + else None + ), "amount": obj.get("amount"), "attachment_url": obj.get("attachment_url"), "attachment_token": obj.get("attachment_token"), diff --git a/fattureincloud_python_sdk/models/f24_status.py b/fattureincloud_python_sdk/models/f24_status.py index 9a2b6bdb..7335834e 100644 --- a/fattureincloud_python_sdk/models/f24_status.py +++ b/fattureincloud_python_sdk/models/f24_status.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -15,15 +15,8 @@ from __future__ import annotations import json -import pprint -import re # noqa: F401 from enum import Enum - - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing_extensions import Self class F24Status(str, Enum): diff --git a/fattureincloud_python_sdk/models/fatture_in_cloud_plan_type.py b/fattureincloud_python_sdk/models/fatture_in_cloud_plan_type.py new file mode 100644 index 00000000..630a9712 --- /dev/null +++ b/fattureincloud_python_sdk/models/fatture_in_cloud_plan_type.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Fatture in Cloud API v2 - API Reference + + 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.0.32 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class FattureInCloudPlanType(str, Enum): + """ + Fatture in Cloud account plan type. + """ + + """ + allowed enum values + """ + TRIAL = "trial" + STANDARD = "standard" + PREMIUM = "premium" + PREMIUM_PLUS = "premium_plus" + COMPLETE = "complete" + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of FattureInCloudPlanType from a JSON string""" + return cls(json.loads(json_str)) diff --git a/fattureincloud_python_sdk/models/function_status.py b/fattureincloud_python_sdk/models/function_status.py index e569fe65..b393f9af 100644 --- a/fattureincloud_python_sdk/models/function_status.py +++ b/fattureincloud_python_sdk/models/function_status.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,14 +18,10 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel, StrictBool - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self class FunctionStatus(BaseModel): @@ -36,7 +32,11 @@ class FunctionStatus(BaseModel): active: Optional[StrictBool] = None __properties: ClassVar[List[str]] = ["active"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -48,7 +48,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of FunctionStatus from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -62,15 +62,17 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of FunctionStatus from a dict""" if obj is None: return None diff --git a/fattureincloud_python_sdk/models/get_archive_document_response.py b/fattureincloud_python_sdk/models/get_archive_document_response.py index 52f0a817..3fe454de 100644 --- a/fattureincloud_python_sdk/models/get_archive_document_response.py +++ b/fattureincloud_python_sdk/models/get_archive_document_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.archive_document import ArchiveDocument - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class GetArchiveDocumentResponse(BaseModel): @@ -35,7 +31,11 @@ class GetArchiveDocumentResponse(BaseModel): data: Optional[ArchiveDocument] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -47,7 +47,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of GetArchiveDocumentResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -61,9 +61,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -72,7 +74,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of GetArchiveDocumentResponse from a dict""" if obj is None: return None @@ -82,9 +84,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": ArchiveDocument.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + ArchiveDocument.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/get_cashbook_entry_response.py b/fattureincloud_python_sdk/models/get_cashbook_entry_response.py index 413de108..b6074a31 100644 --- a/fattureincloud_python_sdk/models/get_cashbook_entry_response.py +++ b/fattureincloud_python_sdk/models/get_cashbook_entry_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.cashbook_entry import CashbookEntry - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class GetCashbookEntryResponse(BaseModel): @@ -35,7 +31,11 @@ class GetCashbookEntryResponse(BaseModel): data: Optional[CashbookEntry] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -47,7 +47,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of GetCashbookEntryResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -61,9 +61,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -72,7 +74,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of GetCashbookEntryResponse from a dict""" if obj is None: return None @@ -82,9 +84,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": CashbookEntry.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + CashbookEntry.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/get_client_response.py b/fattureincloud_python_sdk/models/get_client_response.py index 41c457f7..05c42a74 100644 --- a/fattureincloud_python_sdk/models/get_client_response.py +++ b/fattureincloud_python_sdk/models/get_client_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.client import Client - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class GetClientResponse(BaseModel): @@ -37,7 +33,11 @@ class GetClientResponse(BaseModel): data: Optional[Client] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -49,7 +49,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of GetClientResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -63,9 +63,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -74,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of GetClientResponse from a dict""" if obj is None: return None @@ -84,9 +86,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": Client.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + Client.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/get_company_info_response.py b/fattureincloud_python_sdk/models/get_company_info_response.py index 3e84c4d0..c17063cc 100644 --- a/fattureincloud_python_sdk/models/get_company_info_response.py +++ b/fattureincloud_python_sdk/models/get_company_info_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.company_info import CompanyInfo - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class GetCompanyInfoResponse(BaseModel): @@ -35,7 +31,11 @@ class GetCompanyInfoResponse(BaseModel): data: Optional[CompanyInfo] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -47,7 +47,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of GetCompanyInfoResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -61,9 +61,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -72,7 +74,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of GetCompanyInfoResponse from a dict""" if obj is None: return None @@ -82,9 +84,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": CompanyInfo.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + CompanyInfo.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/get_company_plan_usage_response.py b/fattureincloud_python_sdk/models/get_company_plan_usage_response.py new file mode 100644 index 00000000..42313f58 --- /dev/null +++ b/fattureincloud_python_sdk/models/get_company_plan_usage_response.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Fatture in Cloud API v2 - API Reference + + 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.0.32 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional +from fattureincloud_python_sdk.models.company_plan_usage import CompanyPlanUsage +from typing import Optional, Set +from typing_extensions import Self + + +class GetCompanyPlanUsageResponse(BaseModel): + """ """ # noqa: E501 + + data: Optional[CompanyPlanUsage] = None + __properties: ClassVar[List[str]] = ["data"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetCompanyPlanUsageResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict["data"] = self.data.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetCompanyPlanUsageResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate( + { + "data": ( + CompanyPlanUsage.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) + } + ) + return _obj diff --git a/fattureincloud_python_sdk/models/get_e_invoice_rejection_reason_response.py b/fattureincloud_python_sdk/models/get_e_invoice_rejection_reason_response.py index af67711a..b9ddddaf 100644 --- a/fattureincloud_python_sdk/models/get_e_invoice_rejection_reason_response.py +++ b/fattureincloud_python_sdk/models/get_e_invoice_rejection_reason_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,17 +18,13 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.e_invoice_rejection_reason import ( EInvoiceRejectionReason, ) - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class GetEInvoiceRejectionReasonResponse(BaseModel): @@ -39,7 +35,11 @@ class GetEInvoiceRejectionReasonResponse(BaseModel): data: Optional[EInvoiceRejectionReason] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -51,7 +51,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of GetEInvoiceRejectionReasonResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -65,9 +65,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -76,7 +78,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of GetEInvoiceRejectionReasonResponse from a dict""" if obj is None: return None @@ -86,9 +88,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": EInvoiceRejectionReason.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + EInvoiceRejectionReason.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/get_email_data_response.py b/fattureincloud_python_sdk/models/get_email_data_response.py index dc4b9ba8..7d8a506a 100644 --- a/fattureincloud_python_sdk/models/get_email_data_response.py +++ b/fattureincloud_python_sdk/models/get_email_data_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.email_data import EmailData - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class GetEmailDataResponse(BaseModel): @@ -37,7 +33,11 @@ class GetEmailDataResponse(BaseModel): data: Optional[EmailData] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -49,7 +49,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of GetEmailDataResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -63,9 +63,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -74,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of GetEmailDataResponse from a dict""" if obj is None: return None @@ -84,9 +86,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": EmailData.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + EmailData.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/get_existing_issued_document_totals_request.py b/fattureincloud_python_sdk/models/get_existing_issued_document_totals_request.py index 744afc96..61eb6f90 100644 --- a/fattureincloud_python_sdk/models/get_existing_issued_document_totals_request.py +++ b/fattureincloud_python_sdk/models/get_existing_issued_document_totals_request.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.issued_document import IssuedDocument - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class GetExistingIssuedDocumentTotalsRequest(BaseModel): @@ -37,7 +33,11 @@ class GetExistingIssuedDocumentTotalsRequest(BaseModel): data: Optional[IssuedDocument] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -49,7 +49,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of GetExistingIssuedDocumentTotalsRequest from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -63,9 +63,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -74,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of GetExistingIssuedDocumentTotalsRequest from a dict""" if obj is None: return None @@ -84,9 +86,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": IssuedDocument.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + IssuedDocument.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/get_existing_issued_document_totals_response.py b/fattureincloud_python_sdk/models/get_existing_issued_document_totals_response.py index 868711fc..b6fb5fd1 100644 --- a/fattureincloud_python_sdk/models/get_existing_issued_document_totals_response.py +++ b/fattureincloud_python_sdk/models/get_existing_issued_document_totals_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.issued_document_totals import IssuedDocumentTotals - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class GetExistingIssuedDocumentTotalsResponse(BaseModel): @@ -35,7 +31,11 @@ class GetExistingIssuedDocumentTotalsResponse(BaseModel): data: Optional[IssuedDocumentTotals] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -47,7 +47,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of GetExistingIssuedDocumentTotalsResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -61,9 +61,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -72,7 +74,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of GetExistingIssuedDocumentTotalsResponse from a dict""" if obj is None: return None @@ -82,9 +84,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": IssuedDocumentTotals.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + IssuedDocumentTotals.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/get_existing_received_document_totals_request.py b/fattureincloud_python_sdk/models/get_existing_received_document_totals_request.py index fafd70e6..cf4170bc 100644 --- a/fattureincloud_python_sdk/models/get_existing_received_document_totals_request.py +++ b/fattureincloud_python_sdk/models/get_existing_received_document_totals_request.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.received_document import ReceivedDocument - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class GetExistingReceivedDocumentTotalsRequest(BaseModel): @@ -35,7 +31,11 @@ class GetExistingReceivedDocumentTotalsRequest(BaseModel): data: Optional[ReceivedDocument] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -47,7 +47,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of GetExistingReceivedDocumentTotalsRequest from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -61,9 +61,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -72,7 +74,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of GetExistingReceivedDocumentTotalsRequest from a dict""" if obj is None: return None @@ -82,9 +84,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": ReceivedDocument.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + ReceivedDocument.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/get_existing_received_document_totals_response.py b/fattureincloud_python_sdk/models/get_existing_received_document_totals_response.py index d4d18d25..86a59fb8 100644 --- a/fattureincloud_python_sdk/models/get_existing_received_document_totals_response.py +++ b/fattureincloud_python_sdk/models/get_existing_received_document_totals_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,17 +18,13 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.received_document_totals import ( ReceivedDocumentTotals, ) - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class GetExistingReceivedDocumentTotalsResponse(BaseModel): @@ -37,7 +33,11 @@ class GetExistingReceivedDocumentTotalsResponse(BaseModel): data: Optional[ReceivedDocumentTotals] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -49,7 +49,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of GetExistingReceivedDocumentTotalsResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -63,9 +63,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -74,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of GetExistingReceivedDocumentTotalsResponse from a dict""" if obj is None: return None @@ -84,9 +86,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": ReceivedDocumentTotals.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + ReceivedDocumentTotals.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/get_f24_response.py b/fattureincloud_python_sdk/models/get_f24_response.py index 92ec762e..ec83510f 100644 --- a/fattureincloud_python_sdk/models/get_f24_response.py +++ b/fattureincloud_python_sdk/models/get_f24_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.f24 import F24 - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class GetF24Response(BaseModel): @@ -37,7 +33,11 @@ class GetF24Response(BaseModel): data: Optional[F24] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -49,7 +49,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of GetF24Response from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -63,9 +63,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -74,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of GetF24Response from a dict""" if obj is None: return None @@ -84,9 +86,9 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": F24.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + F24.from_dict(obj["data"]) if obj.get("data") is not None else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/get_issued_document_pre_create_info_response.py b/fattureincloud_python_sdk/models/get_issued_document_pre_create_info_response.py index 30a23bd4..d8f7b496 100644 --- a/fattureincloud_python_sdk/models/get_issued_document_pre_create_info_response.py +++ b/fattureincloud_python_sdk/models/get_issued_document_pre_create_info_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,17 +18,13 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.issued_document_pre_create_info import ( IssuedDocumentPreCreateInfo, ) - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class GetIssuedDocumentPreCreateInfoResponse(BaseModel): @@ -39,7 +35,11 @@ class GetIssuedDocumentPreCreateInfoResponse(BaseModel): data: Optional[IssuedDocumentPreCreateInfo] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -51,7 +51,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of GetIssuedDocumentPreCreateInfoResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -65,9 +65,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -76,7 +78,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of GetIssuedDocumentPreCreateInfoResponse from a dict""" if obj is None: return None @@ -86,9 +88,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": IssuedDocumentPreCreateInfo.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + IssuedDocumentPreCreateInfo.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/get_issued_document_response.py b/fattureincloud_python_sdk/models/get_issued_document_response.py index d7b8d7c2..d5028193 100644 --- a/fattureincloud_python_sdk/models/get_issued_document_response.py +++ b/fattureincloud_python_sdk/models/get_issued_document_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.issued_document import IssuedDocument - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class GetIssuedDocumentResponse(BaseModel): @@ -37,7 +33,11 @@ class GetIssuedDocumentResponse(BaseModel): data: Optional[IssuedDocument] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -49,7 +49,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of GetIssuedDocumentResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -63,9 +63,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -74,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of GetIssuedDocumentResponse from a dict""" if obj is None: return None @@ -84,9 +86,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": IssuedDocument.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + IssuedDocument.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/get_new_issued_document_totals_request.py b/fattureincloud_python_sdk/models/get_new_issued_document_totals_request.py index f61a4a3b..20e94b56 100644 --- a/fattureincloud_python_sdk/models/get_new_issued_document_totals_request.py +++ b/fattureincloud_python_sdk/models/get_new_issued_document_totals_request.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.issued_document import IssuedDocument - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class GetNewIssuedDocumentTotalsRequest(BaseModel): @@ -37,7 +33,11 @@ class GetNewIssuedDocumentTotalsRequest(BaseModel): data: Optional[IssuedDocument] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -49,7 +49,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of GetNewIssuedDocumentTotalsRequest from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -63,9 +63,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -74,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of GetNewIssuedDocumentTotalsRequest from a dict""" if obj is None: return None @@ -84,9 +86,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": IssuedDocument.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + IssuedDocument.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/get_new_issued_document_totals_response.py b/fattureincloud_python_sdk/models/get_new_issued_document_totals_response.py index bc9e98e0..9bba66c0 100644 --- a/fattureincloud_python_sdk/models/get_new_issued_document_totals_response.py +++ b/fattureincloud_python_sdk/models/get_new_issued_document_totals_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.issued_document_totals import IssuedDocumentTotals - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class GetNewIssuedDocumentTotalsResponse(BaseModel): @@ -35,7 +31,11 @@ class GetNewIssuedDocumentTotalsResponse(BaseModel): data: Optional[IssuedDocumentTotals] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -47,7 +47,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of GetNewIssuedDocumentTotalsResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -61,9 +61,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -72,7 +74,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of GetNewIssuedDocumentTotalsResponse from a dict""" if obj is None: return None @@ -82,9 +84,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": IssuedDocumentTotals.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + IssuedDocumentTotals.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/get_new_received_document_totals_request.py b/fattureincloud_python_sdk/models/get_new_received_document_totals_request.py index 82f7be32..c00f1410 100644 --- a/fattureincloud_python_sdk/models/get_new_received_document_totals_request.py +++ b/fattureincloud_python_sdk/models/get_new_received_document_totals_request.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.received_document import ReceivedDocument - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class GetNewReceivedDocumentTotalsRequest(BaseModel): @@ -35,7 +31,11 @@ class GetNewReceivedDocumentTotalsRequest(BaseModel): data: Optional[ReceivedDocument] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -47,7 +47,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of GetNewReceivedDocumentTotalsRequest from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -61,9 +61,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -72,7 +74,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of GetNewReceivedDocumentTotalsRequest from a dict""" if obj is None: return None @@ -82,9 +84,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": ReceivedDocument.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + ReceivedDocument.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/get_new_received_document_totals_response.py b/fattureincloud_python_sdk/models/get_new_received_document_totals_response.py index 5d942246..7d85b851 100644 --- a/fattureincloud_python_sdk/models/get_new_received_document_totals_response.py +++ b/fattureincloud_python_sdk/models/get_new_received_document_totals_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,17 +18,13 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.received_document_totals import ( ReceivedDocumentTotals, ) - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class GetNewReceivedDocumentTotalsResponse(BaseModel): @@ -37,7 +33,11 @@ class GetNewReceivedDocumentTotalsResponse(BaseModel): data: Optional[ReceivedDocumentTotals] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -49,7 +49,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of GetNewReceivedDocumentTotalsResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -63,9 +63,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -74,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of GetNewReceivedDocumentTotalsResponse from a dict""" if obj is None: return None @@ -84,9 +86,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": ReceivedDocumentTotals.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + ReceivedDocumentTotals.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/get_payment_account_response.py b/fattureincloud_python_sdk/models/get_payment_account_response.py index 8a9344d9..1e79409c 100644 --- a/fattureincloud_python_sdk/models/get_payment_account_response.py +++ b/fattureincloud_python_sdk/models/get_payment_account_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.payment_account import PaymentAccount - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class GetPaymentAccountResponse(BaseModel): @@ -37,7 +33,11 @@ class GetPaymentAccountResponse(BaseModel): data: Optional[PaymentAccount] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -49,7 +49,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of GetPaymentAccountResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -63,9 +63,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -74,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of GetPaymentAccountResponse from a dict""" if obj is None: return None @@ -84,9 +86,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": PaymentAccount.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + PaymentAccount.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/get_payment_method_response.py b/fattureincloud_python_sdk/models/get_payment_method_response.py index c0aaf12e..16e0fed9 100644 --- a/fattureincloud_python_sdk/models/get_payment_method_response.py +++ b/fattureincloud_python_sdk/models/get_payment_method_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.payment_method import PaymentMethod - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class GetPaymentMethodResponse(BaseModel): @@ -37,7 +33,11 @@ class GetPaymentMethodResponse(BaseModel): data: Optional[PaymentMethod] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -49,7 +49,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of GetPaymentMethodResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -63,9 +63,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -74,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of GetPaymentMethodResponse from a dict""" if obj is None: return None @@ -84,9 +86,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": PaymentMethod.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + PaymentMethod.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/get_product_response.py b/fattureincloud_python_sdk/models/get_product_response.py index 4ec0bf72..8397a499 100644 --- a/fattureincloud_python_sdk/models/get_product_response.py +++ b/fattureincloud_python_sdk/models/get_product_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.product import Product - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class GetProductResponse(BaseModel): @@ -37,7 +33,11 @@ class GetProductResponse(BaseModel): data: Optional[Product] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -49,7 +49,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of GetProductResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -63,9 +63,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -74,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of GetProductResponse from a dict""" if obj is None: return None @@ -84,9 +86,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": Product.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + Product.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/get_receipt_pre_create_info_response.py b/fattureincloud_python_sdk/models/get_receipt_pre_create_info_response.py index fab518cf..3bd72219 100644 --- a/fattureincloud_python_sdk/models/get_receipt_pre_create_info_response.py +++ b/fattureincloud_python_sdk/models/get_receipt_pre_create_info_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,17 +18,13 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.receipt_pre_create_info import ( ReceiptPreCreateInfo, ) - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class GetReceiptPreCreateInfoResponse(BaseModel): @@ -37,7 +33,11 @@ class GetReceiptPreCreateInfoResponse(BaseModel): data: Optional[ReceiptPreCreateInfo] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -49,7 +49,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of GetReceiptPreCreateInfoResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -63,9 +63,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -74,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of GetReceiptPreCreateInfoResponse from a dict""" if obj is None: return None @@ -84,9 +86,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": ReceiptPreCreateInfo.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + ReceiptPreCreateInfo.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/get_receipt_response.py b/fattureincloud_python_sdk/models/get_receipt_response.py index ca750aab..05da2e1d 100644 --- a/fattureincloud_python_sdk/models/get_receipt_response.py +++ b/fattureincloud_python_sdk/models/get_receipt_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.receipt import Receipt - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class GetReceiptResponse(BaseModel): @@ -35,7 +31,11 @@ class GetReceiptResponse(BaseModel): data: Optional[Receipt] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -47,7 +47,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of GetReceiptResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -61,9 +61,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -72,7 +74,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of GetReceiptResponse from a dict""" if obj is None: return None @@ -82,9 +84,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": Receipt.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + Receipt.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/get_receipts_monthly_totals_response.py b/fattureincloud_python_sdk/models/get_receipts_monthly_totals_response.py index 912f38e1..2951d307 100644 --- a/fattureincloud_python_sdk/models/get_receipts_monthly_totals_response.py +++ b/fattureincloud_python_sdk/models/get_receipts_monthly_totals_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.monthly_total import MonthlyTotal - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class GetReceiptsMonthlyTotalsResponse(BaseModel): @@ -35,7 +31,11 @@ class GetReceiptsMonthlyTotalsResponse(BaseModel): data: Optional[List[MonthlyTotal]] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -47,7 +47,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of GetReceiptsMonthlyTotalsResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -61,9 +61,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of each item in data (list) @@ -76,7 +78,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of GetReceiptsMonthlyTotalsResponse from a dict""" if obj is None: return None @@ -86,9 +88,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": [MonthlyTotal.from_dict(_item) for _item in obj.get("data")] - if obj.get("data") is not None - else None + "data": ( + [MonthlyTotal.from_dict(_item) for _item in obj["data"]] + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/get_received_document_pre_create_info_response.py b/fattureincloud_python_sdk/models/get_received_document_pre_create_info_response.py index dea8fb98..50b0d0c5 100644 --- a/fattureincloud_python_sdk/models/get_received_document_pre_create_info_response.py +++ b/fattureincloud_python_sdk/models/get_received_document_pre_create_info_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.received_document_info import ReceivedDocumentInfo - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class GetReceivedDocumentPreCreateInfoResponse(BaseModel): @@ -35,7 +31,11 @@ class GetReceivedDocumentPreCreateInfoResponse(BaseModel): data: Optional[ReceivedDocumentInfo] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -47,7 +47,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of GetReceivedDocumentPreCreateInfoResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -61,9 +61,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -72,7 +74,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of GetReceivedDocumentPreCreateInfoResponse from a dict""" if obj is None: return None @@ -82,9 +84,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": ReceivedDocumentInfo.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + ReceivedDocumentInfo.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/get_received_document_response.py b/fattureincloud_python_sdk/models/get_received_document_response.py index 2242501c..4c994b45 100644 --- a/fattureincloud_python_sdk/models/get_received_document_response.py +++ b/fattureincloud_python_sdk/models/get_received_document_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.received_document import ReceivedDocument - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class GetReceivedDocumentResponse(BaseModel): @@ -35,7 +31,11 @@ class GetReceivedDocumentResponse(BaseModel): data: Optional[ReceivedDocument] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -47,7 +47,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of GetReceivedDocumentResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -61,9 +61,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -72,7 +74,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of GetReceivedDocumentResponse from a dict""" if obj is None: return None @@ -82,9 +84,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": ReceivedDocument.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + ReceivedDocument.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/get_supplier_response.py b/fattureincloud_python_sdk/models/get_supplier_response.py index c20afeb1..9129c37d 100644 --- a/fattureincloud_python_sdk/models/get_supplier_response.py +++ b/fattureincloud_python_sdk/models/get_supplier_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.supplier import Supplier - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class GetSupplierResponse(BaseModel): @@ -37,7 +33,11 @@ class GetSupplierResponse(BaseModel): data: Optional[Supplier] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -49,7 +49,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of GetSupplierResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -63,9 +63,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -74,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of GetSupplierResponse from a dict""" if obj is None: return None @@ -84,9 +86,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": Supplier.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + Supplier.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/get_user_info_response.py b/fattureincloud_python_sdk/models/get_user_info_response.py index 83f29cf7..214677ed 100644 --- a/fattureincloud_python_sdk/models/get_user_info_response.py +++ b/fattureincloud_python_sdk/models/get_user_info_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,9 +18,8 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.get_user_info_response_email_confirmation_state import ( GetUserInfoResponseEmailConfirmationState, ) @@ -28,11 +27,8 @@ GetUserInfoResponseInfo, ) from fattureincloud_python_sdk.models.user import User - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class GetUserInfoResponse(BaseModel): @@ -43,7 +39,11 @@ class GetUserInfoResponse(BaseModel): email_confirmation_state: Optional[GetUserInfoResponseEmailConfirmationState] = None __properties: ClassVar[List[str]] = ["data", "info", "email_confirmation_state"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -55,7 +55,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of GetUserInfoResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -69,9 +69,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -86,7 +88,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of GetUserInfoResponse from a dict""" if obj is None: return None @@ -96,17 +98,21 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": User.from_dict(obj.get("data")) - if obj.get("data") is not None - else None, - "info": GetUserInfoResponseInfo.from_dict(obj.get("info")) - if obj.get("info") is not None - else None, - "email_confirmation_state": GetUserInfoResponseEmailConfirmationState.from_dict( - obj.get("email_confirmation_state") - ) - if obj.get("email_confirmation_state") is not None - else None, + "data": ( + User.from_dict(obj["data"]) if obj.get("data") is not None else None + ), + "info": ( + GetUserInfoResponseInfo.from_dict(obj["info"]) + if obj.get("info") is not None + else None + ), + "email_confirmation_state": ( + GetUserInfoResponseEmailConfirmationState.from_dict( + obj["email_confirmation_state"] + ) + if obj.get("email_confirmation_state") is not None + else None + ), } ) return _obj diff --git a/fattureincloud_python_sdk/models/get_user_info_response_email_confirmation_state.py b/fattureincloud_python_sdk/models/get_user_info_response_email_confirmation_state.py index 7ed09c01..23313a9e 100644 --- a/fattureincloud_python_sdk/models/get_user_info_response_email_confirmation_state.py +++ b/fattureincloud_python_sdk/models/get_user_info_response_email_confirmation_state.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,14 +18,10 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel, StrictBool - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self class GetUserInfoResponseEmailConfirmationState(BaseModel): @@ -36,7 +32,11 @@ class GetUserInfoResponseEmailConfirmationState(BaseModel): need_confirmation: Optional[StrictBool] = None __properties: ClassVar[List[str]] = ["need_confirmation"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -48,7 +48,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of GetUserInfoResponseEmailConfirmationState from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -62,15 +62,17 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of GetUserInfoResponseEmailConfirmationState from a dict""" if obj is None: return None diff --git a/fattureincloud_python_sdk/models/get_user_info_response_info.py b/fattureincloud_python_sdk/models/get_user_info_response_info.py index b1f23d5f..6fd0a0a3 100644 --- a/fattureincloud_python_sdk/models/get_user_info_response_info.py +++ b/fattureincloud_python_sdk/models/get_user_info_response_info.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,14 +18,10 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel, StrictBool - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self class GetUserInfoResponseInfo(BaseModel): @@ -42,7 +38,11 @@ class GetUserInfoResponseInfo(BaseModel): "need_terms_of_service_confirmation", ] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -54,7 +54,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of GetUserInfoResponseInfo from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -68,15 +68,17 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of GetUserInfoResponseInfo from a dict""" if obj is None: return None diff --git a/fattureincloud_python_sdk/models/get_vat_type_response.py b/fattureincloud_python_sdk/models/get_vat_type_response.py index 17988519..b40384ef 100644 --- a/fattureincloud_python_sdk/models/get_vat_type_response.py +++ b/fattureincloud_python_sdk/models/get_vat_type_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.vat_type import VatType - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class GetVatTypeResponse(BaseModel): @@ -37,7 +33,11 @@ class GetVatTypeResponse(BaseModel): data: Optional[VatType] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -49,7 +49,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of GetVatTypeResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -63,9 +63,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -74,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of GetVatTypeResponse from a dict""" if obj is None: return None @@ -84,9 +86,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": VatType.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + VatType.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/get_webhooks_subscription_response.py b/fattureincloud_python_sdk/models/get_webhooks_subscription_response.py index 6dff830b..deeeb5c9 100644 --- a/fattureincloud_python_sdk/models/get_webhooks_subscription_response.py +++ b/fattureincloud_python_sdk/models/get_webhooks_subscription_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.webhooks_subscription import WebhooksSubscription - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class GetWebhooksSubscriptionResponse(BaseModel): @@ -37,7 +33,11 @@ class GetWebhooksSubscriptionResponse(BaseModel): data: Optional[WebhooksSubscription] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -49,7 +49,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of GetWebhooksSubscriptionResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -63,9 +63,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -74,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of GetWebhooksSubscriptionResponse from a dict""" if obj is None: return None @@ -84,9 +86,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": WebhooksSubscription.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + WebhooksSubscription.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/issued_document.py b/fattureincloud_python_sdk/models/issued_document.py index 6168b028..047e0a2b 100644 --- a/fattureincloud_python_sdk/models/issued_document.py +++ b/fattureincloud_python_sdk/models/issued_document.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -19,16 +19,16 @@ import json from datetime import date -from typing import Any, ClassVar, Dict, List, Optional, Union from pydantic import ( BaseModel, + Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator, ) -from pydantic import Field +from typing import Any, ClassVar, Dict, List, Optional, Union from fattureincloud_python_sdk.models.currency import Currency from fattureincloud_python_sdk.models.document_template import DocumentTemplate from fattureincloud_python_sdk.models.entity import Entity @@ -48,11 +48,8 @@ from fattureincloud_python_sdk.models.language import Language from fattureincloud_python_sdk.models.payment_method import PaymentMethod from fattureincloud_python_sdk.models.show_totals_mode import ShowTotalsMode - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class IssuedDocument(BaseModel): @@ -263,10 +260,11 @@ class IssuedDocument(BaseModel): default=None, description="[Read Only] Issued document other withholding tax amount (altra ritenuta)", ) - amount_other_withholding_tax_taxable: Optional[ - Union[StrictFloat, StrictInt] - ] = Field( - default=None, description="Issued document taxable other withholding tax amount" + amount_other_withholding_tax_taxable: Optional[Union[StrictFloat, StrictInt]] = ( + Field( + default=None, + description="Issued document taxable other withholding tax amount", + ) ) amount_enasarco_taxable: Optional[Union[StrictFloat, StrictInt]] = Field( default=None, description="Issued document taxable enasarco amount" @@ -298,7 +296,7 @@ class IssuedDocument(BaseModel): default=None, description="[Write Only] Issued document attachment token returned by POST /issued_documents/attachment", ) - ei_raw: Optional[Union[str, Any]] = Field( + ei_raw: Optional[Dict[str, Any]] = Field( default=None, description="Issued document advanced raw attributes for e-invoices", ) @@ -410,28 +408,34 @@ def ei_status_validate_enum(cls, value): if value is None: return value - if value not in ( - "attempt", - "missing", - "not_sent", - "sent", - "pending", - "processing", - "error", - "discarded", - "not_delivered", - "accepted", - "rejected", - "no_response", - "manual_accepted", - "manual_rejected", + if value not in set( + [ + "attempt", + "missing", + "not_sent", + "sent", + "pending", + "processing", + "error", + "discarded", + "not_delivered", + "accepted", + "rejected", + "no_response", + "manual_accepted", + "manual_rejected", + ] ): raise ValueError( "must be one of enum values ('attempt', 'missing', 'not_sent', 'sent', 'pending', 'processing', 'error', 'discarded', 'not_delivered', 'accepted', 'rejected', 'no_response', 'manual_accepted', 'manual_rejected')" ) return value - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -443,7 +447,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of IssuedDocument from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -466,9 +470,8 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. """ - _dict = self.model_dump( - by_alias=True, - exclude={ + excluded_fields: Set[str] = set( + [ "amount_cassa", "amount_cassa2", "amount_net", @@ -478,7 +481,12 @@ def to_dict(self) -> Dict[str, Any]: "amount_withholding_tax", "amount_other_withholding_tax", "attachment_url", - }, + ] + ) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of entity @@ -525,7 +533,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of IssuedDocument from a dict""" if obj is None: return None @@ -536,20 +544,26 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { "id": obj.get("id"), - "entity": Entity.from_dict(obj.get("entity")) - if obj.get("entity") is not None - else None, + "entity": ( + Entity.from_dict(obj["entity"]) + if obj.get("entity") is not None + else None + ), "type": obj.get("type"), "number": obj.get("number"), "numeration": obj.get("numeration"), "date": obj.get("date"), "year": obj.get("year"), - "currency": Currency.from_dict(obj.get("currency")) - if obj.get("currency") is not None - else None, - "language": Language.from_dict(obj.get("language")) - if obj.get("language") is not None - else None, + "currency": ( + Currency.from_dict(obj["currency"]) + if obj.get("currency") is not None + else None + ), + "language": ( + Language.from_dict(obj["language"]) + if obj.get("language") is not None + else None + ), "subject": obj.get("subject"), "visible_subject": obj.get("visible_subject"), "rc_center": obj.get("rc_center"), @@ -569,15 +583,19 @@ def from_dict(cls, obj: Dict) -> Self: "withholding_tax_taxable": obj.get("withholding_tax_taxable"), "other_withholding_tax": obj.get("other_withholding_tax"), "stamp_duty": obj.get("stamp_duty"), - "payment_method": PaymentMethod.from_dict(obj.get("payment_method")) - if obj.get("payment_method") is not None - else None, + "payment_method": ( + PaymentMethod.from_dict(obj["payment_method"]) + if obj.get("payment_method") is not None + else None + ), "use_split_payment": obj.get("use_split_payment"), "use_gross_prices": obj.get("use_gross_prices"), "e_invoice": obj.get("e_invoice"), - "ei_data": IssuedDocumentEiData.from_dict(obj.get("ei_data")) - if obj.get("ei_data") is not None - else None, + "ei_data": ( + IssuedDocumentEiData.from_dict(obj["ei_data"]) + if obj.get("ei_data") is not None + else None + ), "ei_cassa_type": obj.get("ei_cassa_type"), "ei_cassa2_type": obj.get("ei_cassa2_type"), "ei_withholding_tax_causal": obj.get("ei_withholding_tax_causal"), @@ -587,31 +605,37 @@ def from_dict(cls, obj: Dict) -> Self: "ei_other_withholding_tax_causal": obj.get( "ei_other_withholding_tax_causal" ), - "items_list": [ - IssuedDocumentItemsListItem.from_dict(_item) - for _item in obj.get("items_list") - ] - if obj.get("items_list") is not None - else None, - "payments_list": [ - IssuedDocumentPaymentsListItem.from_dict(_item) - for _item in obj.get("payments_list") - ] - if obj.get("payments_list") is not None - else None, - "template": DocumentTemplate.from_dict(obj.get("template")) - if obj.get("template") is not None - else None, - "delivery_note_template": DocumentTemplate.from_dict( - obj.get("delivery_note_template") - ) - if obj.get("delivery_note_template") is not None - else None, - "acc_inv_template": DocumentTemplate.from_dict( - obj.get("acc_inv_template") - ) - if obj.get("acc_inv_template") is not None - else None, + "items_list": ( + [ + IssuedDocumentItemsListItem.from_dict(_item) + for _item in obj["items_list"] + ] + if obj.get("items_list") is not None + else None + ), + "payments_list": ( + [ + IssuedDocumentPaymentsListItem.from_dict(_item) + for _item in obj["payments_list"] + ] + if obj.get("payments_list") is not None + else None + ), + "template": ( + DocumentTemplate.from_dict(obj["template"]) + if obj.get("template") is not None + else None + ), + "delivery_note_template": ( + DocumentTemplate.from_dict(obj["delivery_note_template"]) + if obj.get("delivery_note_template") is not None + else None + ), + "acc_inv_template": ( + DocumentTemplate.from_dict(obj["acc_inv_template"]) + if obj.get("acc_inv_template") is not None + else None + ), "h_margins": obj.get("h_margins"), "v_margins": obj.get("v_margins"), "show_payments": obj.get("show_payments"), @@ -646,9 +670,11 @@ def from_dict(cls, obj: Dict) -> Self: "amount_other_withholding_tax_taxable" ), "amount_enasarco_taxable": obj.get("amount_enasarco_taxable"), - "extra_data": IssuedDocumentExtraData.from_dict(obj.get("extra_data")) - if obj.get("extra_data") is not None - else None, + "extra_data": ( + IssuedDocumentExtraData.from_dict(obj["extra_data"]) + if obj.get("extra_data") is not None + else None + ), "seen_date": obj.get("seen_date"), "next_due_date": obj.get("next_due_date"), "url": obj.get("url"), diff --git a/fattureincloud_python_sdk/models/issued_document_ei_data.py b/fattureincloud_python_sdk/models/issued_document_ei_data.py index 2527f0e4..6fa2f738 100644 --- a/fattureincloud_python_sdk/models/issued_document_ei_data.py +++ b/fattureincloud_python_sdk/models/issued_document_ei_data.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -19,16 +19,12 @@ import json from datetime import date +from pydantic import BaseModel, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictStr -from pydantic import Field from fattureincloud_python_sdk.models.original_document_type import OriginalDocumentType from fattureincloud_python_sdk.models.vat_kind import VatKind - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class IssuedDocumentEiData(BaseModel): @@ -80,7 +76,11 @@ class IssuedDocumentEiData(BaseModel): "invoice_date", ] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -92,7 +92,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of IssuedDocumentEiData from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -106,15 +106,17 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of IssuedDocumentEiData from a dict""" if obj is None: return None diff --git a/fattureincloud_python_sdk/models/issued_document_extra_data.py b/fattureincloud_python_sdk/models/issued_document_extra_data.py index 3bf54922..2c55ed5e 100644 --- a/fattureincloud_python_sdk/models/issued_document_extra_data.py +++ b/fattureincloud_python_sdk/models/issued_document_extra_data.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -19,14 +19,10 @@ import json from datetime import date +from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union -from pydantic import BaseModel, StrictBool, StrictFloat, StrictInt, StrictStr -from pydantic import Field - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class IssuedDocumentExtraData(BaseModel): @@ -83,7 +79,11 @@ class IssuedDocumentExtraData(BaseModel): "imported_by", ] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -95,7 +95,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of IssuedDocumentExtraData from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -109,15 +109,17 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of IssuedDocumentExtraData from a dict""" if obj is None: return None diff --git a/fattureincloud_python_sdk/models/issued_document_items_list_item.py b/fattureincloud_python_sdk/models/issued_document_items_list_item.py index 7e8623f3..f388cf7b 100644 --- a/fattureincloud_python_sdk/models/issued_document_items_list_item.py +++ b/fattureincloud_python_sdk/models/issued_document_items_list_item.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,16 +18,11 @@ import re # noqa: F401 import json - +from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union -from pydantic import BaseModel, StrictBool, StrictFloat, StrictInt, StrictStr -from pydantic import Field from fattureincloud_python_sdk.models.vat_type import VatType - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class IssuedDocumentItemsListItem(BaseModel): @@ -83,7 +78,7 @@ class IssuedDocumentItemsListItem(BaseModel): stock: Optional[StrictBool] = Field( default=None, description="Issued document item move stock" ) - ei_raw: Optional[Union[str, Any]] = Field( + ei_raw: Optional[Dict[str, Any]] = Field( default=None, description="Issued document advanced raw attributes for e-invoices", ) @@ -108,7 +103,11 @@ class IssuedDocumentItemsListItem(BaseModel): "ei_raw", ] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -120,7 +119,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of IssuedDocumentItemsListItem from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -134,9 +133,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of vat @@ -145,7 +146,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of IssuedDocumentItemsListItem from a dict""" if obj is None: return None @@ -165,9 +166,11 @@ def from_dict(cls, obj: Dict) -> Self: "measure": obj.get("measure"), "net_price": obj.get("net_price"), "gross_price": obj.get("gross_price"), - "vat": VatType.from_dict(obj.get("vat")) - if obj.get("vat") is not None - else None, + "vat": ( + VatType.from_dict(obj["vat"]) + if obj.get("vat") is not None + else None + ), "not_taxable": obj.get("not_taxable"), "apply_withholding_taxes": obj.get("apply_withholding_taxes"), "discount": obj.get("discount"), diff --git a/fattureincloud_python_sdk/models/issued_document_options.py b/fattureincloud_python_sdk/models/issued_document_options.py index 1c1e2ce7..3e303d45 100644 --- a/fattureincloud_python_sdk/models/issued_document_options.py +++ b/fattureincloud_python_sdk/models/issued_document_options.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,10 @@ import re # noqa: F401 import json - +from pydantic import BaseModel, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictBool, StrictStr -from pydantic import Field - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class IssuedDocumentOptions(BaseModel): @@ -58,7 +53,11 @@ class IssuedDocumentOptions(BaseModel): "join_type", ] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -70,7 +69,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of IssuedDocumentOptions from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -84,15 +83,17 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of IssuedDocumentOptions from a dict""" if obj is None: return None diff --git a/fattureincloud_python_sdk/models/issued_document_payments_list_item.py b/fattureincloud_python_sdk/models/issued_document_payments_list_item.py index ff9c5f71..f2fb5397 100644 --- a/fattureincloud_python_sdk/models/issued_document_payments_list_item.py +++ b/fattureincloud_python_sdk/models/issued_document_payments_list_item.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -19,19 +19,15 @@ import json from datetime import date +from pydantic import BaseModel, Field, StrictFloat, StrictInt from typing import Any, ClassVar, Dict, List, Optional, Union -from pydantic import BaseModel, StrictFloat, StrictInt -from pydantic import Field from fattureincloud_python_sdk.models.issued_document_payments_list_item_payment_terms import ( IssuedDocumentPaymentsListItemPaymentTerms, ) from fattureincloud_python_sdk.models.issued_document_status import IssuedDocumentStatus from fattureincloud_python_sdk.models.payment_account import PaymentAccount - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class IssuedDocumentPaymentsListItem(BaseModel): @@ -54,7 +50,7 @@ class IssuedDocumentPaymentsListItem(BaseModel): default=None, description="Issued document payment date [Only if status is paid]", ) - ei_raw: Optional[Union[str, Any]] = Field( + ei_raw: Optional[Dict[str, Any]] = Field( default=None, description="Issued document payment advanced raw attributes for e-invoices", ) @@ -70,7 +66,11 @@ class IssuedDocumentPaymentsListItem(BaseModel): "payment_terms", ] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -82,7 +82,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of IssuedDocumentPaymentsListItem from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -96,9 +96,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of payment_account @@ -110,7 +112,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of IssuedDocumentPaymentsListItem from a dict""" if obj is None: return None @@ -124,16 +126,20 @@ def from_dict(cls, obj: Dict) -> Self: "due_date": obj.get("due_date"), "amount": obj.get("amount"), "status": obj.get("status"), - "payment_account": PaymentAccount.from_dict(obj.get("payment_account")) - if obj.get("payment_account") is not None - else None, + "payment_account": ( + PaymentAccount.from_dict(obj["payment_account"]) + if obj.get("payment_account") is not None + else None + ), "paid_date": obj.get("paid_date"), "ei_raw": obj.get("ei_raw"), - "payment_terms": IssuedDocumentPaymentsListItemPaymentTerms.from_dict( - obj.get("payment_terms") - ) - if obj.get("payment_terms") is not None - else None, + "payment_terms": ( + IssuedDocumentPaymentsListItemPaymentTerms.from_dict( + obj["payment_terms"] + ) + if obj.get("payment_terms") is not None + else None + ), } ) return _obj diff --git a/fattureincloud_python_sdk/models/issued_document_payments_list_item_payment_terms.py b/fattureincloud_python_sdk/models/issued_document_payments_list_item_payment_terms.py index 1d9c451e..941d05a3 100644 --- a/fattureincloud_python_sdk/models/issued_document_payments_list_item_payment_terms.py +++ b/fattureincloud_python_sdk/models/issued_document_payments_list_item_payment_terms.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,16 +18,11 @@ import re # noqa: F401 import json - +from pydantic import BaseModel, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt -from pydantic import Field from fattureincloud_python_sdk.models.payment_terms_type import PaymentTermsType - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class IssuedDocumentPaymentsListItemPaymentTerms(BaseModel): @@ -42,7 +37,11 @@ class IssuedDocumentPaymentsListItemPaymentTerms(BaseModel): type: Optional[PaymentTermsType] = None __properties: ClassVar[List[str]] = ["days", "type"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -54,7 +53,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of IssuedDocumentPaymentsListItemPaymentTerms from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -68,15 +67,17 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of IssuedDocumentPaymentsListItemPaymentTerms from a dict""" if obj is None: return None diff --git a/fattureincloud_python_sdk/models/issued_document_pre_create_info.py b/fattureincloud_python_sdk/models/issued_document_pre_create_info.py index 3ccd6f24..eabf1436 100644 --- a/fattureincloud_python_sdk/models/issued_document_pre_create_info.py +++ b/fattureincloud_python_sdk/models/issued_document_pre_create_info.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,10 +18,8 @@ import re # noqa: F401 import json - +from pydantic import BaseModel, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt, StrictStr -from pydantic import Field from fattureincloud_python_sdk.models.currency import Currency from fattureincloud_python_sdk.models.document_template import DocumentTemplate from fattureincloud_python_sdk.models.issued_document_pre_create_info_default_values import ( @@ -37,11 +35,8 @@ from fattureincloud_python_sdk.models.payment_account import PaymentAccount from fattureincloud_python_sdk.models.payment_method import PaymentMethod from fattureincloud_python_sdk.models.vat_type import VatType - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class IssuedDocumentPreCreateInfo(BaseModel): @@ -74,10 +69,10 @@ class IssuedDocumentPreCreateInfo(BaseModel): payment_methods_list: Optional[List[PaymentMethod]] = Field( default=None, description="Payment methods list" ) - payment_accounts_list: Optional[List[PaymentAccount]] = Field( + payment_accounts_list: Optional[List[Optional[PaymentAccount]]] = Field( default=None, description="Payment accounts list" ) - vat_types_list: Optional[List[VatType]] = Field( + vat_types_list: Optional[List[Optional[VatType]]] = Field( default=None, description="Vat types list" ) languages_list: Optional[List[Language]] = Field( @@ -100,7 +95,11 @@ class IssuedDocumentPreCreateInfo(BaseModel): "languages_list", ] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -112,7 +111,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of IssuedDocumentPreCreateInfo from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -126,9 +125,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of default_values @@ -136,9 +137,9 @@ def to_dict(self) -> Dict[str, Any]: _dict["default_values"] = self.default_values.to_dict() # override the default output from pydantic by calling `to_dict()` of extra_data_default_values if self.extra_data_default_values: - _dict[ - "extra_data_default_values" - ] = self.extra_data_default_values.to_dict() + _dict["extra_data_default_values"] = ( + self.extra_data_default_values.to_dict() + ) # override the default output from pydantic by calling `to_dict()` of items_default_values if self.items_default_values: _dict["items_default_values"] = self.items_default_values.to_dict() @@ -201,7 +202,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of IssuedDocumentPreCreateInfo from a dict""" if obj is None: return None @@ -213,67 +214,83 @@ def from_dict(cls, obj: Dict) -> Self: { "numerations": obj.get("numerations"), "dn_numerations": obj.get("dn_numerations"), - "default_values": IssuedDocumentPreCreateInfoDefaultValues.from_dict( - obj.get("default_values") - ) - if obj.get("default_values") is not None - else None, - "extra_data_default_values": IssuedDocumentPreCreateInfoExtraDataDefaultValues.from_dict( - obj.get("extra_data_default_values") - ) - if obj.get("extra_data_default_values") is not None - else None, - "items_default_values": IssuedDocumentPreCreateInfoItemsDefaultValues.from_dict( - obj.get("items_default_values") - ) - if obj.get("items_default_values") is not None - else None, + "default_values": ( + IssuedDocumentPreCreateInfoDefaultValues.from_dict( + obj["default_values"] + ) + if obj.get("default_values") is not None + else None + ), + "extra_data_default_values": ( + IssuedDocumentPreCreateInfoExtraDataDefaultValues.from_dict( + obj["extra_data_default_values"] + ) + if obj.get("extra_data_default_values") is not None + else None + ), + "items_default_values": ( + IssuedDocumentPreCreateInfoItemsDefaultValues.from_dict( + obj["items_default_values"] + ) + if obj.get("items_default_values") is not None + else None + ), "countries_list": obj.get("countries_list"), - "currencies_list": [ - Currency.from_dict(_item) for _item in obj.get("currencies_list") - ] - if obj.get("currencies_list") is not None - else None, - "templates_list": [ - DocumentTemplate.from_dict(_item) - for _item in obj.get("templates_list") - ] - if obj.get("templates_list") is not None - else None, - "dn_templates_list": [ - DocumentTemplate.from_dict(_item) - for _item in obj.get("dn_templates_list") - ] - if obj.get("dn_templates_list") is not None - else None, - "ai_templates_list": [ - DocumentTemplate.from_dict(_item) - for _item in obj.get("ai_templates_list") - ] - if obj.get("ai_templates_list") is not None - else None, - "payment_methods_list": [ - PaymentMethod.from_dict(_item) - for _item in obj.get("payment_methods_list") - ] - if obj.get("payment_methods_list") is not None - else None, - "payment_accounts_list": [ - PaymentAccount.from_dict(_item) - for _item in obj.get("payment_accounts_list") - ] - if obj.get("payment_accounts_list") is not None - else None, - "vat_types_list": [ - VatType.from_dict(_item) for _item in obj.get("vat_types_list") - ] - if obj.get("vat_types_list") is not None - else None, - "languages_list": [ - Language.from_dict(_item) for _item in obj.get("languages_list") - ] - if obj.get("languages_list") is not None - else None, + "currencies_list": ( + [Currency.from_dict(_item) for _item in obj["currencies_list"]] + if obj.get("currencies_list") is not None + else None + ), + "templates_list": ( + [ + DocumentTemplate.from_dict(_item) + for _item in obj["templates_list"] + ] + if obj.get("templates_list") is not None + else None + ), + "dn_templates_list": ( + [ + DocumentTemplate.from_dict(_item) + for _item in obj["dn_templates_list"] + ] + if obj.get("dn_templates_list") is not None + else None + ), + "ai_templates_list": ( + [ + DocumentTemplate.from_dict(_item) + for _item in obj["ai_templates_list"] + ] + if obj.get("ai_templates_list") is not None + else None + ), + "payment_methods_list": ( + [ + PaymentMethod.from_dict(_item) + for _item in obj["payment_methods_list"] + ] + if obj.get("payment_methods_list") is not None + else None + ), + "payment_accounts_list": ( + [ + PaymentAccount.from_dict(_item) + for _item in obj["payment_accounts_list"] + ] + if obj.get("payment_accounts_list") is not None + else None + ), + "vat_types_list": ( + [VatType.from_dict(_item) for _item in obj["vat_types_list"]] + if obj.get("vat_types_list") is not None + else None + ), + "languages_list": ( + [Language.from_dict(_item) for _item in obj["languages_list"]] + if obj.get("languages_list") is not None + else None + ), } ) return _obj diff --git a/fattureincloud_python_sdk/models/issued_document_pre_create_info_default_values.py b/fattureincloud_python_sdk/models/issued_document_pre_create_info_default_values.py index 4c229c88..48026bb9 100644 --- a/fattureincloud_python_sdk/models/issued_document_pre_create_info_default_values.py +++ b/fattureincloud_python_sdk/models/issued_document_pre_create_info_default_values.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,17 +18,12 @@ import re # noqa: F401 import json - +from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union -from pydantic import BaseModel, StrictBool, StrictFloat, StrictInt, StrictStr -from pydantic import Field from fattureincloud_python_sdk.models.document_template import DocumentTemplate from fattureincloud_python_sdk.models.payment_method import PaymentMethod - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class IssuedDocumentPreCreateInfoDefaultValues(BaseModel): @@ -73,7 +68,11 @@ class IssuedDocumentPreCreateInfoDefaultValues(BaseModel): "payment_method", ] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -85,7 +84,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of IssuedDocumentPreCreateInfoDefaultValues from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -99,9 +98,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of default_template @@ -119,7 +120,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of IssuedDocumentPreCreateInfoDefaultValues from a dict""" if obj is None: return None @@ -129,17 +130,21 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "default_template": DocumentTemplate.from_dict( - obj.get("default_template") - ) - if obj.get("default_template") is not None - else None, - "dn_template": DocumentTemplate.from_dict(obj.get("dn_template")) - if obj.get("dn_template") is not None - else None, - "ai_template": DocumentTemplate.from_dict(obj.get("ai_template")) - if obj.get("ai_template") is not None - else None, + "default_template": ( + DocumentTemplate.from_dict(obj["default_template"]) + if obj.get("default_template") is not None + else None + ), + "dn_template": ( + DocumentTemplate.from_dict(obj["dn_template"]) + if obj.get("dn_template") is not None + else None + ), + "ai_template": ( + DocumentTemplate.from_dict(obj["ai_template"]) + if obj.get("ai_template") is not None + else None + ), "notes": obj.get("notes"), "rivalsa": obj.get("rivalsa"), "cassa": obj.get("cassa"), @@ -147,9 +152,11 @@ def from_dict(cls, obj: Dict) -> Self: "withholding_tax_taxable": obj.get("withholding_tax_taxable"), "other_withholding_tax": obj.get("other_withholding_tax"), "use_gross_prices": obj.get("use_gross_prices"), - "payment_method": PaymentMethod.from_dict(obj.get("payment_method")) - if obj.get("payment_method") is not None - else None, + "payment_method": ( + PaymentMethod.from_dict(obj["payment_method"]) + if obj.get("payment_method") is not None + else None + ), } ) return _obj diff --git a/fattureincloud_python_sdk/models/issued_document_pre_create_info_extra_data_default_values.py b/fattureincloud_python_sdk/models/issued_document_pre_create_info_extra_data_default_values.py index bef69a21..4d6d134a 100644 --- a/fattureincloud_python_sdk/models/issued_document_pre_create_info_extra_data_default_values.py +++ b/fattureincloud_python_sdk/models/issued_document_pre_create_info_extra_data_default_values.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,14 +18,10 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel, StrictBool, StrictInt, StrictStr - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self class IssuedDocumentPreCreateInfoExtraDataDefaultValues(BaseModel): @@ -44,7 +40,11 @@ class IssuedDocumentPreCreateInfoExtraDataDefaultValues(BaseModel): "ts_pagamento_tracciato", ] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -56,7 +56,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of IssuedDocumentPreCreateInfoExtraDataDefaultValues from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -70,15 +70,17 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of IssuedDocumentPreCreateInfoExtraDataDefaultValues from a dict""" if obj is None: return None diff --git a/fattureincloud_python_sdk/models/issued_document_pre_create_info_items_default_values.py b/fattureincloud_python_sdk/models/issued_document_pre_create_info_items_default_values.py index 620a533b..6eeaf9ea 100644 --- a/fattureincloud_python_sdk/models/issued_document_pre_create_info_items_default_values.py +++ b/fattureincloud_python_sdk/models/issued_document_pre_create_info_items_default_values.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.vat_type import VatType - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class IssuedDocumentPreCreateInfoItemsDefaultValues(BaseModel): @@ -37,7 +33,11 @@ class IssuedDocumentPreCreateInfoItemsDefaultValues(BaseModel): vat: Optional[VatType] = None __properties: ClassVar[List[str]] = ["vat"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -49,7 +49,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of IssuedDocumentPreCreateInfoItemsDefaultValues from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -63,9 +63,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of vat @@ -74,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of IssuedDocumentPreCreateInfoItemsDefaultValues from a dict""" if obj is None: return None @@ -84,9 +86,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "vat": VatType.from_dict(obj.get("vat")) - if obj.get("vat") is not None - else None + "vat": ( + VatType.from_dict(obj["vat"]) + if obj.get("vat") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/issued_document_status.py b/fattureincloud_python_sdk/models/issued_document_status.py index 4f3434db..ad6d5ed1 100644 --- a/fattureincloud_python_sdk/models/issued_document_status.py +++ b/fattureincloud_python_sdk/models/issued_document_status.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -15,15 +15,8 @@ from __future__ import annotations import json -import pprint -import re # noqa: F401 from enum import Enum - - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing_extensions import Self class IssuedDocumentStatus(str, Enum): diff --git a/fattureincloud_python_sdk/models/issued_document_totals.py b/fattureincloud_python_sdk/models/issued_document_totals.py index b809c1c5..f8b07d12 100644 --- a/fattureincloud_python_sdk/models/issued_document_totals.py +++ b/fattureincloud_python_sdk/models/issued_document_totals.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,17 +18,10 @@ import re # noqa: F401 import json - +from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt from typing import Any, ClassVar, Dict, List, Optional, Union -from pydantic import BaseModel, StrictBool, StrictFloat, StrictInt -from pydantic import Field - -from fattureincloud_python_sdk.models.vat_item import VatItem - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class IssuedDocumentTotals(BaseModel): @@ -66,10 +59,11 @@ class IssuedDocumentTotals(BaseModel): amount_withholding_tax: Optional[Union[StrictFloat, StrictInt]] = Field( default=None, description="Issued document withholding tax amount" ) - taxable_amount_other_withholding_tax: Optional[ - Union[StrictFloat, StrictInt] - ] = Field( - default=None, description="Issued document other withholding tax taxable amount" + taxable_amount_other_withholding_tax: Optional[Union[StrictFloat, StrictInt]] = ( + Field( + default=None, + description="Issued document other withholding tax taxable amount", + ) ) amount_other_withholding_tax: Optional[Union[StrictFloat, StrictInt]] = Field( default=None, description="Issued document other withholding tax amount" @@ -86,7 +80,7 @@ class IssuedDocumentTotals(BaseModel): payments_sum: Optional[Union[StrictFloat, StrictInt]] = Field( default=None, description="Issued document payments sum" ) - vat_list: Optional[Dict[str, Union[str, Any]]] = None + vat_list: Optional[Dict[str, Dict[str, Any]]] = None __properties: ClassVar[List[str]] = [ "amount_net", "amount_rivalsa", @@ -107,7 +101,11 @@ class IssuedDocumentTotals(BaseModel): "vat_list", ] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -119,7 +117,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of IssuedDocumentTotals from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -133,9 +131,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of each value in vat_list (dict) @@ -148,7 +148,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of IssuedDocumentTotals from a dict""" if obj is None: return None @@ -178,12 +178,14 @@ def from_dict(cls, obj: Dict) -> Self: "amount_due": obj.get("amount_due"), "is_enasarco_maximal_exceeded": obj.get("is_enasarco_maximal_exceeded"), "payments_sum": obj.get("payments_sum"), - "vat_list": dict( - (_k, VatItem.from_dict(_v)) - for _k, _v in obj.get("vat_list").items() - ) - if obj.get("vat_list") is not None - else None, + "vat_list": ( + dict( + (_k, VatItem.from_dict(_v)) + for _k, _v in obj["vat_list"].items() + ) + if obj.get("vat_list") is not None + else None + ), } ) return _obj diff --git a/fattureincloud_python_sdk/models/issued_document_type.py b/fattureincloud_python_sdk/models/issued_document_type.py index 8b9172f3..dea03feb 100644 --- a/fattureincloud_python_sdk/models/issued_document_type.py +++ b/fattureincloud_python_sdk/models/issued_document_type.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -15,15 +15,8 @@ from __future__ import annotations import json -import pprint -import re # noqa: F401 from enum import Enum - - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing_extensions import Self class IssuedDocumentType(str, Enum): diff --git a/fattureincloud_python_sdk/models/join_issued_documents_response.py b/fattureincloud_python_sdk/models/join_issued_documents_response.py index b5e47637..a5452a59 100644 --- a/fattureincloud_python_sdk/models/join_issued_documents_response.py +++ b/fattureincloud_python_sdk/models/join_issued_documents_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,18 +18,14 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.issued_document import IssuedDocument from fattureincloud_python_sdk.models.issued_document_options import ( IssuedDocumentOptions, ) - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class JoinIssuedDocumentsResponse(BaseModel): @@ -41,7 +37,11 @@ class JoinIssuedDocumentsResponse(BaseModel): options: Optional[IssuedDocumentOptions] = None __properties: ClassVar[List[str]] = ["data", "options"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -53,7 +53,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of JoinIssuedDocumentsResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -67,9 +67,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -81,7 +83,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of JoinIssuedDocumentsResponse from a dict""" if obj is None: return None @@ -91,12 +93,16 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": IssuedDocument.from_dict(obj.get("data")) - if obj.get("data") is not None - else None, - "options": IssuedDocumentOptions.from_dict(obj.get("options")) - if obj.get("options") is not None - else None, + "data": ( + IssuedDocument.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ), + "options": ( + IssuedDocumentOptions.from_dict(obj["options"]) + if obj.get("options") is not None + else None + ), } ) return _obj diff --git a/fattureincloud_python_sdk/models/language.py b/fattureincloud_python_sdk/models/language.py index af8d8754..bc6b9eff 100644 --- a/fattureincloud_python_sdk/models/language.py +++ b/fattureincloud_python_sdk/models/language.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,10 @@ import re # noqa: F401 import json - +from pydantic import BaseModel, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictStr -from pydantic import Field - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class Language(BaseModel): @@ -40,7 +35,11 @@ class Language(BaseModel): ) __properties: ClassVar[List[str]] = ["code", "name"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -52,7 +51,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of Language from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -66,15 +65,17 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of Language from a dict""" if obj is None: return None diff --git a/fattureincloud_python_sdk/models/list_archive_categories_response.py b/fattureincloud_python_sdk/models/list_archive_categories_response.py index ccd73407..d3c0d7dd 100644 --- a/fattureincloud_python_sdk/models/list_archive_categories_response.py +++ b/fattureincloud_python_sdk/models/list_archive_categories_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,14 +18,10 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel, StrictStr - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self class ListArchiveCategoriesResponse(BaseModel): @@ -36,7 +32,11 @@ class ListArchiveCategoriesResponse(BaseModel): data: Optional[List[StrictStr]] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -48,7 +48,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ListArchiveCategoriesResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -62,15 +62,17 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ListArchiveCategoriesResponse from a dict""" if obj is None: return None diff --git a/fattureincloud_python_sdk/models/list_archive_documents_response.py b/fattureincloud_python_sdk/models/list_archive_documents_response.py index 7161b933..fec782d4 100644 --- a/fattureincloud_python_sdk/models/list_archive_documents_response.py +++ b/fattureincloud_python_sdk/models/list_archive_documents_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,16 +18,11 @@ import re # noqa: F401 import json - +from pydantic import BaseModel, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt, StrictStr -from pydantic import Field from fattureincloud_python_sdk.models.archive_document import ArchiveDocument - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class ListArchiveDocumentsResponse(BaseModel): @@ -80,7 +75,11 @@ class ListArchiveDocumentsResponse(BaseModel): "data", ] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -92,7 +91,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ListArchiveDocumentsResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -106,9 +105,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of each item in data (list) @@ -121,7 +122,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ListArchiveDocumentsResponse from a dict""" if obj is None: return None @@ -142,9 +143,11 @@ def from_dict(cls, obj: Dict) -> Self: "prev_page_url": obj.get("prev_page_url"), "to": obj.get("to"), "total": obj.get("total"), - "data": [ArchiveDocument.from_dict(_item) for _item in obj.get("data")] - if obj.get("data") is not None - else None, + "data": ( + [ArchiveDocument.from_dict(_item) for _item in obj["data"]] + if obj.get("data") is not None + else None + ), } ) return _obj diff --git a/fattureincloud_python_sdk/models/list_archive_documents_response_page.py b/fattureincloud_python_sdk/models/list_archive_documents_response_page.py index 066cb9d1..e68e2ea6 100644 --- a/fattureincloud_python_sdk/models/list_archive_documents_response_page.py +++ b/fattureincloud_python_sdk/models/list_archive_documents_response_page.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.archive_document import ArchiveDocument - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class ListArchiveDocumentsResponsePage(BaseModel): @@ -37,7 +33,11 @@ class ListArchiveDocumentsResponsePage(BaseModel): data: Optional[List[ArchiveDocument]] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -49,7 +49,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ListArchiveDocumentsResponsePage from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -63,9 +63,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of each item in data (list) @@ -78,7 +80,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ListArchiveDocumentsResponsePage from a dict""" if obj is None: return None @@ -88,9 +90,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": [ArchiveDocument.from_dict(_item) for _item in obj.get("data")] - if obj.get("data") is not None - else None + "data": ( + [ArchiveDocument.from_dict(_item) for _item in obj["data"]] + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/list_cashbook_entries_response.py b/fattureincloud_python_sdk/models/list_cashbook_entries_response.py index 20c8a13c..49a2645f 100644 --- a/fattureincloud_python_sdk/models/list_cashbook_entries_response.py +++ b/fattureincloud_python_sdk/models/list_cashbook_entries_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.cashbook_entry import CashbookEntry - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class ListCashbookEntriesResponse(BaseModel): @@ -35,7 +31,11 @@ class ListCashbookEntriesResponse(BaseModel): data: Optional[List[CashbookEntry]] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -47,7 +47,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ListCashbookEntriesResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -61,9 +61,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of each item in data (list) @@ -76,7 +78,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ListCashbookEntriesResponse from a dict""" if obj is None: return None @@ -86,9 +88,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": [CashbookEntry.from_dict(_item) for _item in obj.get("data")] - if obj.get("data") is not None - else None + "data": ( + [CashbookEntry.from_dict(_item) for _item in obj["data"]] + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/list_cities_response.py b/fattureincloud_python_sdk/models/list_cities_response.py index 139130f3..6ca8f3d0 100644 --- a/fattureincloud_python_sdk/models/list_cities_response.py +++ b/fattureincloud_python_sdk/models/list_cities_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.city import City - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class ListCitiesResponse(BaseModel): @@ -35,7 +31,11 @@ class ListCitiesResponse(BaseModel): data: Optional[List[City]] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -47,7 +47,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ListCitiesResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -61,9 +61,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of each item in data (list) @@ -76,7 +78,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ListCitiesResponse from a dict""" if obj is None: return None @@ -86,9 +88,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": [City.from_dict(_item) for _item in obj.get("data")] - if obj.get("data") is not None - else None + "data": ( + [City.from_dict(_item) for _item in obj["data"]] + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/list_clients_response.py b/fattureincloud_python_sdk/models/list_clients_response.py index 5419d7a3..b4f97b67 100644 --- a/fattureincloud_python_sdk/models/list_clients_response.py +++ b/fattureincloud_python_sdk/models/list_clients_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,16 +18,11 @@ import re # noqa: F401 import json - +from pydantic import BaseModel, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt, StrictStr -from pydantic import Field from fattureincloud_python_sdk.models.client import Client - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class ListClientsResponse(BaseModel): @@ -82,7 +77,11 @@ class ListClientsResponse(BaseModel): "data", ] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -94,7 +93,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ListClientsResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -108,9 +107,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of each item in data (list) @@ -123,7 +124,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ListClientsResponse from a dict""" if obj is None: return None @@ -144,9 +145,11 @@ def from_dict(cls, obj: Dict) -> Self: "prev_page_url": obj.get("prev_page_url"), "to": obj.get("to"), "total": obj.get("total"), - "data": [Client.from_dict(_item) for _item in obj.get("data")] - if obj.get("data") is not None - else None, + "data": ( + [Client.from_dict(_item) for _item in obj["data"]] + if obj.get("data") is not None + else None + ), } ) return _obj diff --git a/fattureincloud_python_sdk/models/list_clients_response_page.py b/fattureincloud_python_sdk/models/list_clients_response_page.py index cc4594df..40992927 100644 --- a/fattureincloud_python_sdk/models/list_clients_response_page.py +++ b/fattureincloud_python_sdk/models/list_clients_response_page.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.client import Client - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class ListClientsResponsePage(BaseModel): @@ -37,7 +33,11 @@ class ListClientsResponsePage(BaseModel): data: Optional[List[Client]] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -49,7 +49,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ListClientsResponsePage from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -63,9 +63,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of each item in data (list) @@ -78,7 +80,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ListClientsResponsePage from a dict""" if obj is None: return None @@ -88,9 +90,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": [Client.from_dict(_item) for _item in obj.get("data")] - if obj.get("data") is not None - else None + "data": ( + [Client.from_dict(_item) for _item in obj["data"]] + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/list_cost_centers_response.py b/fattureincloud_python_sdk/models/list_cost_centers_response.py index 3998b797..59aff9ef 100644 --- a/fattureincloud_python_sdk/models/list_cost_centers_response.py +++ b/fattureincloud_python_sdk/models/list_cost_centers_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,14 +18,10 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel, StrictStr - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self class ListCostCentersResponse(BaseModel): @@ -36,7 +32,11 @@ class ListCostCentersResponse(BaseModel): data: Optional[List[StrictStr]] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -48,7 +48,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ListCostCentersResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -62,15 +62,17 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ListCostCentersResponse from a dict""" if obj is None: return None diff --git a/fattureincloud_python_sdk/models/list_countries_response.py b/fattureincloud_python_sdk/models/list_countries_response.py index a839a6fb..c4439e8b 100644 --- a/fattureincloud_python_sdk/models/list_countries_response.py +++ b/fattureincloud_python_sdk/models/list_countries_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,14 +18,10 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel, StrictStr - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self class ListCountriesResponse(BaseModel): @@ -34,7 +30,11 @@ class ListCountriesResponse(BaseModel): data: Optional[List[StrictStr]] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -46,7 +46,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ListCountriesResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -60,15 +60,17 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ListCountriesResponse from a dict""" if obj is None: return None diff --git a/fattureincloud_python_sdk/models/list_currencies_response.py b/fattureincloud_python_sdk/models/list_currencies_response.py index 940078db..c6f3eb66 100644 --- a/fattureincloud_python_sdk/models/list_currencies_response.py +++ b/fattureincloud_python_sdk/models/list_currencies_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.currency import Currency - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class ListCurrenciesResponse(BaseModel): @@ -35,7 +31,11 @@ class ListCurrenciesResponse(BaseModel): data: Optional[List[Currency]] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -47,7 +47,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ListCurrenciesResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -61,9 +61,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of each item in data (list) @@ -76,7 +78,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ListCurrenciesResponse from a dict""" if obj is None: return None @@ -86,9 +88,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": [Currency.from_dict(_item) for _item in obj.get("data")] - if obj.get("data") is not None - else None + "data": ( + [Currency.from_dict(_item) for _item in obj["data"]] + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/list_delivery_notes_default_causals_response.py b/fattureincloud_python_sdk/models/list_delivery_notes_default_causals_response.py index 92d64f9a..661cc3b5 100644 --- a/fattureincloud_python_sdk/models/list_delivery_notes_default_causals_response.py +++ b/fattureincloud_python_sdk/models/list_delivery_notes_default_causals_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,14 +18,10 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel, StrictStr - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self class ListDeliveryNotesDefaultCausalsResponse(BaseModel): @@ -34,7 +30,11 @@ class ListDeliveryNotesDefaultCausalsResponse(BaseModel): data: Optional[List[StrictStr]] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -46,7 +46,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ListDeliveryNotesDefaultCausalsResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -60,15 +60,17 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ListDeliveryNotesDefaultCausalsResponse from a dict""" if obj is None: return None diff --git a/fattureincloud_python_sdk/models/list_detailed_countries_response.py b/fattureincloud_python_sdk/models/list_detailed_countries_response.py index 82f444ee..6ed16cd5 100644 --- a/fattureincloud_python_sdk/models/list_detailed_countries_response.py +++ b/fattureincloud_python_sdk/models/list_detailed_countries_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.detailed_country import DetailedCountry - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class ListDetailedCountriesResponse(BaseModel): @@ -37,7 +33,11 @@ class ListDetailedCountriesResponse(BaseModel): data: Optional[List[DetailedCountry]] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -49,7 +49,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ListDetailedCountriesResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -63,9 +63,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of each item in data (list) @@ -78,7 +80,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ListDetailedCountriesResponse from a dict""" if obj is None: return None @@ -88,9 +90,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": [DetailedCountry.from_dict(_item) for _item in obj.get("data")] - if obj.get("data") is not None - else None + "data": ( + [DetailedCountry.from_dict(_item) for _item in obj["data"]] + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/list_emails_response.py b/fattureincloud_python_sdk/models/list_emails_response.py index 72ba1b15..c843bb35 100644 --- a/fattureincloud_python_sdk/models/list_emails_response.py +++ b/fattureincloud_python_sdk/models/list_emails_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,16 +18,11 @@ import re # noqa: F401 import json - +from pydantic import BaseModel, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt, StrictStr -from pydantic import Field from fattureincloud_python_sdk.models.email import Email - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class ListEmailsResponse(BaseModel): @@ -82,7 +77,11 @@ class ListEmailsResponse(BaseModel): "data", ] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -94,7 +93,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ListEmailsResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -108,9 +107,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of each item in data (list) @@ -123,7 +124,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ListEmailsResponse from a dict""" if obj is None: return None @@ -144,9 +145,11 @@ def from_dict(cls, obj: Dict) -> Self: "prev_page_url": obj.get("prev_page_url"), "to": obj.get("to"), "total": obj.get("total"), - "data": [Email.from_dict(_item) for _item in obj.get("data")] - if obj.get("data") is not None - else None, + "data": ( + [Email.from_dict(_item) for _item in obj["data"]] + if obj.get("data") is not None + else None + ), } ) return _obj diff --git a/fattureincloud_python_sdk/models/list_emails_response_page.py b/fattureincloud_python_sdk/models/list_emails_response_page.py index 47cea868..71c71908 100644 --- a/fattureincloud_python_sdk/models/list_emails_response_page.py +++ b/fattureincloud_python_sdk/models/list_emails_response_page.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.email import Email - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class ListEmailsResponsePage(BaseModel): @@ -37,7 +33,11 @@ class ListEmailsResponsePage(BaseModel): data: Optional[List[Email]] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -49,7 +49,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ListEmailsResponsePage from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -63,9 +63,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of each item in data (list) @@ -78,7 +80,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ListEmailsResponsePage from a dict""" if obj is None: return None @@ -88,9 +90,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": [Email.from_dict(_item) for _item in obj.get("data")] - if obj.get("data") is not None - else None + "data": ( + [Email.from_dict(_item) for _item in obj["data"]] + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/list_f24_response.py b/fattureincloud_python_sdk/models/list_f24_response.py index 24ba34a6..3b2f7edc 100644 --- a/fattureincloud_python_sdk/models/list_f24_response.py +++ b/fattureincloud_python_sdk/models/list_f24_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,19 +18,14 @@ import re # noqa: F401 import json - +from pydantic import BaseModel, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt, StrictStr -from pydantic import Field from fattureincloud_python_sdk.models.f24 import F24 from fattureincloud_python_sdk.models.list_f24_response_aggregated_data import ( ListF24ResponseAggregatedData, ) - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class ListF24Response(BaseModel): @@ -85,7 +80,11 @@ class ListF24Response(BaseModel): "aggregated_data", ] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -97,7 +96,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ListF24Response from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -111,9 +110,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of each item in data (list) @@ -129,7 +130,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ListF24Response from a dict""" if obj is None: return None @@ -150,14 +151,16 @@ def from_dict(cls, obj: Dict) -> Self: "prev_page_url": obj.get("prev_page_url"), "to": obj.get("to"), "total": obj.get("total"), - "data": [F24.from_dict(_item) for _item in obj.get("data")] - if obj.get("data") is not None - else None, - "aggregated_data": ListF24ResponseAggregatedData.from_dict( - obj.get("aggregated_data") - ) - if obj.get("aggregated_data") is not None - else None, + "data": ( + [F24.from_dict(_item) for _item in obj["data"]] + if obj.get("data") is not None + else None + ), + "aggregated_data": ( + ListF24ResponseAggregatedData.from_dict(obj["aggregated_data"]) + if obj.get("aggregated_data") is not None + else None + ), } ) return _obj diff --git a/fattureincloud_python_sdk/models/list_f24_response_aggregated_data.py b/fattureincloud_python_sdk/models/list_f24_response_aggregated_data.py index a5690344..a2139654 100644 --- a/fattureincloud_python_sdk/models/list_f24_response_aggregated_data.py +++ b/fattureincloud_python_sdk/models/list_f24_response_aggregated_data.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,10 @@ import re # noqa: F401 import json - +from pydantic import BaseModel, Field, StrictFloat, StrictInt from typing import Any, ClassVar, Dict, List, Optional, Union -from pydantic import BaseModel, StrictFloat, StrictInt -from pydantic import Field - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class ListF24ResponseAggregatedData(BaseModel): @@ -39,7 +34,11 @@ class ListF24ResponseAggregatedData(BaseModel): ) __properties: ClassVar[List[str]] = ["amount"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -51,7 +50,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ListF24ResponseAggregatedData from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -65,15 +64,17 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ListF24ResponseAggregatedData from a dict""" if obj is None: return None diff --git a/fattureincloud_python_sdk/models/list_f24_response_aggregation.py b/fattureincloud_python_sdk/models/list_f24_response_aggregation.py index 1cd3a131..d221a547 100644 --- a/fattureincloud_python_sdk/models/list_f24_response_aggregation.py +++ b/fattureincloud_python_sdk/models/list_f24_response_aggregation.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,17 +18,13 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.list_f24_response_aggregated_data import ( ListF24ResponseAggregatedData, ) - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class ListF24ResponseAggregation(BaseModel): @@ -39,7 +35,11 @@ class ListF24ResponseAggregation(BaseModel): aggregated_data: Optional[ListF24ResponseAggregatedData] = None __properties: ClassVar[List[str]] = ["aggregated_data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -51,7 +51,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ListF24ResponseAggregation from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -65,9 +65,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of aggregated_data @@ -76,7 +78,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ListF24ResponseAggregation from a dict""" if obj is None: return None @@ -86,11 +88,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "aggregated_data": ListF24ResponseAggregatedData.from_dict( - obj.get("aggregated_data") + "aggregated_data": ( + ListF24ResponseAggregatedData.from_dict(obj["aggregated_data"]) + if obj.get("aggregated_data") is not None + else None ) - if obj.get("aggregated_data") is not None - else None } ) return _obj diff --git a/fattureincloud_python_sdk/models/list_f24_response_page.py b/fattureincloud_python_sdk/models/list_f24_response_page.py index d7aa62fa..49f13718 100644 --- a/fattureincloud_python_sdk/models/list_f24_response_page.py +++ b/fattureincloud_python_sdk/models/list_f24_response_page.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.f24 import F24 - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class ListF24ResponsePage(BaseModel): @@ -37,7 +33,11 @@ class ListF24ResponsePage(BaseModel): data: Optional[List[F24]] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -49,7 +49,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ListF24ResponsePage from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -63,9 +63,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of each item in data (list) @@ -78,7 +80,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ListF24ResponsePage from a dict""" if obj is None: return None @@ -88,9 +90,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": [F24.from_dict(_item) for _item in obj.get("data")] - if obj.get("data") is not None - else None + "data": ( + [F24.from_dict(_item) for _item in obj["data"]] + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/list_issued_documents_response.py b/fattureincloud_python_sdk/models/list_issued_documents_response.py index 2c43551e..c9801e21 100644 --- a/fattureincloud_python_sdk/models/list_issued_documents_response.py +++ b/fattureincloud_python_sdk/models/list_issued_documents_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,16 +18,11 @@ import re # noqa: F401 import json - +from pydantic import BaseModel, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt, StrictStr -from pydantic import Field from fattureincloud_python_sdk.models.issued_document import IssuedDocument - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class ListIssuedDocumentsResponse(BaseModel): @@ -82,7 +77,11 @@ class ListIssuedDocumentsResponse(BaseModel): "data", ] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -94,7 +93,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ListIssuedDocumentsResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -108,9 +107,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of each item in data (list) @@ -123,7 +124,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ListIssuedDocumentsResponse from a dict""" if obj is None: return None @@ -144,9 +145,11 @@ def from_dict(cls, obj: Dict) -> Self: "prev_page_url": obj.get("prev_page_url"), "to": obj.get("to"), "total": obj.get("total"), - "data": [IssuedDocument.from_dict(_item) for _item in obj.get("data")] - if obj.get("data") is not None - else None, + "data": ( + [IssuedDocument.from_dict(_item) for _item in obj["data"]] + if obj.get("data") is not None + else None + ), } ) return _obj diff --git a/fattureincloud_python_sdk/models/list_issued_documents_response_page.py b/fattureincloud_python_sdk/models/list_issued_documents_response_page.py index 0bd95bd0..9d078bbf 100644 --- a/fattureincloud_python_sdk/models/list_issued_documents_response_page.py +++ b/fattureincloud_python_sdk/models/list_issued_documents_response_page.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.issued_document import IssuedDocument - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class ListIssuedDocumentsResponsePage(BaseModel): @@ -37,7 +33,11 @@ class ListIssuedDocumentsResponsePage(BaseModel): data: Optional[List[IssuedDocument]] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -49,7 +49,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ListIssuedDocumentsResponsePage from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -63,9 +63,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of each item in data (list) @@ -78,7 +80,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ListIssuedDocumentsResponsePage from a dict""" if obj is None: return None @@ -88,9 +90,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": [IssuedDocument.from_dict(_item) for _item in obj.get("data")] - if obj.get("data") is not None - else None + "data": ( + [IssuedDocument.from_dict(_item) for _item in obj["data"]] + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/list_languages_response.py b/fattureincloud_python_sdk/models/list_languages_response.py index be580681..ff264e49 100644 --- a/fattureincloud_python_sdk/models/list_languages_response.py +++ b/fattureincloud_python_sdk/models/list_languages_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.language import Language - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class ListLanguagesResponse(BaseModel): @@ -35,7 +31,11 @@ class ListLanguagesResponse(BaseModel): data: Optional[List[Language]] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -47,7 +47,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ListLanguagesResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -61,9 +61,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of each item in data (list) @@ -76,7 +78,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ListLanguagesResponse from a dict""" if obj is None: return None @@ -86,9 +88,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": [Language.from_dict(_item) for _item in obj.get("data")] - if obj.get("data") is not None - else None + "data": ( + [Language.from_dict(_item) for _item in obj["data"]] + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/list_payment_accounts_response.py b/fattureincloud_python_sdk/models/list_payment_accounts_response.py index 67c7986e..75d814ac 100644 --- a/fattureincloud_python_sdk/models/list_payment_accounts_response.py +++ b/fattureincloud_python_sdk/models/list_payment_accounts_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,24 +18,24 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.payment_account import PaymentAccount - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class ListPaymentAccountsResponse(BaseModel): """ """ # noqa: E501 - data: Optional[List[PaymentAccount]] = None + data: Optional[List[Optional[PaymentAccount]]] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -47,7 +47,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ListPaymentAccountsResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -61,9 +61,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of each item in data (list) @@ -76,7 +78,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ListPaymentAccountsResponse from a dict""" if obj is None: return None @@ -86,9 +88,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": [PaymentAccount.from_dict(_item) for _item in obj.get("data")] - if obj.get("data") is not None - else None + "data": ( + [PaymentAccount.from_dict(_item) for _item in obj["data"]] + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/list_payment_methods_response.py b/fattureincloud_python_sdk/models/list_payment_methods_response.py index 99b008f6..d739787c 100644 --- a/fattureincloud_python_sdk/models/list_payment_methods_response.py +++ b/fattureincloud_python_sdk/models/list_payment_methods_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.payment_method import PaymentMethod - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class ListPaymentMethodsResponse(BaseModel): @@ -35,7 +31,11 @@ class ListPaymentMethodsResponse(BaseModel): data: Optional[List[PaymentMethod]] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -47,7 +47,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ListPaymentMethodsResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -61,9 +61,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of each item in data (list) @@ -76,7 +78,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ListPaymentMethodsResponse from a dict""" if obj is None: return None @@ -86,9 +88,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": [PaymentMethod.from_dict(_item) for _item in obj.get("data")] - if obj.get("data") is not None - else None + "data": ( + [PaymentMethod.from_dict(_item) for _item in obj["data"]] + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/list_product_categories_response.py b/fattureincloud_python_sdk/models/list_product_categories_response.py index 3c7007fa..c0af8954 100644 --- a/fattureincloud_python_sdk/models/list_product_categories_response.py +++ b/fattureincloud_python_sdk/models/list_product_categories_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,14 +18,10 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel, StrictStr - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self class ListProductCategoriesResponse(BaseModel): @@ -34,7 +30,11 @@ class ListProductCategoriesResponse(BaseModel): data: Optional[List[StrictStr]] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -46,7 +46,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ListProductCategoriesResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -60,15 +60,17 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ListProductCategoriesResponse from a dict""" if obj is None: return None diff --git a/fattureincloud_python_sdk/models/list_products_response.py b/fattureincloud_python_sdk/models/list_products_response.py index 0d9eaef0..c43d042e 100644 --- a/fattureincloud_python_sdk/models/list_products_response.py +++ b/fattureincloud_python_sdk/models/list_products_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,16 +18,11 @@ import re # noqa: F401 import json - +from pydantic import BaseModel, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt, StrictStr -from pydantic import Field from fattureincloud_python_sdk.models.product import Product - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class ListProductsResponse(BaseModel): @@ -82,7 +77,11 @@ class ListProductsResponse(BaseModel): "data", ] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -94,7 +93,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ListProductsResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -108,9 +107,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of each item in data (list) @@ -123,7 +124,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ListProductsResponse from a dict""" if obj is None: return None @@ -144,9 +145,11 @@ def from_dict(cls, obj: Dict) -> Self: "prev_page_url": obj.get("prev_page_url"), "to": obj.get("to"), "total": obj.get("total"), - "data": [Product.from_dict(_item) for _item in obj.get("data")] - if obj.get("data") is not None - else None, + "data": ( + [Product.from_dict(_item) for _item in obj["data"]] + if obj.get("data") is not None + else None + ), } ) return _obj diff --git a/fattureincloud_python_sdk/models/list_products_response_page.py b/fattureincloud_python_sdk/models/list_products_response_page.py index a180d0b6..d1788af2 100644 --- a/fattureincloud_python_sdk/models/list_products_response_page.py +++ b/fattureincloud_python_sdk/models/list_products_response_page.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.product import Product - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class ListProductsResponsePage(BaseModel): @@ -37,7 +33,11 @@ class ListProductsResponsePage(BaseModel): data: Optional[List[Product]] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -49,7 +49,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ListProductsResponsePage from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -63,9 +63,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of each item in data (list) @@ -78,7 +80,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ListProductsResponsePage from a dict""" if obj is None: return None @@ -88,9 +90,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": [Product.from_dict(_item) for _item in obj.get("data")] - if obj.get("data") is not None - else None + "data": ( + [Product.from_dict(_item) for _item in obj["data"]] + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/list_receipts_response.py b/fattureincloud_python_sdk/models/list_receipts_response.py index e354cae3..de9b03c1 100644 --- a/fattureincloud_python_sdk/models/list_receipts_response.py +++ b/fattureincloud_python_sdk/models/list_receipts_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,16 +18,11 @@ import re # noqa: F401 import json - +from pydantic import BaseModel, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt, StrictStr -from pydantic import Field from fattureincloud_python_sdk.models.receipt import Receipt - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class ListReceiptsResponse(BaseModel): @@ -80,7 +75,11 @@ class ListReceiptsResponse(BaseModel): "data", ] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -92,7 +91,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ListReceiptsResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -106,9 +105,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of each item in data (list) @@ -121,7 +122,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ListReceiptsResponse from a dict""" if obj is None: return None @@ -142,9 +143,11 @@ def from_dict(cls, obj: Dict) -> Self: "prev_page_url": obj.get("prev_page_url"), "to": obj.get("to"), "total": obj.get("total"), - "data": [Receipt.from_dict(_item) for _item in obj.get("data")] - if obj.get("data") is not None - else None, + "data": ( + [Receipt.from_dict(_item) for _item in obj["data"]] + if obj.get("data") is not None + else None + ), } ) return _obj diff --git a/fattureincloud_python_sdk/models/list_receipts_response_page.py b/fattureincloud_python_sdk/models/list_receipts_response_page.py index bbc6c43c..5e0864c8 100644 --- a/fattureincloud_python_sdk/models/list_receipts_response_page.py +++ b/fattureincloud_python_sdk/models/list_receipts_response_page.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.receipt import Receipt - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class ListReceiptsResponsePage(BaseModel): @@ -37,7 +33,11 @@ class ListReceiptsResponsePage(BaseModel): data: Optional[List[Receipt]] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -49,7 +49,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ListReceiptsResponsePage from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -63,9 +63,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of each item in data (list) @@ -78,7 +80,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ListReceiptsResponsePage from a dict""" if obj is None: return None @@ -88,9 +90,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": [Receipt.from_dict(_item) for _item in obj.get("data")] - if obj.get("data") is not None - else None + "data": ( + [Receipt.from_dict(_item) for _item in obj["data"]] + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/list_received_document_categories_response.py b/fattureincloud_python_sdk/models/list_received_document_categories_response.py index 98dd23a4..ba16d841 100644 --- a/fattureincloud_python_sdk/models/list_received_document_categories_response.py +++ b/fattureincloud_python_sdk/models/list_received_document_categories_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,14 +18,10 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel, StrictStr - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self class ListReceivedDocumentCategoriesResponse(BaseModel): @@ -34,7 +30,11 @@ class ListReceivedDocumentCategoriesResponse(BaseModel): data: Optional[List[StrictStr]] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -46,7 +46,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ListReceivedDocumentCategoriesResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -60,15 +60,17 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ListReceivedDocumentCategoriesResponse from a dict""" if obj is None: return None diff --git a/fattureincloud_python_sdk/models/list_received_documents_response.py b/fattureincloud_python_sdk/models/list_received_documents_response.py index c6573a86..36a6784f 100644 --- a/fattureincloud_python_sdk/models/list_received_documents_response.py +++ b/fattureincloud_python_sdk/models/list_received_documents_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,16 +18,11 @@ import re # noqa: F401 import json - +from pydantic import BaseModel, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt, StrictStr -from pydantic import Field from fattureincloud_python_sdk.models.received_document import ReceivedDocument - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class ListReceivedDocumentsResponse(BaseModel): @@ -80,7 +75,11 @@ class ListReceivedDocumentsResponse(BaseModel): "data", ] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -92,7 +91,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ListReceivedDocumentsResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -106,9 +105,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of each item in data (list) @@ -121,7 +122,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ListReceivedDocumentsResponse from a dict""" if obj is None: return None @@ -142,9 +143,11 @@ def from_dict(cls, obj: Dict) -> Self: "prev_page_url": obj.get("prev_page_url"), "to": obj.get("to"), "total": obj.get("total"), - "data": [ReceivedDocument.from_dict(_item) for _item in obj.get("data")] - if obj.get("data") is not None - else None, + "data": ( + [ReceivedDocument.from_dict(_item) for _item in obj["data"]] + if obj.get("data") is not None + else None + ), } ) return _obj diff --git a/fattureincloud_python_sdk/models/list_received_documents_response_page.py b/fattureincloud_python_sdk/models/list_received_documents_response_page.py index 9b270978..00d828e5 100644 --- a/fattureincloud_python_sdk/models/list_received_documents_response_page.py +++ b/fattureincloud_python_sdk/models/list_received_documents_response_page.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.received_document import ReceivedDocument - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class ListReceivedDocumentsResponsePage(BaseModel): @@ -37,7 +33,11 @@ class ListReceivedDocumentsResponsePage(BaseModel): data: Optional[List[ReceivedDocument]] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -49,7 +49,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ListReceivedDocumentsResponsePage from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -63,9 +63,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of each item in data (list) @@ -78,7 +80,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ListReceivedDocumentsResponsePage from a dict""" if obj is None: return None @@ -88,9 +90,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": [ReceivedDocument.from_dict(_item) for _item in obj.get("data")] - if obj.get("data") is not None - else None + "data": ( + [ReceivedDocument.from_dict(_item) for _item in obj["data"]] + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/list_revenue_centers_response.py b/fattureincloud_python_sdk/models/list_revenue_centers_response.py index 83a88249..a73922eb 100644 --- a/fattureincloud_python_sdk/models/list_revenue_centers_response.py +++ b/fattureincloud_python_sdk/models/list_revenue_centers_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,14 +18,10 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel, StrictStr - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self class ListRevenueCentersResponse(BaseModel): @@ -34,7 +30,11 @@ class ListRevenueCentersResponse(BaseModel): data: Optional[List[StrictStr]] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -46,7 +46,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ListRevenueCentersResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -60,15 +60,17 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ListRevenueCentersResponse from a dict""" if obj is None: return None diff --git a/fattureincloud_python_sdk/models/list_suppliers_response.py b/fattureincloud_python_sdk/models/list_suppliers_response.py index fa2c782f..2b360bfe 100644 --- a/fattureincloud_python_sdk/models/list_suppliers_response.py +++ b/fattureincloud_python_sdk/models/list_suppliers_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,16 +18,11 @@ import re # noqa: F401 import json - +from pydantic import BaseModel, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt, StrictStr -from pydantic import Field from fattureincloud_python_sdk.models.supplier import Supplier - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class ListSuppliersResponse(BaseModel): @@ -82,7 +77,11 @@ class ListSuppliersResponse(BaseModel): "data", ] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -94,7 +93,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ListSuppliersResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -108,9 +107,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of each item in data (list) @@ -123,7 +124,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ListSuppliersResponse from a dict""" if obj is None: return None @@ -144,9 +145,11 @@ def from_dict(cls, obj: Dict) -> Self: "prev_page_url": obj.get("prev_page_url"), "to": obj.get("to"), "total": obj.get("total"), - "data": [Supplier.from_dict(_item) for _item in obj.get("data")] - if obj.get("data") is not None - else None, + "data": ( + [Supplier.from_dict(_item) for _item in obj["data"]] + if obj.get("data") is not None + else None + ), } ) return _obj diff --git a/fattureincloud_python_sdk/models/list_suppliers_response_page.py b/fattureincloud_python_sdk/models/list_suppliers_response_page.py index 256fb690..86c1dd90 100644 --- a/fattureincloud_python_sdk/models/list_suppliers_response_page.py +++ b/fattureincloud_python_sdk/models/list_suppliers_response_page.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.supplier import Supplier - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class ListSuppliersResponsePage(BaseModel): @@ -37,7 +33,11 @@ class ListSuppliersResponsePage(BaseModel): data: Optional[List[Supplier]] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -49,7 +49,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ListSuppliersResponsePage from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -63,9 +63,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of each item in data (list) @@ -78,7 +80,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ListSuppliersResponsePage from a dict""" if obj is None: return None @@ -88,9 +90,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": [Supplier.from_dict(_item) for _item in obj.get("data")] - if obj.get("data") is not None - else None + "data": ( + [Supplier.from_dict(_item) for _item in obj["data"]] + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/list_templates_response.py b/fattureincloud_python_sdk/models/list_templates_response.py index 6afd7c8e..cffaed2a 100644 --- a/fattureincloud_python_sdk/models/list_templates_response.py +++ b/fattureincloud_python_sdk/models/list_templates_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.document_template import DocumentTemplate - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class ListTemplatesResponse(BaseModel): @@ -35,7 +31,11 @@ class ListTemplatesResponse(BaseModel): data: Optional[List[DocumentTemplate]] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -47,7 +47,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ListTemplatesResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -61,9 +61,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of each item in data (list) @@ -76,7 +78,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ListTemplatesResponse from a dict""" if obj is None: return None @@ -86,9 +88,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": [DocumentTemplate.from_dict(_item) for _item in obj.get("data")] - if obj.get("data") is not None - else None + "data": ( + [DocumentTemplate.from_dict(_item) for _item in obj["data"]] + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/list_units_of_measure_response.py b/fattureincloud_python_sdk/models/list_units_of_measure_response.py index 930b4ed1..ccf309ca 100644 --- a/fattureincloud_python_sdk/models/list_units_of_measure_response.py +++ b/fattureincloud_python_sdk/models/list_units_of_measure_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,14 +18,10 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel, StrictStr - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self class ListUnitsOfMeasureResponse(BaseModel): @@ -34,7 +30,11 @@ class ListUnitsOfMeasureResponse(BaseModel): data: Optional[List[StrictStr]] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -46,7 +46,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ListUnitsOfMeasureResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -60,15 +60,17 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ListUnitsOfMeasureResponse from a dict""" if obj is None: return None diff --git a/fattureincloud_python_sdk/models/list_user_companies_response.py b/fattureincloud_python_sdk/models/list_user_companies_response.py index dbd63d97..771e608d 100644 --- a/fattureincloud_python_sdk/models/list_user_companies_response.py +++ b/fattureincloud_python_sdk/models/list_user_companies_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,17 +18,13 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.list_user_companies_response_data import ( ListUserCompaniesResponseData, ) - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class ListUserCompaniesResponse(BaseModel): @@ -37,7 +33,11 @@ class ListUserCompaniesResponse(BaseModel): data: Optional[ListUserCompaniesResponseData] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -49,7 +49,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ListUserCompaniesResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -63,9 +63,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -74,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ListUserCompaniesResponse from a dict""" if obj is None: return None @@ -84,9 +86,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": ListUserCompaniesResponseData.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + ListUserCompaniesResponseData.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/list_user_companies_response_data.py b/fattureincloud_python_sdk/models/list_user_companies_response_data.py index d83bbe8c..788341dc 100644 --- a/fattureincloud_python_sdk/models/list_user_companies_response_data.py +++ b/fattureincloud_python_sdk/models/list_user_companies_response_data.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.company import Company - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class ListUserCompaniesResponseData(BaseModel): @@ -37,7 +33,11 @@ class ListUserCompaniesResponseData(BaseModel): companies: Optional[List[Company]] = None __properties: ClassVar[List[str]] = ["companies"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -49,7 +49,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ListUserCompaniesResponseData from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -63,9 +63,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of each item in companies (list) @@ -78,7 +80,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ListUserCompaniesResponseData from a dict""" if obj is None: return None @@ -88,11 +90,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "companies": [ - Company.from_dict(_item) for _item in obj.get("companies") - ] - if obj.get("companies") is not None - else None + "companies": ( + [Company.from_dict(_item) for _item in obj["companies"]] + if obj.get("companies") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/list_vat_types_response.py b/fattureincloud_python_sdk/models/list_vat_types_response.py index ec1d31d5..ceba140a 100644 --- a/fattureincloud_python_sdk/models/list_vat_types_response.py +++ b/fattureincloud_python_sdk/models/list_vat_types_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,24 +18,24 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.vat_type import VatType - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class ListVatTypesResponse(BaseModel): """ """ # noqa: E501 - data: Optional[List[VatType]] = None + data: Optional[List[Optional[VatType]]] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -47,7 +47,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ListVatTypesResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -61,9 +61,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of each item in data (list) @@ -76,7 +78,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ListVatTypesResponse from a dict""" if obj is None: return None @@ -86,9 +88,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": [VatType.from_dict(_item) for _item in obj.get("data")] - if obj.get("data") is not None - else None + "data": ( + [VatType.from_dict(_item) for _item in obj["data"]] + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/list_webhooks_subscriptions_response.py b/fattureincloud_python_sdk/models/list_webhooks_subscriptions_response.py index 87700e4b..a1f8249a 100644 --- a/fattureincloud_python_sdk/models/list_webhooks_subscriptions_response.py +++ b/fattureincloud_python_sdk/models/list_webhooks_subscriptions_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.webhooks_subscription import WebhooksSubscription - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class ListWebhooksSubscriptionsResponse(BaseModel): @@ -37,7 +33,11 @@ class ListWebhooksSubscriptionsResponse(BaseModel): data: Optional[List[WebhooksSubscription]] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -49,7 +49,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ListWebhooksSubscriptionsResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -63,9 +63,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of each item in data (list) @@ -78,7 +80,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ListWebhooksSubscriptionsResponse from a dict""" if obj is None: return None @@ -88,11 +90,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": [ - WebhooksSubscription.from_dict(_item) for _item in obj.get("data") - ] - if obj.get("data") is not None - else None + "data": ( + [WebhooksSubscription.from_dict(_item) for _item in obj["data"]] + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/modify_archive_document_request.py b/fattureincloud_python_sdk/models/modify_archive_document_request.py index f4d5f762..7a08d68d 100644 --- a/fattureincloud_python_sdk/models/modify_archive_document_request.py +++ b/fattureincloud_python_sdk/models/modify_archive_document_request.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.archive_document import ArchiveDocument - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class ModifyArchiveDocumentRequest(BaseModel): @@ -35,7 +31,11 @@ class ModifyArchiveDocumentRequest(BaseModel): data: Optional[ArchiveDocument] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -47,7 +47,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ModifyArchiveDocumentRequest from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -61,9 +61,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -72,7 +74,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ModifyArchiveDocumentRequest from a dict""" if obj is None: return None @@ -82,9 +84,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": ArchiveDocument.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + ArchiveDocument.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/modify_archive_document_response.py b/fattureincloud_python_sdk/models/modify_archive_document_response.py index fbb9b392..e738d267 100644 --- a/fattureincloud_python_sdk/models/modify_archive_document_response.py +++ b/fattureincloud_python_sdk/models/modify_archive_document_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.archive_document import ArchiveDocument - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class ModifyArchiveDocumentResponse(BaseModel): @@ -35,7 +31,11 @@ class ModifyArchiveDocumentResponse(BaseModel): data: Optional[ArchiveDocument] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -47,7 +47,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ModifyArchiveDocumentResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -61,9 +61,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -72,7 +74,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ModifyArchiveDocumentResponse from a dict""" if obj is None: return None @@ -82,9 +84,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": ArchiveDocument.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + ArchiveDocument.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/modify_cashbook_entry_request.py b/fattureincloud_python_sdk/models/modify_cashbook_entry_request.py index 7151bb84..a9aa043f 100644 --- a/fattureincloud_python_sdk/models/modify_cashbook_entry_request.py +++ b/fattureincloud_python_sdk/models/modify_cashbook_entry_request.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.cashbook_entry import CashbookEntry - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class ModifyCashbookEntryRequest(BaseModel): @@ -35,7 +31,11 @@ class ModifyCashbookEntryRequest(BaseModel): data: Optional[CashbookEntry] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -47,7 +47,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ModifyCashbookEntryRequest from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -61,9 +61,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -72,7 +74,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ModifyCashbookEntryRequest from a dict""" if obj is None: return None @@ -82,9 +84,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": CashbookEntry.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + CashbookEntry.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/modify_cashbook_entry_response.py b/fattureincloud_python_sdk/models/modify_cashbook_entry_response.py index c57ddb2b..fef8ef2f 100644 --- a/fattureincloud_python_sdk/models/modify_cashbook_entry_response.py +++ b/fattureincloud_python_sdk/models/modify_cashbook_entry_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.cashbook_entry import CashbookEntry - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class ModifyCashbookEntryResponse(BaseModel): @@ -35,7 +31,11 @@ class ModifyCashbookEntryResponse(BaseModel): data: Optional[CashbookEntry] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -47,7 +47,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ModifyCashbookEntryResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -61,9 +61,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -72,7 +74,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ModifyCashbookEntryResponse from a dict""" if obj is None: return None @@ -82,9 +84,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": CashbookEntry.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + CashbookEntry.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/modify_client_request.py b/fattureincloud_python_sdk/models/modify_client_request.py index bf2711c3..e569343a 100644 --- a/fattureincloud_python_sdk/models/modify_client_request.py +++ b/fattureincloud_python_sdk/models/modify_client_request.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.client import Client - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class ModifyClientRequest(BaseModel): @@ -35,7 +31,11 @@ class ModifyClientRequest(BaseModel): data: Optional[Client] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -47,7 +47,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ModifyClientRequest from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -61,9 +61,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -72,7 +74,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ModifyClientRequest from a dict""" if obj is None: return None @@ -82,9 +84,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": Client.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + Client.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/modify_client_response.py b/fattureincloud_python_sdk/models/modify_client_response.py index eea41f49..4a44d6ce 100644 --- a/fattureincloud_python_sdk/models/modify_client_response.py +++ b/fattureincloud_python_sdk/models/modify_client_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.client import Client - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class ModifyClientResponse(BaseModel): @@ -37,7 +33,11 @@ class ModifyClientResponse(BaseModel): data: Optional[Client] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -49,7 +49,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ModifyClientResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -63,9 +63,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -74,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ModifyClientResponse from a dict""" if obj is None: return None @@ -84,9 +86,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": Client.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + Client.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/modify_f24_request.py b/fattureincloud_python_sdk/models/modify_f24_request.py index cdb84831..20919ac3 100644 --- a/fattureincloud_python_sdk/models/modify_f24_request.py +++ b/fattureincloud_python_sdk/models/modify_f24_request.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.f24 import F24 - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class ModifyF24Request(BaseModel): @@ -35,7 +31,11 @@ class ModifyF24Request(BaseModel): data: Optional[F24] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -47,7 +47,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ModifyF24Request from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -61,9 +61,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -72,7 +74,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ModifyF24Request from a dict""" if obj is None: return None @@ -82,9 +84,9 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": F24.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + F24.from_dict(obj["data"]) if obj.get("data") is not None else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/modify_f24_response.py b/fattureincloud_python_sdk/models/modify_f24_response.py index 41833fe7..afa18565 100644 --- a/fattureincloud_python_sdk/models/modify_f24_response.py +++ b/fattureincloud_python_sdk/models/modify_f24_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.f24 import F24 - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class ModifyF24Response(BaseModel): @@ -35,7 +31,11 @@ class ModifyF24Response(BaseModel): data: Optional[F24] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -47,7 +47,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ModifyF24Response from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -61,9 +61,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -72,7 +74,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ModifyF24Response from a dict""" if obj is None: return None @@ -82,9 +84,9 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": F24.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + F24.from_dict(obj["data"]) if obj.get("data") is not None else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/modify_issued_document_request.py b/fattureincloud_python_sdk/models/modify_issued_document_request.py index 1222a3cb..0891b101 100644 --- a/fattureincloud_python_sdk/models/modify_issued_document_request.py +++ b/fattureincloud_python_sdk/models/modify_issued_document_request.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,18 +18,14 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.issued_document import IssuedDocument from fattureincloud_python_sdk.models.issued_document_options import ( IssuedDocumentOptions, ) - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class ModifyIssuedDocumentRequest(BaseModel): @@ -39,7 +35,11 @@ class ModifyIssuedDocumentRequest(BaseModel): options: Optional[IssuedDocumentOptions] = None __properties: ClassVar[List[str]] = ["data", "options"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -51,7 +51,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ModifyIssuedDocumentRequest from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -65,9 +65,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -79,7 +81,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ModifyIssuedDocumentRequest from a dict""" if obj is None: return None @@ -89,12 +91,16 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": IssuedDocument.from_dict(obj.get("data")) - if obj.get("data") is not None - else None, - "options": IssuedDocumentOptions.from_dict(obj.get("options")) - if obj.get("options") is not None - else None, + "data": ( + IssuedDocument.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ), + "options": ( + IssuedDocumentOptions.from_dict(obj["options"]) + if obj.get("options") is not None + else None + ), } ) return _obj diff --git a/fattureincloud_python_sdk/models/modify_issued_document_response.py b/fattureincloud_python_sdk/models/modify_issued_document_response.py index 8cdbfb18..5222a9e1 100644 --- a/fattureincloud_python_sdk/models/modify_issued_document_response.py +++ b/fattureincloud_python_sdk/models/modify_issued_document_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.issued_document import IssuedDocument - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class ModifyIssuedDocumentResponse(BaseModel): @@ -37,7 +33,11 @@ class ModifyIssuedDocumentResponse(BaseModel): data: Optional[IssuedDocument] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -49,7 +49,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ModifyIssuedDocumentResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -63,9 +63,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -74,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ModifyIssuedDocumentResponse from a dict""" if obj is None: return None @@ -84,9 +86,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": IssuedDocument.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + IssuedDocument.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/modify_payment_account_request.py b/fattureincloud_python_sdk/models/modify_payment_account_request.py index 3a7dbd6d..7429e539 100644 --- a/fattureincloud_python_sdk/models/modify_payment_account_request.py +++ b/fattureincloud_python_sdk/models/modify_payment_account_request.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.payment_account import PaymentAccount - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class ModifyPaymentAccountRequest(BaseModel): @@ -37,7 +33,11 @@ class ModifyPaymentAccountRequest(BaseModel): data: Optional[PaymentAccount] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -49,7 +49,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ModifyPaymentAccountRequest from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -63,9 +63,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -74,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ModifyPaymentAccountRequest from a dict""" if obj is None: return None @@ -84,9 +86,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": PaymentAccount.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + PaymentAccount.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/modify_payment_account_response.py b/fattureincloud_python_sdk/models/modify_payment_account_response.py index 89597adf..0bbc93a6 100644 --- a/fattureincloud_python_sdk/models/modify_payment_account_response.py +++ b/fattureincloud_python_sdk/models/modify_payment_account_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.payment_account import PaymentAccount - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class ModifyPaymentAccountResponse(BaseModel): @@ -37,7 +33,11 @@ class ModifyPaymentAccountResponse(BaseModel): data: Optional[PaymentAccount] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -49,7 +49,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ModifyPaymentAccountResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -63,9 +63,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -74,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ModifyPaymentAccountResponse from a dict""" if obj is None: return None @@ -84,9 +86,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": PaymentAccount.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + PaymentAccount.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/modify_payment_method_request.py b/fattureincloud_python_sdk/models/modify_payment_method_request.py index cb7912c4..4c5efac0 100644 --- a/fattureincloud_python_sdk/models/modify_payment_method_request.py +++ b/fattureincloud_python_sdk/models/modify_payment_method_request.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.payment_method import PaymentMethod - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class ModifyPaymentMethodRequest(BaseModel): @@ -37,7 +33,11 @@ class ModifyPaymentMethodRequest(BaseModel): data: Optional[PaymentMethod] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -49,7 +49,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ModifyPaymentMethodRequest from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -63,9 +63,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -74,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ModifyPaymentMethodRequest from a dict""" if obj is None: return None @@ -84,9 +86,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": PaymentMethod.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + PaymentMethod.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/modify_payment_method_response.py b/fattureincloud_python_sdk/models/modify_payment_method_response.py index 179db7d2..876d11c5 100644 --- a/fattureincloud_python_sdk/models/modify_payment_method_response.py +++ b/fattureincloud_python_sdk/models/modify_payment_method_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.payment_method import PaymentMethod - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class ModifyPaymentMethodResponse(BaseModel): @@ -37,7 +33,11 @@ class ModifyPaymentMethodResponse(BaseModel): data: Optional[PaymentMethod] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -49,7 +49,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ModifyPaymentMethodResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -63,9 +63,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -74,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ModifyPaymentMethodResponse from a dict""" if obj is None: return None @@ -84,9 +86,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": PaymentMethod.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + PaymentMethod.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/modify_product_request.py b/fattureincloud_python_sdk/models/modify_product_request.py index 2dc748dc..fde46ce3 100644 --- a/fattureincloud_python_sdk/models/modify_product_request.py +++ b/fattureincloud_python_sdk/models/modify_product_request.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.product import Product - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class ModifyProductRequest(BaseModel): @@ -37,7 +33,11 @@ class ModifyProductRequest(BaseModel): data: Optional[Product] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -49,7 +49,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ModifyProductRequest from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -63,9 +63,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -74,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ModifyProductRequest from a dict""" if obj is None: return None @@ -84,9 +86,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": Product.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + Product.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/modify_product_response.py b/fattureincloud_python_sdk/models/modify_product_response.py index 27f3bdef..5f764094 100644 --- a/fattureincloud_python_sdk/models/modify_product_response.py +++ b/fattureincloud_python_sdk/models/modify_product_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.product import Product - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class ModifyProductResponse(BaseModel): @@ -37,7 +33,11 @@ class ModifyProductResponse(BaseModel): data: Optional[Product] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -49,7 +49,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ModifyProductResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -63,9 +63,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -74,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ModifyProductResponse from a dict""" if obj is None: return None @@ -84,9 +86,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": Product.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + Product.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/modify_receipt_request.py b/fattureincloud_python_sdk/models/modify_receipt_request.py index 99b2b161..8ba652ba 100644 --- a/fattureincloud_python_sdk/models/modify_receipt_request.py +++ b/fattureincloud_python_sdk/models/modify_receipt_request.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.receipt import Receipt - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class ModifyReceiptRequest(BaseModel): @@ -35,7 +31,11 @@ class ModifyReceiptRequest(BaseModel): data: Optional[Receipt] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -47,7 +47,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ModifyReceiptRequest from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -61,9 +61,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -72,7 +74,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ModifyReceiptRequest from a dict""" if obj is None: return None @@ -82,9 +84,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": Receipt.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + Receipt.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/modify_receipt_response.py b/fattureincloud_python_sdk/models/modify_receipt_response.py index dfa93167..1fa00ca7 100644 --- a/fattureincloud_python_sdk/models/modify_receipt_response.py +++ b/fattureincloud_python_sdk/models/modify_receipt_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.receipt import Receipt - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class ModifyReceiptResponse(BaseModel): @@ -35,7 +31,11 @@ class ModifyReceiptResponse(BaseModel): data: Optional[Receipt] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -47,7 +47,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ModifyReceiptResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -61,9 +61,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -72,7 +74,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ModifyReceiptResponse from a dict""" if obj is None: return None @@ -82,9 +84,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": Receipt.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + Receipt.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/modify_received_document_request.py b/fattureincloud_python_sdk/models/modify_received_document_request.py index 7b4c074a..8a8b1e3f 100644 --- a/fattureincloud_python_sdk/models/modify_received_document_request.py +++ b/fattureincloud_python_sdk/models/modify_received_document_request.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.received_document import ReceivedDocument - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class ModifyReceivedDocumentRequest(BaseModel): @@ -35,7 +31,11 @@ class ModifyReceivedDocumentRequest(BaseModel): data: Optional[ReceivedDocument] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -47,7 +47,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ModifyReceivedDocumentRequest from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -61,9 +61,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -72,7 +74,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ModifyReceivedDocumentRequest from a dict""" if obj is None: return None @@ -82,9 +84,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": ReceivedDocument.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + ReceivedDocument.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/modify_received_document_response.py b/fattureincloud_python_sdk/models/modify_received_document_response.py index 68ee664a..ab8d0b79 100644 --- a/fattureincloud_python_sdk/models/modify_received_document_response.py +++ b/fattureincloud_python_sdk/models/modify_received_document_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.received_document import ReceivedDocument - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class ModifyReceivedDocumentResponse(BaseModel): @@ -35,7 +31,11 @@ class ModifyReceivedDocumentResponse(BaseModel): data: Optional[ReceivedDocument] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -47,7 +47,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ModifyReceivedDocumentResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -61,9 +61,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -72,7 +74,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ModifyReceivedDocumentResponse from a dict""" if obj is None: return None @@ -82,9 +84,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": ReceivedDocument.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + ReceivedDocument.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/modify_supplier_request.py b/fattureincloud_python_sdk/models/modify_supplier_request.py index c5a76510..9ffe5f9e 100644 --- a/fattureincloud_python_sdk/models/modify_supplier_request.py +++ b/fattureincloud_python_sdk/models/modify_supplier_request.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.supplier import Supplier - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class ModifySupplierRequest(BaseModel): @@ -37,7 +33,11 @@ class ModifySupplierRequest(BaseModel): data: Optional[Supplier] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -49,7 +49,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ModifySupplierRequest from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -63,9 +63,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -74,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ModifySupplierRequest from a dict""" if obj is None: return None @@ -84,9 +86,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": Supplier.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + Supplier.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/modify_supplier_response.py b/fattureincloud_python_sdk/models/modify_supplier_response.py index 3601b722..0bb92994 100644 --- a/fattureincloud_python_sdk/models/modify_supplier_response.py +++ b/fattureincloud_python_sdk/models/modify_supplier_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.supplier import Supplier - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class ModifySupplierResponse(BaseModel): @@ -37,7 +33,11 @@ class ModifySupplierResponse(BaseModel): data: Optional[Supplier] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -49,7 +49,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ModifySupplierResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -63,9 +63,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -74,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ModifySupplierResponse from a dict""" if obj is None: return None @@ -84,9 +86,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": Supplier.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + Supplier.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/modify_vat_type_request.py b/fattureincloud_python_sdk/models/modify_vat_type_request.py index 05782e31..1ddb60e7 100644 --- a/fattureincloud_python_sdk/models/modify_vat_type_request.py +++ b/fattureincloud_python_sdk/models/modify_vat_type_request.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.vat_type import VatType - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class ModifyVatTypeRequest(BaseModel): @@ -37,7 +33,11 @@ class ModifyVatTypeRequest(BaseModel): data: Optional[VatType] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -49,7 +49,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ModifyVatTypeRequest from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -63,9 +63,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -74,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ModifyVatTypeRequest from a dict""" if obj is None: return None @@ -84,9 +86,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": VatType.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + VatType.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/modify_vat_type_response.py b/fattureincloud_python_sdk/models/modify_vat_type_response.py index 775406f9..bc27f47b 100644 --- a/fattureincloud_python_sdk/models/modify_vat_type_response.py +++ b/fattureincloud_python_sdk/models/modify_vat_type_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.vat_type import VatType - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class ModifyVatTypeResponse(BaseModel): @@ -37,7 +33,11 @@ class ModifyVatTypeResponse(BaseModel): data: Optional[VatType] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -49,7 +49,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ModifyVatTypeResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -63,9 +63,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -74,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ModifyVatTypeResponse from a dict""" if obj is None: return None @@ -84,9 +86,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": VatType.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + VatType.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/modify_webhooks_subscription_request.py b/fattureincloud_python_sdk/models/modify_webhooks_subscription_request.py index 4b76bb3a..7d0eb543 100644 --- a/fattureincloud_python_sdk/models/modify_webhooks_subscription_request.py +++ b/fattureincloud_python_sdk/models/modify_webhooks_subscription_request.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.webhooks_subscription import WebhooksSubscription - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class ModifyWebhooksSubscriptionRequest(BaseModel): @@ -37,7 +33,11 @@ class ModifyWebhooksSubscriptionRequest(BaseModel): data: Optional[WebhooksSubscription] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -49,7 +49,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ModifyWebhooksSubscriptionRequest from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -63,9 +63,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -74,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ModifyWebhooksSubscriptionRequest from a dict""" if obj is None: return None @@ -84,9 +86,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": WebhooksSubscription.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + WebhooksSubscription.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/modify_webhooks_subscription_response.py b/fattureincloud_python_sdk/models/modify_webhooks_subscription_response.py index 6af7e1f6..e27b5ca8 100644 --- a/fattureincloud_python_sdk/models/modify_webhooks_subscription_response.py +++ b/fattureincloud_python_sdk/models/modify_webhooks_subscription_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,16 +18,11 @@ import re # noqa: F401 import json - +from pydantic import BaseModel, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictStr -from pydantic import Field from fattureincloud_python_sdk.models.webhooks_subscription import WebhooksSubscription - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class ModifyWebhooksSubscriptionResponse(BaseModel): @@ -41,7 +36,11 @@ class ModifyWebhooksSubscriptionResponse(BaseModel): ) __properties: ClassVar[List[str]] = ["data", "warnings"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -53,7 +52,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ModifyWebhooksSubscriptionResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -67,9 +66,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -78,7 +79,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ModifyWebhooksSubscriptionResponse from a dict""" if obj is None: return None @@ -88,9 +89,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": WebhooksSubscription.from_dict(obj.get("data")) - if obj.get("data") is not None - else None, + "data": ( + WebhooksSubscription.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ), "warnings": obj.get("warnings"), } ) diff --git a/fattureincloud_python_sdk/models/monthly_total.py b/fattureincloud_python_sdk/models/monthly_total.py index 249a57d9..5fd30f35 100644 --- a/fattureincloud_python_sdk/models/monthly_total.py +++ b/fattureincloud_python_sdk/models/monthly_total.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,10 @@ import re # noqa: F401 import json - +from pydantic import BaseModel, Field, StrictFloat, StrictInt from typing import Any, ClassVar, Dict, List, Optional, Union -from pydantic import BaseModel, StrictFloat, StrictInt -from pydantic import Field - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class MonthlyTotal(BaseModel): @@ -45,7 +40,11 @@ class MonthlyTotal(BaseModel): ) __properties: ClassVar[List[str]] = ["net", "gross", "count"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -57,7 +56,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of MonthlyTotal from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -71,15 +70,17 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of MonthlyTotal from a dict""" if obj is None: return None diff --git a/fattureincloud_python_sdk/models/original_document_type.py b/fattureincloud_python_sdk/models/original_document_type.py index b6a6ca66..4da7165e 100644 --- a/fattureincloud_python_sdk/models/original_document_type.py +++ b/fattureincloud_python_sdk/models/original_document_type.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -15,15 +15,8 @@ from __future__ import annotations import json -import pprint -import re # noqa: F401 from enum import Enum - - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing_extensions import Self class OriginalDocumentType(str, Enum): diff --git a/fattureincloud_python_sdk/models/pagination.py b/fattureincloud_python_sdk/models/pagination.py index 8255c5f9..03faca6b 100644 --- a/fattureincloud_python_sdk/models/pagination.py +++ b/fattureincloud_python_sdk/models/pagination.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,10 @@ import re # noqa: F401 import json - +from pydantic import BaseModel, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt, StrictStr -from pydantic import Field - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class Pagination(BaseModel): @@ -77,7 +72,11 @@ class Pagination(BaseModel): "total", ] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -89,7 +88,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of Pagination from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -103,15 +102,17 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of Pagination from a dict""" if obj is None: return None diff --git a/fattureincloud_python_sdk/models/payment_account.py b/fattureincloud_python_sdk/models/payment_account.py index 1d353182..976babff 100644 --- a/fattureincloud_python_sdk/models/payment_account.py +++ b/fattureincloud_python_sdk/models/payment_account.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,16 +18,11 @@ import re # noqa: F401 import json - +from pydantic import BaseModel, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictBool, StrictInt, StrictStr -from pydantic import Field from fattureincloud_python_sdk.models.payment_account_type import PaymentAccountType - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class PaymentAccount(BaseModel): @@ -54,7 +49,11 @@ class PaymentAccount(BaseModel): "virtual", ] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -66,7 +65,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of PaymentAccount from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -80,15 +79,17 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of PaymentAccount from a dict""" if obj is None: return None diff --git a/fattureincloud_python_sdk/models/payment_account_type.py b/fattureincloud_python_sdk/models/payment_account_type.py index c648d2d4..6501e9ab 100644 --- a/fattureincloud_python_sdk/models/payment_account_type.py +++ b/fattureincloud_python_sdk/models/payment_account_type.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -15,15 +15,8 @@ from __future__ import annotations import json -import pprint -import re # noqa: F401 from enum import Enum - - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing_extensions import Self class PaymentAccountType(str, Enum): diff --git a/fattureincloud_python_sdk/models/payment_method.py b/fattureincloud_python_sdk/models/payment_method.py index 30fa60aa..f4059b12 100644 --- a/fattureincloud_python_sdk/models/payment_method.py +++ b/fattureincloud_python_sdk/models/payment_method.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,19 +18,14 @@ import re # noqa: F401 import json - +from pydantic import BaseModel, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictBool, StrictInt, StrictStr -from pydantic import Field from typing_extensions import Annotated from fattureincloud_python_sdk.models.payment_account import PaymentAccount from fattureincloud_python_sdk.models.payment_method_details import PaymentMethodDetails from fattureincloud_python_sdk.models.payment_method_type import PaymentMethodType - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class PaymentMethod(BaseModel): @@ -45,9 +40,9 @@ class PaymentMethod(BaseModel): default=None, description="Payment method is default" ) default_payment_account: Optional[PaymentAccount] = None - details: Optional[ - Annotated[List[PaymentMethodDetails], Field(max_length=5)] - ] = Field(default=None, description="Payment method details") + details: Optional[Annotated[List[PaymentMethodDetails], Field(max_length=5)]] = ( + Field(default=None, description="Payment method details") + ) bank_iban: Optional[StrictStr] = Field( default=None, description="Payment method bank iban" ) @@ -73,7 +68,11 @@ class PaymentMethod(BaseModel): "ei_payment_method", ] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -85,7 +84,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of PaymentMethod from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -99,9 +98,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of default_payment_account @@ -117,7 +118,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of PaymentMethod from a dict""" if obj is None: return None @@ -131,17 +132,16 @@ def from_dict(cls, obj: Dict) -> Self: "name": obj.get("name"), "type": obj.get("type"), "is_default": obj.get("is_default"), - "default_payment_account": PaymentAccount.from_dict( - obj.get("default_payment_account") - ) - if obj.get("default_payment_account") is not None - else None, - "details": [ - PaymentMethodDetails.from_dict(_item) - for _item in obj.get("details") - ] - if obj.get("details") is not None - else None, + "default_payment_account": ( + PaymentAccount.from_dict(obj["default_payment_account"]) + if obj.get("default_payment_account") is not None + else None + ), + "details": ( + [PaymentMethodDetails.from_dict(_item) for _item in obj["details"]] + if obj.get("details") is not None + else None + ), "bank_iban": obj.get("bank_iban"), "bank_name": obj.get("bank_name"), "bank_beneficiary": obj.get("bank_beneficiary"), diff --git a/fattureincloud_python_sdk/models/payment_method_details.py b/fattureincloud_python_sdk/models/payment_method_details.py index 08ae55da..cff449fe 100644 --- a/fattureincloud_python_sdk/models/payment_method_details.py +++ b/fattureincloud_python_sdk/models/payment_method_details.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,10 @@ import re # noqa: F401 import json - +from pydantic import BaseModel, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictStr -from pydantic import Field - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class PaymentMethodDetails(BaseModel): @@ -42,7 +37,11 @@ class PaymentMethodDetails(BaseModel): ) __properties: ClassVar[List[str]] = ["title", "description"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -54,7 +53,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of PaymentMethodDetails from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -68,15 +67,17 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of PaymentMethodDetails from a dict""" if obj is None: return None diff --git a/fattureincloud_python_sdk/models/payment_method_type.py b/fattureincloud_python_sdk/models/payment_method_type.py index 3fbe15ee..58774491 100644 --- a/fattureincloud_python_sdk/models/payment_method_type.py +++ b/fattureincloud_python_sdk/models/payment_method_type.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -15,15 +15,8 @@ from __future__ import annotations import json -import pprint -import re # noqa: F401 from enum import Enum - - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing_extensions import Self class PaymentMethodType(str, Enum): diff --git a/fattureincloud_python_sdk/models/payment_terms_type.py b/fattureincloud_python_sdk/models/payment_terms_type.py index 8e0fcdc0..976a31b5 100644 --- a/fattureincloud_python_sdk/models/payment_terms_type.py +++ b/fattureincloud_python_sdk/models/payment_terms_type.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -15,15 +15,8 @@ from __future__ import annotations import json -import pprint -import re # noqa: F401 from enum import Enum - - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing_extensions import Self class PaymentTermsType(str, Enum): diff --git a/fattureincloud_python_sdk/models/permission_level.py b/fattureincloud_python_sdk/models/permission_level.py index f4b207dc..a69791e1 100644 --- a/fattureincloud_python_sdk/models/permission_level.py +++ b/fattureincloud_python_sdk/models/permission_level.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -15,15 +15,8 @@ from __future__ import annotations import json -import pprint -import re # noqa: F401 from enum import Enum - - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing_extensions import Self class PermissionLevel(str, Enum): diff --git a/fattureincloud_python_sdk/models/permissions.py b/fattureincloud_python_sdk/models/permissions.py index a374370e..1a4279c7 100644 --- a/fattureincloud_python_sdk/models/permissions.py +++ b/fattureincloud_python_sdk/models/permissions.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,18 +18,14 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.permission_level import PermissionLevel from fattureincloud_python_sdk.models.permissions_fic_issued_documents_detailed import ( PermissionsFicIssuedDocumentsDetailed, ) - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class Permissions(BaseModel): @@ -59,9 +55,9 @@ class Permissions(BaseModel): dic_employees: Optional[PermissionLevel] = None dic_settings: Optional[PermissionLevel] = None dic_timesheet: Optional[PermissionLevel] = None - fic_issued_documents_detailed: Optional[ - PermissionsFicIssuedDocumentsDetailed - ] = None + fic_issued_documents_detailed: Optional[PermissionsFicIssuedDocumentsDetailed] = ( + None + ) __properties: ClassVar[List[str]] = [ "fic_situation", "fic_clients", @@ -90,7 +86,11 @@ class Permissions(BaseModel): "fic_issued_documents_detailed", ] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -102,7 +102,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of Permissions from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -116,20 +116,22 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of fic_issued_documents_detailed if self.fic_issued_documents_detailed: - _dict[ - "fic_issued_documents_detailed" - ] = self.fic_issued_documents_detailed.to_dict() + _dict["fic_issued_documents_detailed"] = ( + self.fic_issued_documents_detailed.to_dict() + ) return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of Permissions from a dict""" if obj is None: return None @@ -163,11 +165,13 @@ def from_dict(cls, obj: Dict) -> Self: "dic_employees": obj.get("dic_employees"), "dic_settings": obj.get("dic_settings"), "dic_timesheet": obj.get("dic_timesheet"), - "fic_issued_documents_detailed": PermissionsFicIssuedDocumentsDetailed.from_dict( - obj.get("fic_issued_documents_detailed") - ) - if obj.get("fic_issued_documents_detailed") is not None - else None, + "fic_issued_documents_detailed": ( + PermissionsFicIssuedDocumentsDetailed.from_dict( + obj["fic_issued_documents_detailed"] + ) + if obj.get("fic_issued_documents_detailed") is not None + else None + ), } ) return _obj diff --git a/fattureincloud_python_sdk/models/permissions_fic_issued_documents_detailed.py b/fattureincloud_python_sdk/models/permissions_fic_issued_documents_detailed.py index 32a4f8fc..b44f6688 100644 --- a/fattureincloud_python_sdk/models/permissions_fic_issued_documents_detailed.py +++ b/fattureincloud_python_sdk/models/permissions_fic_issued_documents_detailed.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.permission_level import PermissionLevel - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class PermissionsFicIssuedDocumentsDetailed(BaseModel): @@ -57,7 +53,11 @@ class PermissionsFicIssuedDocumentsDetailed(BaseModel): "self_invoices", ] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -69,7 +69,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of PermissionsFicIssuedDocumentsDetailed from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -83,15 +83,17 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of PermissionsFicIssuedDocumentsDetailed from a dict""" if obj is None: return None diff --git a/fattureincloud_python_sdk/models/product.py b/fattureincloud_python_sdk/models/product.py index ab9082a7..76fa7364 100644 --- a/fattureincloud_python_sdk/models/product.py +++ b/fattureincloud_python_sdk/models/product.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,16 +18,11 @@ import re # noqa: F401 import json - +from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union -from pydantic import BaseModel, StrictBool, StrictFloat, StrictInt, StrictStr -from pydantic import Field from fattureincloud_python_sdk.models.vat_type import VatType - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class Product(BaseModel): @@ -100,7 +95,11 @@ class Product(BaseModel): "updated_at", ] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -112,7 +111,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of Product from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -127,11 +126,15 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * OpenAPI `readOnly` fields are excluded. """ + excluded_fields: Set[str] = set( + [ + "stock_current", + ] + ) + _dict = self.model_dump( by_alias=True, - exclude={ - "stock_current", - }, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of default_vat @@ -140,7 +143,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of Product from a dict""" if obj is None: return None @@ -156,9 +159,11 @@ def from_dict(cls, obj: Dict) -> Self: "net_price": obj.get("net_price"), "gross_price": obj.get("gross_price"), "use_gross_price": obj.get("use_gross_price"), - "default_vat": VatType.from_dict(obj.get("default_vat")) - if obj.get("default_vat") is not None - else None, + "default_vat": ( + VatType.from_dict(obj["default_vat"]) + if obj.get("default_vat") is not None + else None + ), "net_cost": obj.get("net_cost"), "measure": obj.get("measure"), "description": obj.get("description"), diff --git a/fattureincloud_python_sdk/models/receipt.py b/fattureincloud_python_sdk/models/receipt.py index b9a3bc60..784f95b4 100644 --- a/fattureincloud_python_sdk/models/receipt.py +++ b/fattureincloud_python_sdk/models/receipt.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -19,19 +19,15 @@ import json from datetime import date +from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union -from pydantic import BaseModel, StrictBool, StrictFloat, StrictInt, StrictStr -from pydantic import Field from fattureincloud_python_sdk.models.payment_account import PaymentAccount from fattureincloud_python_sdk.models.receipt_items_list_item import ( ReceiptItemsListItem, ) from fattureincloud_python_sdk.models.receipt_type import ReceiptType - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class Receipt(BaseModel): @@ -94,7 +90,11 @@ class Receipt(BaseModel): "items_list", ] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -106,7 +106,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of Receipt from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -120,9 +120,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of payment_account @@ -138,7 +140,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of Receipt from a dict""" if obj is None: return None @@ -161,15 +163,19 @@ def from_dict(cls, obj: Dict) -> Self: "rc_center": obj.get("rc_center"), "created_at": obj.get("created_at"), "updated_at": obj.get("updated_at"), - "payment_account": PaymentAccount.from_dict(obj.get("payment_account")) - if obj.get("payment_account") is not None - else None, - "items_list": [ - ReceiptItemsListItem.from_dict(_item) - for _item in obj.get("items_list") - ] - if obj.get("items_list") is not None - else None, + "payment_account": ( + PaymentAccount.from_dict(obj["payment_account"]) + if obj.get("payment_account") is not None + else None + ), + "items_list": ( + [ + ReceiptItemsListItem.from_dict(_item) + for _item in obj["items_list"] + ] + if obj.get("items_list") is not None + else None + ), } ) return _obj diff --git a/fattureincloud_python_sdk/models/receipt_items_list_item.py b/fattureincloud_python_sdk/models/receipt_items_list_item.py index 2efe15e9..5c1de710 100644 --- a/fattureincloud_python_sdk/models/receipt_items_list_item.py +++ b/fattureincloud_python_sdk/models/receipt_items_list_item.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,16 +18,11 @@ import re # noqa: F401 import json - +from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union -from pydantic import BaseModel, StrictFloat, StrictInt, StrictStr -from pydantic import Field from fattureincloud_python_sdk.models.vat_type import VatType - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class ReceiptItemsListItem(BaseModel): @@ -54,7 +49,11 @@ class ReceiptItemsListItem(BaseModel): "vat", ] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -66,7 +65,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ReceiptItemsListItem from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -80,9 +79,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of vat @@ -91,7 +92,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ReceiptItemsListItem from a dict""" if obj is None: return None @@ -105,9 +106,11 @@ def from_dict(cls, obj: Dict) -> Self: "amount_net": obj.get("amount_net"), "amount_gross": obj.get("amount_gross"), "category": obj.get("category"), - "vat": VatType.from_dict(obj.get("vat")) - if obj.get("vat") is not None - else None, + "vat": ( + VatType.from_dict(obj["vat"]) + if obj.get("vat") is not None + else None + ), } ) return _obj diff --git a/fattureincloud_python_sdk/models/receipt_pre_create_info.py b/fattureincloud_python_sdk/models/receipt_pre_create_info.py index 8ed89598..29375f42 100644 --- a/fattureincloud_python_sdk/models/receipt_pre_create_info.py +++ b/fattureincloud_python_sdk/models/receipt_pre_create_info.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,17 +18,12 @@ import re # noqa: F401 import json - +from pydantic import BaseModel, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt, StrictStr -from pydantic import Field from fattureincloud_python_sdk.models.payment_account import PaymentAccount from fattureincloud_python_sdk.models.vat_type import VatType - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class ReceiptPreCreateInfo(BaseModel): @@ -43,13 +38,13 @@ class ReceiptPreCreateInfo(BaseModel): rc_centers_list: Optional[List[StrictStr]] = Field( default=None, description="Receipt used revenue centers list" ) - payment_accounts_list: Optional[List[PaymentAccount]] = Field( + payment_accounts_list: Optional[List[Optional[PaymentAccount]]] = Field( default=None, description="Payment accounts list" ) categories_list: Optional[List[StrictStr]] = Field( default=None, description="Receipt categories list" ) - vat_types_list: Optional[List[VatType]] = Field( + vat_types_list: Optional[List[Optional[VatType]]] = Field( default=None, description="Vat types list" ) __properties: ClassVar[List[str]] = [ @@ -61,7 +56,11 @@ class ReceiptPreCreateInfo(BaseModel): "vat_types_list", ] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -73,7 +72,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ReceiptPreCreateInfo from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -87,9 +86,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of each item in payment_accounts_list (list) @@ -109,7 +110,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ReceiptPreCreateInfo from a dict""" if obj is None: return None @@ -122,18 +123,20 @@ def from_dict(cls, obj: Dict) -> Self: "numerations": obj.get("numerations"), "numerations_list": obj.get("numerations_list"), "rc_centers_list": obj.get("rc_centers_list"), - "payment_accounts_list": [ - PaymentAccount.from_dict(_item) - for _item in obj.get("payment_accounts_list") - ] - if obj.get("payment_accounts_list") is not None - else None, + "payment_accounts_list": ( + [ + PaymentAccount.from_dict(_item) + for _item in obj["payment_accounts_list"] + ] + if obj.get("payment_accounts_list") is not None + else None + ), "categories_list": obj.get("categories_list"), - "vat_types_list": [ - VatType.from_dict(_item) for _item in obj.get("vat_types_list") - ] - if obj.get("vat_types_list") is not None - else None, + "vat_types_list": ( + [VatType.from_dict(_item) for _item in obj["vat_types_list"]] + if obj.get("vat_types_list") is not None + else None + ), } ) return _obj diff --git a/fattureincloud_python_sdk/models/receipt_type.py b/fattureincloud_python_sdk/models/receipt_type.py index 3f16598d..6b2acc63 100644 --- a/fattureincloud_python_sdk/models/receipt_type.py +++ b/fattureincloud_python_sdk/models/receipt_type.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -15,15 +15,8 @@ from __future__ import annotations import json -import pprint -import re # noqa: F401 from enum import Enum - - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing_extensions import Self class ReceiptType(str, Enum): diff --git a/fattureincloud_python_sdk/models/received_document.py b/fattureincloud_python_sdk/models/received_document.py index 21b6ad3b..f6e51da7 100644 --- a/fattureincloud_python_sdk/models/received_document.py +++ b/fattureincloud_python_sdk/models/received_document.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -19,9 +19,8 @@ import json from datetime import date +from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union -from pydantic import BaseModel, StrictBool, StrictFloat, StrictInt, StrictStr -from pydantic import Field from fattureincloud_python_sdk.models.currency import Currency from fattureincloud_python_sdk.models.entity import Entity from fattureincloud_python_sdk.models.received_document_items_list_item import ( @@ -31,11 +30,8 @@ ReceivedDocumentPaymentsListItem, ) from fattureincloud_python_sdk.models.received_document_type import ReceivedDocumentType - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class ReceivedDocument(BaseModel): @@ -161,7 +157,11 @@ class ReceivedDocument(BaseModel): "updated_at", ] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -173,7 +173,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ReceivedDocument from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -191,14 +191,18 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. """ - _dict = self.model_dump( - by_alias=True, - exclude={ + excluded_fields: Set[str] = set( + [ "amount_gross", "next_due_date", "attachment_url", "attachment_preview_url", - }, + ] + ) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of entity @@ -224,7 +228,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ReceivedDocument from a dict""" if obj is None: return None @@ -236,9 +240,11 @@ def from_dict(cls, obj: Dict) -> Self: { "id": obj.get("id"), "type": obj.get("type"), - "entity": Entity.from_dict(obj.get("entity")) - if obj.get("entity") is not None - else None, + "entity": ( + Entity.from_dict(obj["entity"]) + if obj.get("entity") is not None + else None + ), "date": obj.get("date"), "category": obj.get("category"), "description": obj.get("description"), @@ -254,23 +260,29 @@ def from_dict(cls, obj: Dict) -> Self: "is_detailed": obj.get("is_detailed"), "e_invoice": obj.get("e_invoice"), "next_due_date": obj.get("next_due_date"), - "currency": Currency.from_dict(obj.get("currency")) - if obj.get("currency") is not None - else None, + "currency": ( + Currency.from_dict(obj["currency"]) + if obj.get("currency") is not None + else None + ), "tax_deductibility": obj.get("tax_deductibility"), "vat_deductibility": obj.get("vat_deductibility"), - "items_list": [ - ReceivedDocumentItemsListItem.from_dict(_item) - for _item in obj.get("items_list") - ] - if obj.get("items_list") is not None - else None, - "payments_list": [ - ReceivedDocumentPaymentsListItem.from_dict(_item) - for _item in obj.get("payments_list") - ] - if obj.get("payments_list") is not None - else None, + "items_list": ( + [ + ReceivedDocumentItemsListItem.from_dict(_item) + for _item in obj["items_list"] + ] + if obj.get("items_list") is not None + else None + ), + "payments_list": ( + [ + ReceivedDocumentPaymentsListItem.from_dict(_item) + for _item in obj["payments_list"] + ] + if obj.get("payments_list") is not None + else None + ), "attachment_url": obj.get("attachment_url"), "attachment_preview_url": obj.get("attachment_preview_url"), "auto_calculate": obj.get("auto_calculate"), diff --git a/fattureincloud_python_sdk/models/received_document_info.py b/fattureincloud_python_sdk/models/received_document_info.py index ddd3297e..110b4d88 100644 --- a/fattureincloud_python_sdk/models/received_document_info.py +++ b/fattureincloud_python_sdk/models/received_document_info.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,10 +18,8 @@ import re # noqa: F401 import json - +from pydantic import BaseModel, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictStr -from pydantic import Field from fattureincloud_python_sdk.models.currency import Currency from fattureincloud_python_sdk.models.payment_account import PaymentAccount from fattureincloud_python_sdk.models.received_document_info_default_values import ( @@ -31,11 +29,8 @@ ReceivedDocumentInfoItemsDefaultValues, ) from fattureincloud_python_sdk.models.vat_type import VatType - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class ReceivedDocumentInfo(BaseModel): @@ -54,10 +49,10 @@ class ReceivedDocumentInfo(BaseModel): categories_list: Optional[List[StrictStr]] = Field( default=None, description="Categories list" ) - payment_accounts_list: Optional[List[PaymentAccount]] = Field( + payment_accounts_list: Optional[List[Optional[PaymentAccount]]] = Field( default=None, description="Payments accounts list" ) - vat_types_list: Optional[List[VatType]] = Field( + vat_types_list: Optional[List[Optional[VatType]]] = Field( default=None, description="Vat types list" ) __properties: ClassVar[List[str]] = [ @@ -70,7 +65,11 @@ class ReceivedDocumentInfo(BaseModel): "vat_types_list", ] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -82,7 +81,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ReceivedDocumentInfo from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -96,9 +95,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of default_values @@ -131,7 +132,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ReceivedDocumentInfo from a dict""" if obj is None: return None @@ -141,34 +142,38 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "default_values": ReceivedDocumentInfoDefaultValues.from_dict( - obj.get("default_values") - ) - if obj.get("default_values") is not None - else None, - "items_default_values": ReceivedDocumentInfoItemsDefaultValues.from_dict( - obj.get("items_default_values") - ) - if obj.get("items_default_values") is not None - else None, + "default_values": ( + ReceivedDocumentInfoDefaultValues.from_dict(obj["default_values"]) + if obj.get("default_values") is not None + else None + ), + "items_default_values": ( + ReceivedDocumentInfoItemsDefaultValues.from_dict( + obj["items_default_values"] + ) + if obj.get("items_default_values") is not None + else None + ), "countries_list": obj.get("countries_list"), - "currencies_list": [ - Currency.from_dict(_item) for _item in obj.get("currencies_list") - ] - if obj.get("currencies_list") is not None - else None, + "currencies_list": ( + [Currency.from_dict(_item) for _item in obj["currencies_list"]] + if obj.get("currencies_list") is not None + else None + ), "categories_list": obj.get("categories_list"), - "payment_accounts_list": [ - PaymentAccount.from_dict(_item) - for _item in obj.get("payment_accounts_list") - ] - if obj.get("payment_accounts_list") is not None - else None, - "vat_types_list": [ - VatType.from_dict(_item) for _item in obj.get("vat_types_list") - ] - if obj.get("vat_types_list") is not None - else None, + "payment_accounts_list": ( + [ + PaymentAccount.from_dict(_item) + for _item in obj["payment_accounts_list"] + ] + if obj.get("payment_accounts_list") is not None + else None + ), + "vat_types_list": ( + [VatType.from_dict(_item) for _item in obj["vat_types_list"]] + if obj.get("vat_types_list") is not None + else None + ), } ) return _obj diff --git a/fattureincloud_python_sdk/models/received_document_info_default_values.py b/fattureincloud_python_sdk/models/received_document_info_default_values.py index c3cbe4e9..450d10d0 100644 --- a/fattureincloud_python_sdk/models/received_document_info_default_values.py +++ b/fattureincloud_python_sdk/models/received_document_info_default_values.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,14 +18,10 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel, StrictBool - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self class ReceivedDocumentInfoDefaultValues(BaseModel): @@ -36,7 +32,11 @@ class ReceivedDocumentInfoDefaultValues(BaseModel): detailed: Optional[StrictBool] = None __properties: ClassVar[List[str]] = ["detailed"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -48,7 +48,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ReceivedDocumentInfoDefaultValues from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -62,15 +62,17 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ReceivedDocumentInfoDefaultValues from a dict""" if obj is None: return None diff --git a/fattureincloud_python_sdk/models/received_document_info_items_default_values.py b/fattureincloud_python_sdk/models/received_document_info_items_default_values.py index a28acf99..51ad821f 100644 --- a/fattureincloud_python_sdk/models/received_document_info_items_default_values.py +++ b/fattureincloud_python_sdk/models/received_document_info_items_default_values.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,10 @@ import re # noqa: F401 import json - +from pydantic import BaseModel, Field, StrictFloat, StrictInt from typing import Any, ClassVar, Dict, List, Optional, Union -from pydantic import BaseModel, StrictFloat, StrictInt -from pydantic import Field - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class ReceivedDocumentInfoItemsDefaultValues(BaseModel): @@ -39,7 +34,11 @@ class ReceivedDocumentInfoItemsDefaultValues(BaseModel): ) __properties: ClassVar[List[str]] = ["vat"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -51,7 +50,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ReceivedDocumentInfoItemsDefaultValues from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -65,15 +64,17 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ReceivedDocumentInfoItemsDefaultValues from a dict""" if obj is None: return None diff --git a/fattureincloud_python_sdk/models/received_document_items_list_item.py b/fattureincloud_python_sdk/models/received_document_items_list_item.py index f0abd03f..a4eaa2a3 100644 --- a/fattureincloud_python_sdk/models/received_document_items_list_item.py +++ b/fattureincloud_python_sdk/models/received_document_items_list_item.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,16 +18,11 @@ import re # noqa: F401 import json - +from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union -from pydantic import BaseModel, StrictFloat, StrictInt, StrictStr -from pydantic import Field from fattureincloud_python_sdk.models.vat_type import VatType - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class ReceivedDocumentItemsListItem(BaseModel): @@ -77,7 +72,11 @@ class ReceivedDocumentItemsListItem(BaseModel): "stock", ] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -89,7 +88,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ReceivedDocumentItemsListItem from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -103,9 +102,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of vat @@ -114,7 +115,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ReceivedDocumentItemsListItem from a dict""" if obj is None: return None @@ -132,9 +133,11 @@ def from_dict(cls, obj: Dict) -> Self: "net_price": obj.get("net_price"), "category": obj.get("category"), "qty": obj.get("qty"), - "vat": VatType.from_dict(obj.get("vat")) - if obj.get("vat") is not None - else None, + "vat": ( + VatType.from_dict(obj["vat"]) + if obj.get("vat") is not None + else None + ), "stock": obj.get("stock"), } ) diff --git a/fattureincloud_python_sdk/models/received_document_payments_list_item.py b/fattureincloud_python_sdk/models/received_document_payments_list_item.py index cfc08afb..37bffee3 100644 --- a/fattureincloud_python_sdk/models/received_document_payments_list_item.py +++ b/fattureincloud_python_sdk/models/received_document_payments_list_item.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -19,18 +19,14 @@ import json from datetime import date +from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union -from pydantic import BaseModel, StrictFloat, StrictInt, StrictStr -from pydantic import Field from fattureincloud_python_sdk.models.payment_account import PaymentAccount from fattureincloud_python_sdk.models.received_document_payments_list_item_payment_terms import ( ReceivedDocumentPaymentsListItemPaymentTerms, ) - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class ReceivedDocumentPaymentsListItem(BaseModel): @@ -63,7 +59,11 @@ class ReceivedDocumentPaymentsListItem(BaseModel): "payment_account", ] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -75,7 +75,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ReceivedDocumentPaymentsListItem from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -89,9 +89,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of payment_terms @@ -103,7 +105,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ReceivedDocumentPaymentsListItem from a dict""" if obj is None: return None @@ -117,15 +119,19 @@ def from_dict(cls, obj: Dict) -> Self: "amount": obj.get("amount"), "due_date": obj.get("due_date"), "paid_date": obj.get("paid_date"), - "payment_terms": ReceivedDocumentPaymentsListItemPaymentTerms.from_dict( - obj.get("payment_terms") - ) - if obj.get("payment_terms") is not None - else None, + "payment_terms": ( + ReceivedDocumentPaymentsListItemPaymentTerms.from_dict( + obj["payment_terms"] + ) + if obj.get("payment_terms") is not None + else None + ), "status": obj.get("status"), - "payment_account": PaymentAccount.from_dict(obj.get("payment_account")) - if obj.get("payment_account") is not None - else None, + "payment_account": ( + PaymentAccount.from_dict(obj["payment_account"]) + if obj.get("payment_account") is not None + else None + ), } ) return _obj diff --git a/fattureincloud_python_sdk/models/received_document_payments_list_item_payment_terms.py b/fattureincloud_python_sdk/models/received_document_payments_list_item_payment_terms.py index e98773dd..7755341a 100644 --- a/fattureincloud_python_sdk/models/received_document_payments_list_item_payment_terms.py +++ b/fattureincloud_python_sdk/models/received_document_payments_list_item_payment_terms.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,16 +18,11 @@ import re # noqa: F401 import json - +from pydantic import BaseModel, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt -from pydantic import Field from fattureincloud_python_sdk.models.payment_terms_type import PaymentTermsType - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class ReceivedDocumentPaymentsListItemPaymentTerms(BaseModel): @@ -42,7 +37,11 @@ class ReceivedDocumentPaymentsListItemPaymentTerms(BaseModel): type: Optional[PaymentTermsType] = None __properties: ClassVar[List[str]] = ["days", "type"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -54,7 +53,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ReceivedDocumentPaymentsListItemPaymentTerms from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -68,15 +67,17 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ReceivedDocumentPaymentsListItemPaymentTerms from a dict""" if obj is None: return None diff --git a/fattureincloud_python_sdk/models/received_document_totals.py b/fattureincloud_python_sdk/models/received_document_totals.py index 803e245c..2ba85041 100644 --- a/fattureincloud_python_sdk/models/received_document_totals.py +++ b/fattureincloud_python_sdk/models/received_document_totals.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,10 @@ import re # noqa: F401 import json - +from pydantic import BaseModel, Field, StrictFloat, StrictInt from typing import Any, ClassVar, Dict, List, Optional, Union -from pydantic import BaseModel, StrictFloat, StrictInt -from pydantic import Field - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class ReceivedDocumentTotals(BaseModel): @@ -65,7 +60,11 @@ class ReceivedDocumentTotals(BaseModel): "payments_sum", ] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -77,7 +76,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ReceivedDocumentTotals from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -91,15 +90,17 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ReceivedDocumentTotals from a dict""" if obj is None: return None diff --git a/fattureincloud_python_sdk/models/received_document_type.py b/fattureincloud_python_sdk/models/received_document_type.py index f5f1fc20..3929ba19 100644 --- a/fattureincloud_python_sdk/models/received_document_type.py +++ b/fattureincloud_python_sdk/models/received_document_type.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -15,15 +15,8 @@ from __future__ import annotations import json -import pprint -import re # noqa: F401 from enum import Enum - - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing_extensions import Self class ReceivedDocumentType(str, Enum): diff --git a/fattureincloud_python_sdk/models/schedule_email_request.py b/fattureincloud_python_sdk/models/schedule_email_request.py index 60a55f02..32109554 100644 --- a/fattureincloud_python_sdk/models/schedule_email_request.py +++ b/fattureincloud_python_sdk/models/schedule_email_request.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.email_schedule import EmailSchedule - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class ScheduleEmailRequest(BaseModel): @@ -35,7 +31,11 @@ class ScheduleEmailRequest(BaseModel): data: Optional[EmailSchedule] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -47,7 +47,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of ScheduleEmailRequest from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -61,9 +61,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -72,7 +74,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of ScheduleEmailRequest from a dict""" if obj is None: return None @@ -82,9 +84,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": EmailSchedule.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + EmailSchedule.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/send_e_invoice_request.py b/fattureincloud_python_sdk/models/send_e_invoice_request.py index eafd6543..4b8f66a1 100644 --- a/fattureincloud_python_sdk/models/send_e_invoice_request.py +++ b/fattureincloud_python_sdk/models/send_e_invoice_request.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,20 +18,16 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.send_e_invoice_request_data import ( SendEInvoiceRequestData, ) from fattureincloud_python_sdk.models.send_e_invoice_request_options import ( SendEInvoiceRequestOptions, ) - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class SendEInvoiceRequest(BaseModel): @@ -43,7 +39,11 @@ class SendEInvoiceRequest(BaseModel): options: Optional[SendEInvoiceRequestOptions] = None __properties: ClassVar[List[str]] = ["data", "options"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -55,7 +55,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of SendEInvoiceRequest from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -69,9 +69,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -83,7 +85,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of SendEInvoiceRequest from a dict""" if obj is None: return None @@ -93,12 +95,16 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": SendEInvoiceRequestData.from_dict(obj.get("data")) - if obj.get("data") is not None - else None, - "options": SendEInvoiceRequestOptions.from_dict(obj.get("options")) - if obj.get("options") is not None - else None, + "data": ( + SendEInvoiceRequestData.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ), + "options": ( + SendEInvoiceRequestOptions.from_dict(obj["options"]) + if obj.get("options") is not None + else None + ), } ) return _obj diff --git a/fattureincloud_python_sdk/models/send_e_invoice_request_data.py b/fattureincloud_python_sdk/models/send_e_invoice_request_data.py index 2fc94d3b..a6a23d95 100644 --- a/fattureincloud_python_sdk/models/send_e_invoice_request_data.py +++ b/fattureincloud_python_sdk/models/send_e_invoice_request_data.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,10 @@ import re # noqa: F401 import json - +from pydantic import BaseModel, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictStr -from pydantic import Field - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class SendEInvoiceRequestData(BaseModel): @@ -44,7 +39,11 @@ class SendEInvoiceRequestData(BaseModel): ) __properties: ClassVar[List[str]] = ["cassa_type", "withholding_tax_causal"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -56,7 +55,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of SendEInvoiceRequestData from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -70,15 +69,17 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of SendEInvoiceRequestData from a dict""" if obj is None: return None diff --git a/fattureincloud_python_sdk/models/send_e_invoice_request_options.py b/fattureincloud_python_sdk/models/send_e_invoice_request_options.py index b67f2c52..9188f6a7 100644 --- a/fattureincloud_python_sdk/models/send_e_invoice_request_options.py +++ b/fattureincloud_python_sdk/models/send_e_invoice_request_options.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,10 @@ import re # noqa: F401 import json - +from pydantic import BaseModel, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictBool -from pydantic import Field - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class SendEInvoiceRequestOptions(BaseModel): @@ -40,7 +35,11 @@ class SendEInvoiceRequestOptions(BaseModel): ) __properties: ClassVar[List[str]] = ["dry_run"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -52,7 +51,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of SendEInvoiceRequestOptions from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -66,15 +65,17 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of SendEInvoiceRequestOptions from a dict""" if obj is None: return None diff --git a/fattureincloud_python_sdk/models/send_e_invoice_response.py b/fattureincloud_python_sdk/models/send_e_invoice_response.py index 580a8933..dfa01393 100644 --- a/fattureincloud_python_sdk/models/send_e_invoice_response.py +++ b/fattureincloud_python_sdk/models/send_e_invoice_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,17 +18,13 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.send_e_invoice_response_data import ( SendEInvoiceResponseData, ) - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class SendEInvoiceResponse(BaseModel): @@ -39,7 +35,11 @@ class SendEInvoiceResponse(BaseModel): data: Optional[SendEInvoiceResponseData] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -51,7 +51,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of SendEInvoiceResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -65,9 +65,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -76,7 +78,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of SendEInvoiceResponse from a dict""" if obj is None: return None @@ -86,9 +88,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": SendEInvoiceResponseData.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + SendEInvoiceResponseData.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/send_e_invoice_response_data.py b/fattureincloud_python_sdk/models/send_e_invoice_response_data.py index bcb5dd9a..75a47a99 100644 --- a/fattureincloud_python_sdk/models/send_e_invoice_response_data.py +++ b/fattureincloud_python_sdk/models/send_e_invoice_response_data.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,10 @@ import re # noqa: F401 import json - +from pydantic import BaseModel, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictStr -from pydantic import Field - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class SendEInvoiceResponseData(BaseModel): @@ -40,7 +35,11 @@ class SendEInvoiceResponseData(BaseModel): ) __properties: ClassVar[List[str]] = ["name", "date"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -52,7 +51,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of SendEInvoiceResponseData from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -66,15 +65,17 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of SendEInvoiceResponseData from a dict""" if obj is None: return None diff --git a/fattureincloud_python_sdk/models/sender_email.py b/fattureincloud_python_sdk/models/sender_email.py index f6a4720a..7f0b5d49 100644 --- a/fattureincloud_python_sdk/models/sender_email.py +++ b/fattureincloud_python_sdk/models/sender_email.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,10 @@ import re # noqa: F401 import json - +from pydantic import BaseModel, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt, StrictStr -from pydantic import Field - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class SenderEmail(BaseModel): @@ -38,7 +33,11 @@ class SenderEmail(BaseModel): email: Optional[StrictStr] = Field(default=None, description="Sender email address") __properties: ClassVar[List[str]] = ["id", "email"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -50,7 +49,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of SenderEmail from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -64,15 +63,17 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of SenderEmail from a dict""" if obj is None: return None diff --git a/fattureincloud_python_sdk/models/show_totals_mode.py b/fattureincloud_python_sdk/models/show_totals_mode.py index 64aedfcf..ab4553f7 100644 --- a/fattureincloud_python_sdk/models/show_totals_mode.py +++ b/fattureincloud_python_sdk/models/show_totals_mode.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -15,15 +15,8 @@ from __future__ import annotations import json -import pprint -import re # noqa: F401 from enum import Enum - - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing_extensions import Self class ShowTotalsMode(str, Enum): diff --git a/fattureincloud_python_sdk/models/supplier.py b/fattureincloud_python_sdk/models/supplier.py index a74715cc..ffd352fc 100644 --- a/fattureincloud_python_sdk/models/supplier.py +++ b/fattureincloud_python_sdk/models/supplier.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,16 +18,11 @@ import re # noqa: F401 import json - +from pydantic import BaseModel, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt, StrictStr -from pydantic import Field from fattureincloud_python_sdk.models.supplier_type import SupplierType - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class Supplier(BaseModel): @@ -112,7 +107,11 @@ class Supplier(BaseModel): "updated_at", ] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -124,7 +123,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of Supplier from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -138,15 +137,17 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of Supplier from a dict""" if obj is None: return None diff --git a/fattureincloud_python_sdk/models/supplier_type.py b/fattureincloud_python_sdk/models/supplier_type.py index 9069fed4..78989fb3 100644 --- a/fattureincloud_python_sdk/models/supplier_type.py +++ b/fattureincloud_python_sdk/models/supplier_type.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -15,15 +15,8 @@ from __future__ import annotations import json -import pprint -import re # noqa: F401 from enum import Enum - - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing_extensions import Self class SupplierType(str, Enum): diff --git a/fattureincloud_python_sdk/models/transform_issued_document_response.py b/fattureincloud_python_sdk/models/transform_issued_document_response.py index e0d419ea..4dfb2e69 100644 --- a/fattureincloud_python_sdk/models/transform_issued_document_response.py +++ b/fattureincloud_python_sdk/models/transform_issued_document_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,18 +18,14 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.issued_document import IssuedDocument from fattureincloud_python_sdk.models.issued_document_options import ( IssuedDocumentOptions, ) - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class TransformIssuedDocumentResponse(BaseModel): @@ -41,7 +37,11 @@ class TransformIssuedDocumentResponse(BaseModel): options: Optional[IssuedDocumentOptions] = None __properties: ClassVar[List[str]] = ["data", "options"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -53,7 +53,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of TransformIssuedDocumentResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -67,9 +67,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -81,7 +83,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of TransformIssuedDocumentResponse from a dict""" if obj is None: return None @@ -91,12 +93,16 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": IssuedDocument.from_dict(obj.get("data")) - if obj.get("data") is not None - else None, - "options": IssuedDocumentOptions.from_dict(obj.get("options")) - if obj.get("options") is not None - else None, + "data": ( + IssuedDocument.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ), + "options": ( + IssuedDocumentOptions.from_dict(obj["options"]) + if obj.get("options") is not None + else None + ), } ) return _obj diff --git a/fattureincloud_python_sdk/models/upload_archive_attachment_response.py b/fattureincloud_python_sdk/models/upload_archive_attachment_response.py index 38540b9f..367e5286 100644 --- a/fattureincloud_python_sdk/models/upload_archive_attachment_response.py +++ b/fattureincloud_python_sdk/models/upload_archive_attachment_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.attachment_data import AttachmentData - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class UploadArchiveAttachmentResponse(BaseModel): @@ -37,7 +33,11 @@ class UploadArchiveAttachmentResponse(BaseModel): data: Optional[AttachmentData] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -49,7 +49,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of UploadArchiveAttachmentResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -63,9 +63,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -74,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of UploadArchiveAttachmentResponse from a dict""" if obj is None: return None @@ -84,9 +86,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": AttachmentData.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + AttachmentData.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/upload_f24_attachment_response.py b/fattureincloud_python_sdk/models/upload_f24_attachment_response.py index cb6c5e4a..afc0d357 100644 --- a/fattureincloud_python_sdk/models/upload_f24_attachment_response.py +++ b/fattureincloud_python_sdk/models/upload_f24_attachment_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.attachment_data import AttachmentData - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class UploadF24AttachmentResponse(BaseModel): @@ -37,7 +33,11 @@ class UploadF24AttachmentResponse(BaseModel): data: Optional[AttachmentData] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -49,7 +49,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of UploadF24AttachmentResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -63,9 +63,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -74,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of UploadF24AttachmentResponse from a dict""" if obj is None: return None @@ -84,9 +86,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": AttachmentData.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + AttachmentData.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/upload_issued_document_attachment_response.py b/fattureincloud_python_sdk/models/upload_issued_document_attachment_response.py index 463cb62e..a4b58574 100644 --- a/fattureincloud_python_sdk/models/upload_issued_document_attachment_response.py +++ b/fattureincloud_python_sdk/models/upload_issued_document_attachment_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.attachment_data import AttachmentData - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class UploadIssuedDocumentAttachmentResponse(BaseModel): @@ -37,7 +33,11 @@ class UploadIssuedDocumentAttachmentResponse(BaseModel): data: Optional[AttachmentData] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -49,7 +49,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of UploadIssuedDocumentAttachmentResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -63,9 +63,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -74,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of UploadIssuedDocumentAttachmentResponse from a dict""" if obj is None: return None @@ -84,9 +86,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": AttachmentData.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + AttachmentData.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/upload_received_document_attachment_response.py b/fattureincloud_python_sdk/models/upload_received_document_attachment_response.py index bd6b9b8f..1bcc9323 100644 --- a/fattureincloud_python_sdk/models/upload_received_document_attachment_response.py +++ b/fattureincloud_python_sdk/models/upload_received_document_attachment_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,11 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.attachment_data import AttachmentData - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class UploadReceivedDocumentAttachmentResponse(BaseModel): @@ -37,7 +33,11 @@ class UploadReceivedDocumentAttachmentResponse(BaseModel): data: Optional[AttachmentData] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -49,7 +49,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of UploadReceivedDocumentAttachmentResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -63,9 +63,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -74,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of UploadReceivedDocumentAttachmentResponse from a dict""" if obj is None: return None @@ -84,9 +86,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": AttachmentData.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + AttachmentData.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/user.py b/fattureincloud_python_sdk/models/user.py index 6264bc36..aba06134 100644 --- a/fattureincloud_python_sdk/models/user.py +++ b/fattureincloud_python_sdk/models/user.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,10 @@ import re # noqa: F401 import json - +from pydantic import BaseModel, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt, StrictStr -from pydantic import Field - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class User(BaseModel): @@ -51,7 +46,11 @@ class User(BaseModel): "picture", ] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -63,7 +62,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of User from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -77,15 +76,17 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of User from a dict""" if obj is None: return None diff --git a/fattureincloud_python_sdk/models/user_company_role.py b/fattureincloud_python_sdk/models/user_company_role.py index 30481526..2b2235d6 100644 --- a/fattureincloud_python_sdk/models/user_company_role.py +++ b/fattureincloud_python_sdk/models/user_company_role.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -15,15 +15,8 @@ from __future__ import annotations import json -import pprint -import re # noqa: F401 from enum import Enum - - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing_extensions import Self class UserCompanyRole(str, Enum): diff --git a/fattureincloud_python_sdk/models/vat_item.py b/fattureincloud_python_sdk/models/vat_item.py index 5c720b3f..2695941f 100644 --- a/fattureincloud_python_sdk/models/vat_item.py +++ b/fattureincloud_python_sdk/models/vat_item.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,10 @@ import re # noqa: F401 import json - +from pydantic import BaseModel, Field, StrictFloat, StrictInt from typing import Any, ClassVar, Dict, List, Optional, Union -from pydantic import BaseModel, StrictFloat, StrictInt -from pydantic import Field - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class VatItem(BaseModel): @@ -42,7 +37,11 @@ class VatItem(BaseModel): ) __properties: ClassVar[List[str]] = ["amount_net", "amount_vat"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -54,7 +53,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of VatItem from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -68,15 +67,17 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of VatItem from a dict""" if obj is None: return None diff --git a/fattureincloud_python_sdk/models/vat_kind.py b/fattureincloud_python_sdk/models/vat_kind.py index ad450ca9..773bb7fe 100644 --- a/fattureincloud_python_sdk/models/vat_kind.py +++ b/fattureincloud_python_sdk/models/vat_kind.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -15,15 +15,8 @@ from __future__ import annotations import json -import pprint -import re # noqa: F401 from enum import Enum - - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing_extensions import Self class VatKind(str, Enum): diff --git a/fattureincloud_python_sdk/models/vat_type.py b/fattureincloud_python_sdk/models/vat_type.py index 3a55f3ac..6669ba28 100644 --- a/fattureincloud_python_sdk/models/vat_type.py +++ b/fattureincloud_python_sdk/models/vat_type.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,10 @@ import re # noqa: F401 import json - +from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union -from pydantic import BaseModel, StrictBool, StrictFloat, StrictInt, StrictStr -from pydantic import Field - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class VatType(BaseModel): @@ -71,7 +66,11 @@ class VatType(BaseModel): "is_disabled", ] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -83,7 +82,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of VatType from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -98,17 +97,21 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * OpenAPI `readOnly` fields are excluded. """ + excluded_fields: Set[str] = set( + [ + "editable", + ] + ) + _dict = self.model_dump( by_alias=True, - exclude={ - "editable", - }, + exclude=excluded_fields, exclude_none=True, ) return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of VatType from a dict""" if obj is None: return None diff --git a/fattureincloud_python_sdk/models/verify_e_invoice_xml_error_response.py b/fattureincloud_python_sdk/models/verify_e_invoice_xml_error_response.py index c2b94bc4..d5afbee1 100644 --- a/fattureincloud_python_sdk/models/verify_e_invoice_xml_error_response.py +++ b/fattureincloud_python_sdk/models/verify_e_invoice_xml_error_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,20 +18,16 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.verify_e_invoice_xml_error_response_error import ( VerifyEInvoiceXmlErrorResponseError, ) from fattureincloud_python_sdk.models.verify_e_invoice_xml_error_response_extra import ( VerifyEInvoiceXmlErrorResponseExtra, ) - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class VerifyEInvoiceXmlErrorResponse(BaseModel): @@ -43,7 +39,11 @@ class VerifyEInvoiceXmlErrorResponse(BaseModel): extra: Optional[VerifyEInvoiceXmlErrorResponseExtra] = None __properties: ClassVar[List[str]] = ["error", "extra"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -55,7 +55,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of VerifyEInvoiceXmlErrorResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -69,9 +69,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of error @@ -83,7 +85,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of VerifyEInvoiceXmlErrorResponse from a dict""" if obj is None: return None @@ -93,12 +95,16 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "error": VerifyEInvoiceXmlErrorResponseError.from_dict(obj.get("error")) - if obj.get("error") is not None - else None, - "extra": VerifyEInvoiceXmlErrorResponseExtra.from_dict(obj.get("extra")) - if obj.get("extra") is not None - else None, + "error": ( + VerifyEInvoiceXmlErrorResponseError.from_dict(obj["error"]) + if obj.get("error") is not None + else None + ), + "extra": ( + VerifyEInvoiceXmlErrorResponseExtra.from_dict(obj["extra"]) + if obj.get("extra") is not None + else None + ), } ) return _obj diff --git a/fattureincloud_python_sdk/models/verify_e_invoice_xml_error_response_error.py b/fattureincloud_python_sdk/models/verify_e_invoice_xml_error_response_error.py index 2cf5a686..637328f6 100644 --- a/fattureincloud_python_sdk/models/verify_e_invoice_xml_error_response_error.py +++ b/fattureincloud_python_sdk/models/verify_e_invoice_xml_error_response_error.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,17 +18,13 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel, StrictStr +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.verify_e_invoice_xml_error_response_error_validation_result import ( VerifyEInvoiceXmlErrorResponseErrorValidationResult, ) - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class VerifyEInvoiceXmlErrorResponseError(BaseModel): @@ -37,12 +33,16 @@ class VerifyEInvoiceXmlErrorResponseError(BaseModel): """ # noqa: E501 message: Optional[StrictStr] = None - validation_result: Optional[ - VerifyEInvoiceXmlErrorResponseErrorValidationResult - ] = None + validation_result: Optional[VerifyEInvoiceXmlErrorResponseErrorValidationResult] = ( + None + ) __properties: ClassVar[List[str]] = ["message", "validation_result"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -54,7 +54,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of VerifyEInvoiceXmlErrorResponseError from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -68,9 +68,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of validation_result @@ -79,7 +81,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of VerifyEInvoiceXmlErrorResponseError from a dict""" if obj is None: return None @@ -90,11 +92,13 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { "message": obj.get("message"), - "validation_result": VerifyEInvoiceXmlErrorResponseErrorValidationResult.from_dict( - obj.get("validation_result") - ) - if obj.get("validation_result") is not None - else None, + "validation_result": ( + VerifyEInvoiceXmlErrorResponseErrorValidationResult.from_dict( + obj["validation_result"] + ) + if obj.get("validation_result") is not None + else None + ), } ) return _obj diff --git a/fattureincloud_python_sdk/models/verify_e_invoice_xml_error_response_error_validation_result.py b/fattureincloud_python_sdk/models/verify_e_invoice_xml_error_response_error_validation_result.py index 3e8a03ea..eacc6654 100644 --- a/fattureincloud_python_sdk/models/verify_e_invoice_xml_error_response_error_validation_result.py +++ b/fattureincloud_python_sdk/models/verify_e_invoice_xml_error_response_error_validation_result.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,14 +18,10 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel, StrictStr - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self class VerifyEInvoiceXmlErrorResponseErrorValidationResult(BaseModel): @@ -36,7 +32,11 @@ class VerifyEInvoiceXmlErrorResponseErrorValidationResult(BaseModel): xml_errors: Optional[List[StrictStr]] = None __properties: ClassVar[List[str]] = ["xml_errors"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -48,7 +48,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of VerifyEInvoiceXmlErrorResponseErrorValidationResult from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -62,15 +62,17 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of VerifyEInvoiceXmlErrorResponseErrorValidationResult from a dict""" if obj is None: return None diff --git a/fattureincloud_python_sdk/models/verify_e_invoice_xml_error_response_extra.py b/fattureincloud_python_sdk/models/verify_e_invoice_xml_error_response_extra.py index f14cb325..36603de7 100644 --- a/fattureincloud_python_sdk/models/verify_e_invoice_xml_error_response_extra.py +++ b/fattureincloud_python_sdk/models/verify_e_invoice_xml_error_response_extra.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,14 +18,10 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel, StrictStr - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self class VerifyEInvoiceXmlErrorResponseExtra(BaseModel): @@ -36,7 +32,11 @@ class VerifyEInvoiceXmlErrorResponseExtra(BaseModel): errors: Optional[List[StrictStr]] = None __properties: ClassVar[List[str]] = ["errors"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -48,7 +48,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of VerifyEInvoiceXmlErrorResponseExtra from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -62,15 +62,17 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of VerifyEInvoiceXmlErrorResponseExtra from a dict""" if obj is None: return None diff --git a/fattureincloud_python_sdk/models/verify_e_invoice_xml_response.py b/fattureincloud_python_sdk/models/verify_e_invoice_xml_response.py index 5bab02fc..a961c6ef 100644 --- a/fattureincloud_python_sdk/models/verify_e_invoice_xml_response.py +++ b/fattureincloud_python_sdk/models/verify_e_invoice_xml_response.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,17 +18,13 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.verify_e_invoice_xml_response_data import ( VerifyEInvoiceXmlResponseData, ) - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class VerifyEInvoiceXmlResponse(BaseModel): @@ -39,7 +35,11 @@ class VerifyEInvoiceXmlResponse(BaseModel): data: Optional[VerifyEInvoiceXmlResponseData] = None __properties: ClassVar[List[str]] = ["data"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -51,7 +51,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of VerifyEInvoiceXmlResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -65,9 +65,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of data @@ -76,7 +78,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of VerifyEInvoiceXmlResponse from a dict""" if obj is None: return None @@ -86,9 +88,11 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate( { - "data": VerifyEInvoiceXmlResponseData.from_dict(obj.get("data")) - if obj.get("data") is not None - else None + "data": ( + VerifyEInvoiceXmlResponseData.from_dict(obj["data"]) + if obj.get("data") is not None + else None + ) } ) return _obj diff --git a/fattureincloud_python_sdk/models/verify_e_invoice_xml_response_data.py b/fattureincloud_python_sdk/models/verify_e_invoice_xml_response_data.py index 5adcde43..04fcb3c8 100644 --- a/fattureincloud_python_sdk/models/verify_e_invoice_xml_response_data.py +++ b/fattureincloud_python_sdk/models/verify_e_invoice_xml_response_data.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,15 +18,10 @@ import re # noqa: F401 import json - +from pydantic import BaseModel, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictBool -from pydantic import Field - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class VerifyEInvoiceXmlResponseData(BaseModel): @@ -39,7 +34,11 @@ class VerifyEInvoiceXmlResponseData(BaseModel): ) __properties: ClassVar[List[str]] = ["success"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -51,7 +50,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of VerifyEInvoiceXmlResponseData from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -65,15 +64,17 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of VerifyEInvoiceXmlResponseData from a dict""" if obj is None: return None diff --git a/fattureincloud_python_sdk/models/webhooks_subscription.py b/fattureincloud_python_sdk/models/webhooks_subscription.py index 7aefa6b3..2e9af8d3 100644 --- a/fattureincloud_python_sdk/models/webhooks_subscription.py +++ b/fattureincloud_python_sdk/models/webhooks_subscription.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,19 +18,14 @@ import re # noqa: F401 import json - +from pydantic import BaseModel, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictBool, StrictStr -from pydantic import Field from fattureincloud_python_sdk.models.event_type import EventType from fattureincloud_python_sdk.models.webhooks_subscription_config import ( WebhooksSubscriptionConfig, ) - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class WebhooksSubscription(BaseModel): @@ -54,7 +49,11 @@ class WebhooksSubscription(BaseModel): config: Optional[WebhooksSubscriptionConfig] = None __properties: ClassVar[List[str]] = ["id", "sink", "verified", "types", "config"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -66,7 +65,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of WebhooksSubscription from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -80,9 +79,11 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) # override the default output from pydantic by calling `to_dict()` of config @@ -91,7 +92,7 @@ def to_dict(self) -> Dict[str, Any]: return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of WebhooksSubscription from a dict""" if obj is None: return None @@ -105,9 +106,11 @@ def from_dict(cls, obj: Dict) -> Self: "sink": obj.get("sink"), "verified": obj.get("verified"), "types": obj.get("types"), - "config": WebhooksSubscriptionConfig.from_dict(obj.get("config")) - if obj.get("config") is not None - else None, + "config": ( + WebhooksSubscriptionConfig.from_dict(obj["config"]) + if obj.get("config") is not None + else None + ), } ) return _obj diff --git a/fattureincloud_python_sdk/models/webhooks_subscription_config.py b/fattureincloud_python_sdk/models/webhooks_subscription_config.py index 83a1f448..95b83661 100644 --- a/fattureincloud_python_sdk/models/webhooks_subscription_config.py +++ b/fattureincloud_python_sdk/models/webhooks_subscription_config.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,17 +18,13 @@ import re # noqa: F401 import json - -from typing import Any, ClassVar, Dict, List, Optional from pydantic import BaseModel +from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.webhooks_subscription_mapping import ( WebhooksSubscriptionMapping, ) - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing import Optional, Set +from typing_extensions import Self class WebhooksSubscriptionConfig(BaseModel): @@ -39,7 +35,11 @@ class WebhooksSubscriptionConfig(BaseModel): mapping: Optional[WebhooksSubscriptionMapping] = None __properties: ClassVar[List[str]] = ["mapping"] - model_config = {"populate_by_name": True, "validate_assignment": True} + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } def to_str(self) -> str: """Returns the string representation of the model using alias""" @@ -51,7 +51,7 @@ def to_json(self) -> str: return json.dumps(self.to_dict()) @classmethod - def from_json(cls, json_str: str) -> Self: + def from_json(cls, json_str: str) -> Optional[Self]: """Create an instance of WebhooksSubscriptionConfig from a JSON string""" return cls.from_dict(json.loads(json_str)) @@ -65,15 +65,17 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ + excluded_fields: Set[str] = set([]) + _dict = self.model_dump( by_alias=True, - exclude={}, + exclude=excluded_fields, exclude_none=True, ) return _dict @classmethod - def from_dict(cls, obj: Dict) -> Self: + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: """Create an instance of WebhooksSubscriptionConfig from a dict""" if obj is None: return None diff --git a/fattureincloud_python_sdk/models/webhooks_subscription_mapping.py b/fattureincloud_python_sdk/models/webhooks_subscription_mapping.py index 53f753eb..9a8557eb 100644 --- a/fattureincloud_python_sdk/models/webhooks_subscription_mapping.py +++ b/fattureincloud_python_sdk/models/webhooks_subscription_mapping.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -15,15 +15,8 @@ from __future__ import annotations import json -import pprint -import re # noqa: F401 from enum import Enum - - -try: - from typing import Self -except ImportError: - from typing_extensions import Self +from typing_extensions import Self class WebhooksSubscriptionMapping(str, Enum): diff --git a/fattureincloud_python_sdk/oauth2/scopes.py b/fattureincloud_python_sdk/oauth2/scopes.py index a4299c71..87bdec25 100644 --- a/fattureincloud_python_sdk/oauth2/scopes.py +++ b/fattureincloud_python_sdk/oauth2/scopes.py @@ -2,6 +2,7 @@ class Scope(Enum): + # Read permission to the Clients registry ENTITY_CLIENTS_READ = "entity.clients:r" diff --git a/fattureincloud_python_sdk/rest.py b/fattureincloud_python_sdk/rest.py index 105b8c1d..96cfca02 100644 --- a/fattureincloud_python_sdk/rest.py +++ b/fattureincloud_python_sdk/rest.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,10 +22,22 @@ from fattureincloud_python_sdk.exceptions import ApiException, ApiValueError +SUPPORTED_SOCKS_PROXIES = {"socks5", "socks5h", "socks4", "socks4a"} RESTResponseType = urllib3.HTTPResponse +def is_socks_proxy_url(url): + if url is None: + return False + split_section = url.split("://") + if len(split_section) < 2: + return False + else: + return split_section[0].lower() in SUPPORTED_SOCKS_PROXIES + + class RESTResponse(io.IOBase): + def __init__(self, resp) -> None: self.response = resp self.status = resp.status @@ -47,6 +59,7 @@ def getheader(self, name, default=None): class RESTClientObject: + def __init__(self, configuration) -> None: # urllib3.PoolManager will pass all kw parameters to connectionpool # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501 @@ -59,38 +72,43 @@ def __init__(self, configuration) -> None: else: cert_reqs = ssl.CERT_NONE - addition_pool_args = {} + pool_args = { + "cert_reqs": cert_reqs, + "ca_certs": configuration.ssl_ca_cert, + "cert_file": configuration.cert_file, + "key_file": configuration.key_file, + } if configuration.assert_hostname is not None: - addition_pool_args["assert_hostname"] = configuration.assert_hostname + pool_args["assert_hostname"] = configuration.assert_hostname if configuration.retries is not None: - addition_pool_args["retries"] = configuration.retries + pool_args["retries"] = configuration.retries if configuration.tls_server_name: - addition_pool_args["server_hostname"] = configuration.tls_server_name + pool_args["server_hostname"] = configuration.tls_server_name if configuration.socket_options is not None: - addition_pool_args["socket_options"] = configuration.socket_options + pool_args["socket_options"] = configuration.socket_options + + if configuration.connection_pool_maxsize is not None: + pool_args["maxsize"] = configuration.connection_pool_maxsize # https pool manager + self.pool_manager: urllib3.PoolManager + if configuration.proxy: - self.pool_manager = urllib3.ProxyManager( - cert_reqs=cert_reqs, - ca_certs=configuration.ssl_ca_cert, - cert_file=configuration.cert_file, - key_file=configuration.key_file, - proxy_url=configuration.proxy, - proxy_headers=configuration.proxy_headers, - **addition_pool_args - ) + if is_socks_proxy_url(configuration.proxy): + from urllib3.contrib.socks import SOCKSProxyManager + + pool_args["proxy_url"] = configuration.proxy + pool_args["headers"] = configuration.proxy_headers + self.pool_manager = SOCKSProxyManager(**pool_args) + else: + pool_args["proxy_url"] = configuration.proxy + pool_args["proxy_headers"] = configuration.proxy_headers + self.pool_manager = urllib3.ProxyManager(**pool_args) else: - self.pool_manager = urllib3.PoolManager( - cert_reqs=cert_reqs, - ca_certs=configuration.ssl_ca_cert, - cert_file=configuration.cert_file, - key_file=configuration.key_file, - **addition_pool_args - ) + self.pool_manager = urllib3.PoolManager(**pool_args) def request( self, @@ -138,6 +156,7 @@ def request( try: # For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE` if method in ["POST", "PUT", "PATCH", "OPTIONS", "DELETE"]: + # no content type provided or payload is json content_type = headers.get("Content-Type") if not content_type or re.search("json", content_type, re.IGNORECASE): @@ -177,18 +196,27 @@ def request( preload_content=False, ) # Pass a `string` parameter directly in the body to support - # other content types than Json when `body` argument is - # provided in serialized form + # other content types than JSON when `body` argument is + # provided in serialized form. elif isinstance(body, str) or isinstance(body, bytes): - request_body = body r = self.pool_manager.request( method, url, - body=request_body, + body=body, timeout=timeout, headers=headers, preload_content=False, ) + elif headers["Content-Type"] == "text/plain" and isinstance(body, bool): + request_body = "true" if body else "false" + r = self.pool_manager.request( + method, + url, + body=request_body, + preload_content=False, + timeout=timeout, + headers=headers, + ) else: # Cannot generate the request from given parameters msg = """Cannot prepare a request message for provided diff --git a/pyproject.toml b/pyproject.toml index cd591672..d02908fd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "fattureincloud_python_sdk" -version = "2.0.17" +version = "2.0.18" description = "Fatture in Cloud API v2 - API Reference" authors = ["Fatture in Cloud "] license = "MIT" @@ -21,6 +21,9 @@ typing-extensions = ">=4.7.1" pytest = ">=7.2.1" tox = ">=3.9.0" flake8 = ">=4.0.0" +types-python-dateutil = ">=2.8.19.14" +mypy = "1.4.1" + [build-system] requires = ["setuptools"] @@ -28,3 +31,41 @@ build-backend = "setuptools.build_meta" [tool.pylint.'MESSAGES CONTROL'] extension-pkg-whitelist = "pydantic" + +[tool.mypy] +files = [ + "fattureincloud_python_sdk", + #"test", # auto-generated tests + "tests", # hand-written tests +] +# TODO: enable "strict" once all these individual checks are passing +# strict = true + +# List from: https://mypy.readthedocs.io/en/stable/existing_code.html#introduce-stricter-options +warn_unused_configs = true +warn_redundant_casts = true +warn_unused_ignores = true + +## Getting these passing should be easy +strict_equality = true +strict_concatenate = true + +## Strongly recommend enabling this one as soon as you can +check_untyped_defs = true + +## These shouldn't be too much additional work, but may be tricky to +## get passing if you use a lot of untyped libraries +disallow_subclassing_any = true +disallow_untyped_decorators = true +disallow_any_generics = true + +### These next few are various gradations of forcing use of type annotations +#disallow_untyped_calls = true +#disallow_incomplete_defs = true +#disallow_untyped_defs = true +# +### This one isn't too hard to get passing, but return on investment is lower +#no_implicit_reexport = true +# +### This one can be tricky to get passing if you use a lot of untyped libraries +#warn_return_any = true diff --git a/sdk-version.yaml b/sdk-version.yaml index 382249ec..eefda0f6 100644 --- a/sdk-version.yaml +++ b/sdk-version.yaml @@ -1,2 +1,2 @@ info: - version: 2.0.17 + version: 2.0.18 diff --git a/setup.py b/setup.py index 68f6dce1..c9b7f82f 100644 --- a/setup.py +++ b/setup.py @@ -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.0.30 + The version of the OpenAPI document: 2.0.32 Contact: info@fattureincloud.it Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,7 +22,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools NAME = "fattureincloud-python-sdk" -VERSION = "2.0.17" +VERSION = "2.0.18" PYTHON_REQUIRES = ">=3.7" REQUIRES = [ "urllib3 >= 1.26.8, < 2.1.0", diff --git a/test-requirements.txt b/test-requirements.txt index 3a0d0b93..8e6d8cb1 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1,3 +1,5 @@ pytest~=7.1.3 pytest-cov>=2.8.1 pytest-randomly>=3.12.0 +mypy>=1.4.1 +types-python-dateutil>=2.8.19 diff --git a/test/test_archive_api.py b/test/test_archive_api.py index 1494deed..0eb563d0 100644 --- a/test/test_archive_api.py +++ b/test/test_archive_api.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import unittest import unittest.mock import datetime diff --git a/test/test_archive_document.py b/test/test_archive_document.py index 81d769e8..87b409ab 100644 --- a/test/test_archive_document.py +++ b/test/test_archive_document.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import unittest import json import datetime diff --git a/test/test_attachment_data.py b/test/test_attachment_data.py index 921cbf71..2862707b 100644 --- a/test/test_attachment_data.py +++ b/test/test_attachment_data.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_cashbook_entry.py b/test/test_cashbook_entry.py index 57217283..1354ebcf 100644 --- a/test/test_cashbook_entry.py +++ b/test/test_cashbook_entry.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_cashbook_entry_document.py b/test/test_cashbook_entry_document.py index 52d21911..880d9817 100644 --- a/test/test_cashbook_entry_document.py +++ b/test/test_cashbook_entry_document.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_cashbook_entry_kind.py b/test/test_cashbook_entry_kind.py index 34801fe0..d4921f80 100644 --- a/test/test_cashbook_entry_kind.py +++ b/test/test_cashbook_entry_kind.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_cashbook_entry_type.py b/test/test_cashbook_entry_type.py index af3f6574..919190a3 100644 --- a/test/test_cashbook_entry_type.py +++ b/test/test_cashbook_entry_type.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_city.py b/test/test_city.py index 1831c9d8..a89dc12b 100644 --- a/test/test_city.py +++ b/test/test_city.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_client.py b/test/test_client.py index f9852a40..384f107a 100644 --- a/test/test_client.py +++ b/test/test_client.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_client_type.py b/test/test_client_type.py index 8dd2ec5f..30d3dac8 100644 --- a/test/test_client_type.py +++ b/test/test_client_type.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_clients_api.py b/test/test_clients_api.py index 655afed9..da23574e 100644 --- a/test/test_clients_api.py +++ b/test/test_clients_api.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import unittest import unittest.mock from fattureincloud_python_sdk.models.payment_terms_type import PaymentTermsType diff --git a/test/test_companies_api.py b/test/test_companies_api.py index f3e0a714..e8d2be7e 100644 --- a/test/test_companies_api.py +++ b/test/test_companies_api.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import unittest import unittest.mock import fattureincloud_python_sdk diff --git a/test/test_company.py b/test/test_company.py index dd881aa8..c3fb5465 100644 --- a/test/test_company.py +++ b/test/test_company.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest @@ -18,6 +17,9 @@ from functions import create_from_json from fattureincloud_python_sdk.models.company_type import CompanyType from fattureincloud_python_sdk.models.controlled_company import ControlledCompany +from fattureincloud_python_sdk.models.fatture_in_cloud_plan_type import ( + FattureInCloudPlanType, +) globals()["CompanyType"] = CompanyType globals()["ControlledCompany"] = ControlledCompany @@ -42,6 +44,8 @@ def testCompany(self): access_token="zpaiefapfjaojf56546456456", connection_id=2, tax_code="0123456789", + fic_plan=FattureInCloudPlanType("standard"), + fic_license_expire="2024-10-10", controlled_companies=[ ControlledCompany( id=2, @@ -61,7 +65,7 @@ def testCompany(self): ), ], ) - expected_json = '{"id": 1, "name": "mario srl", "type": "company", "access_token": "zpaiefapfjaojf56546456456", "controlled_companies": [{"id": 2, "name": "mario2 srl", "type": "company", "access_token": "zpaiefadpfjaojf56546456456", "connection_id": 2.0, "tax_code": "01234567d9"}, {"id": 3, "name": "mario4 srl", "type": "company", "access_token": "zpa4efadpfjaojf56546456456", "connection_id": 2.0, "tax_code": "01234567df"}], "connection_id": 2, "tax_code": "0123456789"}' + expected_json = '{"id": 1, "name": "mario srl", "type": "company", "access_token": "zpaiefapfjaojf56546456456", "controlled_companies": [{"id": 2, "name": "mario2 srl", "type": "company", "access_token": "zpaiefadpfjaojf56546456456", "connection_id": 2.0, "tax_code": "01234567d9"}, {"id": 3, "name": "mario4 srl", "type": "company", "access_token": "zpa4efadpfjaojf56546456456", "connection_id": 2.0, "tax_code": "01234567df"}], "fic_license_expire": "2024-10-10", "fic_plan": "standard", "connection_id": 2, "tax_code": "0123456789"}' actual_json = json.dumps(model.to_dict(), default=json_serial) assert actual_json == expected_json diff --git a/test/test_company_info.py b/test/test_company_info.py index f94985c0..fe539bc4 100644 --- a/test/test_company_info.py +++ b/test/test_company_info.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_company_info_access_info.py b/test/test_company_info_access_info.py index 1d09c755..8c25a9a6 100644 --- a/test/test_company_info_access_info.py +++ b/test/test_company_info_access_info.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - from doctest import master import json import sys diff --git a/test/test_company_info_plan_info.py b/test/test_company_info_plan_info.py index 0bf5c2b4..fe6f2b05 100644 --- a/test/test_company_info_plan_info.py +++ b/test/test_company_info_plan_info.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_company_info_plan_info_functions.py b/test/test_company_info_plan_info_functions.py index eedcd6c1..7fd83ea1 100644 --- a/test/test_company_info_plan_info_functions.py +++ b/test/test_company_info_plan_info_functions.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_company_info_plan_info_functions_status.py b/test/test_company_info_plan_info_functions_status.py index a4560c3e..510e39e5 100644 --- a/test/test_company_info_plan_info_functions_status.py +++ b/test/test_company_info_plan_info_functions_status.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_company_info_plan_info_limits.py b/test/test_company_info_plan_info_limits.py index 8a3e008b..3e1a21c8 100644 --- a/test/test_company_info_plan_info_limits.py +++ b/test/test_company_info_plan_info_limits.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_company_plan_usage.py b/test/test_company_plan_usage.py new file mode 100644 index 00000000..a1f045f6 --- /dev/null +++ b/test/test_company_plan_usage.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Fatture in Cloud API v2 - API Reference + + 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.0.32 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import json +import unittest + +from fattureincloud_python_sdk.models.company_plan_usage import CompanyPlanUsage +from functions import json_serial +from functions import create_from_json + + +class TestCompanyPlanUsage(unittest.TestCase): + """CompanyPlanUsage unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCompanyPlanUsage(self): + """Test CompanyPlanUsage""" + model = CompanyPlanUsage( + limit = 1.337, + usage = 1.337 + ) + expected_json = '{"limit": 1.337, "usage": 1.337}' + actual_json = json.dumps(model.to_dict(), default=json_serial) + assert actual_json == expected_json + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_company_type.py b/test/test_company_type.py index 1ecffe0d..d45a358b 100644 --- a/test/test_company_type.py +++ b/test/test_company_type.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_controlled_company.py b/test/test_controlled_company.py index ef41090a..b066dd41 100644 --- a/test/test_controlled_company.py +++ b/test/test_controlled_company.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json from multiprocessing import connection import sys diff --git a/test/test_create_archive_document_request.py b/test/test_create_archive_document_request.py index 8f762d4b..4bc0d8fc 100644 --- a/test/test_create_archive_document_request.py +++ b/test/test_create_archive_document_request.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_create_archive_document_response.py b/test/test_create_archive_document_response.py index 6923f672..597a80bd 100644 --- a/test/test_create_archive_document_response.py +++ b/test/test_create_archive_document_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_create_cashbook_entry_request.py b/test/test_create_cashbook_entry_request.py index b7187cfd..04091442 100644 --- a/test/test_create_cashbook_entry_request.py +++ b/test/test_create_cashbook_entry_request.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_create_cashbook_entry_response.py b/test/test_create_cashbook_entry_response.py index a8bc0e57..c14fd3ad 100644 --- a/test/test_create_cashbook_entry_response.py +++ b/test/test_create_cashbook_entry_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_create_client_request.py b/test/test_create_client_request.py index fba3ce59..7f9f6485 100644 --- a/test/test_create_client_request.py +++ b/test/test_create_client_request.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_create_client_response.py b/test/test_create_client_response.py index cb238e41..4c1be6f6 100644 --- a/test/test_create_client_response.py +++ b/test/test_create_client_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_create_f24_request.py b/test/test_create_f24_request.py index adfc2493..f7fc892b 100644 --- a/test/test_create_f24_request.py +++ b/test/test_create_f24_request.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_create_f24_response.py b/test/test_create_f24_response.py index 76f4af6e..d77656c0 100644 --- a/test/test_create_f24_response.py +++ b/test/test_create_f24_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_create_issued_document_request.py b/test/test_create_issued_document_request.py index 2aa95968..2d138ca8 100644 --- a/test/test_create_issued_document_request.py +++ b/test/test_create_issued_document_request.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_create_issued_document_response.py b/test/test_create_issued_document_response.py index 477dba4e..a31895b3 100644 --- a/test/test_create_issued_document_response.py +++ b/test/test_create_issued_document_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_create_payment_account_request.py b/test/test_create_payment_account_request.py index 5914cc57..64fac2f8 100644 --- a/test/test_create_payment_account_request.py +++ b/test/test_create_payment_account_request.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_create_payment_account_response.py b/test/test_create_payment_account_response.py index c1748050..2dd055cd 100644 --- a/test/test_create_payment_account_response.py +++ b/test/test_create_payment_account_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_create_payment_method_request.py b/test/test_create_payment_method_request.py index acae817c..9bb0644b 100644 --- a/test/test_create_payment_method_request.py +++ b/test/test_create_payment_method_request.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_create_payment_method_response.py b/test/test_create_payment_method_response.py index 68cd3fe2..8649d8d5 100644 --- a/test/test_create_payment_method_response.py +++ b/test/test_create_payment_method_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_create_product_request.py b/test/test_create_product_request.py index dcd9613e..0dd3d76a 100644 --- a/test/test_create_product_request.py +++ b/test/test_create_product_request.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_create_product_response.py b/test/test_create_product_response.py index ab2787e0..b7c25208 100644 --- a/test/test_create_product_response.py +++ b/test/test_create_product_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_create_receipt_request.py b/test/test_create_receipt_request.py index 461b2f9c..3af58891 100644 --- a/test/test_create_receipt_request.py +++ b/test/test_create_receipt_request.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_create_receipt_response.py b/test/test_create_receipt_response.py index 27e5d7ce..ce73d9bf 100644 --- a/test/test_create_receipt_response.py +++ b/test/test_create_receipt_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_create_received_document_request.py b/test/test_create_received_document_request.py index 4834f018..f1b264f5 100644 --- a/test/test_create_received_document_request.py +++ b/test/test_create_received_document_request.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_create_received_document_response.py b/test/test_create_received_document_response.py index b018b47d..f50e2980 100644 --- a/test/test_create_received_document_response.py +++ b/test/test_create_received_document_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_create_supplier_request.py b/test/test_create_supplier_request.py index ed325321..3277480c 100644 --- a/test/test_create_supplier_request.py +++ b/test/test_create_supplier_request.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_create_supplier_response.py b/test/test_create_supplier_response.py index 27234995..cf2b3f8a 100644 --- a/test/test_create_supplier_response.py +++ b/test/test_create_supplier_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_create_vat_type_request.py b/test/test_create_vat_type_request.py index 838efd18..09f6e285 100644 --- a/test/test_create_vat_type_request.py +++ b/test/test_create_vat_type_request.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_create_vat_type_response.py b/test/test_create_vat_type_response.py index c1e4394c..3a87911b 100644 --- a/test/test_create_vat_type_response.py +++ b/test/test_create_vat_type_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_currency.py b/test/test_currency.py index c3b6955c..56e1898b 100644 --- a/test/test_currency.py +++ b/test/test_currency.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_detailed_country.py b/test/test_detailed_country.py index d7cc61dc..68b3afb8 100644 --- a/test/test_detailed_country.py +++ b/test/test_detailed_country.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_document_template.py b/test/test_document_template.py index 57f1202b..361a65bd 100644 --- a/test/test_document_template.py +++ b/test/test_document_template.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_e_invoice_rejection_reason.py b/test/test_e_invoice_rejection_reason.py index cf44adeb..c1eab5d8 100644 --- a/test/test_e_invoice_rejection_reason.py +++ b/test/test_e_invoice_rejection_reason.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_email.py b/test/test_email.py index e207567f..8ae71745 100644 --- a/test/test_email.py +++ b/test/test_email.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import datetime import json import sys diff --git a/test/test_email_attachment.py b/test/test_email_attachment.py index 278559e1..2953d840 100644 --- a/test/test_email_attachment.py +++ b/test/test_email_attachment.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_email_data.py b/test/test_email_data.py index 74bacb16..237c1a81 100644 --- a/test/test_email_data.py +++ b/test/test_email_data.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_email_data_default_sender_email.py b/test/test_email_data_default_sender_email.py index 56f8338f..45e2a022 100644 --- a/test/test_email_data_default_sender_email.py +++ b/test/test_email_data_default_sender_email.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_email_recipient_status.py b/test/test_email_recipient_status.py index 578b6ea6..42a4aacd 100644 --- a/test/test_email_recipient_status.py +++ b/test/test_email_recipient_status.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import sys import unittest diff --git a/test/test_email_schedule.py b/test/test_email_schedule.py index bde361c2..3fbda2d1 100644 --- a/test/test_email_schedule.py +++ b/test/test_email_schedule.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_email_schedule_include.py b/test/test_email_schedule_include.py index 1947b210..56d80222 100644 --- a/test/test_email_schedule_include.py +++ b/test/test_email_schedule_include.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_email_status.py b/test/test_email_status.py index 7b896365..3c68b723 100644 --- a/test/test_email_status.py +++ b/test/test_email_status.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import sys import unittest diff --git a/test/test_emails_api.py b/test/test_emails_api.py index 27db1851..b87409d7 100644 --- a/test/test_emails_api.py +++ b/test/test_emails_api.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import datetime import unittest from fattureincloud_python_sdk.models.email import Email diff --git a/test/test_entity.py b/test/test_entity.py index fe67d969..ac16e6ac 100644 --- a/test/test_entity.py +++ b/test/test_entity.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_entity_type.py b/test/test_entity_type.py index 8ebb6be5..dbcdc273 100644 --- a/test/test_entity_type.py +++ b/test/test_entity_type.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import sys import unittest diff --git a/test/test_f24.py b/test/test_f24.py index 85368fe7..c0060c54 100644 --- a/test/test_f24.py +++ b/test/test_f24.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_f24_status.py b/test/test_f24_status.py index fbc9a8df..eeaea62b 100644 --- a/test/test_f24_status.py +++ b/test/test_f24_status.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_fatture_in_cloud_plan_type.py b/test/test_fatture_in_cloud_plan_type.py new file mode 100644 index 00000000..db4b5219 --- /dev/null +++ b/test/test_fatture_in_cloud_plan_type.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Fatture in Cloud API v2 - API Reference + + 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.0.32 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fattureincloud_python_sdk.models.fatture_in_cloud_plan_type import ( + FattureInCloudPlanType, +) + + +class TestFattureInCloudPlanType(unittest.TestCase): + """FattureInCloudPlanType unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFattureInCloudPlanType(self): + """Test FattureInCloudPlanType""" + model = FattureInCloudPlanType("standard") + expected_json = "standard" + actual_json = model.value + assert actual_json == expected_json + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_function_status.py b/test/test_function_status.py index fc60480b..c85cb489 100644 --- a/test/test_function_status.py +++ b/test/test_function_status.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_get_archive_document_response.py b/test/test_get_archive_document_response.py index a0f08b95..30a1c24a 100644 --- a/test/test_get_archive_document_response.py +++ b/test/test_get_archive_document_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_get_cashbook_entry_response.py b/test/test_get_cashbook_entry_response.py index e538dbcb..f8ef4ec9 100644 --- a/test/test_get_cashbook_entry_response.py +++ b/test/test_get_cashbook_entry_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_get_client_response.py b/test/test_get_client_response.py index 3dab6e8c..3a341572 100644 --- a/test/test_get_client_response.py +++ b/test/test_get_client_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_get_company_info_response.py b/test/test_get_company_info_response.py index 4893ed5c..5057b8a6 100644 --- a/test/test_get_company_info_response.py +++ b/test/test_get_company_info_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_get_company_plan_usage_response.py b/test/test_get_company_plan_usage_response.py new file mode 100644 index 00000000..05ef0cdc --- /dev/null +++ b/test/test_get_company_plan_usage_response.py @@ -0,0 +1,47 @@ +# coding: utf-8 + +""" + Fatture in Cloud API v2 - API Reference + + 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.0.32 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import json +import unittest + +from fattureincloud_python_sdk.models.company_plan_usage import CompanyPlanUsage +from fattureincloud_python_sdk.models.get_company_plan_usage_response import ( + GetCompanyPlanUsageResponse, +) +from functions import json_serial + + + +class TestGetCompanyPlanUsageResponse(unittest.TestCase): + """GetCompanyPlanUsageResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGetCompanyPlanUsageResponse(self): + """Test GetCompanyPlanUsageResponse""" + model = GetCompanyPlanUsageResponse( + data = CompanyPlanUsage( + limit = 1.337, + usage = 1.337, ) + ) + expected_json = '{"data": {"limit": 1.337, "usage": 1.337}}' + actual_json = json.dumps(model.to_dict(), default=json_serial) + assert actual_json == expected_json + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_get_e_invoice_rejection_reason_response.py b/test/test_get_e_invoice_rejection_reason_response.py index 7f291f8d..931b572e 100644 --- a/test/test_get_e_invoice_rejection_reason_response.py +++ b/test/test_get_e_invoice_rejection_reason_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import datetime import json import sys diff --git a/test/test_get_email_data_response.py b/test/test_get_email_data_response.py index 57882240..342717d7 100644 --- a/test/test_get_email_data_response.py +++ b/test/test_get_email_data_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_get_existing_issued_document_totals_request.py b/test/test_get_existing_issued_document_totals_request.py index 0098d52d..8eb1ebc1 100644 --- a/test/test_get_existing_issued_document_totals_request.py +++ b/test/test_get_existing_issued_document_totals_request.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_get_existing_issued_document_totals_response.py b/test/test_get_existing_issued_document_totals_response.py index 66aa3371..b49d78d9 100644 --- a/test/test_get_existing_issued_document_totals_response.py +++ b/test/test_get_existing_issued_document_totals_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_get_existing_received_document_totals_request.py b/test/test_get_existing_received_document_totals_request.py index ab97eda8..26f5e3ee 100644 --- a/test/test_get_existing_received_document_totals_request.py +++ b/test/test_get_existing_received_document_totals_request.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_get_existing_received_document_totals_response.py b/test/test_get_existing_received_document_totals_response.py index ca7b381d..3d05c094 100644 --- a/test/test_get_existing_received_document_totals_response.py +++ b/test/test_get_existing_received_document_totals_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_get_f24_response.py b/test/test_get_f24_response.py index 159689d4..ef09af3f 100644 --- a/test/test_get_f24_response.py +++ b/test/test_get_f24_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_get_issued_document_pre_create_info_response.py b/test/test_get_issued_document_pre_create_info_response.py index 5d131982..d256e6bc 100644 --- a/test/test_get_issued_document_pre_create_info_response.py +++ b/test/test_get_issued_document_pre_create_info_response.py @@ -8,7 +8,6 @@ Generated by=https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_get_issued_document_response.py b/test/test_get_issued_document_response.py index b082aca8..486e93fc 100644 --- a/test/test_get_issued_document_response.py +++ b/test/test_get_issued_document_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_get_new_issued_document_totals_request.py b/test/test_get_new_issued_document_totals_request.py index 87ae6263..1c9a00c4 100644 --- a/test/test_get_new_issued_document_totals_request.py +++ b/test/test_get_new_issued_document_totals_request.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_get_new_issued_document_totals_response.py b/test/test_get_new_issued_document_totals_response.py index 5c494756..70a18944 100644 --- a/test/test_get_new_issued_document_totals_response.py +++ b/test/test_get_new_issued_document_totals_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_get_new_received_document_totals_request.py b/test/test_get_new_received_document_totals_request.py index 77a5280c..67b6b644 100644 --- a/test/test_get_new_received_document_totals_request.py +++ b/test/test_get_new_received_document_totals_request.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_get_new_received_document_totals_response.py b/test/test_get_new_received_document_totals_response.py index 0030c8fb..708abef0 100644 --- a/test/test_get_new_received_document_totals_response.py +++ b/test/test_get_new_received_document_totals_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_get_payment_account_response.py b/test/test_get_payment_account_response.py index 945418eb..92613e8b 100644 --- a/test/test_get_payment_account_response.py +++ b/test/test_get_payment_account_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_get_payment_method_response.py b/test/test_get_payment_method_response.py index f3e0eca6..3507464f 100644 --- a/test/test_get_payment_method_response.py +++ b/test/test_get_payment_method_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_get_product_response.py b/test/test_get_product_response.py index 4323b105..0904e8c6 100644 --- a/test/test_get_product_response.py +++ b/test/test_get_product_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_get_receipt_pre_create_info_response.py b/test/test_get_receipt_pre_create_info_response.py index a4324f30..e7fd0be1 100644 --- a/test/test_get_receipt_pre_create_info_response.py +++ b/test/test_get_receipt_pre_create_info_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_get_receipt_response.py b/test/test_get_receipt_response.py index e11d692a..9abe34d4 100644 --- a/test/test_get_receipt_response.py +++ b/test/test_get_receipt_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_get_receipts_monthly_totals_response.py b/test/test_get_receipts_monthly_totals_response.py index 9a10ebe3..714769d3 100644 --- a/test/test_get_receipts_monthly_totals_response.py +++ b/test/test_get_receipts_monthly_totals_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_get_received_document_pre_create_info_response.py b/test/test_get_received_document_pre_create_info_response.py index 92dfcff0..93417dcd 100644 --- a/test/test_get_received_document_pre_create_info_response.py +++ b/test/test_get_received_document_pre_create_info_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_get_received_document_response.py b/test/test_get_received_document_response.py index d920769f..d3b72756 100644 --- a/test/test_get_received_document_response.py +++ b/test/test_get_received_document_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_get_supplier_response.py b/test/test_get_supplier_response.py index 311238da..408a0d6b 100644 --- a/test/test_get_supplier_response.py +++ b/test/test_get_supplier_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_get_user_info_response.py b/test/test_get_user_info_response.py index 606f5668..7d399a57 100644 --- a/test/test_get_user_info_response.py +++ b/test/test_get_user_info_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_get_user_info_response_email_confirmation_state.py b/test/test_get_user_info_response_email_confirmation_state.py index 79f92a78..a97477f2 100644 --- a/test/test_get_user_info_response_email_confirmation_state.py +++ b/test/test_get_user_info_response_email_confirmation_state.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_get_user_info_response_info.py b/test/test_get_user_info_response_info.py index d9289b50..494e5580 100644 --- a/test/test_get_user_info_response_info.py +++ b/test/test_get_user_info_response_info.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_get_vat_type_response.py b/test/test_get_vat_type_response.py index 0288929e..79ce269e 100644 --- a/test/test_get_vat_type_response.py +++ b/test/test_get_vat_type_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_info_api.py b/test/test_info_api.py index 71868147..ea61a684 100644 --- a/test/test_info_api.py +++ b/test/test_info_api.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import unittest import fattureincloud_python_sdk diff --git a/test/test_issued_document.py b/test/test_issued_document.py index c93883ef..d7cb0b19 100644 --- a/test/test_issued_document.py +++ b/test/test_issued_document.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_issued_document_ei_data.py b/test/test_issued_document_ei_data.py index cdcf7a40..2aad6079 100644 --- a/test/test_issued_document_ei_data.py +++ b/test/test_issued_document_ei_data.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_issued_document_extra_data.py b/test/test_issued_document_extra_data.py index 1e9a1640..24565acf 100644 --- a/test/test_issued_document_extra_data.py +++ b/test/test_issued_document_extra_data.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_issued_document_items_list_item.py b/test/test_issued_document_items_list_item.py index bda419b6..8549a4df 100644 --- a/test/test_issued_document_items_list_item.py +++ b/test/test_issued_document_items_list_item.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_issued_document_options.py b/test/test_issued_document_options.py index 874e3679..4cff5bb5 100644 --- a/test/test_issued_document_options.py +++ b/test/test_issued_document_options.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import sys import unittest diff --git a/test/test_issued_document_payments_list_item_payment_terms.py b/test/test_issued_document_payments_list_item_payment_terms.py index acf1f7d0..47d4f006 100644 --- a/test/test_issued_document_payments_list_item_payment_terms.py +++ b/test/test_issued_document_payments_list_item_payment_terms.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import sys import unittest diff --git a/test/test_issued_document_pre_create_info.py b/test/test_issued_document_pre_create_info.py index 23392b3d..6215c304 100644 --- a/test/test_issued_document_pre_create_info.py +++ b/test/test_issued_document_pre_create_info.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_issued_document_pre_create_info_default_values.py b/test/test_issued_document_pre_create_info_default_values.py index bafff921..4a93bddd 100644 --- a/test/test_issued_document_pre_create_info_default_values.py +++ b/test/test_issued_document_pre_create_info_default_values.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_issued_document_pre_create_info_extra_data_default_values.py b/test/test_issued_document_pre_create_info_extra_data_default_values.py index 69fb8da6..60da7d49 100644 --- a/test/test_issued_document_pre_create_info_extra_data_default_values.py +++ b/test/test_issued_document_pre_create_info_extra_data_default_values.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_issued_document_pre_create_info_items_default_values.py b/test/test_issued_document_pre_create_info_items_default_values.py index 3448099b..3c46cb81 100644 --- a/test/test_issued_document_pre_create_info_items_default_values.py +++ b/test/test_issued_document_pre_create_info_items_default_values.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_issued_document_status.py b/test/test_issued_document_status.py index ae0be4ef..3c8bcd03 100644 --- a/test/test_issued_document_status.py +++ b/test/test_issued_document_status.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_issued_document_totals.py b/test/test_issued_document_totals.py index 6072be1b..780a4dfa 100644 --- a/test/test_issued_document_totals.py +++ b/test/test_issued_document_totals.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_issued_document_type.py b/test/test_issued_document_type.py index 6ab7283e..7053fc5d 100644 --- a/test/test_issued_document_type.py +++ b/test/test_issued_document_type.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_issued_documents_api.py b/test/test_issued_documents_api.py index 8974d019..30a46976 100644 --- a/test/test_issued_documents_api.py +++ b/test/test_issued_documents_api.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import unittest import unittest.mock import datetime diff --git a/test/test_issued_e_invoices_api.py b/test/test_issued_e_invoices_api.py index efd1aa8e..e263e773 100644 --- a/test/test_issued_e_invoices_api.py +++ b/test/test_issued_e_invoices_api.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import unittest import unittest.mock import fattureincloud_python_sdk diff --git a/test/test_join_issued_documents_response.py b/test/test_join_issued_documents_response.py index dfff110e..865d8022 100644 --- a/test/test_join_issued_documents_response.py +++ b/test/test_join_issued_documents_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import datetime import json import sys diff --git a/test/test_language.py b/test/test_language.py index d8c8b058..86bf96f0 100644 --- a/test/test_language.py +++ b/test/test_language.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_list_archive_categories_response.py b/test/test_list_archive_categories_response.py index 01a22446..8bdcf1ee 100644 --- a/test/test_list_archive_categories_response.py +++ b/test/test_list_archive_categories_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_list_archive_documents_response.py b/test/test_list_archive_documents_response.py index 4f499b69..5bce5d30 100644 --- a/test/test_list_archive_documents_response.py +++ b/test/test_list_archive_documents_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_list_archive_documents_response_page.py b/test/test_list_archive_documents_response_page.py index ef0242bf..385230dd 100644 --- a/test/test_list_archive_documents_response_page.py +++ b/test/test_list_archive_documents_response_page.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_list_cashbook_entries_response.py b/test/test_list_cashbook_entries_response.py index ccb997ba..067ac9ed 100644 --- a/test/test_list_cashbook_entries_response.py +++ b/test/test_list_cashbook_entries_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_list_cities_response.py b/test/test_list_cities_response.py index df48ab9b..c1427b3e 100644 --- a/test/test_list_cities_response.py +++ b/test/test_list_cities_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_list_clients_response.py b/test/test_list_clients_response.py index 83f2bb3c..a8722d5d 100644 --- a/test/test_list_clients_response.py +++ b/test/test_list_clients_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_list_clients_response_page.py b/test/test_list_clients_response_page.py index eccab588..6bf0d850 100644 --- a/test/test_list_clients_response_page.py +++ b/test/test_list_clients_response_page.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_list_cost_centers_response.py b/test/test_list_cost_centers_response.py index 2f4c9ac6..ef076f0c 100644 --- a/test/test_list_cost_centers_response.py +++ b/test/test_list_cost_centers_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_list_countries_response.py b/test/test_list_countries_response.py index ced64ff1..1fb26a19 100644 --- a/test/test_list_countries_response.py +++ b/test/test_list_countries_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_list_currencies_response.py b/test/test_list_currencies_response.py index 372cfaf2..ddc6d807 100644 --- a/test/test_list_currencies_response.py +++ b/test/test_list_currencies_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_list_delivery_notes_default_causals_response.py b/test/test_list_delivery_notes_default_causals_response.py index d9a9b634..05f8870e 100644 --- a/test/test_list_delivery_notes_default_causals_response.py +++ b/test/test_list_delivery_notes_default_causals_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_list_detailed_countries_response.py b/test/test_list_detailed_countries_response.py index 56c7aa63..17ba92de 100644 --- a/test/test_list_detailed_countries_response.py +++ b/test/test_list_detailed_countries_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_list_emails_response.py b/test/test_list_emails_response.py index 08985f91..1d5bc8ad 100644 --- a/test/test_list_emails_response.py +++ b/test/test_list_emails_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import datetime import json import sys diff --git a/test/test_list_emails_response_page.py b/test/test_list_emails_response_page.py index 97d39847..051ab1fa 100644 --- a/test/test_list_emails_response_page.py +++ b/test/test_list_emails_response_page.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import datetime import json import sys diff --git a/test/test_list_f24_response.py b/test/test_list_f24_response.py index 8fe4ac39..fc1df5b5 100644 --- a/test/test_list_f24_response.py +++ b/test/test_list_f24_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_list_f24_response_aggregated_data.py b/test/test_list_f24_response_aggregated_data.py index 4270ff6f..5f7c5603 100644 --- a/test/test_list_f24_response_aggregated_data.py +++ b/test/test_list_f24_response_aggregated_data.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_list_f24_response_aggregation.py b/test/test_list_f24_response_aggregation.py index 7d8bb17e..c8db8e8c 100644 --- a/test/test_list_f24_response_aggregation.py +++ b/test/test_list_f24_response_aggregation.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_list_f24_response_page.py b/test/test_list_f24_response_page.py index 4b98e4ec..16df3a0b 100644 --- a/test/test_list_f24_response_page.py +++ b/test/test_list_f24_response_page.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_list_issued_documents_response.py b/test/test_list_issued_documents_response.py index dd7edd34..47cf8e46 100644 --- a/test/test_list_issued_documents_response.py +++ b/test/test_list_issued_documents_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_list_issued_documents_response_page.py b/test/test_list_issued_documents_response_page.py index 334acd2a..da5f206e 100644 --- a/test/test_list_issued_documents_response_page.py +++ b/test/test_list_issued_documents_response_page.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_list_languages_response.py b/test/test_list_languages_response.py index 81b33427..53b5e587 100644 --- a/test/test_list_languages_response.py +++ b/test/test_list_languages_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_list_payment_accounts_response.py b/test/test_list_payment_accounts_response.py index 8b5a61f8..110c4cdd 100644 --- a/test/test_list_payment_accounts_response.py +++ b/test/test_list_payment_accounts_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_list_payment_methods_response.py b/test/test_list_payment_methods_response.py index c7444df0..195ce64a 100644 --- a/test/test_list_payment_methods_response.py +++ b/test/test_list_payment_methods_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_list_product_categories_response.py b/test/test_list_product_categories_response.py index 4db3078c..e72bf067 100644 --- a/test/test_list_product_categories_response.py +++ b/test/test_list_product_categories_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_list_products_response.py b/test/test_list_products_response.py index ce8b7919..c6adbef6 100644 --- a/test/test_list_products_response.py +++ b/test/test_list_products_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_list_products_response_page.py b/test/test_list_products_response_page.py index 4a68abad..08ce23ca 100644 --- a/test/test_list_products_response_page.py +++ b/test/test_list_products_response_page.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_list_receipts_response.py b/test/test_list_receipts_response.py index 6ac9af18..b346c22c 100644 --- a/test/test_list_receipts_response.py +++ b/test/test_list_receipts_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_list_receipts_response_page.py b/test/test_list_receipts_response_page.py index 13178b3d..510975e2 100644 --- a/test/test_list_receipts_response_page.py +++ b/test/test_list_receipts_response_page.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_list_received_document_categories_response.py b/test/test_list_received_document_categories_response.py index 345c42f6..5e7b14b0 100644 --- a/test/test_list_received_document_categories_response.py +++ b/test/test_list_received_document_categories_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_list_received_documents_response.py b/test/test_list_received_documents_response.py index 295facb3..847006dd 100644 --- a/test/test_list_received_documents_response.py +++ b/test/test_list_received_documents_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_list_received_documents_response_page.py b/test/test_list_received_documents_response_page.py index d33d34c9..88c0e768 100644 --- a/test/test_list_received_documents_response_page.py +++ b/test/test_list_received_documents_response_page.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_list_revenue_centers_response.py b/test/test_list_revenue_centers_response.py index 16493d42..38d389d0 100644 --- a/test/test_list_revenue_centers_response.py +++ b/test/test_list_revenue_centers_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_list_suppliers_response.py b/test/test_list_suppliers_response.py index 53675ed3..3ffedc77 100644 --- a/test/test_list_suppliers_response.py +++ b/test/test_list_suppliers_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_list_suppliers_response_page.py b/test/test_list_suppliers_response_page.py index 995a648f..29b88f5b 100644 --- a/test/test_list_suppliers_response_page.py +++ b/test/test_list_suppliers_response_page.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_list_templates_response.py b/test/test_list_templates_response.py index a156a42e..96cd0e51 100644 --- a/test/test_list_templates_response.py +++ b/test/test_list_templates_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json from pipes import Template import sys diff --git a/test/test_list_units_of_measure_response.py b/test/test_list_units_of_measure_response.py index 6f4453fb..2dcaf409 100644 --- a/test/test_list_units_of_measure_response.py +++ b/test/test_list_units_of_measure_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_list_user_companies_response.py b/test/test_list_user_companies_response.py index 31544c2d..08c433bf 100644 --- a/test/test_list_user_companies_response.py +++ b/test/test_list_user_companies_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_list_user_companies_response_data.py b/test/test_list_user_companies_response_data.py index 37b0dd45..9720a06a 100644 --- a/test/test_list_user_companies_response_data.py +++ b/test/test_list_user_companies_response_data.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_list_vat_types_response.py b/test/test_list_vat_types_response.py index 42108685..31c7c2dd 100644 --- a/test/test_list_vat_types_response.py +++ b/test/test_list_vat_types_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_modify_archive_document_request.py b/test/test_modify_archive_document_request.py index b31661f9..17ff4ddc 100644 --- a/test/test_modify_archive_document_request.py +++ b/test/test_modify_archive_document_request.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_modify_archive_document_response.py b/test/test_modify_archive_document_response.py index 2a544259..35e7a563 100644 --- a/test/test_modify_archive_document_response.py +++ b/test/test_modify_archive_document_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_modify_client_request.py b/test/test_modify_client_request.py index 8989a171..c66c2d2b 100644 --- a/test/test_modify_client_request.py +++ b/test/test_modify_client_request.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_modify_client_response.py b/test/test_modify_client_response.py index 1bd1d880..09741817 100644 --- a/test/test_modify_client_response.py +++ b/test/test_modify_client_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_modify_issued_document_response.py b/test/test_modify_issued_document_response.py index 9c608560..c115d4af 100644 --- a/test/test_modify_issued_document_response.py +++ b/test/test_modify_issued_document_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_modify_payment_account_request.py b/test/test_modify_payment_account_request.py index f08f6bd4..f1a8a84f 100644 --- a/test/test_modify_payment_account_request.py +++ b/test/test_modify_payment_account_request.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_modify_payment_account_response.py b/test/test_modify_payment_account_response.py index 1305c7ce..672e5cf8 100644 --- a/test/test_modify_payment_account_response.py +++ b/test/test_modify_payment_account_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_modify_payment_method_response.py b/test/test_modify_payment_method_response.py index 984e3b65..459f4b25 100644 --- a/test/test_modify_payment_method_response.py +++ b/test/test_modify_payment_method_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_modify_product_request.py b/test/test_modify_product_request.py index c9af3354..82d02977 100644 --- a/test/test_modify_product_request.py +++ b/test/test_modify_product_request.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_modify_product_response.py b/test/test_modify_product_response.py index dd789880..ddfdc824 100644 --- a/test/test_modify_product_response.py +++ b/test/test_modify_product_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_modify_supplier_request.py b/test/test_modify_supplier_request.py index c5cf35ee..9d2eba18 100644 --- a/test/test_modify_supplier_request.py +++ b/test/test_modify_supplier_request.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_modify_supplier_response.py b/test/test_modify_supplier_response.py index 8364d168..ccbccb93 100644 --- a/test/test_modify_supplier_response.py +++ b/test/test_modify_supplier_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_modify_vat_type_request.py b/test/test_modify_vat_type_request.py index ca467714..857348e0 100644 --- a/test/test_modify_vat_type_request.py +++ b/test/test_modify_vat_type_request.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_modify_vat_type_response.py b/test/test_modify_vat_type_response.py index 336fca0b..3a387063 100644 --- a/test/test_modify_vat_type_response.py +++ b/test/test_modify_vat_type_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_monthly_total.py b/test/test_monthly_total.py index 53b39b50..ac1ef0ce 100644 --- a/test/test_monthly_total.py +++ b/test/test_monthly_total.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_original_document_type.py b/test/test_original_document_type.py index 23b5d8d9..b7d346e1 100644 --- a/test/test_original_document_type.py +++ b/test/test_original_document_type.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_pagination.py b/test/test_pagination.py index b319aa8d..5754cd99 100644 --- a/test/test_pagination.py +++ b/test/test_pagination.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_payment_account.py b/test/test_payment_account.py index 19940656..dc73249a 100644 --- a/test/test_payment_account.py +++ b/test/test_payment_account.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_payment_account_type.py b/test/test_payment_account_type.py index 88d9e585..b7a12b56 100644 --- a/test/test_payment_account_type.py +++ b/test/test_payment_account_type.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_payment_method.py b/test/test_payment_method.py index 4025c4c9..719e1509 100644 --- a/test/test_payment_method.py +++ b/test/test_payment_method.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_payment_method_details.py b/test/test_payment_method_details.py index 844e536c..f3ae9674 100644 --- a/test/test_payment_method_details.py +++ b/test/test_payment_method_details.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_payment_method_type.py b/test/test_payment_method_type.py index c4862c19..0a98be2e 100644 --- a/test/test_payment_method_type.py +++ b/test/test_payment_method_type.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_payment_terms_type.py b/test/test_payment_terms_type.py index 45f643ae..4724e3b8 100644 --- a/test/test_payment_terms_type.py +++ b/test/test_payment_terms_type.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_permission_level.py b/test/test_permission_level.py index 2531e67a..f4277c20 100644 --- a/test/test_permission_level.py +++ b/test/test_permission_level.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_permissions.py b/test/test_permissions.py index 92539013..8033fe2f 100644 --- a/test/test_permissions.py +++ b/test/test_permissions.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_permissions_fic_issued_documents_detailed.py b/test/test_permissions_fic_issued_documents_detailed.py index 18833792..876bfbf6 100644 --- a/test/test_permissions_fic_issued_documents_detailed.py +++ b/test/test_permissions_fic_issued_documents_detailed.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_product.py b/test/test_product.py index 353ffeb9..403c1679 100644 --- a/test/test_product.py +++ b/test/test_product.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_products_api.py b/test/test_products_api.py index a36ee4cf..8b064af0 100644 --- a/test/test_products_api.py +++ b/test/test_products_api.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import unittest import unittest.mock import fattureincloud_python_sdk diff --git a/test/test_receipt.py b/test/test_receipt.py index 5bc49823..6261c819 100644 --- a/test/test_receipt.py +++ b/test/test_receipt.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_receipt_items_list_item.py b/test/test_receipt_items_list_item.py index 5a05f2d9..889aedf0 100644 --- a/test/test_receipt_items_list_item.py +++ b/test/test_receipt_items_list_item.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_receipt_pre_create_info.py b/test/test_receipt_pre_create_info.py index 50c5f80a..064dbe3a 100644 --- a/test/test_receipt_pre_create_info.py +++ b/test/test_receipt_pre_create_info.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_receipt_type.py b/test/test_receipt_type.py index 623977da..f2a8c73a 100644 --- a/test/test_receipt_type.py +++ b/test/test_receipt_type.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_receipts_api.py b/test/test_receipts_api.py index 0585a85a..1476f719 100644 --- a/test/test_receipts_api.py +++ b/test/test_receipts_api.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import unittest import unittest.mock import datetime diff --git a/test/test_received_document.py b/test/test_received_document.py index f0384deb..9d82f4b5 100644 --- a/test/test_received_document.py +++ b/test/test_received_document.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_received_document_info.py b/test/test_received_document_info.py index 14b66645..1b2ac327 100644 --- a/test/test_received_document_info.py +++ b/test/test_received_document_info.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_received_document_info_default_values.py b/test/test_received_document_info_default_values.py index 8beb353f..297dcafa 100644 --- a/test/test_received_document_info_default_values.py +++ b/test/test_received_document_info_default_values.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_received_document_info_items_default_values.py b/test/test_received_document_info_items_default_values.py index d21878fe..4c8a6f58 100644 --- a/test/test_received_document_info_items_default_values.py +++ b/test/test_received_document_info_items_default_values.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_received_document_items_list_item.py b/test/test_received_document_items_list_item.py index 289561aa..d1dec47e 100644 --- a/test/test_received_document_items_list_item.py +++ b/test/test_received_document_items_list_item.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_received_document_payments_list_item_payment_terms.py b/test/test_received_document_payments_list_item_payment_terms.py index 2c87c5ab..82d0d811 100644 --- a/test/test_received_document_payments_list_item_payment_terms.py +++ b/test/test_received_document_payments_list_item_payment_terms.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_received_document_totals.py b/test/test_received_document_totals.py index 3b0ffd85..a01625f1 100644 --- a/test/test_received_document_totals.py +++ b/test/test_received_document_totals.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_received_document_type.py b/test/test_received_document_type.py index 32ce398d..c32754ad 100644 --- a/test/test_received_document_type.py +++ b/test/test_received_document_type.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_received_documents_api.py b/test/test_received_documents_api.py index 64a3617a..ce7d2f23 100644 --- a/test/test_received_documents_api.py +++ b/test/test_received_documents_api.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import unittest import unittest.mock import datetime diff --git a/test/test_schedule_email_request.py b/test/test_schedule_email_request.py index a468bf38..f271e29d 100644 --- a/test/test_schedule_email_request.py +++ b/test/test_schedule_email_request.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_send_e_invoice_request.py b/test/test_send_e_invoice_request.py index 36a1a808..a3e6c162 100644 --- a/test/test_send_e_invoice_request.py +++ b/test/test_send_e_invoice_request.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_send_e_invoice_request_data.py b/test/test_send_e_invoice_request_data.py index bc974597..f261b02d 100644 --- a/test/test_send_e_invoice_request_data.py +++ b/test/test_send_e_invoice_request_data.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_send_e_invoice_response.py b/test/test_send_e_invoice_response.py index 518e17d0..1292bfa4 100644 --- a/test/test_send_e_invoice_response.py +++ b/test/test_send_e_invoice_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_send_e_invoice_response_data.py b/test/test_send_e_invoice_response_data.py index e16222e5..303f26bd 100644 --- a/test/test_send_e_invoice_response_data.py +++ b/test/test_send_e_invoice_response_data.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_sender_email.py b/test/test_sender_email.py index 87e33f8b..bc9b2ee5 100644 --- a/test/test_sender_email.py +++ b/test/test_sender_email.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_settings_api.py b/test/test_settings_api.py index 626ff573..fc0ae7ec 100644 --- a/test/test_settings_api.py +++ b/test/test_settings_api.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import unittest import unittest.mock import fattureincloud_python_sdk diff --git a/test/test_show_totals_mode.py b/test/test_show_totals_mode.py index ba458409..d8bc938a 100644 --- a/test/test_show_totals_mode.py +++ b/test/test_show_totals_mode.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_supplier.py b/test/test_supplier.py index a47f84b5..b9c90fa6 100644 --- a/test/test_supplier.py +++ b/test/test_supplier.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_supplier_type.py b/test/test_supplier_type.py index eb5cb4cb..3bc955fa 100644 --- a/test/test_supplier_type.py +++ b/test/test_supplier_type.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_suppliers_api.py b/test/test_suppliers_api.py index 0baff9de..81f4b2c3 100644 --- a/test/test_suppliers_api.py +++ b/test/test_suppliers_api.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import unittest import unittest.mock import fattureincloud_python_sdk diff --git a/test/test_taxes_api.py b/test/test_taxes_api.py index 16f28058..119b1ca3 100644 --- a/test/test_taxes_api.py +++ b/test/test_taxes_api.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - from re import M import unittest import unittest.mock diff --git a/test/test_transform_issued_document_response.py b/test/test_transform_issued_document_response.py index e463d8cd..0aca9a6f 100644 --- a/test/test_transform_issued_document_response.py +++ b/test/test_transform_issued_document_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import datetime import json import sys diff --git a/test/test_upload_archive_attachment_response.py b/test/test_upload_archive_attachment_response.py index 8cce35c3..1f8a2a86 100644 --- a/test/test_upload_archive_attachment_response.py +++ b/test/test_upload_archive_attachment_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_upload_f24_attachment_response.py b/test/test_upload_f24_attachment_response.py index 948010cf..f4aeb9ce 100644 --- a/test/test_upload_f24_attachment_response.py +++ b/test/test_upload_f24_attachment_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_upload_issued_document_attachment_response.py b/test/test_upload_issued_document_attachment_response.py index cb798305..814dd7f9 100644 --- a/test/test_upload_issued_document_attachment_response.py +++ b/test/test_upload_issued_document_attachment_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_upload_received_document_attachment_response.py b/test/test_upload_received_document_attachment_response.py index 1ee357ec..a6ec8ba6 100644 --- a/test/test_upload_received_document_attachment_response.py +++ b/test/test_upload_received_document_attachment_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_user.py b/test/test_user.py index bf9aa2e6..f463eaf1 100644 --- a/test/test_user.py +++ b/test/test_user.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_user_api.py b/test/test_user_api.py index fee7463f..75d61730 100644 --- a/test/test_user_api.py +++ b/test/test_user_api.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import unittest import unittest.mock import fattureincloud_python_sdk diff --git a/test/test_user_company_role.py b/test/test_user_company_role.py index 12481d46..a2215923 100644 --- a/test/test_user_company_role.py +++ b/test/test_user_company_role.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_vat_item.py b/test/test_vat_item.py index 86f519b5..2264d566 100644 --- a/test/test_vat_item.py +++ b/test/test_vat_item.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_vat_kind.py b/test/test_vat_kind.py index eb3c81a3..05dc7684 100644 --- a/test/test_vat_kind.py +++ b/test/test_vat_kind.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_vat_type.py b/test/test_vat_type.py index 079226fd..0382747e 100644 --- a/test/test_vat_type.py +++ b/test/test_vat_type.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_verify_e_invoice_xml_error_response.py b/test/test_verify_e_invoice_xml_error_response.py index 23ea37a2..381aa4c4 100644 --- a/test/test_verify_e_invoice_xml_error_response.py +++ b/test/test_verify_e_invoice_xml_error_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_verify_e_invoice_xml_error_response_error.py b/test/test_verify_e_invoice_xml_error_response_error.py index 710b1ab2..b5c91359 100644 --- a/test/test_verify_e_invoice_xml_error_response_error.py +++ b/test/test_verify_e_invoice_xml_error_response_error.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - from email import message import json import sys diff --git a/test/test_verify_e_invoice_xml_error_response_error_validation_result.py b/test/test_verify_e_invoice_xml_error_response_error_validation_result.py index d0679d99..1a9ab465 100644 --- a/test/test_verify_e_invoice_xml_error_response_error_validation_result.py +++ b/test/test_verify_e_invoice_xml_error_response_error_validation_result.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_verify_e_invoice_xml_error_response_extra.py b/test/test_verify_e_invoice_xml_error_response_extra.py index 67e33f37..88d1be4e 100644 --- a/test/test_verify_e_invoice_xml_error_response_extra.py +++ b/test/test_verify_e_invoice_xml_error_response_extra.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest diff --git a/test/test_verify_e_invoice_xml_response.py b/test/test_verify_e_invoice_xml_response.py index 5dd43c25..adee4bcd 100644 --- a/test/test_verify_e_invoice_xml_response.py +++ b/test/test_verify_e_invoice_xml_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - from datetime import date import json import sys diff --git a/test/test_verify_e_invoice_xml_response_data.py b/test/test_verify_e_invoice_xml_response_data.py index eba94ab2..6c08c88a 100644 --- a/test/test_verify_e_invoice_xml_response_data.py +++ b/test/test_verify_e_invoice_xml_response_data.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import json import sys import unittest