diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index f7426e78..a90f8d4a 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -549,19 +549,3 @@ setup.cfg setup.py test-requirements.txt test/__init__.py -test/test_entity_client_pre_create_info.py -test/test_get_bin_issued_document_response.py -test/test_get_bin_received_document_response.py -test/test_get_entity_client_pre_create_info_response.py -test/test_get_price_list_items_response.py -test/test_list_bin_issued_documents.py -test/test_list_bin_received_documents.py -test/test_list_price_lists_response.py -test/test_price_list.py -test/test_price_list_item.py -test/test_price_list_prices_type.py -test/test_price_list_type.py -test/test_price_lists_api.py -test/test_verify_webhooks_subscription.py -test/test_verify_webhooks_subscription_request.py -test/test_webhooks_subscription_verification_method.py diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION index 5f84a81d..971ecb25 100644 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -7.12.0 +7.16.0 diff --git a/.travis.yml b/.travis.yml index ed3c9132..ab60178e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,13 +1,13 @@ # ref: https://docs.travis-ci.com/user/languages/python language: python python: - - "3.8" - "3.9" - "3.10" - "3.11" - "3.12" + - "3.13" # uncomment the following if needed - #- "3.12-dev" # 3.12 development branch + #- "3.13-dev" # 3.13 development branch #- "nightly" # nightly build # command to install dependencies install: diff --git a/README.md b/README.md index 8c3547c3..9c5a965c 100644 --- a/README.md +++ b/README.md @@ -9,14 +9,14 @@ The Fatture in Cloud API is based on REST, and makes possible to interact with t This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 2.1.5 -- Package version: 2.1.3 +- API version: 2.1.8 +- Package version: 2.1.4 - Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit [https://www.fattureincloud.it](https://www.fattureincloud.it) ## Requirements. -Python >= 3.7 +Python >= 3.9 ## Installation & Usage ### pip install @@ -121,7 +121,7 @@ Class | Method | HTTP request | Description *InfoApi* | [**list_units_of_measure**](docs/InfoApi.md#list_units_of_measure) | **GET** /info/measures | List Units of Measure *InfoApi* | [**list_vat_types**](docs/InfoApi.md#list_vat_types) | **GET** /c/{company_id}/info/vat_types | List Vat Types *IssuedDocumentsApi* | [**create_issued_document**](docs/IssuedDocumentsApi.md#create_issued_document) | **POST** /c/{company_id}/issued_documents | Create Issued Document -*IssuedDocumentsApi* | [**delete_bin_issued_document**](docs/IssuedDocumentsApi.md#delete_bin_issued_document) | **DELETE** /c/{company_id}/bin/issued_documents/{document_id} | +*IssuedDocumentsApi* | [**delete_bin_issued_document**](docs/IssuedDocumentsApi.md#delete_bin_issued_document) | **DELETE** /c/{company_id}/bin/issued_documents/{document_id} | Delete Bin Issued Document *IssuedDocumentsApi* | [**delete_issued_document**](docs/IssuedDocumentsApi.md#delete_issued_document) | **DELETE** /c/{company_id}/issued_documents/{document_id} | Delete Issued Document *IssuedDocumentsApi* | [**delete_issued_document_attachment**](docs/IssuedDocumentsApi.md#delete_issued_document_attachment) | **DELETE** /c/{company_id}/issued_documents/{document_id}/attachment | Delete Issued Document Attachment *IssuedDocumentsApi* | [**get_bin_issued_document**](docs/IssuedDocumentsApi.md#get_bin_issued_document) | **GET** /c/{company_id}/bin/issued_documents/{document_id} | Get Bin Issued Documents List @@ -134,7 +134,7 @@ Class | Method | HTTP request | Description *IssuedDocumentsApi* | [**list_bin_issued_documents**](docs/IssuedDocumentsApi.md#list_bin_issued_documents) | **GET** /c/{company_id}/bin/issued_documents | Get Bin Issued Documents List *IssuedDocumentsApi* | [**list_issued_documents**](docs/IssuedDocumentsApi.md#list_issued_documents) | **GET** /c/{company_id}/issued_documents | List Issued Documents *IssuedDocumentsApi* | [**modify_issued_document**](docs/IssuedDocumentsApi.md#modify_issued_document) | **PUT** /c/{company_id}/issued_documents/{document_id} | Modify Issued Document -*IssuedDocumentsApi* | [**recover_bin_issued_document**](docs/IssuedDocumentsApi.md#recover_bin_issued_document) | **POST** /c/{company_id}/bin/issued_documents/{document_id}/recover | +*IssuedDocumentsApi* | [**recover_bin_issued_document**](docs/IssuedDocumentsApi.md#recover_bin_issued_document) | **POST** /c/{company_id}/bin/issued_documents/{document_id}/recover | Recover Issued Document From The Bin *IssuedDocumentsApi* | [**schedule_email**](docs/IssuedDocumentsApi.md#schedule_email) | **POST** /c/{company_id}/issued_documents/{document_id}/email | Schedule Email *IssuedDocumentsApi* | [**transform_issued_document**](docs/IssuedDocumentsApi.md#transform_issued_document) | **GET** /c/{company_id}/issued_documents/transform | Transform Issued Document *IssuedDocumentsApi* | [**upload_issued_document_attachment**](docs/IssuedDocumentsApi.md#upload_issued_document_attachment) | **POST** /c/{company_id}/issued_documents/attachment | Upload Issued Document Attachment @@ -157,7 +157,7 @@ Class | Method | HTTP request | Description *ReceiptsApi* | [**list_receipts**](docs/ReceiptsApi.md#list_receipts) | **GET** /c/{company_id}/receipts | List Receipts *ReceiptsApi* | [**modify_receipt**](docs/ReceiptsApi.md#modify_receipt) | **PUT** /c/{company_id}/receipts/{document_id} | Modify Receipt *ReceivedDocumentsApi* | [**create_received_document**](docs/ReceivedDocumentsApi.md#create_received_document) | **POST** /c/{company_id}/received_documents | Create Received Document -*ReceivedDocumentsApi* | [**delete_bin_received_document**](docs/ReceivedDocumentsApi.md#delete_bin_received_document) | **DELETE** /c/{company_id}/bin/received_documents/{document_id} | +*ReceivedDocumentsApi* | [**delete_bin_received_document**](docs/ReceivedDocumentsApi.md#delete_bin_received_document) | **DELETE** /c/{company_id}/bin/received_documents/{document_id} | Delete Bin Received Document *ReceivedDocumentsApi* | [**delete_received_document**](docs/ReceivedDocumentsApi.md#delete_received_document) | **DELETE** /c/{company_id}/received_documents/{document_id} | Delete Received Document *ReceivedDocumentsApi* | [**delete_received_document_attachment**](docs/ReceivedDocumentsApi.md#delete_received_document_attachment) | **DELETE** /c/{company_id}/received_documents/{document_id}/attachment | Delete Received Document Attachment *ReceivedDocumentsApi* | [**get_bin_received_document**](docs/ReceivedDocumentsApi.md#get_bin_received_document) | **GET** /c/{company_id}/bin/received_documents/{document_id} | Get Bin Received Documents List @@ -168,7 +168,7 @@ Class | Method | HTTP request | Description *ReceivedDocumentsApi* | [**list_bin_received_documents**](docs/ReceivedDocumentsApi.md#list_bin_received_documents) | **GET** /c/{company_id}/bin/received_documents | Get Bin Received Documents List *ReceivedDocumentsApi* | [**list_received_documents**](docs/ReceivedDocumentsApi.md#list_received_documents) | **GET** /c/{company_id}/received_documents | List Received Documents *ReceivedDocumentsApi* | [**modify_received_document**](docs/ReceivedDocumentsApi.md#modify_received_document) | **PUT** /c/{company_id}/received_documents/{document_id} | Modify Received Document -*ReceivedDocumentsApi* | [**recover_bin_received_document**](docs/ReceivedDocumentsApi.md#recover_bin_received_document) | **POST** /c/{company_id}/bin/received_documents/{document_id}/recover | +*ReceivedDocumentsApi* | [**recover_bin_received_document**](docs/ReceivedDocumentsApi.md#recover_bin_received_document) | **POST** /c/{company_id}/bin/received_documents/{document_id}/recover | Recover Received Document From The Bin *ReceivedDocumentsApi* | [**upload_received_document_attachment**](docs/ReceivedDocumentsApi.md#upload_received_document_attachment) | **POST** /c/{company_id}/received_documents/attachment | Upload Received Document Attachment *SettingsApi* | [**create_payment_account**](docs/SettingsApi.md#create_payment_account) | **POST** /c/{company_id}/settings/payment_accounts | Create Payment Account *SettingsApi* | [**create_payment_method**](docs/SettingsApi.md#create_payment_method) | **POST** /c/{company_id}/settings/payment_methods | Create Payment Method @@ -521,4 +521,3 @@ Authentication schemes defined for the API: info@fattureincloud.it - diff --git a/docs/CompanyInfoPlanInfoFunctions.md b/docs/CompanyInfoPlanInfoFunctions.md index 2e74e373..7e77e660 100644 --- a/docs/CompanyInfoPlanInfoFunctions.md +++ b/docs/CompanyInfoPlanInfoFunctions.md @@ -17,7 +17,6 @@ Name | Type | Description | Notes **receipts** | **bool** | | [optional] **recurring** | **bool** | | [optional] **smtp** | **bool** | | [optional] -**sofort** | **bool** | | [optional] **stock** | **bool** | | [optional] **subaccounts** | **bool** | | [optional] **tessera_sanitaria** | **bool** | | [optional] diff --git a/docs/IssuedDocumentsApi.md b/docs/IssuedDocumentsApi.md index 9821b93d..8bcfe0ae 100644 --- a/docs/IssuedDocumentsApi.md +++ b/docs/IssuedDocumentsApi.md @@ -5,7 +5,7 @@ All URIs are relative to *https://api-v2.fattureincloud.it* Method | HTTP request | Description ------------- | ------------- | ------------- [**create_issued_document**](IssuedDocumentsApi.md#create_issued_document) | **POST** /c/{company_id}/issued_documents | Create Issued Document -[**delete_bin_issued_document**](IssuedDocumentsApi.md#delete_bin_issued_document) | **DELETE** /c/{company_id}/bin/issued_documents/{document_id} | +[**delete_bin_issued_document**](IssuedDocumentsApi.md#delete_bin_issued_document) | **DELETE** /c/{company_id}/bin/issued_documents/{document_id} | Delete Bin Issued Document [**delete_issued_document**](IssuedDocumentsApi.md#delete_issued_document) | **DELETE** /c/{company_id}/issued_documents/{document_id} | Delete Issued Document [**delete_issued_document_attachment**](IssuedDocumentsApi.md#delete_issued_document_attachment) | **DELETE** /c/{company_id}/issued_documents/{document_id}/attachment | Delete Issued Document Attachment [**get_bin_issued_document**](IssuedDocumentsApi.md#get_bin_issued_document) | **GET** /c/{company_id}/bin/issued_documents/{document_id} | Get Bin Issued Documents List @@ -18,7 +18,7 @@ Method | HTTP request | Description [**list_bin_issued_documents**](IssuedDocumentsApi.md#list_bin_issued_documents) | **GET** /c/{company_id}/bin/issued_documents | Get Bin Issued Documents List [**list_issued_documents**](IssuedDocumentsApi.md#list_issued_documents) | **GET** /c/{company_id}/issued_documents | List Issued Documents [**modify_issued_document**](IssuedDocumentsApi.md#modify_issued_document) | **PUT** /c/{company_id}/issued_documents/{document_id} | Modify Issued Document -[**recover_bin_issued_document**](IssuedDocumentsApi.md#recover_bin_issued_document) | **POST** /c/{company_id}/bin/issued_documents/{document_id}/recover | +[**recover_bin_issued_document**](IssuedDocumentsApi.md#recover_bin_issued_document) | **POST** /c/{company_id}/bin/issued_documents/{document_id}/recover | Recover Issued Document From The Bin [**schedule_email**](IssuedDocumentsApi.md#schedule_email) | **POST** /c/{company_id}/issued_documents/{document_id}/email | Schedule Email [**transform_issued_document**](IssuedDocumentsApi.md#transform_issued_document) | **GET** /c/{company_id}/issued_documents/transform | Transform Issued Document [**upload_issued_document_attachment**](IssuedDocumentsApi.md#upload_issued_document_attachment) | **POST** /c/{company_id}/issued_documents/attachment | Upload Issued Document Attachment @@ -106,7 +106,7 @@ Name | Type | Description | Notes # **delete_bin_issued_document** > delete_bin_issued_document(company_id, document_id) - +Delete Bin Issued Document Delete Bin Issued Document @@ -140,7 +140,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: document_id = 56 # int | The ID of the document. try: - # + # Delete Bin Issued Document api_instance.delete_bin_issued_document(company_id, document_id) except Exception as e: print("Exception when calling IssuedDocumentsApi->delete_bin_issued_document: %s\n" % e) @@ -1139,7 +1139,7 @@ Name | Type | Description | Notes # **recover_bin_issued_document** > recover_bin_issued_document(company_id, document_id) - +Recover Issued Document From The Bin Recover Issued Document From The Bin @@ -1173,7 +1173,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: document_id = 56 # int | The ID of the document. try: - # + # Recover Issued Document From The Bin api_instance.recover_bin_issued_document(company_id, document_id) except Exception as e: print("Exception when calling IssuedDocumentsApi->recover_bin_issued_document: %s\n" % e) diff --git a/docs/PriceListsApi.md b/docs/PriceListsApi.md index 92657c2f..0559bb0f 100644 --- a/docs/PriceListsApi.md +++ b/docs/PriceListsApi.md @@ -43,7 +43,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = fattureincloud_python_sdk.PriceListsApi(api_client) company_id = 12345 # int | The ID of the company. - price_list_id = 'price_list_id_example' # str | + price_list_id = 'price_list_id_example' # str | The ID of the price try: # Get PriceList Items List @@ -62,7 +62,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **company_id** | **int**| The ID of the company. | - **price_list_id** | **str**| | + **price_list_id** | **str**| The ID of the price | ### Return type diff --git a/docs/ReceivedDocumentsApi.md b/docs/ReceivedDocumentsApi.md index e52a1c01..a5b26f80 100644 --- a/docs/ReceivedDocumentsApi.md +++ b/docs/ReceivedDocumentsApi.md @@ -5,7 +5,7 @@ All URIs are relative to *https://api-v2.fattureincloud.it* Method | HTTP request | Description ------------- | ------------- | ------------- [**create_received_document**](ReceivedDocumentsApi.md#create_received_document) | **POST** /c/{company_id}/received_documents | Create Received Document -[**delete_bin_received_document**](ReceivedDocumentsApi.md#delete_bin_received_document) | **DELETE** /c/{company_id}/bin/received_documents/{document_id} | +[**delete_bin_received_document**](ReceivedDocumentsApi.md#delete_bin_received_document) | **DELETE** /c/{company_id}/bin/received_documents/{document_id} | Delete Bin Received Document [**delete_received_document**](ReceivedDocumentsApi.md#delete_received_document) | **DELETE** /c/{company_id}/received_documents/{document_id} | Delete Received Document [**delete_received_document_attachment**](ReceivedDocumentsApi.md#delete_received_document_attachment) | **DELETE** /c/{company_id}/received_documents/{document_id}/attachment | Delete Received Document Attachment [**get_bin_received_document**](ReceivedDocumentsApi.md#get_bin_received_document) | **GET** /c/{company_id}/bin/received_documents/{document_id} | Get Bin Received Documents List @@ -16,7 +16,7 @@ Method | HTTP request | Description [**list_bin_received_documents**](ReceivedDocumentsApi.md#list_bin_received_documents) | **GET** /c/{company_id}/bin/received_documents | Get Bin Received Documents List [**list_received_documents**](ReceivedDocumentsApi.md#list_received_documents) | **GET** /c/{company_id}/received_documents | List Received Documents [**modify_received_document**](ReceivedDocumentsApi.md#modify_received_document) | **PUT** /c/{company_id}/received_documents/{document_id} | Modify Received Document -[**recover_bin_received_document**](ReceivedDocumentsApi.md#recover_bin_received_document) | **POST** /c/{company_id}/bin/received_documents/{document_id}/recover | +[**recover_bin_received_document**](ReceivedDocumentsApi.md#recover_bin_received_document) | **POST** /c/{company_id}/bin/received_documents/{document_id}/recover | Recover Received Document From The Bin [**upload_received_document_attachment**](ReceivedDocumentsApi.md#upload_received_document_attachment) | **POST** /c/{company_id}/received_documents/attachment | Upload Received Document Attachment @@ -101,7 +101,7 @@ Name | Type | Description | Notes # **delete_bin_received_document** > delete_bin_received_document(company_id, document_id) - +Delete Bin Received Document Delete Bin Received Document @@ -135,7 +135,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: document_id = 56 # int | The ID of the document. try: - # + # Delete Bin Received Document api_instance.delete_bin_received_document(company_id, document_id) except Exception as e: print("Exception when calling ReceivedDocumentsApi->delete_bin_received_document: %s\n" % e) @@ -971,7 +971,7 @@ Name | Type | Description | Notes # **recover_bin_received_document** > recover_bin_received_document(company_id, document_id) - +Recover Received Document From The Bin Recover Received Document From The Bin @@ -1005,7 +1005,7 @@ with fattureincloud_python_sdk.ApiClient(configuration) as api_client: document_id = 56 # int | The ID of the document. try: - # + # Recover Received Document From The Bin api_instance.recover_bin_received_document(company_id, document_id) except Exception as e: print("Exception when calling ReceivedDocumentsApi->recover_bin_received_document: %s\n" % e) diff --git a/fattureincloud_python_sdk/__init__.py b/fattureincloud_python_sdk/__init__.py index d00c05db..637a0120 100644 --- a/fattureincloud_python_sdk/__init__.py +++ b/fattureincloud_python_sdk/__init__.py @@ -3,608 +3,579 @@ # flake8: noqa """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 -__version__ = "2.1.3" +__version__ = "2.1.4" + +# Define package exports +__all__ = [ + "ArchiveApi", + "CashbookApi", + "ClientsApi", + "CompaniesApi", + "EmailsApi", + "InfoApi", + "IssuedDocumentsApi", + "IssuedEInvoicesApi", + "PriceListsApi", + "ProductsApi", + "ReceiptsApi", + "ReceivedDocumentsApi", + "SettingsApi", + "SuppliersApi", + "TaxesApi", + "UserApi", + "WebhooksApi", + "ApiResponse", + "ApiClient", + "Configuration", + "OpenApiException", + "ApiTypeError", + "ApiValueError", + "ApiKeyError", + "ApiAttributeError", + "ApiException", + "ArchiveDocument", + "AttachmentData", + "CashbookEntry", + "CashbookEntryDocument", + "CashbookEntryKind", + "CashbookEntryType", + "City", + "Client", + "ClientType", + "Company", + "CompanyInfo", + "CompanyInfoAccessInfo", + "CompanyInfoPlanInfo", + "CompanyInfoPlanInfoFunctions", + "CompanyInfoPlanInfoFunctionsStatus", + "CompanyInfoPlanInfoLimits", + "CompanyPlanUsage", + "CompanyType", + "ControlledCompany", + "CreateArchiveDocumentRequest", + "CreateArchiveDocumentResponse", + "CreateCashbookEntryRequest", + "CreateCashbookEntryResponse", + "CreateClientRequest", + "CreateClientResponse", + "CreateF24Request", + "CreateF24Response", + "CreateIssuedDocumentRequest", + "CreateIssuedDocumentResponse", + "CreatePaymentAccountRequest", + "CreatePaymentAccountResponse", + "CreatePaymentMethodRequest", + "CreatePaymentMethodResponse", + "CreateProductRequest", + "CreateProductResponse", + "CreateReceiptRequest", + "CreateReceiptResponse", + "CreateReceivedDocumentRequest", + "CreateReceivedDocumentResponse", + "CreateSupplierRequest", + "CreateSupplierResponse", + "CreateVatTypeRequest", + "CreateVatTypeResponse", + "CreateWebhooksSubscriptionRequest", + "CreateWebhooksSubscriptionResponse", + "Currency", + "DetailedCountry", + "DocumentTemplate", + "EInvoiceRejectionReason", + "Email", + "EmailAttachment", + "EmailData", + "EmailDataDefaultSenderEmail", + "EmailRecipientStatus", + "EmailSchedule", + "EmailScheduleInclude", + "EmailStatus", + "Entity", + "EntityClientPreCreateInfo", + "EntityType", + "EventType", + "F24", + "F24Status", + "FattureInCloudPlanType", + "FunctionStatus", + "GetArchiveDocumentResponse", + "GetBinIssuedDocumentResponse", + "GetBinReceivedDocumentResponse", + "GetCashbookEntryResponse", + "GetClientResponse", + "GetCompanyInfoResponse", + "GetCompanyPlanUsageResponse", + "GetEInvoiceRejectionReasonResponse", + "GetEmailDataResponse", + "GetEntityClientPreCreateInfoResponse", + "GetExistingIssuedDocumentTotalsRequest", + "GetExistingIssuedDocumentTotalsResponse", + "GetExistingReceivedDocumentTotalsRequest", + "GetExistingReceivedDocumentTotalsResponse", + "GetF24Response", + "GetIssuedDocumentPreCreateInfoResponse", + "GetIssuedDocumentResponse", + "GetNewIssuedDocumentTotalsRequest", + "GetNewIssuedDocumentTotalsResponse", + "GetNewReceivedDocumentTotalsRequest", + "GetNewReceivedDocumentTotalsResponse", + "GetPaymentAccountResponse", + "GetPaymentMethodResponse", + "GetPriceListItemsResponse", + "GetProductResponse", + "GetReceiptPreCreateInfoResponse", + "GetReceiptResponse", + "GetReceiptsMonthlyTotalsResponse", + "GetReceivedDocumentPreCreateInfoResponse", + "GetReceivedDocumentResponse", + "GetSupplierResponse", + "GetTaxProfileResponse", + "GetUserInfoResponse", + "GetUserInfoResponseEmailConfirmationState", + "GetUserInfoResponseInfo", + "GetVatTypeResponse", + "GetWebhooksSubscriptionResponse", + "IssuedDocument", + "IssuedDocumentEiData", + "IssuedDocumentExtraData", + "IssuedDocumentItemsListItem", + "IssuedDocumentOptions", + "IssuedDocumentPaymentsListItem", + "IssuedDocumentPaymentsListItemPaymentTerms", + "IssuedDocumentPreCreateInfo", + "IssuedDocumentPreCreateInfoDefaultValues", + "IssuedDocumentPreCreateInfoExtraDataDefaultValues", + "IssuedDocumentPreCreateInfoItemsDefaultValues", + "IssuedDocumentStatus", + "IssuedDocumentTotals", + "IssuedDocumentType", + "JoinIssuedDocumentsResponse", + "Language", + "ListArchiveCategoriesResponse", + "ListArchiveDocumentsResponse", + "ListArchiveDocumentsResponsePage", + "ListBinIssuedDocuments", + "ListBinReceivedDocuments", + "ListCashbookEntriesResponse", + "ListCitiesResponse", + "ListClientsResponse", + "ListClientsResponsePage", + "ListCostCentersResponse", + "ListCountriesResponse", + "ListCurrenciesResponse", + "ListDeliveryNotesDefaultCausalsResponse", + "ListDetailedCountriesResponse", + "ListEmailsResponse", + "ListEmailsResponsePage", + "ListF24Response", + "ListF24ResponseAggregatedData", + "ListF24ResponseAggregation", + "ListF24ResponsePage", + "ListIssuedDocumentsResponse", + "ListIssuedDocumentsResponsePage", + "ListLanguagesResponse", + "ListPaymentAccountsResponse", + "ListPaymentMethodsResponse", + "ListPriceListsResponse", + "ListProductCategoriesResponse", + "ListProductsResponse", + "ListProductsResponsePage", + "ListReceiptsResponse", + "ListReceiptsResponsePage", + "ListReceivedDocumentCategoriesResponse", + "ListReceivedDocumentsResponse", + "ListReceivedDocumentsResponsePage", + "ListRevenueCentersResponse", + "ListSuppliersResponse", + "ListSuppliersResponsePage", + "ListTemplatesResponse", + "ListUnitsOfMeasureResponse", + "ListUserCompaniesResponse", + "ListUserCompaniesResponseData", + "ListVatTypesResponse", + "ListWebhooksSubscriptionsResponse", + "ModifyArchiveDocumentRequest", + "ModifyArchiveDocumentResponse", + "ModifyCashbookEntryRequest", + "ModifyCashbookEntryResponse", + "ModifyClientRequest", + "ModifyClientResponse", + "ModifyF24Request", + "ModifyF24Response", + "ModifyIssuedDocumentRequest", + "ModifyIssuedDocumentResponse", + "ModifyPaymentAccountRequest", + "ModifyPaymentAccountResponse", + "ModifyPaymentMethodRequest", + "ModifyPaymentMethodResponse", + "ModifyProductRequest", + "ModifyProductResponse", + "ModifyReceiptRequest", + "ModifyReceiptResponse", + "ModifyReceivedDocumentRequest", + "ModifyReceivedDocumentResponse", + "ModifySupplierRequest", + "ModifySupplierResponse", + "ModifyVatTypeRequest", + "ModifyVatTypeResponse", + "ModifyWebhooksSubscriptionRequest", + "ModifyWebhooksSubscriptionResponse", + "MonthlyTotal", + "OriginalDocumentType", + "Pagination", + "PaymentAccount", + "PaymentAccountType", + "PaymentMethod", + "PaymentMethodDetails", + "PaymentMethodType", + "PaymentTermsType", + "PermissionLevel", + "Permissions", + "PermissionsFicIssuedDocumentsDetailed", + "PriceList", + "PriceListItem", + "PriceListPricesType", + "PriceListType", + "Product", + "Receipt", + "ReceiptItemsListItem", + "ReceiptPreCreateInfo", + "ReceiptType", + "ReceivedDocument", + "ReceivedDocumentInfo", + "ReceivedDocumentInfoDefaultValues", + "ReceivedDocumentInfoItemsDefaultValues", + "ReceivedDocumentItemsListItem", + "ReceivedDocumentPaymentsListItem", + "ReceivedDocumentPaymentsListItemPaymentTerms", + "ReceivedDocumentTotals", + "ReceivedDocumentType", + "ScheduleEmailRequest", + "SendEInvoiceRequest", + "SendEInvoiceRequestData", + "SendEInvoiceRequestOptions", + "SendEInvoiceResponse", + "SendEInvoiceResponseData", + "SenderEmail", + "ShowTotalsMode", + "Supplier", + "SupplierType", + "TaxProfile", + "TransformIssuedDocumentResponse", + "UploadArchiveAttachmentResponse", + "UploadF24AttachmentResponse", + "UploadIssuedDocumentAttachmentResponse", + "UploadReceivedDocumentAttachmentResponse", + "User", + "UserCompanyRole", + "VatItem", + "VatKind", + "VatType", + "VerifyEInvoiceXmlErrorResponse", + "VerifyEInvoiceXmlErrorResponseError", + "VerifyEInvoiceXmlErrorResponseErrorValidationResult", + "VerifyEInvoiceXmlErrorResponseExtra", + "VerifyEInvoiceXmlResponse", + "VerifyEInvoiceXmlResponseData", + "VerifyWebhooksSubscription", + "VerifyWebhooksSubscriptionRequest", + "WebhooksSubscription", + "WebhooksSubscriptionConfig", + "WebhooksSubscriptionMapping", + "WebhooksSubscriptionVerificationMethod", +] # import apis into sdk package -from fattureincloud_python_sdk.api.archive_api import ArchiveApi -from fattureincloud_python_sdk.api.cashbook_api import CashbookApi -from fattureincloud_python_sdk.api.clients_api import ClientsApi -from fattureincloud_python_sdk.api.companies_api import CompaniesApi -from fattureincloud_python_sdk.api.emails_api import EmailsApi -from fattureincloud_python_sdk.api.info_api import InfoApi -from fattureincloud_python_sdk.api.issued_documents_api import IssuedDocumentsApi -from fattureincloud_python_sdk.api.issued_e_invoices_api import IssuedEInvoicesApi -from fattureincloud_python_sdk.api.price_lists_api import PriceListsApi -from fattureincloud_python_sdk.api.products_api import ProductsApi -from fattureincloud_python_sdk.api.receipts_api import ReceiptsApi -from fattureincloud_python_sdk.api.received_documents_api import ReceivedDocumentsApi -from fattureincloud_python_sdk.api.settings_api import SettingsApi -from fattureincloud_python_sdk.api.suppliers_api import SuppliersApi -from fattureincloud_python_sdk.api.taxes_api import TaxesApi -from fattureincloud_python_sdk.api.user_api import UserApi -from fattureincloud_python_sdk.api.webhooks_api import WebhooksApi +from fattureincloud_python_sdk.api.archive_api import ArchiveApi as ArchiveApi +from fattureincloud_python_sdk.api.cashbook_api import CashbookApi as CashbookApi +from fattureincloud_python_sdk.api.clients_api import ClientsApi as ClientsApi +from fattureincloud_python_sdk.api.companies_api import CompaniesApi as CompaniesApi +from fattureincloud_python_sdk.api.emails_api import EmailsApi as EmailsApi +from fattureincloud_python_sdk.api.info_api import InfoApi as InfoApi +from fattureincloud_python_sdk.api.issued_documents_api import IssuedDocumentsApi as IssuedDocumentsApi +from fattureincloud_python_sdk.api.issued_e_invoices_api import IssuedEInvoicesApi as IssuedEInvoicesApi +from fattureincloud_python_sdk.api.price_lists_api import PriceListsApi as PriceListsApi +from fattureincloud_python_sdk.api.products_api import ProductsApi as ProductsApi +from fattureincloud_python_sdk.api.receipts_api import ReceiptsApi as ReceiptsApi +from fattureincloud_python_sdk.api.received_documents_api import ReceivedDocumentsApi as ReceivedDocumentsApi +from fattureincloud_python_sdk.api.settings_api import SettingsApi as SettingsApi +from fattureincloud_python_sdk.api.suppliers_api import SuppliersApi as SuppliersApi +from fattureincloud_python_sdk.api.taxes_api import TaxesApi as TaxesApi +from fattureincloud_python_sdk.api.user_api import UserApi as UserApi +from fattureincloud_python_sdk.api.webhooks_api import WebhooksApi as WebhooksApi # import ApiClient -from fattureincloud_python_sdk.api_response import ApiResponse -from fattureincloud_python_sdk.api_client import ApiClient -from fattureincloud_python_sdk.configuration import Configuration -from fattureincloud_python_sdk.exceptions import OpenApiException -from fattureincloud_python_sdk.exceptions import ApiTypeError -from fattureincloud_python_sdk.exceptions import ApiValueError -from fattureincloud_python_sdk.exceptions import ApiKeyError -from fattureincloud_python_sdk.exceptions import ApiAttributeError -from fattureincloud_python_sdk.exceptions import ApiException +from fattureincloud_python_sdk.api_response import ApiResponse as ApiResponse +from fattureincloud_python_sdk.api_client import ApiClient as ApiClient +from fattureincloud_python_sdk.configuration import Configuration as Configuration +from fattureincloud_python_sdk.exceptions import OpenApiException as OpenApiException +from fattureincloud_python_sdk.exceptions import ApiTypeError as ApiTypeError +from fattureincloud_python_sdk.exceptions import ApiValueError as ApiValueError +from fattureincloud_python_sdk.exceptions import ApiKeyError as ApiKeyError +from fattureincloud_python_sdk.exceptions import ApiAttributeError as ApiAttributeError +from fattureincloud_python_sdk.exceptions import ApiException as ApiException # import models into sdk package -from fattureincloud_python_sdk.models.archive_document import ArchiveDocument -from fattureincloud_python_sdk.models.attachment_data import AttachmentData -from fattureincloud_python_sdk.models.cashbook_entry import CashbookEntry -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.city import City -from fattureincloud_python_sdk.models.client import Client -from fattureincloud_python_sdk.models.client_type import ClientType -from fattureincloud_python_sdk.models.company import Company -from fattureincloud_python_sdk.models.company_info import CompanyInfo -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_info_plan_info_functions import ( - CompanyInfoPlanInfoFunctions, -) -from fattureincloud_python_sdk.models.company_info_plan_info_functions_status import ( - CompanyInfoPlanInfoFunctionsStatus, -) -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 ( - CreateArchiveDocumentRequest, -) -from fattureincloud_python_sdk.models.create_archive_document_response import ( - CreateArchiveDocumentResponse, -) -from fattureincloud_python_sdk.models.create_cashbook_entry_request import ( - CreateCashbookEntryRequest, -) -from fattureincloud_python_sdk.models.create_cashbook_entry_response import ( - CreateCashbookEntryResponse, -) -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.create_f24_request import CreateF24Request -from fattureincloud_python_sdk.models.create_f24_response import CreateF24Response -from fattureincloud_python_sdk.models.create_issued_document_request import ( - CreateIssuedDocumentRequest, -) -from fattureincloud_python_sdk.models.create_issued_document_response import ( - CreateIssuedDocumentResponse, -) -from fattureincloud_python_sdk.models.create_payment_account_request import ( - CreatePaymentAccountRequest, -) -from fattureincloud_python_sdk.models.create_payment_account_response import ( - CreatePaymentAccountResponse, -) -from fattureincloud_python_sdk.models.create_payment_method_request import ( - CreatePaymentMethodRequest, -) -from fattureincloud_python_sdk.models.create_payment_method_response import ( - CreatePaymentMethodResponse, -) -from fattureincloud_python_sdk.models.create_product_request import CreateProductRequest -from fattureincloud_python_sdk.models.create_product_response import ( - CreateProductResponse, -) -from fattureincloud_python_sdk.models.create_receipt_request import CreateReceiptRequest -from fattureincloud_python_sdk.models.create_receipt_response import ( - CreateReceiptResponse, -) -from fattureincloud_python_sdk.models.create_received_document_request import ( - CreateReceivedDocumentRequest, -) -from fattureincloud_python_sdk.models.create_received_document_response import ( - CreateReceivedDocumentResponse, -) -from fattureincloud_python_sdk.models.create_supplier_request import ( - CreateSupplierRequest, -) -from fattureincloud_python_sdk.models.create_supplier_response import ( - CreateSupplierResponse, -) -from fattureincloud_python_sdk.models.create_vat_type_request import ( - CreateVatTypeRequest, -) -from fattureincloud_python_sdk.models.create_vat_type_response import ( - CreateVatTypeResponse, -) -from fattureincloud_python_sdk.models.create_webhooks_subscription_request import ( - CreateWebhooksSubscriptionRequest, -) -from fattureincloud_python_sdk.models.create_webhooks_subscription_response import ( - CreateWebhooksSubscriptionResponse, -) -from fattureincloud_python_sdk.models.currency import Currency -from fattureincloud_python_sdk.models.detailed_country import DetailedCountry -from fattureincloud_python_sdk.models.document_template import DocumentTemplate -from fattureincloud_python_sdk.models.e_invoice_rejection_reason import ( - EInvoiceRejectionReason, -) -from fattureincloud_python_sdk.models.email import Email -from fattureincloud_python_sdk.models.email_attachment import EmailAttachment -from fattureincloud_python_sdk.models.email_data import EmailData -from fattureincloud_python_sdk.models.email_data_default_sender_email import ( - EmailDataDefaultSenderEmail, -) -from fattureincloud_python_sdk.models.email_recipient_status import EmailRecipientStatus -from fattureincloud_python_sdk.models.email_schedule import EmailSchedule -from fattureincloud_python_sdk.models.email_schedule_include import EmailScheduleInclude -from fattureincloud_python_sdk.models.email_status import EmailStatus -from fattureincloud_python_sdk.models.entity import Entity -from fattureincloud_python_sdk.models.entity_client_pre_create_info import ( - EntityClientPreCreateInfo, -) -from fattureincloud_python_sdk.models.entity_type import EntityType -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, -) -from fattureincloud_python_sdk.models.get_bin_issued_document_response import ( - GetBinIssuedDocumentResponse, -) -from fattureincloud_python_sdk.models.get_bin_received_document_response import ( - GetBinReceivedDocumentResponse, -) -from fattureincloud_python_sdk.models.get_cashbook_entry_response import ( - GetCashbookEntryResponse, -) -from fattureincloud_python_sdk.models.get_client_response import GetClientResponse -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, -) -from fattureincloud_python_sdk.models.get_email_data_response import ( - GetEmailDataResponse, -) -from fattureincloud_python_sdk.models.get_entity_client_pre_create_info_response import ( - GetEntityClientPreCreateInfoResponse, -) -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, -) -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, -) -from fattureincloud_python_sdk.models.get_f24_response import GetF24Response -from fattureincloud_python_sdk.models.get_issued_document_pre_create_info_response import ( - GetIssuedDocumentPreCreateInfoResponse, -) -from fattureincloud_python_sdk.models.get_issued_document_response import ( - GetIssuedDocumentResponse, -) -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, -) -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, -) -from fattureincloud_python_sdk.models.get_payment_account_response import ( - GetPaymentAccountResponse, -) -from fattureincloud_python_sdk.models.get_payment_method_response import ( - GetPaymentMethodResponse, -) -from fattureincloud_python_sdk.models.get_price_list_items_response import ( - GetPriceListItemsResponse, -) -from fattureincloud_python_sdk.models.get_product_response import GetProductResponse -from fattureincloud_python_sdk.models.get_receipt_pre_create_info_response import ( - GetReceiptPreCreateInfoResponse, -) -from fattureincloud_python_sdk.models.get_receipt_response import GetReceiptResponse -from fattureincloud_python_sdk.models.get_receipts_monthly_totals_response import ( - GetReceiptsMonthlyTotalsResponse, -) -from fattureincloud_python_sdk.models.get_received_document_pre_create_info_response import ( - GetReceivedDocumentPreCreateInfoResponse, -) -from fattureincloud_python_sdk.models.get_received_document_response import ( - GetReceivedDocumentResponse, -) -from fattureincloud_python_sdk.models.get_supplier_response import GetSupplierResponse -from fattureincloud_python_sdk.models.get_tax_profile_response import ( - GetTaxProfileResponse, -) -from fattureincloud_python_sdk.models.get_user_info_response import GetUserInfoResponse -from fattureincloud_python_sdk.models.get_user_info_response_email_confirmation_state import ( - GetUserInfoResponseEmailConfirmationState, -) -from fattureincloud_python_sdk.models.get_user_info_response_info import ( - GetUserInfoResponseInfo, -) -from fattureincloud_python_sdk.models.get_vat_type_response import GetVatTypeResponse -from fattureincloud_python_sdk.models.get_webhooks_subscription_response import ( - GetWebhooksSubscriptionResponse, -) -from fattureincloud_python_sdk.models.issued_document import IssuedDocument -from fattureincloud_python_sdk.models.issued_document_ei_data import ( - IssuedDocumentEiData, -) -from fattureincloud_python_sdk.models.issued_document_extra_data import ( - IssuedDocumentExtraData, -) -from fattureincloud_python_sdk.models.issued_document_items_list_item import ( - IssuedDocumentItemsListItem, -) -from fattureincloud_python_sdk.models.issued_document_options import ( - IssuedDocumentOptions, -) -from fattureincloud_python_sdk.models.issued_document_payments_list_item import ( - IssuedDocumentPaymentsListItem, -) -from fattureincloud_python_sdk.models.issued_document_payments_list_item_payment_terms import ( - IssuedDocumentPaymentsListItemPaymentTerms, -) -from fattureincloud_python_sdk.models.issued_document_pre_create_info import ( - IssuedDocumentPreCreateInfo, -) -from fattureincloud_python_sdk.models.issued_document_pre_create_info_default_values import ( - IssuedDocumentPreCreateInfoDefaultValues, -) -from fattureincloud_python_sdk.models.issued_document_pre_create_info_extra_data_default_values import ( - IssuedDocumentPreCreateInfoExtraDataDefaultValues, -) -from fattureincloud_python_sdk.models.issued_document_pre_create_info_items_default_values import ( - IssuedDocumentPreCreateInfoItemsDefaultValues, -) -from fattureincloud_python_sdk.models.issued_document_status import IssuedDocumentStatus -from fattureincloud_python_sdk.models.issued_document_totals import IssuedDocumentTotals -from fattureincloud_python_sdk.models.issued_document_type import IssuedDocumentType -from fattureincloud_python_sdk.models.join_issued_documents_response import ( - JoinIssuedDocumentsResponse, -) -from fattureincloud_python_sdk.models.language import Language -from fattureincloud_python_sdk.models.list_archive_categories_response import ( - ListArchiveCategoriesResponse, -) -from fattureincloud_python_sdk.models.list_archive_documents_response import ( - ListArchiveDocumentsResponse, -) -from fattureincloud_python_sdk.models.list_archive_documents_response_page import ( - ListArchiveDocumentsResponsePage, -) -from fattureincloud_python_sdk.models.list_bin_issued_documents import ( - ListBinIssuedDocuments, -) -from fattureincloud_python_sdk.models.list_bin_received_documents import ( - ListBinReceivedDocuments, -) -from fattureincloud_python_sdk.models.list_cashbook_entries_response import ( - ListCashbookEntriesResponse, -) -from fattureincloud_python_sdk.models.list_cities_response import ListCitiesResponse -from fattureincloud_python_sdk.models.list_clients_response import ListClientsResponse -from fattureincloud_python_sdk.models.list_clients_response_page import ( - ListClientsResponsePage, -) -from fattureincloud_python_sdk.models.list_cost_centers_response import ( - ListCostCentersResponse, -) -from fattureincloud_python_sdk.models.list_countries_response import ( - ListCountriesResponse, -) -from fattureincloud_python_sdk.models.list_currencies_response import ( - ListCurrenciesResponse, -) -from fattureincloud_python_sdk.models.list_delivery_notes_default_causals_response import ( - ListDeliveryNotesDefaultCausalsResponse, -) -from fattureincloud_python_sdk.models.list_detailed_countries_response import ( - ListDetailedCountriesResponse, -) -from fattureincloud_python_sdk.models.list_emails_response import ListEmailsResponse -from fattureincloud_python_sdk.models.list_emails_response_page import ( - ListEmailsResponsePage, -) -from fattureincloud_python_sdk.models.list_f24_response import ListF24Response -from fattureincloud_python_sdk.models.list_f24_response_aggregated_data import ( - ListF24ResponseAggregatedData, -) -from fattureincloud_python_sdk.models.list_f24_response_aggregation import ( - ListF24ResponseAggregation, -) -from fattureincloud_python_sdk.models.list_f24_response_page import ListF24ResponsePage -from fattureincloud_python_sdk.models.list_issued_documents_response import ( - ListIssuedDocumentsResponse, -) -from fattureincloud_python_sdk.models.list_issued_documents_response_page import ( - ListIssuedDocumentsResponsePage, -) -from fattureincloud_python_sdk.models.list_languages_response import ( - ListLanguagesResponse, -) -from fattureincloud_python_sdk.models.list_payment_accounts_response import ( - ListPaymentAccountsResponse, -) -from fattureincloud_python_sdk.models.list_payment_methods_response import ( - ListPaymentMethodsResponse, -) -from fattureincloud_python_sdk.models.list_price_lists_response import ( - ListPriceListsResponse, -) -from fattureincloud_python_sdk.models.list_product_categories_response import ( - ListProductCategoriesResponse, -) -from fattureincloud_python_sdk.models.list_products_response import ListProductsResponse -from fattureincloud_python_sdk.models.list_products_response_page import ( - ListProductsResponsePage, -) -from fattureincloud_python_sdk.models.list_receipts_response import ListReceiptsResponse -from fattureincloud_python_sdk.models.list_receipts_response_page import ( - ListReceiptsResponsePage, -) -from fattureincloud_python_sdk.models.list_received_document_categories_response import ( - ListReceivedDocumentCategoriesResponse, -) -from fattureincloud_python_sdk.models.list_received_documents_response import ( - ListReceivedDocumentsResponse, -) -from fattureincloud_python_sdk.models.list_received_documents_response_page import ( - ListReceivedDocumentsResponsePage, -) -from fattureincloud_python_sdk.models.list_revenue_centers_response import ( - ListRevenueCentersResponse, -) -from fattureincloud_python_sdk.models.list_suppliers_response import ( - ListSuppliersResponse, -) -from fattureincloud_python_sdk.models.list_suppliers_response_page import ( - ListSuppliersResponsePage, -) -from fattureincloud_python_sdk.models.list_templates_response import ( - ListTemplatesResponse, -) -from fattureincloud_python_sdk.models.list_units_of_measure_response import ( - ListUnitsOfMeasureResponse, -) -from fattureincloud_python_sdk.models.list_user_companies_response import ( - ListUserCompaniesResponse, -) -from fattureincloud_python_sdk.models.list_user_companies_response_data import ( - ListUserCompaniesResponseData, -) -from fattureincloud_python_sdk.models.list_vat_types_response import ( - ListVatTypesResponse, -) -from fattureincloud_python_sdk.models.list_webhooks_subscriptions_response import ( - ListWebhooksSubscriptionsResponse, -) -from fattureincloud_python_sdk.models.modify_archive_document_request import ( - ModifyArchiveDocumentRequest, -) -from fattureincloud_python_sdk.models.modify_archive_document_response import ( - ModifyArchiveDocumentResponse, -) -from fattureincloud_python_sdk.models.modify_cashbook_entry_request import ( - ModifyCashbookEntryRequest, -) -from fattureincloud_python_sdk.models.modify_cashbook_entry_response import ( - ModifyCashbookEntryResponse, -) -from fattureincloud_python_sdk.models.modify_client_request import ModifyClientRequest -from fattureincloud_python_sdk.models.modify_client_response import ModifyClientResponse -from fattureincloud_python_sdk.models.modify_f24_request import ModifyF24Request -from fattureincloud_python_sdk.models.modify_f24_response import ModifyF24Response -from fattureincloud_python_sdk.models.modify_issued_document_request import ( - ModifyIssuedDocumentRequest, -) -from fattureincloud_python_sdk.models.modify_issued_document_response import ( - ModifyIssuedDocumentResponse, -) -from fattureincloud_python_sdk.models.modify_payment_account_request import ( - ModifyPaymentAccountRequest, -) -from fattureincloud_python_sdk.models.modify_payment_account_response import ( - ModifyPaymentAccountResponse, -) -from fattureincloud_python_sdk.models.modify_payment_method_request import ( - ModifyPaymentMethodRequest, -) -from fattureincloud_python_sdk.models.modify_payment_method_response import ( - ModifyPaymentMethodResponse, -) -from fattureincloud_python_sdk.models.modify_product_request import ModifyProductRequest -from fattureincloud_python_sdk.models.modify_product_response import ( - ModifyProductResponse, -) -from fattureincloud_python_sdk.models.modify_receipt_request import ModifyReceiptRequest -from fattureincloud_python_sdk.models.modify_receipt_response import ( - ModifyReceiptResponse, -) -from fattureincloud_python_sdk.models.modify_received_document_request import ( - ModifyReceivedDocumentRequest, -) -from fattureincloud_python_sdk.models.modify_received_document_response import ( - ModifyReceivedDocumentResponse, -) -from fattureincloud_python_sdk.models.modify_supplier_request import ( - ModifySupplierRequest, -) -from fattureincloud_python_sdk.models.modify_supplier_response import ( - ModifySupplierResponse, -) -from fattureincloud_python_sdk.models.modify_vat_type_request import ( - ModifyVatTypeRequest, -) -from fattureincloud_python_sdk.models.modify_vat_type_response import ( - ModifyVatTypeResponse, -) -from fattureincloud_python_sdk.models.modify_webhooks_subscription_request import ( - ModifyWebhooksSubscriptionRequest, -) -from fattureincloud_python_sdk.models.modify_webhooks_subscription_response import ( - ModifyWebhooksSubscriptionResponse, -) -from fattureincloud_python_sdk.models.monthly_total import MonthlyTotal -from fattureincloud_python_sdk.models.original_document_type import OriginalDocumentType -from fattureincloud_python_sdk.models.pagination import Pagination -from fattureincloud_python_sdk.models.payment_account import PaymentAccount -from fattureincloud_python_sdk.models.payment_account_type import PaymentAccountType -from fattureincloud_python_sdk.models.payment_method import PaymentMethod -from fattureincloud_python_sdk.models.payment_method_details import PaymentMethodDetails -from fattureincloud_python_sdk.models.payment_method_type import PaymentMethodType -from fattureincloud_python_sdk.models.payment_terms_type import PaymentTermsType -from fattureincloud_python_sdk.models.permission_level import PermissionLevel -from fattureincloud_python_sdk.models.permissions import Permissions -from fattureincloud_python_sdk.models.permissions_fic_issued_documents_detailed import ( - PermissionsFicIssuedDocumentsDetailed, -) -from fattureincloud_python_sdk.models.price_list import PriceList -from fattureincloud_python_sdk.models.price_list_item import PriceListItem -from fattureincloud_python_sdk.models.price_list_prices_type import PriceListPricesType -from fattureincloud_python_sdk.models.price_list_type import PriceListType -from fattureincloud_python_sdk.models.product import Product -from fattureincloud_python_sdk.models.receipt import Receipt -from fattureincloud_python_sdk.models.receipt_items_list_item import ( - ReceiptItemsListItem, -) -from fattureincloud_python_sdk.models.receipt_pre_create_info import ( - ReceiptPreCreateInfo, -) -from fattureincloud_python_sdk.models.receipt_type import ReceiptType -from fattureincloud_python_sdk.models.received_document import ReceivedDocument -from fattureincloud_python_sdk.models.received_document_info import ReceivedDocumentInfo -from fattureincloud_python_sdk.models.received_document_info_default_values import ( - ReceivedDocumentInfoDefaultValues, -) -from fattureincloud_python_sdk.models.received_document_info_items_default_values import ( - ReceivedDocumentInfoItemsDefaultValues, -) -from fattureincloud_python_sdk.models.received_document_items_list_item import ( - ReceivedDocumentItemsListItem, -) -from fattureincloud_python_sdk.models.received_document_payments_list_item import ( - ReceivedDocumentPaymentsListItem, -) -from fattureincloud_python_sdk.models.received_document_payments_list_item_payment_terms import ( - ReceivedDocumentPaymentsListItemPaymentTerms, -) -from fattureincloud_python_sdk.models.received_document_totals import ( - ReceivedDocumentTotals, -) -from fattureincloud_python_sdk.models.received_document_type import ReceivedDocumentType -from fattureincloud_python_sdk.models.schedule_email_request import ScheduleEmailRequest -from fattureincloud_python_sdk.models.send_e_invoice_request import SendEInvoiceRequest -from fattureincloud_python_sdk.models.send_e_invoice_request_data import ( - SendEInvoiceRequestData, -) -from fattureincloud_python_sdk.models.send_e_invoice_request_options import ( - SendEInvoiceRequestOptions, -) -from fattureincloud_python_sdk.models.send_e_invoice_response import ( - SendEInvoiceResponse, -) -from fattureincloud_python_sdk.models.send_e_invoice_response_data import ( - SendEInvoiceResponseData, -) -from fattureincloud_python_sdk.models.sender_email import SenderEmail -from fattureincloud_python_sdk.models.show_totals_mode import ShowTotalsMode -from fattureincloud_python_sdk.models.supplier import Supplier -from fattureincloud_python_sdk.models.supplier_type import SupplierType -from fattureincloud_python_sdk.models.tax_profile import TaxProfile -from fattureincloud_python_sdk.models.transform_issued_document_response import ( - TransformIssuedDocumentResponse, -) -from fattureincloud_python_sdk.models.upload_archive_attachment_response import ( - UploadArchiveAttachmentResponse, -) -from fattureincloud_python_sdk.models.upload_f24_attachment_response import ( - UploadF24AttachmentResponse, -) -from fattureincloud_python_sdk.models.upload_issued_document_attachment_response import ( - UploadIssuedDocumentAttachmentResponse, -) -from fattureincloud_python_sdk.models.upload_received_document_attachment_response import ( - UploadReceivedDocumentAttachmentResponse, -) -from fattureincloud_python_sdk.models.user import User -from fattureincloud_python_sdk.models.user_company_role import UserCompanyRole -from fattureincloud_python_sdk.models.vat_item import VatItem -from fattureincloud_python_sdk.models.vat_kind import VatKind -from fattureincloud_python_sdk.models.vat_type import VatType -from fattureincloud_python_sdk.models.verify_e_invoice_xml_error_response import ( - VerifyEInvoiceXmlErrorResponse, -) -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_error_validation_result import ( - VerifyEInvoiceXmlErrorResponseErrorValidationResult, -) -from fattureincloud_python_sdk.models.verify_e_invoice_xml_error_response_extra import ( - VerifyEInvoiceXmlErrorResponseExtra, -) -from fattureincloud_python_sdk.models.verify_e_invoice_xml_response import ( - VerifyEInvoiceXmlResponse, -) -from fattureincloud_python_sdk.models.verify_e_invoice_xml_response_data import ( - VerifyEInvoiceXmlResponseData, -) -from fattureincloud_python_sdk.models.verify_webhooks_subscription import ( - VerifyWebhooksSubscription, -) -from fattureincloud_python_sdk.models.verify_webhooks_subscription_request import ( - VerifyWebhooksSubscriptionRequest, -) -from fattureincloud_python_sdk.models.webhooks_subscription import WebhooksSubscription -from fattureincloud_python_sdk.models.webhooks_subscription_config import ( - WebhooksSubscriptionConfig, -) -from fattureincloud_python_sdk.models.webhooks_subscription_mapping import ( - WebhooksSubscriptionMapping, -) -from fattureincloud_python_sdk.models.webhooks_subscription_verification_method import ( - WebhooksSubscriptionVerificationMethod, -) +from fattureincloud_python_sdk.models.archive_document import ArchiveDocument as ArchiveDocument +from fattureincloud_python_sdk.models.attachment_data import AttachmentData as AttachmentData +from fattureincloud_python_sdk.models.cashbook_entry import CashbookEntry as CashbookEntry +from fattureincloud_python_sdk.models.cashbook_entry_document import CashbookEntryDocument as CashbookEntryDocument +from fattureincloud_python_sdk.models.cashbook_entry_kind import CashbookEntryKind as CashbookEntryKind +from fattureincloud_python_sdk.models.cashbook_entry_type import CashbookEntryType as CashbookEntryType +from fattureincloud_python_sdk.models.city import City as City +from fattureincloud_python_sdk.models.client import Client as Client +from fattureincloud_python_sdk.models.client_type import ClientType as ClientType +from fattureincloud_python_sdk.models.company import Company as Company +from fattureincloud_python_sdk.models.company_info import CompanyInfo as CompanyInfo +from fattureincloud_python_sdk.models.company_info_access_info import CompanyInfoAccessInfo as CompanyInfoAccessInfo +from fattureincloud_python_sdk.models.company_info_plan_info import CompanyInfoPlanInfo as CompanyInfoPlanInfo +from fattureincloud_python_sdk.models.company_info_plan_info_functions import CompanyInfoPlanInfoFunctions as CompanyInfoPlanInfoFunctions +from fattureincloud_python_sdk.models.company_info_plan_info_functions_status import CompanyInfoPlanInfoFunctionsStatus as CompanyInfoPlanInfoFunctionsStatus +from fattureincloud_python_sdk.models.company_info_plan_info_limits import CompanyInfoPlanInfoLimits as CompanyInfoPlanInfoLimits +from fattureincloud_python_sdk.models.company_plan_usage import CompanyPlanUsage as CompanyPlanUsage +from fattureincloud_python_sdk.models.company_type import CompanyType as CompanyType +from fattureincloud_python_sdk.models.controlled_company import ControlledCompany as ControlledCompany +from fattureincloud_python_sdk.models.create_archive_document_request import CreateArchiveDocumentRequest as CreateArchiveDocumentRequest +from fattureincloud_python_sdk.models.create_archive_document_response import CreateArchiveDocumentResponse as CreateArchiveDocumentResponse +from fattureincloud_python_sdk.models.create_cashbook_entry_request import CreateCashbookEntryRequest as CreateCashbookEntryRequest +from fattureincloud_python_sdk.models.create_cashbook_entry_response import CreateCashbookEntryResponse as CreateCashbookEntryResponse +from fattureincloud_python_sdk.models.create_client_request import CreateClientRequest as CreateClientRequest +from fattureincloud_python_sdk.models.create_client_response import CreateClientResponse as CreateClientResponse +from fattureincloud_python_sdk.models.create_f24_request import CreateF24Request as CreateF24Request +from fattureincloud_python_sdk.models.create_f24_response import CreateF24Response as CreateF24Response +from fattureincloud_python_sdk.models.create_issued_document_request import CreateIssuedDocumentRequest as CreateIssuedDocumentRequest +from fattureincloud_python_sdk.models.create_issued_document_response import CreateIssuedDocumentResponse as CreateIssuedDocumentResponse +from fattureincloud_python_sdk.models.create_payment_account_request import CreatePaymentAccountRequest as CreatePaymentAccountRequest +from fattureincloud_python_sdk.models.create_payment_account_response import CreatePaymentAccountResponse as CreatePaymentAccountResponse +from fattureincloud_python_sdk.models.create_payment_method_request import CreatePaymentMethodRequest as CreatePaymentMethodRequest +from fattureincloud_python_sdk.models.create_payment_method_response import CreatePaymentMethodResponse as CreatePaymentMethodResponse +from fattureincloud_python_sdk.models.create_product_request import CreateProductRequest as CreateProductRequest +from fattureincloud_python_sdk.models.create_product_response import CreateProductResponse as CreateProductResponse +from fattureincloud_python_sdk.models.create_receipt_request import CreateReceiptRequest as CreateReceiptRequest +from fattureincloud_python_sdk.models.create_receipt_response import CreateReceiptResponse as CreateReceiptResponse +from fattureincloud_python_sdk.models.create_received_document_request import CreateReceivedDocumentRequest as CreateReceivedDocumentRequest +from fattureincloud_python_sdk.models.create_received_document_response import CreateReceivedDocumentResponse as CreateReceivedDocumentResponse +from fattureincloud_python_sdk.models.create_supplier_request import CreateSupplierRequest as CreateSupplierRequest +from fattureincloud_python_sdk.models.create_supplier_response import CreateSupplierResponse as CreateSupplierResponse +from fattureincloud_python_sdk.models.create_vat_type_request import CreateVatTypeRequest as CreateVatTypeRequest +from fattureincloud_python_sdk.models.create_vat_type_response import CreateVatTypeResponse as CreateVatTypeResponse +from fattureincloud_python_sdk.models.create_webhooks_subscription_request import CreateWebhooksSubscriptionRequest as CreateWebhooksSubscriptionRequest +from fattureincloud_python_sdk.models.create_webhooks_subscription_response import CreateWebhooksSubscriptionResponse as CreateWebhooksSubscriptionResponse +from fattureincloud_python_sdk.models.currency import Currency as Currency +from fattureincloud_python_sdk.models.detailed_country import DetailedCountry as DetailedCountry +from fattureincloud_python_sdk.models.document_template import DocumentTemplate as DocumentTemplate +from fattureincloud_python_sdk.models.e_invoice_rejection_reason import EInvoiceRejectionReason as EInvoiceRejectionReason +from fattureincloud_python_sdk.models.email import Email as Email +from fattureincloud_python_sdk.models.email_attachment import EmailAttachment as EmailAttachment +from fattureincloud_python_sdk.models.email_data import EmailData as EmailData +from fattureincloud_python_sdk.models.email_data_default_sender_email import EmailDataDefaultSenderEmail as EmailDataDefaultSenderEmail +from fattureincloud_python_sdk.models.email_recipient_status import EmailRecipientStatus as EmailRecipientStatus +from fattureincloud_python_sdk.models.email_schedule import EmailSchedule as EmailSchedule +from fattureincloud_python_sdk.models.email_schedule_include import EmailScheduleInclude as EmailScheduleInclude +from fattureincloud_python_sdk.models.email_status import EmailStatus as EmailStatus +from fattureincloud_python_sdk.models.entity import Entity as Entity +from fattureincloud_python_sdk.models.entity_client_pre_create_info import EntityClientPreCreateInfo as EntityClientPreCreateInfo +from fattureincloud_python_sdk.models.entity_type import EntityType as EntityType +from fattureincloud_python_sdk.models.event_type import EventType as EventType +from fattureincloud_python_sdk.models.f24 import F24 as F24 +from fattureincloud_python_sdk.models.f24_status import F24Status as F24Status +from fattureincloud_python_sdk.models.fatture_in_cloud_plan_type import FattureInCloudPlanType as FattureInCloudPlanType +from fattureincloud_python_sdk.models.function_status import FunctionStatus as FunctionStatus +from fattureincloud_python_sdk.models.get_archive_document_response import GetArchiveDocumentResponse as GetArchiveDocumentResponse +from fattureincloud_python_sdk.models.get_bin_issued_document_response import GetBinIssuedDocumentResponse as GetBinIssuedDocumentResponse +from fattureincloud_python_sdk.models.get_bin_received_document_response import GetBinReceivedDocumentResponse as GetBinReceivedDocumentResponse +from fattureincloud_python_sdk.models.get_cashbook_entry_response import GetCashbookEntryResponse as GetCashbookEntryResponse +from fattureincloud_python_sdk.models.get_client_response import GetClientResponse as GetClientResponse +from fattureincloud_python_sdk.models.get_company_info_response import GetCompanyInfoResponse as GetCompanyInfoResponse +from fattureincloud_python_sdk.models.get_company_plan_usage_response import GetCompanyPlanUsageResponse as GetCompanyPlanUsageResponse +from fattureincloud_python_sdk.models.get_e_invoice_rejection_reason_response import GetEInvoiceRejectionReasonResponse as GetEInvoiceRejectionReasonResponse +from fattureincloud_python_sdk.models.get_email_data_response import GetEmailDataResponse as GetEmailDataResponse +from fattureincloud_python_sdk.models.get_entity_client_pre_create_info_response import GetEntityClientPreCreateInfoResponse as GetEntityClientPreCreateInfoResponse +from fattureincloud_python_sdk.models.get_existing_issued_document_totals_request import GetExistingIssuedDocumentTotalsRequest as GetExistingIssuedDocumentTotalsRequest +from fattureincloud_python_sdk.models.get_existing_issued_document_totals_response import GetExistingIssuedDocumentTotalsResponse as GetExistingIssuedDocumentTotalsResponse +from fattureincloud_python_sdk.models.get_existing_received_document_totals_request import GetExistingReceivedDocumentTotalsRequest as GetExistingReceivedDocumentTotalsRequest +from fattureincloud_python_sdk.models.get_existing_received_document_totals_response import GetExistingReceivedDocumentTotalsResponse as GetExistingReceivedDocumentTotalsResponse +from fattureincloud_python_sdk.models.get_f24_response import GetF24Response as GetF24Response +from fattureincloud_python_sdk.models.get_issued_document_pre_create_info_response import GetIssuedDocumentPreCreateInfoResponse as GetIssuedDocumentPreCreateInfoResponse +from fattureincloud_python_sdk.models.get_issued_document_response import GetIssuedDocumentResponse as GetIssuedDocumentResponse +from fattureincloud_python_sdk.models.get_new_issued_document_totals_request import GetNewIssuedDocumentTotalsRequest as GetNewIssuedDocumentTotalsRequest +from fattureincloud_python_sdk.models.get_new_issued_document_totals_response import GetNewIssuedDocumentTotalsResponse as GetNewIssuedDocumentTotalsResponse +from fattureincloud_python_sdk.models.get_new_received_document_totals_request import GetNewReceivedDocumentTotalsRequest as GetNewReceivedDocumentTotalsRequest +from fattureincloud_python_sdk.models.get_new_received_document_totals_response import GetNewReceivedDocumentTotalsResponse as GetNewReceivedDocumentTotalsResponse +from fattureincloud_python_sdk.models.get_payment_account_response import GetPaymentAccountResponse as GetPaymentAccountResponse +from fattureincloud_python_sdk.models.get_payment_method_response import GetPaymentMethodResponse as GetPaymentMethodResponse +from fattureincloud_python_sdk.models.get_price_list_items_response import GetPriceListItemsResponse as GetPriceListItemsResponse +from fattureincloud_python_sdk.models.get_product_response import GetProductResponse as GetProductResponse +from fattureincloud_python_sdk.models.get_receipt_pre_create_info_response import GetReceiptPreCreateInfoResponse as GetReceiptPreCreateInfoResponse +from fattureincloud_python_sdk.models.get_receipt_response import GetReceiptResponse as GetReceiptResponse +from fattureincloud_python_sdk.models.get_receipts_monthly_totals_response import GetReceiptsMonthlyTotalsResponse as GetReceiptsMonthlyTotalsResponse +from fattureincloud_python_sdk.models.get_received_document_pre_create_info_response import GetReceivedDocumentPreCreateInfoResponse as GetReceivedDocumentPreCreateInfoResponse +from fattureincloud_python_sdk.models.get_received_document_response import GetReceivedDocumentResponse as GetReceivedDocumentResponse +from fattureincloud_python_sdk.models.get_supplier_response import GetSupplierResponse as GetSupplierResponse +from fattureincloud_python_sdk.models.get_tax_profile_response import GetTaxProfileResponse as GetTaxProfileResponse +from fattureincloud_python_sdk.models.get_user_info_response import GetUserInfoResponse as GetUserInfoResponse +from fattureincloud_python_sdk.models.get_user_info_response_email_confirmation_state import GetUserInfoResponseEmailConfirmationState as GetUserInfoResponseEmailConfirmationState +from fattureincloud_python_sdk.models.get_user_info_response_info import GetUserInfoResponseInfo as GetUserInfoResponseInfo +from fattureincloud_python_sdk.models.get_vat_type_response import GetVatTypeResponse as GetVatTypeResponse +from fattureincloud_python_sdk.models.get_webhooks_subscription_response import GetWebhooksSubscriptionResponse as GetWebhooksSubscriptionResponse +from fattureincloud_python_sdk.models.issued_document import IssuedDocument as IssuedDocument +from fattureincloud_python_sdk.models.issued_document_ei_data import IssuedDocumentEiData as IssuedDocumentEiData +from fattureincloud_python_sdk.models.issued_document_extra_data import IssuedDocumentExtraData as IssuedDocumentExtraData +from fattureincloud_python_sdk.models.issued_document_items_list_item import IssuedDocumentItemsListItem as IssuedDocumentItemsListItem +from fattureincloud_python_sdk.models.issued_document_options import IssuedDocumentOptions as IssuedDocumentOptions +from fattureincloud_python_sdk.models.issued_document_payments_list_item import IssuedDocumentPaymentsListItem as IssuedDocumentPaymentsListItem +from fattureincloud_python_sdk.models.issued_document_payments_list_item_payment_terms import IssuedDocumentPaymentsListItemPaymentTerms as IssuedDocumentPaymentsListItemPaymentTerms +from fattureincloud_python_sdk.models.issued_document_pre_create_info import IssuedDocumentPreCreateInfo as IssuedDocumentPreCreateInfo +from fattureincloud_python_sdk.models.issued_document_pre_create_info_default_values import IssuedDocumentPreCreateInfoDefaultValues as IssuedDocumentPreCreateInfoDefaultValues +from fattureincloud_python_sdk.models.issued_document_pre_create_info_extra_data_default_values import IssuedDocumentPreCreateInfoExtraDataDefaultValues as IssuedDocumentPreCreateInfoExtraDataDefaultValues +from fattureincloud_python_sdk.models.issued_document_pre_create_info_items_default_values import IssuedDocumentPreCreateInfoItemsDefaultValues as IssuedDocumentPreCreateInfoItemsDefaultValues +from fattureincloud_python_sdk.models.issued_document_status import IssuedDocumentStatus as IssuedDocumentStatus +from fattureincloud_python_sdk.models.issued_document_totals import IssuedDocumentTotals as IssuedDocumentTotals +from fattureincloud_python_sdk.models.issued_document_type import IssuedDocumentType as IssuedDocumentType +from fattureincloud_python_sdk.models.join_issued_documents_response import JoinIssuedDocumentsResponse as JoinIssuedDocumentsResponse +from fattureincloud_python_sdk.models.language import Language as Language +from fattureincloud_python_sdk.models.list_archive_categories_response import ListArchiveCategoriesResponse as ListArchiveCategoriesResponse +from fattureincloud_python_sdk.models.list_archive_documents_response import ListArchiveDocumentsResponse as ListArchiveDocumentsResponse +from fattureincloud_python_sdk.models.list_archive_documents_response_page import ListArchiveDocumentsResponsePage as ListArchiveDocumentsResponsePage +from fattureincloud_python_sdk.models.list_bin_issued_documents import ListBinIssuedDocuments as ListBinIssuedDocuments +from fattureincloud_python_sdk.models.list_bin_received_documents import ListBinReceivedDocuments as ListBinReceivedDocuments +from fattureincloud_python_sdk.models.list_cashbook_entries_response import ListCashbookEntriesResponse as ListCashbookEntriesResponse +from fattureincloud_python_sdk.models.list_cities_response import ListCitiesResponse as ListCitiesResponse +from fattureincloud_python_sdk.models.list_clients_response import ListClientsResponse as ListClientsResponse +from fattureincloud_python_sdk.models.list_clients_response_page import ListClientsResponsePage as ListClientsResponsePage +from fattureincloud_python_sdk.models.list_cost_centers_response import ListCostCentersResponse as ListCostCentersResponse +from fattureincloud_python_sdk.models.list_countries_response import ListCountriesResponse as ListCountriesResponse +from fattureincloud_python_sdk.models.list_currencies_response import ListCurrenciesResponse as ListCurrenciesResponse +from fattureincloud_python_sdk.models.list_delivery_notes_default_causals_response import ListDeliveryNotesDefaultCausalsResponse as ListDeliveryNotesDefaultCausalsResponse +from fattureincloud_python_sdk.models.list_detailed_countries_response import ListDetailedCountriesResponse as ListDetailedCountriesResponse +from fattureincloud_python_sdk.models.list_emails_response import ListEmailsResponse as ListEmailsResponse +from fattureincloud_python_sdk.models.list_emails_response_page import ListEmailsResponsePage as ListEmailsResponsePage +from fattureincloud_python_sdk.models.list_f24_response import ListF24Response as ListF24Response +from fattureincloud_python_sdk.models.list_f24_response_aggregated_data import ListF24ResponseAggregatedData as ListF24ResponseAggregatedData +from fattureincloud_python_sdk.models.list_f24_response_aggregation import ListF24ResponseAggregation as ListF24ResponseAggregation +from fattureincloud_python_sdk.models.list_f24_response_page import ListF24ResponsePage as ListF24ResponsePage +from fattureincloud_python_sdk.models.list_issued_documents_response import ListIssuedDocumentsResponse as ListIssuedDocumentsResponse +from fattureincloud_python_sdk.models.list_issued_documents_response_page import ListIssuedDocumentsResponsePage as ListIssuedDocumentsResponsePage +from fattureincloud_python_sdk.models.list_languages_response import ListLanguagesResponse as ListLanguagesResponse +from fattureincloud_python_sdk.models.list_payment_accounts_response import ListPaymentAccountsResponse as ListPaymentAccountsResponse +from fattureincloud_python_sdk.models.list_payment_methods_response import ListPaymentMethodsResponse as ListPaymentMethodsResponse +from fattureincloud_python_sdk.models.list_price_lists_response import ListPriceListsResponse as ListPriceListsResponse +from fattureincloud_python_sdk.models.list_product_categories_response import ListProductCategoriesResponse as ListProductCategoriesResponse +from fattureincloud_python_sdk.models.list_products_response import ListProductsResponse as ListProductsResponse +from fattureincloud_python_sdk.models.list_products_response_page import ListProductsResponsePage as ListProductsResponsePage +from fattureincloud_python_sdk.models.list_receipts_response import ListReceiptsResponse as ListReceiptsResponse +from fattureincloud_python_sdk.models.list_receipts_response_page import ListReceiptsResponsePage as ListReceiptsResponsePage +from fattureincloud_python_sdk.models.list_received_document_categories_response import ListReceivedDocumentCategoriesResponse as ListReceivedDocumentCategoriesResponse +from fattureincloud_python_sdk.models.list_received_documents_response import ListReceivedDocumentsResponse as ListReceivedDocumentsResponse +from fattureincloud_python_sdk.models.list_received_documents_response_page import ListReceivedDocumentsResponsePage as ListReceivedDocumentsResponsePage +from fattureincloud_python_sdk.models.list_revenue_centers_response import ListRevenueCentersResponse as ListRevenueCentersResponse +from fattureincloud_python_sdk.models.list_suppliers_response import ListSuppliersResponse as ListSuppliersResponse +from fattureincloud_python_sdk.models.list_suppliers_response_page import ListSuppliersResponsePage as ListSuppliersResponsePage +from fattureincloud_python_sdk.models.list_templates_response import ListTemplatesResponse as ListTemplatesResponse +from fattureincloud_python_sdk.models.list_units_of_measure_response import ListUnitsOfMeasureResponse as ListUnitsOfMeasureResponse +from fattureincloud_python_sdk.models.list_user_companies_response import ListUserCompaniesResponse as ListUserCompaniesResponse +from fattureincloud_python_sdk.models.list_user_companies_response_data import ListUserCompaniesResponseData as ListUserCompaniesResponseData +from fattureincloud_python_sdk.models.list_vat_types_response import ListVatTypesResponse as ListVatTypesResponse +from fattureincloud_python_sdk.models.list_webhooks_subscriptions_response import ListWebhooksSubscriptionsResponse as ListWebhooksSubscriptionsResponse +from fattureincloud_python_sdk.models.modify_archive_document_request import ModifyArchiveDocumentRequest as ModifyArchiveDocumentRequest +from fattureincloud_python_sdk.models.modify_archive_document_response import ModifyArchiveDocumentResponse as ModifyArchiveDocumentResponse +from fattureincloud_python_sdk.models.modify_cashbook_entry_request import ModifyCashbookEntryRequest as ModifyCashbookEntryRequest +from fattureincloud_python_sdk.models.modify_cashbook_entry_response import ModifyCashbookEntryResponse as ModifyCashbookEntryResponse +from fattureincloud_python_sdk.models.modify_client_request import ModifyClientRequest as ModifyClientRequest +from fattureincloud_python_sdk.models.modify_client_response import ModifyClientResponse as ModifyClientResponse +from fattureincloud_python_sdk.models.modify_f24_request import ModifyF24Request as ModifyF24Request +from fattureincloud_python_sdk.models.modify_f24_response import ModifyF24Response as ModifyF24Response +from fattureincloud_python_sdk.models.modify_issued_document_request import ModifyIssuedDocumentRequest as ModifyIssuedDocumentRequest +from fattureincloud_python_sdk.models.modify_issued_document_response import ModifyIssuedDocumentResponse as ModifyIssuedDocumentResponse +from fattureincloud_python_sdk.models.modify_payment_account_request import ModifyPaymentAccountRequest as ModifyPaymentAccountRequest +from fattureincloud_python_sdk.models.modify_payment_account_response import ModifyPaymentAccountResponse as ModifyPaymentAccountResponse +from fattureincloud_python_sdk.models.modify_payment_method_request import ModifyPaymentMethodRequest as ModifyPaymentMethodRequest +from fattureincloud_python_sdk.models.modify_payment_method_response import ModifyPaymentMethodResponse as ModifyPaymentMethodResponse +from fattureincloud_python_sdk.models.modify_product_request import ModifyProductRequest as ModifyProductRequest +from fattureincloud_python_sdk.models.modify_product_response import ModifyProductResponse as ModifyProductResponse +from fattureincloud_python_sdk.models.modify_receipt_request import ModifyReceiptRequest as ModifyReceiptRequest +from fattureincloud_python_sdk.models.modify_receipt_response import ModifyReceiptResponse as ModifyReceiptResponse +from fattureincloud_python_sdk.models.modify_received_document_request import ModifyReceivedDocumentRequest as ModifyReceivedDocumentRequest +from fattureincloud_python_sdk.models.modify_received_document_response import ModifyReceivedDocumentResponse as ModifyReceivedDocumentResponse +from fattureincloud_python_sdk.models.modify_supplier_request import ModifySupplierRequest as ModifySupplierRequest +from fattureincloud_python_sdk.models.modify_supplier_response import ModifySupplierResponse as ModifySupplierResponse +from fattureincloud_python_sdk.models.modify_vat_type_request import ModifyVatTypeRequest as ModifyVatTypeRequest +from fattureincloud_python_sdk.models.modify_vat_type_response import ModifyVatTypeResponse as ModifyVatTypeResponse +from fattureincloud_python_sdk.models.modify_webhooks_subscription_request import ModifyWebhooksSubscriptionRequest as ModifyWebhooksSubscriptionRequest +from fattureincloud_python_sdk.models.modify_webhooks_subscription_response import ModifyWebhooksSubscriptionResponse as ModifyWebhooksSubscriptionResponse +from fattureincloud_python_sdk.models.monthly_total import MonthlyTotal as MonthlyTotal +from fattureincloud_python_sdk.models.original_document_type import OriginalDocumentType as OriginalDocumentType +from fattureincloud_python_sdk.models.pagination import Pagination as Pagination +from fattureincloud_python_sdk.models.payment_account import PaymentAccount as PaymentAccount +from fattureincloud_python_sdk.models.payment_account_type import PaymentAccountType as PaymentAccountType +from fattureincloud_python_sdk.models.payment_method import PaymentMethod as PaymentMethod +from fattureincloud_python_sdk.models.payment_method_details import PaymentMethodDetails as PaymentMethodDetails +from fattureincloud_python_sdk.models.payment_method_type import PaymentMethodType as PaymentMethodType +from fattureincloud_python_sdk.models.payment_terms_type import PaymentTermsType as PaymentTermsType +from fattureincloud_python_sdk.models.permission_level import PermissionLevel as PermissionLevel +from fattureincloud_python_sdk.models.permissions import Permissions as Permissions +from fattureincloud_python_sdk.models.permissions_fic_issued_documents_detailed import PermissionsFicIssuedDocumentsDetailed as PermissionsFicIssuedDocumentsDetailed +from fattureincloud_python_sdk.models.price_list import PriceList as PriceList +from fattureincloud_python_sdk.models.price_list_item import PriceListItem as PriceListItem +from fattureincloud_python_sdk.models.price_list_prices_type import PriceListPricesType as PriceListPricesType +from fattureincloud_python_sdk.models.price_list_type import PriceListType as PriceListType +from fattureincloud_python_sdk.models.product import Product as Product +from fattureincloud_python_sdk.models.receipt import Receipt as Receipt +from fattureincloud_python_sdk.models.receipt_items_list_item import ReceiptItemsListItem as ReceiptItemsListItem +from fattureincloud_python_sdk.models.receipt_pre_create_info import ReceiptPreCreateInfo as ReceiptPreCreateInfo +from fattureincloud_python_sdk.models.receipt_type import ReceiptType as ReceiptType +from fattureincloud_python_sdk.models.received_document import ReceivedDocument as ReceivedDocument +from fattureincloud_python_sdk.models.received_document_info import ReceivedDocumentInfo as ReceivedDocumentInfo +from fattureincloud_python_sdk.models.received_document_info_default_values import ReceivedDocumentInfoDefaultValues as ReceivedDocumentInfoDefaultValues +from fattureincloud_python_sdk.models.received_document_info_items_default_values import ReceivedDocumentInfoItemsDefaultValues as ReceivedDocumentInfoItemsDefaultValues +from fattureincloud_python_sdk.models.received_document_items_list_item import ReceivedDocumentItemsListItem as ReceivedDocumentItemsListItem +from fattureincloud_python_sdk.models.received_document_payments_list_item import ReceivedDocumentPaymentsListItem as ReceivedDocumentPaymentsListItem +from fattureincloud_python_sdk.models.received_document_payments_list_item_payment_terms import ReceivedDocumentPaymentsListItemPaymentTerms as ReceivedDocumentPaymentsListItemPaymentTerms +from fattureincloud_python_sdk.models.received_document_totals import ReceivedDocumentTotals as ReceivedDocumentTotals +from fattureincloud_python_sdk.models.received_document_type import ReceivedDocumentType as ReceivedDocumentType +from fattureincloud_python_sdk.models.schedule_email_request import ScheduleEmailRequest as ScheduleEmailRequest +from fattureincloud_python_sdk.models.send_e_invoice_request import SendEInvoiceRequest as SendEInvoiceRequest +from fattureincloud_python_sdk.models.send_e_invoice_request_data import SendEInvoiceRequestData as SendEInvoiceRequestData +from fattureincloud_python_sdk.models.send_e_invoice_request_options import SendEInvoiceRequestOptions as SendEInvoiceRequestOptions +from fattureincloud_python_sdk.models.send_e_invoice_response import SendEInvoiceResponse as SendEInvoiceResponse +from fattureincloud_python_sdk.models.send_e_invoice_response_data import SendEInvoiceResponseData as SendEInvoiceResponseData +from fattureincloud_python_sdk.models.sender_email import SenderEmail as SenderEmail +from fattureincloud_python_sdk.models.show_totals_mode import ShowTotalsMode as ShowTotalsMode +from fattureincloud_python_sdk.models.supplier import Supplier as Supplier +from fattureincloud_python_sdk.models.supplier_type import SupplierType as SupplierType +from fattureincloud_python_sdk.models.tax_profile import TaxProfile as TaxProfile +from fattureincloud_python_sdk.models.transform_issued_document_response import TransformIssuedDocumentResponse as TransformIssuedDocumentResponse +from fattureincloud_python_sdk.models.upload_archive_attachment_response import UploadArchiveAttachmentResponse as UploadArchiveAttachmentResponse +from fattureincloud_python_sdk.models.upload_f24_attachment_response import UploadF24AttachmentResponse as UploadF24AttachmentResponse +from fattureincloud_python_sdk.models.upload_issued_document_attachment_response import UploadIssuedDocumentAttachmentResponse as UploadIssuedDocumentAttachmentResponse +from fattureincloud_python_sdk.models.upload_received_document_attachment_response import UploadReceivedDocumentAttachmentResponse as UploadReceivedDocumentAttachmentResponse +from fattureincloud_python_sdk.models.user import User as User +from fattureincloud_python_sdk.models.user_company_role import UserCompanyRole as UserCompanyRole +from fattureincloud_python_sdk.models.vat_item import VatItem as VatItem +from fattureincloud_python_sdk.models.vat_kind import VatKind as VatKind +from fattureincloud_python_sdk.models.vat_type import VatType as VatType +from fattureincloud_python_sdk.models.verify_e_invoice_xml_error_response import VerifyEInvoiceXmlErrorResponse as VerifyEInvoiceXmlErrorResponse +from fattureincloud_python_sdk.models.verify_e_invoice_xml_error_response_error import VerifyEInvoiceXmlErrorResponseError as VerifyEInvoiceXmlErrorResponseError +from fattureincloud_python_sdk.models.verify_e_invoice_xml_error_response_error_validation_result import VerifyEInvoiceXmlErrorResponseErrorValidationResult as VerifyEInvoiceXmlErrorResponseErrorValidationResult +from fattureincloud_python_sdk.models.verify_e_invoice_xml_error_response_extra import VerifyEInvoiceXmlErrorResponseExtra as VerifyEInvoiceXmlErrorResponseExtra +from fattureincloud_python_sdk.models.verify_e_invoice_xml_response import VerifyEInvoiceXmlResponse as VerifyEInvoiceXmlResponse +from fattureincloud_python_sdk.models.verify_e_invoice_xml_response_data import VerifyEInvoiceXmlResponseData as VerifyEInvoiceXmlResponseData +from fattureincloud_python_sdk.models.verify_webhooks_subscription import VerifyWebhooksSubscription as VerifyWebhooksSubscription +from fattureincloud_python_sdk.models.verify_webhooks_subscription_request import VerifyWebhooksSubscriptionRequest as VerifyWebhooksSubscriptionRequest +from fattureincloud_python_sdk.models.webhooks_subscription import WebhooksSubscription as WebhooksSubscription +from fattureincloud_python_sdk.models.webhooks_subscription_config import WebhooksSubscriptionConfig as WebhooksSubscriptionConfig +from fattureincloud_python_sdk.models.webhooks_subscription_mapping import WebhooksSubscriptionMapping as WebhooksSubscriptionMapping +from fattureincloud_python_sdk.models.webhooks_subscription_verification_method import WebhooksSubscriptionVerificationMethod as WebhooksSubscriptionVerificationMethod + diff --git a/fattureincloud_python_sdk/api/__init__.py b/fattureincloud_python_sdk/api/__init__.py index e0a1e093..b8b4c949 100644 --- a/fattureincloud_python_sdk/api/__init__.py +++ b/fattureincloud_python_sdk/api/__init__.py @@ -18,3 +18,4 @@ from fattureincloud_python_sdk.api.taxes_api import TaxesApi from fattureincloud_python_sdk.api.user_api import UserApi from fattureincloud_python_sdk.api.webhooks_api import WebhooksApi + diff --git a/fattureincloud_python_sdk/api/archive_api.py b/fattureincloud_python_sdk/api/archive_api.py index 8db18e87..b92862b4 100644 --- a/fattureincloud_python_sdk/api/archive_api.py +++ b/fattureincloud_python_sdk/api/archive_api.py @@ -1,17 +1,16 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 - import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union @@ -20,27 +19,13 @@ from pydantic import Field, StrictBytes, StrictInt, StrictStr, field_validator from typing import Optional, Tuple, Union from typing_extensions import Annotated -from fattureincloud_python_sdk.models.create_archive_document_request import ( - CreateArchiveDocumentRequest, -) -from fattureincloud_python_sdk.models.create_archive_document_response import ( - CreateArchiveDocumentResponse, -) -from fattureincloud_python_sdk.models.get_archive_document_response import ( - GetArchiveDocumentResponse, -) -from fattureincloud_python_sdk.models.list_archive_documents_response import ( - ListArchiveDocumentsResponse, -) -from fattureincloud_python_sdk.models.modify_archive_document_request import ( - ModifyArchiveDocumentRequest, -) -from fattureincloud_python_sdk.models.modify_archive_document_response import ( - ModifyArchiveDocumentResponse, -) -from fattureincloud_python_sdk.models.upload_archive_attachment_response import ( - UploadArchiveAttachmentResponse, -) +from fattureincloud_python_sdk.models.create_archive_document_request import CreateArchiveDocumentRequest +from fattureincloud_python_sdk.models.create_archive_document_response import CreateArchiveDocumentResponse +from fattureincloud_python_sdk.models.get_archive_document_response import GetArchiveDocumentResponse +from fattureincloud_python_sdk.models.list_archive_documents_response import ListArchiveDocumentsResponse +from fattureincloud_python_sdk.models.modify_archive_document_request import ModifyArchiveDocumentRequest +from fattureincloud_python_sdk.models.modify_archive_document_response import ModifyArchiveDocumentResponse +from fattureincloud_python_sdk.models.upload_archive_attachment_response import UploadArchiveAttachmentResponse from fattureincloud_python_sdk.api_client import ApiClient, RequestSerialized from fattureincloud_python_sdk.api_response import ApiResponse @@ -59,20 +44,19 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def create_archive_document( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - create_archive_document_request: Annotated[ - Optional[CreateArchiveDocumentRequest], - Field(description="The Archive Document."), - ] = None, + create_archive_document_request: Annotated[Optional[CreateArchiveDocumentRequest], Field(description="The Archive Document.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -107,7 +91,7 @@ def create_archive_document( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_archive_document_serialize( company_id=company_id, @@ -115,16 +99,22 @@ def create_archive_document( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateArchiveDocumentResponse", - "401": None, - "404": None, + '200': "CreateArchiveDocumentResponse", + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -132,20 +122,19 @@ def create_archive_document( response_types_map=_response_types_map, ).data + @validate_call def create_archive_document_with_http_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - create_archive_document_request: Annotated[ - Optional[CreateArchiveDocumentRequest], - Field(description="The Archive Document."), - ] = None, + create_archive_document_request: Annotated[Optional[CreateArchiveDocumentRequest], Field(description="The Archive Document.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -180,7 +169,7 @@ def create_archive_document_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_archive_document_serialize( company_id=company_id, @@ -188,16 +177,22 @@ def create_archive_document_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateArchiveDocumentResponse", - "401": None, - "404": None, + '200': "CreateArchiveDocumentResponse", + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -205,20 +200,19 @@ def create_archive_document_with_http_info( response_types_map=_response_types_map, ) + @validate_call def create_archive_document_without_preload_content( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - create_archive_document_request: Annotated[ - Optional[CreateArchiveDocumentRequest], - Field(description="The Archive Document."), - ] = None, + create_archive_document_request: Annotated[Optional[CreateArchiveDocumentRequest], Field(description="The Archive Document.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -253,7 +247,7 @@ def create_archive_document_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_archive_document_serialize( company_id=company_id, @@ -261,19 +255,26 @@ def create_archive_document_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateArchiveDocumentResponse", - "401": None, - "404": None, + '200': "CreateArchiveDocumentResponse", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _create_archive_document_serialize( self, company_id, @@ -286,7 +287,8 @@ def _create_archive_document_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -299,7 +301,7 @@ def _create_archive_document_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id # process the query parameters # process the header parameters # process the form parameters @@ -307,28 +309,37 @@ def _create_archive_document_serialize( if create_archive_document_request is not None: _body_params = create_archive_document_request + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) # set the HTTP header `Content-Type` if _content_type: - _header_params["Content-Type"] = _content_type + _header_params['Content-Type'] = _content_type else: - _default_content_type = self.api_client.select_header_content_type( - ["application/json"] + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) ) if _default_content_type is not None: - _header_params["Content-Type"] = _default_content_type + _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/c/{company_id}/archive", + method='POST', + resource_path='/c/{company_id}/archive', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -338,9 +349,12 @@ def _create_archive_document_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def delete_archive_document( self, @@ -350,8 +364,9 @@ def delete_archive_document( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -386,7 +401,7 @@ def delete_archive_document( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_archive_document_serialize( company_id=company_id, @@ -394,16 +409,22 @@ def delete_archive_document( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": None, - "401": None, - "404": None, + '200': None, + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -411,6 +432,7 @@ def delete_archive_document( response_types_map=_response_types_map, ).data + @validate_call def delete_archive_document_with_http_info( self, @@ -420,8 +442,9 @@ def delete_archive_document_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -456,7 +479,7 @@ def delete_archive_document_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_archive_document_serialize( company_id=company_id, @@ -464,16 +487,22 @@ def delete_archive_document_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": None, - "401": None, - "404": None, + '200': None, + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -481,6 +510,7 @@ def delete_archive_document_with_http_info( response_types_map=_response_types_map, ) + @validate_call def delete_archive_document_without_preload_content( self, @@ -490,8 +520,9 @@ def delete_archive_document_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -526,7 +557,7 @@ def delete_archive_document_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_archive_document_serialize( company_id=company_id, @@ -534,19 +565,26 @@ def delete_archive_document_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": None, - "401": None, - "404": None, + '200': None, + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _delete_archive_document_serialize( self, company_id, @@ -559,7 +597,8 @@ def _delete_archive_document_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -572,20 +611,25 @@ def _delete_archive_document_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id if document_id is not None: - _path_params["document_id"] = document_id + _path_params['document_id'] = document_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + + + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="DELETE", - resource_path="/c/{company_id}/archive/{document_id}", + method='DELETE', + resource_path='/c/{company_id}/archive/{document_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -595,26 +639,26 @@ def _delete_archive_document_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def get_archive_document( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], document_id: Annotated[StrictInt, Field(description="The ID of the document.")], - fields: Annotated[ - Optional[StrictStr], Field(description="List of comma-separated fields.") - ] = None, - fieldset: Annotated[ - Optional[StrictStr], Field(description="Name of the fieldset.") - ] = None, + fields: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields.")] = None, + fieldset: Annotated[Optional[StrictStr], Field(description="Name of the fieldset.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -653,7 +697,7 @@ def get_archive_document( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_archive_document_serialize( company_id=company_id, @@ -663,16 +707,22 @@ def get_archive_document( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetArchiveDocumentResponse", - "401": None, - "404": None, + '200': "GetArchiveDocumentResponse", + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -680,23 +730,21 @@ def get_archive_document( response_types_map=_response_types_map, ).data + @validate_call def get_archive_document_with_http_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], document_id: Annotated[StrictInt, Field(description="The ID of the document.")], - fields: Annotated[ - Optional[StrictStr], Field(description="List of comma-separated fields.") - ] = None, - fieldset: Annotated[ - Optional[StrictStr], Field(description="Name of the fieldset.") - ] = None, + fields: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields.")] = None, + fieldset: Annotated[Optional[StrictStr], Field(description="Name of the fieldset.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -735,7 +783,7 @@ def get_archive_document_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_archive_document_serialize( company_id=company_id, @@ -745,16 +793,22 @@ def get_archive_document_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetArchiveDocumentResponse", - "401": None, - "404": None, + '200': "GetArchiveDocumentResponse", + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -762,23 +816,21 @@ def get_archive_document_with_http_info( response_types_map=_response_types_map, ) + @validate_call def get_archive_document_without_preload_content( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], document_id: Annotated[StrictInt, Field(description="The ID of the document.")], - fields: Annotated[ - Optional[StrictStr], Field(description="List of comma-separated fields.") - ] = None, - fieldset: Annotated[ - Optional[StrictStr], Field(description="Name of the fieldset.") - ] = None, + fields: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields.")] = None, + fieldset: Annotated[Optional[StrictStr], Field(description="Name of the fieldset.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -817,7 +869,7 @@ def get_archive_document_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_archive_document_serialize( company_id=company_id, @@ -827,19 +879,26 @@ def get_archive_document_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetArchiveDocumentResponse", - "401": None, - "404": None, + '200': "GetArchiveDocumentResponse", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _get_archive_document_serialize( self, company_id, @@ -854,7 +913,8 @@ def _get_archive_document_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -867,34 +927,40 @@ def _get_archive_document_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id if document_id is not None: - _path_params["document_id"] = document_id + _path_params['document_id'] = document_id # process the query parameters if fields is not None: - - _query_params.append(("fields", fields)) - + + _query_params.append(('fields', fields)) + if fieldset is not None: - - _query_params.append(("fieldset", fieldset)) - + + _query_params.append(('fieldset', fieldset)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/c/{company_id}/archive/{document_id}", + method='GET', + resource_path='/c/{company_id}/archive/{document_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -904,41 +970,29 @@ def _get_archive_document_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def list_archive_documents( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - fields: Annotated[ - Optional[StrictStr], Field(description="List of comma-separated fields.") - ] = None, - fieldset: Annotated[ - Optional[StrictStr], Field(description="Name of the fieldset.") - ] = None, - sort: Annotated[ - Optional[StrictStr], - Field( - description="List of comma-separated fields for result sorting (minus for desc sorting)." - ), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="The page to retrieve.") - ] = None, - per_page: Annotated[ - Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], - Field(description="The size of the page."), - ] = None, - q: Annotated[ - Optional[StrictStr], Field(description="Query for filtering the results.") - ] = None, + fields: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields.")] = None, + fieldset: Annotated[Optional[StrictStr], Field(description="Name of the fieldset.")] = None, + sort: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields for result sorting (minus for desc sorting).")] = None, + page: Annotated[Optional[StrictInt], Field(description="The page to retrieve.")] = None, + per_page: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="The size of the page.")] = None, + q: Annotated[Optional[StrictStr], Field(description="Query for filtering the results.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -983,7 +1037,7 @@ def list_archive_documents( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_archive_documents_serialize( company_id=company_id, @@ -996,16 +1050,22 @@ def list_archive_documents( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListArchiveDocumentsResponse", - "401": None, - "404": None, + '200': "ListArchiveDocumentsResponse", + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1013,38 +1073,24 @@ def list_archive_documents( response_types_map=_response_types_map, ).data + @validate_call def list_archive_documents_with_http_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - fields: Annotated[ - Optional[StrictStr], Field(description="List of comma-separated fields.") - ] = None, - fieldset: Annotated[ - Optional[StrictStr], Field(description="Name of the fieldset.") - ] = None, - sort: Annotated[ - Optional[StrictStr], - Field( - description="List of comma-separated fields for result sorting (minus for desc sorting)." - ), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="The page to retrieve.") - ] = None, - per_page: Annotated[ - Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], - Field(description="The size of the page."), - ] = None, - q: Annotated[ - Optional[StrictStr], Field(description="Query for filtering the results.") - ] = None, + fields: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields.")] = None, + fieldset: Annotated[Optional[StrictStr], Field(description="Name of the fieldset.")] = None, + sort: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields for result sorting (minus for desc sorting).")] = None, + page: Annotated[Optional[StrictInt], Field(description="The page to retrieve.")] = None, + per_page: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="The size of the page.")] = None, + q: Annotated[Optional[StrictStr], Field(description="Query for filtering the results.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1089,7 +1135,7 @@ def list_archive_documents_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_archive_documents_serialize( company_id=company_id, @@ -1102,16 +1148,22 @@ def list_archive_documents_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListArchiveDocumentsResponse", - "401": None, - "404": None, + '200': "ListArchiveDocumentsResponse", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1119,38 +1171,24 @@ def list_archive_documents_with_http_info( response_types_map=_response_types_map, ) + @validate_call def list_archive_documents_without_preload_content( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - fields: Annotated[ - Optional[StrictStr], Field(description="List of comma-separated fields.") - ] = None, - fieldset: Annotated[ - Optional[StrictStr], Field(description="Name of the fieldset.") - ] = None, - sort: Annotated[ - Optional[StrictStr], - Field( - description="List of comma-separated fields for result sorting (minus for desc sorting)." - ), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="The page to retrieve.") - ] = None, - per_page: Annotated[ - Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], - Field(description="The size of the page."), - ] = None, - q: Annotated[ - Optional[StrictStr], Field(description="Query for filtering the results.") - ] = None, + fields: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields.")] = None, + fieldset: Annotated[Optional[StrictStr], Field(description="Name of the fieldset.")] = None, + sort: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields for result sorting (minus for desc sorting).")] = None, + page: Annotated[Optional[StrictInt], Field(description="The page to retrieve.")] = None, + per_page: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="The size of the page.")] = None, + q: Annotated[Optional[StrictStr], Field(description="Query for filtering the results.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1195,7 +1233,7 @@ def list_archive_documents_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_archive_documents_serialize( company_id=company_id, @@ -1208,19 +1246,26 @@ def list_archive_documents_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListArchiveDocumentsResponse", - "401": None, - "404": None, + '200': "ListArchiveDocumentsResponse", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _list_archive_documents_serialize( self, company_id, @@ -1238,7 +1283,8 @@ def _list_archive_documents_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1251,48 +1297,54 @@ def _list_archive_documents_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id # process the query parameters if fields is not None: - - _query_params.append(("fields", fields)) - + + _query_params.append(('fields', fields)) + if fieldset is not None: - - _query_params.append(("fieldset", fieldset)) - + + _query_params.append(('fieldset', fieldset)) + if sort is not None: - - _query_params.append(("sort", sort)) - + + _query_params.append(('sort', sort)) + if page is not None: - - _query_params.append(("page", page)) - + + _query_params.append(('page', page)) + if per_page is not None: - - _query_params.append(("per_page", per_page)) - + + _query_params.append(('per_page', per_page)) + if q is not None: - - _query_params.append(("q", q)) - + + _query_params.append(('q', q)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/c/{company_id}/archive", + method='GET', + resource_path='/c/{company_id}/archive', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1302,24 +1354,25 @@ def _list_archive_documents_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def modify_archive_document( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], document_id: Annotated[StrictInt, Field(description="The ID of the document.")], - modify_archive_document_request: Annotated[ - Optional[ModifyArchiveDocumentRequest], - Field(description="Modified Archive Document"), - ] = None, + modify_archive_document_request: Annotated[Optional[ModifyArchiveDocumentRequest], Field(description="Modified Archive Document")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1356,7 +1409,7 @@ def modify_archive_document( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._modify_archive_document_serialize( company_id=company_id, @@ -1365,16 +1418,22 @@ def modify_archive_document( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ModifyArchiveDocumentResponse", - "401": None, - "404": None, + '200': "ModifyArchiveDocumentResponse", + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1382,21 +1441,20 @@ def modify_archive_document( response_types_map=_response_types_map, ).data + @validate_call def modify_archive_document_with_http_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], document_id: Annotated[StrictInt, Field(description="The ID of the document.")], - modify_archive_document_request: Annotated[ - Optional[ModifyArchiveDocumentRequest], - Field(description="Modified Archive Document"), - ] = None, + modify_archive_document_request: Annotated[Optional[ModifyArchiveDocumentRequest], Field(description="Modified Archive Document")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1433,7 +1491,7 @@ def modify_archive_document_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._modify_archive_document_serialize( company_id=company_id, @@ -1442,16 +1500,22 @@ def modify_archive_document_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ModifyArchiveDocumentResponse", - "401": None, - "404": None, + '200': "ModifyArchiveDocumentResponse", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1459,21 +1523,20 @@ def modify_archive_document_with_http_info( response_types_map=_response_types_map, ) + @validate_call def modify_archive_document_without_preload_content( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], document_id: Annotated[StrictInt, Field(description="The ID of the document.")], - modify_archive_document_request: Annotated[ - Optional[ModifyArchiveDocumentRequest], - Field(description="Modified Archive Document"), - ] = None, + modify_archive_document_request: Annotated[Optional[ModifyArchiveDocumentRequest], Field(description="Modified Archive Document")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1510,7 +1573,7 @@ def modify_archive_document_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._modify_archive_document_serialize( company_id=company_id, @@ -1519,19 +1582,26 @@ def modify_archive_document_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ModifyArchiveDocumentResponse", - "401": None, - "404": None, + '200': "ModifyArchiveDocumentResponse", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _modify_archive_document_serialize( self, company_id, @@ -1545,7 +1615,8 @@ def _modify_archive_document_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1558,9 +1629,9 @@ def _modify_archive_document_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id if document_id is not None: - _path_params["document_id"] = document_id + _path_params['document_id'] = document_id # process the query parameters # process the header parameters # process the form parameters @@ -1568,28 +1639,37 @@ def _modify_archive_document_serialize( if modify_archive_document_request is not None: _body_params = modify_archive_document_request + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) # set the HTTP header `Content-Type` if _content_type: - _header_params["Content-Type"] = _content_type + _header_params['Content-Type'] = _content_type else: - _default_content_type = self.api_client.select_header_content_type( - ["application/json"] + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) ) if _default_content_type is not None: - _header_params["Content-Type"] = _default_content_type + _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="PUT", - resource_path="/c/{company_id}/archive/{document_id}", + method='PUT', + resource_path='/c/{company_id}/archive/{document_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1599,28 +1679,25 @@ def _modify_archive_document_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def upload_archive_document_attachment( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - filename: Annotated[ - Optional[StrictStr], Field(description="Attachment file name") - ] = None, - attachment: Annotated[ - Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], - Field( - description="Attachment file [.png, .jpg, .gif, .pdf, .zip, .xls, .xlsx, .doc, .docx]" - ), - ] = None, + filename: Annotated[Optional[StrictStr], Field(description="Attachment file name")] = None, + attachment: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Attachment file [.png, .jpg, .gif, .pdf, .zip, .xls, .xlsx, .doc, .docx]")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1657,7 +1734,7 @@ def upload_archive_document_attachment( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._upload_archive_document_attachment_serialize( company_id=company_id, @@ -1666,16 +1743,22 @@ def upload_archive_document_attachment( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UploadArchiveAttachmentResponse", - "401": None, - "404": None, + '200': "UploadArchiveAttachmentResponse", + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1683,25 +1766,20 @@ def upload_archive_document_attachment( response_types_map=_response_types_map, ).data + @validate_call def upload_archive_document_attachment_with_http_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - filename: Annotated[ - Optional[StrictStr], Field(description="Attachment file name") - ] = None, - attachment: Annotated[ - Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], - Field( - description="Attachment file [.png, .jpg, .gif, .pdf, .zip, .xls, .xlsx, .doc, .docx]" - ), - ] = None, + filename: Annotated[Optional[StrictStr], Field(description="Attachment file name")] = None, + attachment: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Attachment file [.png, .jpg, .gif, .pdf, .zip, .xls, .xlsx, .doc, .docx]")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1738,7 +1816,7 @@ def upload_archive_document_attachment_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._upload_archive_document_attachment_serialize( company_id=company_id, @@ -1747,16 +1825,22 @@ def upload_archive_document_attachment_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UploadArchiveAttachmentResponse", - "401": None, - "404": None, + '200': "UploadArchiveAttachmentResponse", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1764,25 +1848,20 @@ def upload_archive_document_attachment_with_http_info( response_types_map=_response_types_map, ) + @validate_call def upload_archive_document_attachment_without_preload_content( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - filename: Annotated[ - Optional[StrictStr], Field(description="Attachment file name") - ] = None, - attachment: Annotated[ - Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], - Field( - description="Attachment file [.png, .jpg, .gif, .pdf, .zip, .xls, .xlsx, .doc, .docx]" - ), - ] = None, + filename: Annotated[Optional[StrictStr], Field(description="Attachment file name")] = None, + attachment: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Attachment file [.png, .jpg, .gif, .pdf, .zip, .xls, .xlsx, .doc, .docx]")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1819,7 +1898,7 @@ def upload_archive_document_attachment_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._upload_archive_document_attachment_serialize( company_id=company_id, @@ -1828,19 +1907,26 @@ def upload_archive_document_attachment_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UploadArchiveAttachmentResponse", - "401": None, - "404": None, + '200': "UploadArchiveAttachmentResponse", + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _upload_archive_document_attachment_serialize( self, company_id, @@ -1854,7 +1940,8 @@ def _upload_archive_document_attachment_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1867,38 +1954,47 @@ def _upload_archive_document_attachment_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id # process the query parameters # process the header parameters # process the form parameters if filename is not None: - _form_params.append(("filename", filename)) + _form_params.append(('filename', filename)) if attachment is not None: - _files["attachment"] = attachment + _files['attachment'] = attachment # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) # set the HTTP header `Content-Type` if _content_type: - _header_params["Content-Type"] = _content_type + _header_params['Content-Type'] = _content_type else: - _default_content_type = self.api_client.select_header_content_type( - ["multipart/form-data"] + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'multipart/form-data' + ] + ) ) if _default_content_type is not None: - _header_params["Content-Type"] = _default_content_type + _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/c/{company_id}/archive/attachment", + method='POST', + resource_path='/c/{company_id}/archive/attachment', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1908,5 +2004,7 @@ def _upload_archive_document_attachment_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/fattureincloud_python_sdk/api/cashbook_api.py b/fattureincloud_python_sdk/api/cashbook_api.py index eafdeec8..3548a5f8 100644 --- a/fattureincloud_python_sdk/api/cashbook_api.py +++ b/fattureincloud_python_sdk/api/cashbook_api.py @@ -1,17 +1,16 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 - import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union @@ -20,24 +19,12 @@ 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, -) -from fattureincloud_python_sdk.models.create_cashbook_entry_response import ( - CreateCashbookEntryResponse, -) -from fattureincloud_python_sdk.models.get_cashbook_entry_response import ( - GetCashbookEntryResponse, -) -from fattureincloud_python_sdk.models.list_cashbook_entries_response import ( - ListCashbookEntriesResponse, -) -from fattureincloud_python_sdk.models.modify_cashbook_entry_request import ( - ModifyCashbookEntryRequest, -) -from fattureincloud_python_sdk.models.modify_cashbook_entry_response import ( - ModifyCashbookEntryResponse, -) +from fattureincloud_python_sdk.models.create_cashbook_entry_request import CreateCashbookEntryRequest +from fattureincloud_python_sdk.models.create_cashbook_entry_response import CreateCashbookEntryResponse +from fattureincloud_python_sdk.models.get_cashbook_entry_response import GetCashbookEntryResponse +from fattureincloud_python_sdk.models.list_cashbook_entries_response import ListCashbookEntriesResponse +from fattureincloud_python_sdk.models.modify_cashbook_entry_request import ModifyCashbookEntryRequest +from fattureincloud_python_sdk.models.modify_cashbook_entry_response import ModifyCashbookEntryResponse from fattureincloud_python_sdk.api_client import ApiClient, RequestSerialized from fattureincloud_python_sdk.api_response import ApiResponse @@ -56,19 +43,19 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def create_cashbook_entry( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - create_cashbook_entry_request: Annotated[ - Optional[CreateCashbookEntryRequest], Field(description="Cashbook entry. ") - ] = None, + create_cashbook_entry_request: Annotated[Optional[CreateCashbookEntryRequest], Field(description="Cashbook entry. ")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -81,7 +68,7 @@ def create_cashbook_entry( :param company_id: The ID of the company. (required) :type company_id: int - :param create_cashbook_entry_request: Cashbook entry. + :param create_cashbook_entry_request: Cashbook entry. :type create_cashbook_entry_request: CreateCashbookEntryRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -103,7 +90,7 @@ def create_cashbook_entry( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_cashbook_entry_serialize( company_id=company_id, @@ -111,16 +98,22 @@ def create_cashbook_entry( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateCashbookEntryResponse", - "401": None, - "404": None, + '200': "CreateCashbookEntryResponse", + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -128,19 +121,19 @@ def create_cashbook_entry( response_types_map=_response_types_map, ).data + @validate_call def create_cashbook_entry_with_http_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - create_cashbook_entry_request: Annotated[ - Optional[CreateCashbookEntryRequest], Field(description="Cashbook entry. ") - ] = None, + create_cashbook_entry_request: Annotated[Optional[CreateCashbookEntryRequest], Field(description="Cashbook entry. ")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -153,7 +146,7 @@ def create_cashbook_entry_with_http_info( :param company_id: The ID of the company. (required) :type company_id: int - :param create_cashbook_entry_request: Cashbook entry. + :param create_cashbook_entry_request: Cashbook entry. :type create_cashbook_entry_request: CreateCashbookEntryRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -175,7 +168,7 @@ def create_cashbook_entry_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_cashbook_entry_serialize( company_id=company_id, @@ -183,16 +176,22 @@ def create_cashbook_entry_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateCashbookEntryResponse", - "401": None, - "404": None, + '200': "CreateCashbookEntryResponse", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -200,19 +199,19 @@ def create_cashbook_entry_with_http_info( response_types_map=_response_types_map, ) + @validate_call def create_cashbook_entry_without_preload_content( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - create_cashbook_entry_request: Annotated[ - Optional[CreateCashbookEntryRequest], Field(description="Cashbook entry. ") - ] = None, + create_cashbook_entry_request: Annotated[Optional[CreateCashbookEntryRequest], Field(description="Cashbook entry. ")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -225,7 +224,7 @@ def create_cashbook_entry_without_preload_content( :param company_id: The ID of the company. (required) :type company_id: int - :param create_cashbook_entry_request: Cashbook entry. + :param create_cashbook_entry_request: Cashbook entry. :type create_cashbook_entry_request: CreateCashbookEntryRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -247,7 +246,7 @@ def create_cashbook_entry_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_cashbook_entry_serialize( company_id=company_id, @@ -255,19 +254,26 @@ def create_cashbook_entry_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateCashbookEntryResponse", - "401": None, - "404": None, + '200': "CreateCashbookEntryResponse", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _create_cashbook_entry_serialize( self, company_id, @@ -280,7 +286,8 @@ def _create_cashbook_entry_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -293,7 +300,7 @@ def _create_cashbook_entry_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id # process the query parameters # process the header parameters # process the form parameters @@ -301,28 +308,37 @@ def _create_cashbook_entry_serialize( if create_cashbook_entry_request is not None: _body_params = create_cashbook_entry_request + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) # set the HTTP header `Content-Type` if _content_type: - _header_params["Content-Type"] = _content_type + _header_params['Content-Type'] = _content_type else: - _default_content_type = self.api_client.select_header_content_type( - ["application/json"] + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) ) if _default_content_type is not None: - _header_params["Content-Type"] = _default_content_type + _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/c/{company_id}/cashbook", + method='POST', + resource_path='/c/{company_id}/cashbook', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -332,9 +348,12 @@ def _create_cashbook_entry_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def delete_cashbook_entry( self, @@ -344,8 +363,9 @@ def delete_cashbook_entry( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -380,7 +400,7 @@ def delete_cashbook_entry( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_cashbook_entry_serialize( company_id=company_id, @@ -388,16 +408,22 @@ def delete_cashbook_entry( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": None, - "401": None, - "404": None, + '200': None, + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -405,6 +431,7 @@ def delete_cashbook_entry( response_types_map=_response_types_map, ).data + @validate_call def delete_cashbook_entry_with_http_info( self, @@ -414,8 +441,9 @@ def delete_cashbook_entry_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -450,7 +478,7 @@ def delete_cashbook_entry_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_cashbook_entry_serialize( company_id=company_id, @@ -458,16 +486,22 @@ def delete_cashbook_entry_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": None, - "401": None, - "404": None, + '200': None, + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -475,6 +509,7 @@ def delete_cashbook_entry_with_http_info( response_types_map=_response_types_map, ) + @validate_call def delete_cashbook_entry_without_preload_content( self, @@ -484,8 +519,9 @@ def delete_cashbook_entry_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -520,7 +556,7 @@ def delete_cashbook_entry_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_cashbook_entry_serialize( company_id=company_id, @@ -528,19 +564,26 @@ def delete_cashbook_entry_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": None, - "401": None, - "404": None, + '200': None, + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _delete_cashbook_entry_serialize( self, company_id, @@ -553,7 +596,8 @@ def _delete_cashbook_entry_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -566,20 +610,25 @@ def _delete_cashbook_entry_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id if document_id is not None: - _path_params["document_id"] = document_id + _path_params['document_id'] = document_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + + + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="DELETE", - resource_path="/c/{company_id}/cashbook/{document_id}", + method='DELETE', + resource_path='/c/{company_id}/cashbook/{document_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -589,26 +638,26 @@ def _delete_cashbook_entry_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def get_cashbook_entry( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], document_id: Annotated[StrictStr, Field(description="The ID of the document.")], - fields: Annotated[ - Optional[StrictStr], Field(description="List of comma-separated fields.") - ] = None, - fieldset: Annotated[ - Optional[StrictStr], Field(description="Name of the fieldset.") - ] = None, + fields: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields.")] = None, + fieldset: Annotated[Optional[StrictStr], Field(description="Name of the fieldset.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -647,7 +696,7 @@ def get_cashbook_entry( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_cashbook_entry_serialize( company_id=company_id, @@ -657,16 +706,22 @@ def get_cashbook_entry( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetCashbookEntryResponse", - "401": None, - "404": None, + '200': "GetCashbookEntryResponse", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -674,23 +729,21 @@ def get_cashbook_entry( response_types_map=_response_types_map, ).data + @validate_call def get_cashbook_entry_with_http_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], document_id: Annotated[StrictStr, Field(description="The ID of the document.")], - fields: Annotated[ - Optional[StrictStr], Field(description="List of comma-separated fields.") - ] = None, - fieldset: Annotated[ - Optional[StrictStr], Field(description="Name of the fieldset.") - ] = None, + fields: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields.")] = None, + fieldset: Annotated[Optional[StrictStr], Field(description="Name of the fieldset.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -729,7 +782,7 @@ def get_cashbook_entry_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_cashbook_entry_serialize( company_id=company_id, @@ -739,16 +792,22 @@ def get_cashbook_entry_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetCashbookEntryResponse", - "401": None, - "404": None, + '200': "GetCashbookEntryResponse", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -756,23 +815,21 @@ def get_cashbook_entry_with_http_info( response_types_map=_response_types_map, ) + @validate_call def get_cashbook_entry_without_preload_content( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], document_id: Annotated[StrictStr, Field(description="The ID of the document.")], - fields: Annotated[ - Optional[StrictStr], Field(description="List of comma-separated fields.") - ] = None, - fieldset: Annotated[ - Optional[StrictStr], Field(description="Name of the fieldset.") - ] = None, + fields: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields.")] = None, + fieldset: Annotated[Optional[StrictStr], Field(description="Name of the fieldset.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -811,7 +868,7 @@ def get_cashbook_entry_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_cashbook_entry_serialize( company_id=company_id, @@ -821,19 +878,26 @@ def get_cashbook_entry_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetCashbookEntryResponse", - "401": None, - "404": None, + '200': "GetCashbookEntryResponse", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _get_cashbook_entry_serialize( self, company_id, @@ -848,7 +912,8 @@ def _get_cashbook_entry_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -861,34 +926,40 @@ def _get_cashbook_entry_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id if document_id is not None: - _path_params["document_id"] = document_id + _path_params['document_id'] = document_id # process the query parameters if fields is not None: - - _query_params.append(("fields", fields)) - + + _query_params.append(('fields', fields)) + if fieldset is not None: - - _query_params.append(("fieldset", fieldset)) - + + _query_params.append(('fieldset', fieldset)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/c/{company_id}/cashbook/{document_id}", + method='GET', + resource_path='/c/{company_id}/cashbook/{document_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -898,30 +969,28 @@ def _get_cashbook_entry_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def list_cashbook_entries( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], date_from: Annotated[StrictStr, Field(description="Start date.")], date_to: Annotated[StrictStr, Field(description="End date.")], - year: Annotated[ - Optional[StrictInt], Field(description="Filter cashbook by year.") - ] = None, - type: Annotated[ - Optional[StrictStr], Field(description="Filter cashbook by type.") - ] = None, - payment_account_id: Annotated[ - Optional[StrictInt], Field(description="Filter by payment account.") - ] = None, + year: Annotated[Optional[StrictInt], Field(description="Filter cashbook by year.")] = None, + type: Annotated[Optional[StrictStr], Field(description="Filter cashbook by type.")] = None, + payment_account_id: Annotated[Optional[StrictInt], Field(description="Filter by payment account.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -964,7 +1033,7 @@ def list_cashbook_entries( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_cashbook_entries_serialize( company_id=company_id, @@ -976,16 +1045,22 @@ def list_cashbook_entries( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListCashbookEntriesResponse", - "401": None, - "404": None, + '200': "ListCashbookEntriesResponse", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -993,27 +1068,23 @@ def list_cashbook_entries( response_types_map=_response_types_map, ).data + @validate_call def list_cashbook_entries_with_http_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], date_from: Annotated[StrictStr, Field(description="Start date.")], date_to: Annotated[StrictStr, Field(description="End date.")], - year: Annotated[ - Optional[StrictInt], Field(description="Filter cashbook by year.") - ] = None, - type: Annotated[ - Optional[StrictStr], Field(description="Filter cashbook by type.") - ] = None, - payment_account_id: Annotated[ - Optional[StrictInt], Field(description="Filter by payment account.") - ] = None, + year: Annotated[Optional[StrictInt], Field(description="Filter cashbook by year.")] = None, + type: Annotated[Optional[StrictStr], Field(description="Filter cashbook by type.")] = None, + payment_account_id: Annotated[Optional[StrictInt], Field(description="Filter by payment account.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1056,7 +1127,7 @@ def list_cashbook_entries_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_cashbook_entries_serialize( company_id=company_id, @@ -1068,16 +1139,22 @@ def list_cashbook_entries_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListCashbookEntriesResponse", - "401": None, - "404": None, + '200': "ListCashbookEntriesResponse", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1085,27 +1162,23 @@ def list_cashbook_entries_with_http_info( response_types_map=_response_types_map, ) + @validate_call def list_cashbook_entries_without_preload_content( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], date_from: Annotated[StrictStr, Field(description="Start date.")], date_to: Annotated[StrictStr, Field(description="End date.")], - year: Annotated[ - Optional[StrictInt], Field(description="Filter cashbook by year.") - ] = None, - type: Annotated[ - Optional[StrictStr], Field(description="Filter cashbook by type.") - ] = None, - payment_account_id: Annotated[ - Optional[StrictInt], Field(description="Filter by payment account.") - ] = None, + year: Annotated[Optional[StrictInt], Field(description="Filter cashbook by year.")] = None, + type: Annotated[Optional[StrictStr], Field(description="Filter cashbook by type.")] = None, + payment_account_id: Annotated[Optional[StrictInt], Field(description="Filter by payment account.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1148,7 +1221,7 @@ def list_cashbook_entries_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_cashbook_entries_serialize( company_id=company_id, @@ -1160,19 +1233,26 @@ def list_cashbook_entries_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListCashbookEntriesResponse", - "401": None, - "404": None, + '200': "ListCashbookEntriesResponse", + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _list_cashbook_entries_serialize( self, company_id, @@ -1189,7 +1269,8 @@ def _list_cashbook_entries_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1202,44 +1283,50 @@ def _list_cashbook_entries_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id # process the query parameters if date_from is not None: - - _query_params.append(("date_from", date_from)) - + + _query_params.append(('date_from', date_from)) + if date_to is not None: - - _query_params.append(("date_to", date_to)) - + + _query_params.append(('date_to', date_to)) + if year is not None: - - _query_params.append(("year", year)) - + + _query_params.append(('year', year)) + if type is not None: - - _query_params.append(("type", type)) - + + _query_params.append(('type', type)) + if payment_account_id is not None: - - _query_params.append(("payment_account_id", payment_account_id)) - + + _query_params.append(('payment_account_id', payment_account_id)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/c/{company_id}/cashbook", + method='GET', + resource_path='/c/{company_id}/cashbook', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1249,23 +1336,25 @@ def _list_cashbook_entries_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def modify_cashbook_entry( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], document_id: Annotated[StrictStr, Field(description="The ID of the document.")], - modify_cashbook_entry_request: Annotated[ - Optional[ModifyCashbookEntryRequest], Field(description="Cashbook Entry") - ] = None, + modify_cashbook_entry_request: Annotated[Optional[ModifyCashbookEntryRequest], Field(description="Cashbook Entry")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1302,7 +1391,7 @@ def modify_cashbook_entry( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._modify_cashbook_entry_serialize( company_id=company_id, @@ -1311,16 +1400,22 @@ def modify_cashbook_entry( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ModifyCashbookEntryResponse", - "401": None, - "404": None, + '200': "ModifyCashbookEntryResponse", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1328,20 +1423,20 @@ def modify_cashbook_entry( response_types_map=_response_types_map, ).data + @validate_call def modify_cashbook_entry_with_http_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], document_id: Annotated[StrictStr, Field(description="The ID of the document.")], - modify_cashbook_entry_request: Annotated[ - Optional[ModifyCashbookEntryRequest], Field(description="Cashbook Entry") - ] = None, + modify_cashbook_entry_request: Annotated[Optional[ModifyCashbookEntryRequest], Field(description="Cashbook Entry")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1378,7 +1473,7 @@ def modify_cashbook_entry_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._modify_cashbook_entry_serialize( company_id=company_id, @@ -1387,16 +1482,22 @@ def modify_cashbook_entry_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ModifyCashbookEntryResponse", - "401": None, - "404": None, + '200': "ModifyCashbookEntryResponse", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1404,20 +1505,20 @@ def modify_cashbook_entry_with_http_info( response_types_map=_response_types_map, ) + @validate_call def modify_cashbook_entry_without_preload_content( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], document_id: Annotated[StrictStr, Field(description="The ID of the document.")], - modify_cashbook_entry_request: Annotated[ - Optional[ModifyCashbookEntryRequest], Field(description="Cashbook Entry") - ] = None, + modify_cashbook_entry_request: Annotated[Optional[ModifyCashbookEntryRequest], Field(description="Cashbook Entry")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1454,7 +1555,7 @@ def modify_cashbook_entry_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._modify_cashbook_entry_serialize( company_id=company_id, @@ -1463,19 +1564,26 @@ def modify_cashbook_entry_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ModifyCashbookEntryResponse", - "401": None, - "404": None, + '200': "ModifyCashbookEntryResponse", + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _modify_cashbook_entry_serialize( self, company_id, @@ -1489,7 +1597,8 @@ def _modify_cashbook_entry_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1502,9 +1611,9 @@ def _modify_cashbook_entry_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id if document_id is not None: - _path_params["document_id"] = document_id + _path_params['document_id'] = document_id # process the query parameters # process the header parameters # process the form parameters @@ -1512,28 +1621,37 @@ def _modify_cashbook_entry_serialize( if modify_cashbook_entry_request is not None: _body_params = modify_cashbook_entry_request + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) # set the HTTP header `Content-Type` if _content_type: - _header_params["Content-Type"] = _content_type + _header_params['Content-Type'] = _content_type else: - _default_content_type = self.api_client.select_header_content_type( - ["application/json"] + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) ) if _default_content_type is not None: - _header_params["Content-Type"] = _default_content_type + _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="PUT", - resource_path="/c/{company_id}/cashbook/{document_id}", + method='PUT', + resource_path='/c/{company_id}/cashbook/{document_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1543,5 +1661,7 @@ def _modify_cashbook_entry_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/fattureincloud_python_sdk/api/clients_api.py b/fattureincloud_python_sdk/api/clients_api.py index 029f598c..847993ca 100644 --- a/fattureincloud_python_sdk/api/clients_api.py +++ b/fattureincloud_python_sdk/api/clients_api.py @@ -1,17 +1,16 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 - import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union @@ -23,9 +22,7 @@ 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 -from fattureincloud_python_sdk.models.get_entity_client_pre_create_info_response import ( - GetEntityClientPreCreateInfoResponse, -) +from fattureincloud_python_sdk.models.get_entity_client_pre_create_info_response import GetEntityClientPreCreateInfoResponse from fattureincloud_python_sdk.models.list_clients_response import ListClientsResponse from fattureincloud_python_sdk.models.modify_client_request import ModifyClientRequest from fattureincloud_python_sdk.models.modify_client_response import ModifyClientResponse @@ -47,19 +44,19 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def create_client( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - create_client_request: Annotated[ - Optional[CreateClientRequest], Field(description="The client to create") - ] = None, + create_client_request: Annotated[Optional[CreateClientRequest], Field(description="The client to create")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -94,7 +91,7 @@ def create_client( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_client_serialize( company_id=company_id, @@ -102,14 +99,20 @@ def create_client( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateClientResponse", + '200': "CreateClientResponse", } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -117,19 +120,19 @@ def create_client( response_types_map=_response_types_map, ).data + @validate_call def create_client_with_http_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - create_client_request: Annotated[ - Optional[CreateClientRequest], Field(description="The client to create") - ] = None, + create_client_request: Annotated[Optional[CreateClientRequest], Field(description="The client to create")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -164,7 +167,7 @@ def create_client_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_client_serialize( company_id=company_id, @@ -172,14 +175,20 @@ def create_client_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateClientResponse", + '200': "CreateClientResponse", } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -187,19 +196,19 @@ def create_client_with_http_info( response_types_map=_response_types_map, ) + @validate_call def create_client_without_preload_content( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - create_client_request: Annotated[ - Optional[CreateClientRequest], Field(description="The client to create") - ] = None, + create_client_request: Annotated[Optional[CreateClientRequest], Field(description="The client to create")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -234,7 +243,7 @@ def create_client_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_client_serialize( company_id=company_id, @@ -242,17 +251,24 @@ def create_client_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateClientResponse", + '200': "CreateClientResponse", } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _create_client_serialize( self, company_id, @@ -265,7 +281,8 @@ def _create_client_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -278,7 +295,7 @@ def _create_client_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id # process the query parameters # process the header parameters # process the form parameters @@ -286,28 +303,37 @@ def _create_client_serialize( if create_client_request is not None: _body_params = create_client_request + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) # set the HTTP header `Content-Type` if _content_type: - _header_params["Content-Type"] = _content_type + _header_params['Content-Type'] = _content_type else: - _default_content_type = self.api_client.select_header_content_type( - ["application/json"] + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) ) if _default_content_type is not None: - _header_params["Content-Type"] = _default_content_type + _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/c/{company_id}/entities/clients", + method='POST', + resource_path='/c/{company_id}/entities/clients', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -317,9 +343,12 @@ def _create_client_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def delete_client( self, @@ -329,8 +358,9 @@ def delete_client( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -365,7 +395,7 @@ def delete_client( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_client_serialize( company_id=company_id, @@ -373,16 +403,22 @@ def delete_client( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": None, - "401": None, - "404": None, + '200': None, + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -390,6 +426,7 @@ def delete_client( response_types_map=_response_types_map, ).data + @validate_call def delete_client_with_http_info( self, @@ -399,8 +436,9 @@ def delete_client_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -435,7 +473,7 @@ def delete_client_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_client_serialize( company_id=company_id, @@ -443,16 +481,22 @@ def delete_client_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": None, - "401": None, - "404": None, + '200': None, + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -460,6 +504,7 @@ def delete_client_with_http_info( response_types_map=_response_types_map, ) + @validate_call def delete_client_without_preload_content( self, @@ -469,8 +514,9 @@ def delete_client_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -505,7 +551,7 @@ def delete_client_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_client_serialize( company_id=company_id, @@ -513,19 +559,26 @@ def delete_client_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": None, - "401": None, - "404": None, + '200': None, + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _delete_client_serialize( self, company_id, @@ -538,7 +591,8 @@ def _delete_client_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -551,20 +605,25 @@ def _delete_client_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id if client_id is not None: - _path_params["client_id"] = client_id + _path_params['client_id'] = client_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + + + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="DELETE", - resource_path="/c/{company_id}/entities/clients/{client_id}", + method='DELETE', + resource_path='/c/{company_id}/entities/clients/{client_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -574,26 +633,26 @@ def _delete_client_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def get_client( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], client_id: Annotated[StrictInt, Field(description="The ID of the client.")], - fields: Annotated[ - Optional[StrictStr], Field(description="List of comma-separated fields.") - ] = None, - fieldset: Annotated[ - Optional[StrictStr], Field(description="Name of the fieldset.") - ] = None, + fields: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields.")] = None, + fieldset: Annotated[Optional[StrictStr], Field(description="Name of the fieldset.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -632,7 +691,7 @@ def get_client( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_client_serialize( company_id=company_id, @@ -642,16 +701,22 @@ def get_client( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetClientResponse", - "401": None, - "404": None, + '200': "GetClientResponse", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -659,23 +724,21 @@ def get_client( response_types_map=_response_types_map, ).data + @validate_call def get_client_with_http_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], client_id: Annotated[StrictInt, Field(description="The ID of the client.")], - fields: Annotated[ - Optional[StrictStr], Field(description="List of comma-separated fields.") - ] = None, - fieldset: Annotated[ - Optional[StrictStr], Field(description="Name of the fieldset.") - ] = None, + fields: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields.")] = None, + fieldset: Annotated[Optional[StrictStr], Field(description="Name of the fieldset.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -714,7 +777,7 @@ def get_client_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_client_serialize( company_id=company_id, @@ -724,16 +787,22 @@ def get_client_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetClientResponse", - "401": None, - "404": None, + '200': "GetClientResponse", + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -741,23 +810,21 @@ def get_client_with_http_info( response_types_map=_response_types_map, ) + @validate_call def get_client_without_preload_content( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], client_id: Annotated[StrictInt, Field(description="The ID of the client.")], - fields: Annotated[ - Optional[StrictStr], Field(description="List of comma-separated fields.") - ] = None, - fieldset: Annotated[ - Optional[StrictStr], Field(description="Name of the fieldset.") - ] = None, + fields: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields.")] = None, + fieldset: Annotated[Optional[StrictStr], Field(description="Name of the fieldset.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -796,7 +863,7 @@ def get_client_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_client_serialize( company_id=company_id, @@ -806,19 +873,26 @@ def get_client_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetClientResponse", - "401": None, - "404": None, + '200': "GetClientResponse", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _get_client_serialize( self, company_id, @@ -833,7 +907,8 @@ def _get_client_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -846,34 +921,40 @@ def _get_client_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id if client_id is not None: - _path_params["client_id"] = client_id + _path_params['client_id'] = client_id # process the query parameters if fields is not None: - - _query_params.append(("fields", fields)) - + + _query_params.append(('fields', fields)) + if fieldset is not None: - - _query_params.append(("fieldset", fieldset)) - + + _query_params.append(('fieldset', fieldset)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/c/{company_id}/entities/clients/{client_id}", + method='GET', + resource_path='/c/{company_id}/entities/clients/{client_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -883,9 +964,12 @@ def _get_client_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def get_client_info( self, @@ -894,8 +978,9 @@ def get_client_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -928,23 +1013,29 @@ def get_client_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_client_info_serialize( company_id=company_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetEntityClientPreCreateInfoResponse", - "401": None, - "404": None, + '200': "GetEntityClientPreCreateInfoResponse", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -952,6 +1043,7 @@ def get_client_info( response_types_map=_response_types_map, ).data + @validate_call def get_client_info_with_http_info( self, @@ -960,8 +1052,9 @@ def get_client_info_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -994,23 +1087,29 @@ def get_client_info_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_client_info_serialize( company_id=company_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetEntityClientPreCreateInfoResponse", - "401": None, - "404": None, + '200': "GetEntityClientPreCreateInfoResponse", + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1018,6 +1117,7 @@ def get_client_info_with_http_info( response_types_map=_response_types_map, ) + @validate_call def get_client_info_without_preload_content( self, @@ -1026,8 +1126,9 @@ def get_client_info_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1060,26 +1161,33 @@ def get_client_info_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_client_info_serialize( company_id=company_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetEntityClientPreCreateInfoResponse", - "401": None, - "404": None, + '200': "GetEntityClientPreCreateInfoResponse", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _get_client_info_serialize( self, company_id, @@ -1091,7 +1199,8 @@ def _get_client_info_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1104,24 +1213,30 @@ def _get_client_info_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/c/{company_id}/entities/clients/info", + method='GET', + resource_path='/c/{company_id}/entities/clients/info', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1131,41 +1246,29 @@ def _get_client_info_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def list_clients( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - fields: Annotated[ - Optional[StrictStr], Field(description="List of comma-separated fields.") - ] = None, - fieldset: Annotated[ - Optional[StrictStr], Field(description="Name of the fieldset.") - ] = None, - sort: Annotated[ - Optional[StrictStr], - Field( - description="List of comma-separated fields for result sorting (minus for desc sorting)." - ), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="The page to retrieve.") - ] = None, - per_page: Annotated[ - Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], - Field(description="The size of the page."), - ] = None, - q: Annotated[ - Optional[StrictStr], Field(description="Query for filtering the results.") - ] = None, + fields: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields.")] = None, + fieldset: Annotated[Optional[StrictStr], Field(description="Name of the fieldset.")] = None, + sort: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields for result sorting (minus for desc sorting).")] = None, + page: Annotated[Optional[StrictInt], Field(description="The page to retrieve.")] = None, + per_page: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="The size of the page.")] = None, + q: Annotated[Optional[StrictStr], Field(description="Query for filtering the results.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1210,7 +1313,7 @@ def list_clients( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_clients_serialize( company_id=company_id, @@ -1223,15 +1326,21 @@ def list_clients( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListClientsResponse", - "401": None, + '200': "ListClientsResponse", + '401': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1239,38 +1348,24 @@ def list_clients( response_types_map=_response_types_map, ).data + @validate_call def list_clients_with_http_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - fields: Annotated[ - Optional[StrictStr], Field(description="List of comma-separated fields.") - ] = None, - fieldset: Annotated[ - Optional[StrictStr], Field(description="Name of the fieldset.") - ] = None, - sort: Annotated[ - Optional[StrictStr], - Field( - description="List of comma-separated fields for result sorting (minus for desc sorting)." - ), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="The page to retrieve.") - ] = None, - per_page: Annotated[ - Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], - Field(description="The size of the page."), - ] = None, - q: Annotated[ - Optional[StrictStr], Field(description="Query for filtering the results.") - ] = None, + fields: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields.")] = None, + fieldset: Annotated[Optional[StrictStr], Field(description="Name of the fieldset.")] = None, + sort: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields for result sorting (minus for desc sorting).")] = None, + page: Annotated[Optional[StrictInt], Field(description="The page to retrieve.")] = None, + per_page: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="The size of the page.")] = None, + q: Annotated[Optional[StrictStr], Field(description="Query for filtering the results.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1315,7 +1410,7 @@ def list_clients_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_clients_serialize( company_id=company_id, @@ -1328,15 +1423,21 @@ def list_clients_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListClientsResponse", - "401": None, + '200': "ListClientsResponse", + '401': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1344,38 +1445,24 @@ def list_clients_with_http_info( response_types_map=_response_types_map, ) + @validate_call def list_clients_without_preload_content( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - fields: Annotated[ - Optional[StrictStr], Field(description="List of comma-separated fields.") - ] = None, - fieldset: Annotated[ - Optional[StrictStr], Field(description="Name of the fieldset.") - ] = None, - sort: Annotated[ - Optional[StrictStr], - Field( - description="List of comma-separated fields for result sorting (minus for desc sorting)." - ), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="The page to retrieve.") - ] = None, - per_page: Annotated[ - Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], - Field(description="The size of the page."), - ] = None, - q: Annotated[ - Optional[StrictStr], Field(description="Query for filtering the results.") - ] = None, + fields: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields.")] = None, + fieldset: Annotated[Optional[StrictStr], Field(description="Name of the fieldset.")] = None, + sort: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields for result sorting (minus for desc sorting).")] = None, + page: Annotated[Optional[StrictInt], Field(description="The page to retrieve.")] = None, + per_page: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="The size of the page.")] = None, + q: Annotated[Optional[StrictStr], Field(description="Query for filtering the results.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1420,7 +1507,7 @@ def list_clients_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_clients_serialize( company_id=company_id, @@ -1433,18 +1520,25 @@ def list_clients_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListClientsResponse", - "401": None, + '200': "ListClientsResponse", + '401': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _list_clients_serialize( self, company_id, @@ -1462,7 +1556,8 @@ def _list_clients_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1475,48 +1570,54 @@ def _list_clients_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id # process the query parameters if fields is not None: - - _query_params.append(("fields", fields)) - + + _query_params.append(('fields', fields)) + if fieldset is not None: - - _query_params.append(("fieldset", fieldset)) - + + _query_params.append(('fieldset', fieldset)) + if sort is not None: - - _query_params.append(("sort", sort)) - + + _query_params.append(('sort', sort)) + if page is not None: - - _query_params.append(("page", page)) - + + _query_params.append(('page', page)) + if per_page is not None: - - _query_params.append(("per_page", per_page)) - + + _query_params.append(('per_page', per_page)) + if q is not None: - - _query_params.append(("q", q)) - + + _query_params.append(('q', q)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/c/{company_id}/entities/clients", + method='GET', + resource_path='/c/{company_id}/entities/clients', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1526,26 +1627,25 @@ def _list_clients_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def modify_client( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], client_id: Annotated[StrictInt, Field(description="The ID of the client.")], - modify_client_request: Annotated[ - Optional[ModifyClientRequest], - Field( - description="The modified Client. First level parameters are managed in delta mode." - ), - ] = None, + modify_client_request: Annotated[Optional[ModifyClientRequest], Field(description="The modified Client. First level parameters are managed in delta mode.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1582,7 +1682,7 @@ def modify_client( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._modify_client_serialize( company_id=company_id, @@ -1591,16 +1691,22 @@ def modify_client( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ModifyClientResponse", - "401": None, - "404": None, + '200': "ModifyClientResponse", + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1608,23 +1714,20 @@ def modify_client( response_types_map=_response_types_map, ).data + @validate_call def modify_client_with_http_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], client_id: Annotated[StrictInt, Field(description="The ID of the client.")], - modify_client_request: Annotated[ - Optional[ModifyClientRequest], - Field( - description="The modified Client. First level parameters are managed in delta mode." - ), - ] = None, + modify_client_request: Annotated[Optional[ModifyClientRequest], Field(description="The modified Client. First level parameters are managed in delta mode.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1661,7 +1764,7 @@ def modify_client_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._modify_client_serialize( company_id=company_id, @@ -1670,16 +1773,22 @@ def modify_client_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ModifyClientResponse", - "401": None, - "404": None, + '200': "ModifyClientResponse", + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1687,23 +1796,20 @@ def modify_client_with_http_info( response_types_map=_response_types_map, ) + @validate_call def modify_client_without_preload_content( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], client_id: Annotated[StrictInt, Field(description="The ID of the client.")], - modify_client_request: Annotated[ - Optional[ModifyClientRequest], - Field( - description="The modified Client. First level parameters are managed in delta mode." - ), - ] = None, + modify_client_request: Annotated[Optional[ModifyClientRequest], Field(description="The modified Client. First level parameters are managed in delta mode.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1740,7 +1846,7 @@ def modify_client_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._modify_client_serialize( company_id=company_id, @@ -1749,19 +1855,26 @@ def modify_client_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ModifyClientResponse", - "401": None, - "404": None, + '200': "ModifyClientResponse", + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _modify_client_serialize( self, company_id, @@ -1775,7 +1888,8 @@ def _modify_client_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1788,9 +1902,9 @@ def _modify_client_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id if client_id is not None: - _path_params["client_id"] = client_id + _path_params['client_id'] = client_id # process the query parameters # process the header parameters # process the form parameters @@ -1798,28 +1912,37 @@ def _modify_client_serialize( if modify_client_request is not None: _body_params = modify_client_request + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) # set the HTTP header `Content-Type` if _content_type: - _header_params["Content-Type"] = _content_type + _header_params['Content-Type'] = _content_type else: - _default_content_type = self.api_client.select_header_content_type( - ["application/json"] + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) ) if _default_content_type is not None: - _header_params["Content-Type"] = _default_content_type + _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="PUT", - resource_path="/c/{company_id}/entities/clients/{client_id}", + method='PUT', + resource_path='/c/{company_id}/entities/clients/{client_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1829,5 +1952,7 @@ def _modify_client_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/fattureincloud_python_sdk/api/companies_api.py b/fattureincloud_python_sdk/api/companies_api.py index 970a42cf..b08ab05d 100644 --- a/fattureincloud_python_sdk/api/companies_api.py +++ b/fattureincloud_python_sdk/api/companies_api.py @@ -1,17 +1,16 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 - import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union @@ -19,12 +18,8 @@ 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.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, RequestSerialized from fattureincloud_python_sdk.api_response import ApiResponse @@ -43,6 +38,7 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def get_company_info( self, @@ -51,8 +47,9 @@ def get_company_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -85,22 +82,28 @@ def get_company_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_company_info_serialize( company_id=company_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetCompanyInfoResponse", - "401": None, + '200': "GetCompanyInfoResponse", + '401': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -108,6 +111,7 @@ def get_company_info( response_types_map=_response_types_map, ).data + @validate_call def get_company_info_with_http_info( self, @@ -116,8 +120,9 @@ def get_company_info_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -150,22 +155,28 @@ def get_company_info_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_company_info_serialize( company_id=company_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetCompanyInfoResponse", - "401": None, + '200': "GetCompanyInfoResponse", + '401': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -173,6 +184,7 @@ def get_company_info_with_http_info( response_types_map=_response_types_map, ) + @validate_call def get_company_info_without_preload_content( self, @@ -181,8 +193,9 @@ def get_company_info_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -215,25 +228,32 @@ def get_company_info_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_company_info_serialize( company_id=company_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetCompanyInfoResponse", - "401": None, + '200': "GetCompanyInfoResponse", + '401': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _get_company_info_serialize( self, company_id, @@ -245,7 +265,8 @@ def _get_company_info_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -258,24 +279,30 @@ def _get_company_info_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/c/{company_id}/company/info", + method='GET', + resource_path='/c/{company_id}/company/info', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -285,9 +312,12 @@ def _get_company_info_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def get_company_plan_usage( self, @@ -297,8 +327,9 @@ def get_company_plan_usage( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -333,7 +364,7 @@ def get_company_plan_usage( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_company_plan_usage_serialize( company_id=company_id, @@ -341,15 +372,21 @@ def get_company_plan_usage( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetCompanyPlanUsageResponse", - "401": None, + '200': "GetCompanyPlanUsageResponse", + '401': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -357,6 +394,7 @@ def get_company_plan_usage( response_types_map=_response_types_map, ).data + @validate_call def get_company_plan_usage_with_http_info( self, @@ -366,8 +404,9 @@ def get_company_plan_usage_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -402,7 +441,7 @@ def get_company_plan_usage_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_company_plan_usage_serialize( company_id=company_id, @@ -410,15 +449,21 @@ def get_company_plan_usage_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetCompanyPlanUsageResponse", - "401": None, + '200': "GetCompanyPlanUsageResponse", + '401': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -426,6 +471,7 @@ def get_company_plan_usage_with_http_info( response_types_map=_response_types_map, ) + @validate_call def get_company_plan_usage_without_preload_content( self, @@ -435,8 +481,9 @@ def get_company_plan_usage_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -471,7 +518,7 @@ def get_company_plan_usage_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_company_plan_usage_serialize( company_id=company_id, @@ -479,18 +526,25 @@ def get_company_plan_usage_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetCompanyPlanUsageResponse", - "401": None, + '200': "GetCompanyPlanUsageResponse", + '401': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + 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, @@ -503,7 +557,8 @@ def _get_company_plan_usage_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -516,28 +571,34 @@ def _get_company_plan_usage_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id # process the query parameters if category is not None: - - _query_params.append(("category", category)) - + + _query_params.append(('category', category)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/c/{company_id}/company/plan_usage", + method='GET', + resource_path='/c/{company_id}/company/plan_usage', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -547,5 +608,7 @@ def _get_company_plan_usage_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/fattureincloud_python_sdk/api/emails_api.py b/fattureincloud_python_sdk/api/emails_api.py index 0675272b..80ad2812 100644 --- a/fattureincloud_python_sdk/api/emails_api.py +++ b/fattureincloud_python_sdk/api/emails_api.py @@ -1,17 +1,16 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 - import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union @@ -39,38 +38,24 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def list_emails( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - fields: Annotated[ - Optional[StrictStr], Field(description="List of comma-separated fields.") - ] = None, - fieldset: Annotated[ - Optional[StrictStr], Field(description="Name of the fieldset.") - ] = None, - sort: Annotated[ - Optional[StrictStr], - Field( - description="List of comma-separated fields for result sorting (minus for desc sorting)." - ), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="The page to retrieve.") - ] = None, - per_page: Annotated[ - Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], - Field(description="The size of the page."), - ] = None, - q: Annotated[ - Optional[StrictStr], Field(description="Query for filtering the results.") - ] = None, + fields: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields.")] = None, + fieldset: Annotated[Optional[StrictStr], Field(description="Name of the fieldset.")] = None, + sort: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields for result sorting (minus for desc sorting).")] = None, + page: Annotated[Optional[StrictInt], Field(description="The page to retrieve.")] = None, + per_page: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="The size of the page.")] = None, + q: Annotated[Optional[StrictStr], Field(description="Query for filtering the results.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -115,7 +100,7 @@ def list_emails( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_emails_serialize( company_id=company_id, @@ -128,14 +113,20 @@ def list_emails( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListEmailsResponse", + '200': "ListEmailsResponse", } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -143,38 +134,24 @@ def list_emails( response_types_map=_response_types_map, ).data + @validate_call def list_emails_with_http_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - fields: Annotated[ - Optional[StrictStr], Field(description="List of comma-separated fields.") - ] = None, - fieldset: Annotated[ - Optional[StrictStr], Field(description="Name of the fieldset.") - ] = None, - sort: Annotated[ - Optional[StrictStr], - Field( - description="List of comma-separated fields for result sorting (minus for desc sorting)." - ), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="The page to retrieve.") - ] = None, - per_page: Annotated[ - Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], - Field(description="The size of the page."), - ] = None, - q: Annotated[ - Optional[StrictStr], Field(description="Query for filtering the results.") - ] = None, + fields: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields.")] = None, + fieldset: Annotated[Optional[StrictStr], Field(description="Name of the fieldset.")] = None, + sort: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields for result sorting (minus for desc sorting).")] = None, + page: Annotated[Optional[StrictInt], Field(description="The page to retrieve.")] = None, + per_page: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="The size of the page.")] = None, + q: Annotated[Optional[StrictStr], Field(description="Query for filtering the results.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -219,7 +196,7 @@ def list_emails_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_emails_serialize( company_id=company_id, @@ -232,14 +209,20 @@ def list_emails_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListEmailsResponse", + '200': "ListEmailsResponse", } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -247,38 +230,24 @@ def list_emails_with_http_info( response_types_map=_response_types_map, ) + @validate_call def list_emails_without_preload_content( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - fields: Annotated[ - Optional[StrictStr], Field(description="List of comma-separated fields.") - ] = None, - fieldset: Annotated[ - Optional[StrictStr], Field(description="Name of the fieldset.") - ] = None, - sort: Annotated[ - Optional[StrictStr], - Field( - description="List of comma-separated fields for result sorting (minus for desc sorting)." - ), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="The page to retrieve.") - ] = None, - per_page: Annotated[ - Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], - Field(description="The size of the page."), - ] = None, - q: Annotated[ - Optional[StrictStr], Field(description="Query for filtering the results.") - ] = None, + fields: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields.")] = None, + fieldset: Annotated[Optional[StrictStr], Field(description="Name of the fieldset.")] = None, + sort: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields for result sorting (minus for desc sorting).")] = None, + page: Annotated[Optional[StrictInt], Field(description="The page to retrieve.")] = None, + per_page: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="The size of the page.")] = None, + q: Annotated[Optional[StrictStr], Field(description="Query for filtering the results.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -323,7 +292,7 @@ def list_emails_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_emails_serialize( company_id=company_id, @@ -336,17 +305,24 @@ def list_emails_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListEmailsResponse", + '200': "ListEmailsResponse", } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _list_emails_serialize( self, company_id, @@ -364,7 +340,8 @@ def _list_emails_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -377,48 +354,54 @@ def _list_emails_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id # process the query parameters if fields is not None: - - _query_params.append(("fields", fields)) - + + _query_params.append(('fields', fields)) + if fieldset is not None: - - _query_params.append(("fieldset", fieldset)) - + + _query_params.append(('fieldset', fieldset)) + if sort is not None: - - _query_params.append(("sort", sort)) - + + _query_params.append(('sort', sort)) + if page is not None: - - _query_params.append(("page", page)) - + + _query_params.append(('page', page)) + if per_page is not None: - - _query_params.append(("per_page", per_page)) - + + _query_params.append(('per_page', per_page)) + if q is not None: - - _query_params.append(("q", q)) - + + _query_params.append(('q', q)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/c/{company_id}/emails", + method='GET', + resource_path='/c/{company_id}/emails', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -428,5 +411,7 @@ def _list_emails_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/fattureincloud_python_sdk/api/info_api.py b/fattureincloud_python_sdk/api/info_api.py index 201d5a96..a53f788b 100644 --- a/fattureincloud_python_sdk/api/info_api.py +++ b/fattureincloud_python_sdk/api/info_api.py @@ -1,17 +1,16 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 - import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union @@ -20,52 +19,22 @@ 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, -) +from fattureincloud_python_sdk.models.list_archive_categories_response import ListArchiveCategoriesResponse from fattureincloud_python_sdk.models.list_cities_response import ListCitiesResponse -from fattureincloud_python_sdk.models.list_cost_centers_response import ( - ListCostCentersResponse, -) -from fattureincloud_python_sdk.models.list_countries_response import ( - ListCountriesResponse, -) -from fattureincloud_python_sdk.models.list_currencies_response import ( - ListCurrenciesResponse, -) -from fattureincloud_python_sdk.models.list_delivery_notes_default_causals_response import ( - ListDeliveryNotesDefaultCausalsResponse, -) -from fattureincloud_python_sdk.models.list_detailed_countries_response import ( - ListDetailedCountriesResponse, -) -from fattureincloud_python_sdk.models.list_languages_response import ( - ListLanguagesResponse, -) -from fattureincloud_python_sdk.models.list_payment_accounts_response import ( - ListPaymentAccountsResponse, -) -from fattureincloud_python_sdk.models.list_payment_methods_response import ( - ListPaymentMethodsResponse, -) -from fattureincloud_python_sdk.models.list_product_categories_response import ( - ListProductCategoriesResponse, -) -from fattureincloud_python_sdk.models.list_received_document_categories_response import ( - ListReceivedDocumentCategoriesResponse, -) -from fattureincloud_python_sdk.models.list_revenue_centers_response import ( - ListRevenueCentersResponse, -) -from fattureincloud_python_sdk.models.list_templates_response import ( - ListTemplatesResponse, -) -from fattureincloud_python_sdk.models.list_units_of_measure_response import ( - ListUnitsOfMeasureResponse, -) -from fattureincloud_python_sdk.models.list_vat_types_response import ( - ListVatTypesResponse, -) +from fattureincloud_python_sdk.models.list_cost_centers_response import ListCostCentersResponse +from fattureincloud_python_sdk.models.list_countries_response import ListCountriesResponse +from fattureincloud_python_sdk.models.list_currencies_response import ListCurrenciesResponse +from fattureincloud_python_sdk.models.list_delivery_notes_default_causals_response import ListDeliveryNotesDefaultCausalsResponse +from fattureincloud_python_sdk.models.list_detailed_countries_response import ListDetailedCountriesResponse +from fattureincloud_python_sdk.models.list_languages_response import ListLanguagesResponse +from fattureincloud_python_sdk.models.list_payment_accounts_response import ListPaymentAccountsResponse +from fattureincloud_python_sdk.models.list_payment_methods_response import ListPaymentMethodsResponse +from fattureincloud_python_sdk.models.list_product_categories_response import ListProductCategoriesResponse +from fattureincloud_python_sdk.models.list_received_document_categories_response import ListReceivedDocumentCategoriesResponse +from fattureincloud_python_sdk.models.list_revenue_centers_response import ListRevenueCentersResponse +from fattureincloud_python_sdk.models.list_templates_response import ListTemplatesResponse +from fattureincloud_python_sdk.models.list_units_of_measure_response import ListUnitsOfMeasureResponse +from fattureincloud_python_sdk.models.list_vat_types_response import ListVatTypesResponse from fattureincloud_python_sdk.api_client import ApiClient, RequestSerialized from fattureincloud_python_sdk.api_response import ApiResponse @@ -84,6 +53,7 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def list_archive_categories( self, @@ -92,8 +62,9 @@ def list_archive_categories( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -126,23 +97,29 @@ def list_archive_categories( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_archive_categories_serialize( company_id=company_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListArchiveCategoriesResponse", - "401": None, - "404": None, + '200': "ListArchiveCategoriesResponse", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -150,6 +127,7 @@ def list_archive_categories( response_types_map=_response_types_map, ).data + @validate_call def list_archive_categories_with_http_info( self, @@ -158,8 +136,9 @@ def list_archive_categories_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -192,23 +171,29 @@ def list_archive_categories_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_archive_categories_serialize( company_id=company_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListArchiveCategoriesResponse", - "401": None, - "404": None, + '200': "ListArchiveCategoriesResponse", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -216,6 +201,7 @@ def list_archive_categories_with_http_info( response_types_map=_response_types_map, ) + @validate_call def list_archive_categories_without_preload_content( self, @@ -224,8 +210,9 @@ def list_archive_categories_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -258,26 +245,33 @@ def list_archive_categories_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_archive_categories_serialize( company_id=company_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListArchiveCategoriesResponse", - "401": None, - "404": None, + '200': "ListArchiveCategoriesResponse", + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _list_archive_categories_serialize( self, company_id, @@ -289,7 +283,8 @@ def _list_archive_categories_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -302,24 +297,30 @@ def _list_archive_categories_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/c/{company_id}/info/archive_categories", + method='GET', + resource_path='/c/{company_id}/info/archive_categories', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -329,25 +330,24 @@ def _list_archive_categories_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def list_cities( self, - postal_code: Annotated[ - Optional[StrictStr], Field(description="Postal code for filtering.") - ] = None, - city: Annotated[ - Optional[StrictStr], - Field(description="City for filtering (ignored if postal_code is passed)."), - ] = None, + postal_code: Annotated[Optional[StrictStr], Field(description="Postal code for filtering.")] = None, + city: Annotated[Optional[StrictStr], Field(description="City for filtering (ignored if postal_code is passed).")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -382,7 +382,7 @@ def list_cities( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_cities_serialize( postal_code=postal_code, @@ -390,14 +390,20 @@ def list_cities( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListCitiesResponse", + '200': "ListCitiesResponse", } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -405,22 +411,19 @@ def list_cities( response_types_map=_response_types_map, ).data + @validate_call def list_cities_with_http_info( self, - postal_code: Annotated[ - Optional[StrictStr], Field(description="Postal code for filtering.") - ] = None, - city: Annotated[ - Optional[StrictStr], - Field(description="City for filtering (ignored if postal_code is passed)."), - ] = None, + postal_code: Annotated[Optional[StrictStr], Field(description="Postal code for filtering.")] = None, + city: Annotated[Optional[StrictStr], Field(description="City for filtering (ignored if postal_code is passed).")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -455,7 +458,7 @@ def list_cities_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_cities_serialize( postal_code=postal_code, @@ -463,14 +466,20 @@ def list_cities_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListCitiesResponse", + '200': "ListCitiesResponse", } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -478,22 +487,19 @@ def list_cities_with_http_info( response_types_map=_response_types_map, ) + @validate_call def list_cities_without_preload_content( self, - postal_code: Annotated[ - Optional[StrictStr], Field(description="Postal code for filtering.") - ] = None, - city: Annotated[ - Optional[StrictStr], - Field(description="City for filtering (ignored if postal_code is passed)."), - ] = None, + postal_code: Annotated[Optional[StrictStr], Field(description="Postal code for filtering.")] = None, + city: Annotated[Optional[StrictStr], Field(description="City for filtering (ignored if postal_code is passed).")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -528,7 +534,7 @@ def list_cities_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_cities_serialize( postal_code=postal_code, @@ -536,17 +542,24 @@ def list_cities_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListCitiesResponse", + '200': "ListCitiesResponse", } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _list_cities_serialize( self, postal_code, @@ -559,7 +572,8 @@ def _list_cities_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -573,29 +587,35 @@ 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)) - + + _query_params.append(('postal_code', postal_code)) + if city is not None: - - _query_params.append(("city", city)) - + + _query_params.append(('city', city)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/info/cities", + method='GET', + resource_path='/info/cities', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -605,9 +625,12 @@ def _list_cities_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def list_cost_centers( self, @@ -616,8 +639,9 @@ def list_cost_centers( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -650,23 +674,29 @@ def list_cost_centers( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_cost_centers_serialize( company_id=company_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListCostCentersResponse", - "401": None, - "404": None, + '200': "ListCostCentersResponse", + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -674,6 +704,7 @@ def list_cost_centers( response_types_map=_response_types_map, ).data + @validate_call def list_cost_centers_with_http_info( self, @@ -682,8 +713,9 @@ def list_cost_centers_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -716,23 +748,29 @@ def list_cost_centers_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_cost_centers_serialize( company_id=company_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListCostCentersResponse", - "401": None, - "404": None, + '200': "ListCostCentersResponse", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -740,6 +778,7 @@ def list_cost_centers_with_http_info( response_types_map=_response_types_map, ) + @validate_call def list_cost_centers_without_preload_content( self, @@ -748,8 +787,9 @@ def list_cost_centers_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -782,26 +822,33 @@ def list_cost_centers_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_cost_centers_serialize( company_id=company_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListCostCentersResponse", - "401": None, - "404": None, + '200': "ListCostCentersResponse", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _list_cost_centers_serialize( self, company_id, @@ -813,7 +860,8 @@ def _list_cost_centers_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -826,24 +874,30 @@ def _list_cost_centers_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/c/{company_id}/info/cost_centers", + method='GET', + resource_path='/c/{company_id}/info/cost_centers', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -853,9 +907,12 @@ def _list_cost_centers_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def list_countries( self, @@ -863,8 +920,9 @@ def list_countries( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -895,21 +953,27 @@ def list_countries( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_countries_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListCountriesResponse", - "401": None, + '200': "ListCountriesResponse", + '401': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -917,6 +981,7 @@ def list_countries( response_types_map=_response_types_map, ).data + @validate_call def list_countries_with_http_info( self, @@ -924,8 +989,9 @@ def list_countries_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -956,21 +1022,27 @@ def list_countries_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_countries_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListCountriesResponse", - "401": None, + '200': "ListCountriesResponse", + '401': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -978,6 +1050,7 @@ def list_countries_with_http_info( response_types_map=_response_types_map, ) + @validate_call def list_countries_without_preload_content( self, @@ -985,8 +1058,9 @@ def list_countries_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1017,24 +1091,31 @@ def list_countries_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_countries_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListCountriesResponse", - "401": None, + '200': "ListCountriesResponse", + '401': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _list_countries_serialize( self, _request_auth, @@ -1045,7 +1126,8 @@ def _list_countries_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1062,18 +1144,24 @@ def _list_countries_serialize( # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/info/countries", + method='GET', + resource_path='/info/countries', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1083,9 +1171,12 @@ def _list_countries_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def list_currencies( self, @@ -1093,8 +1184,9 @@ def list_currencies( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1125,21 +1217,27 @@ def list_currencies( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_currencies_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListCurrenciesResponse", - "401": None, + '200': "ListCurrenciesResponse", + '401': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1147,6 +1245,7 @@ def list_currencies( response_types_map=_response_types_map, ).data + @validate_call def list_currencies_with_http_info( self, @@ -1154,8 +1253,9 @@ def list_currencies_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1186,21 +1286,27 @@ def list_currencies_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_currencies_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListCurrenciesResponse", - "401": None, + '200': "ListCurrenciesResponse", + '401': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1208,6 +1314,7 @@ def list_currencies_with_http_info( response_types_map=_response_types_map, ) + @validate_call def list_currencies_without_preload_content( self, @@ -1215,8 +1322,9 @@ def list_currencies_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1247,24 +1355,31 @@ def list_currencies_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_currencies_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListCurrenciesResponse", - "401": None, + '200': "ListCurrenciesResponse", + '401': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _list_currencies_serialize( self, _request_auth, @@ -1275,7 +1390,8 @@ def _list_currencies_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1292,18 +1408,24 @@ def _list_currencies_serialize( # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/info/currencies", + method='GET', + resource_path='/info/currencies', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1313,9 +1435,12 @@ def _list_currencies_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def list_delivery_notes_default_causals( self, @@ -1323,8 +1448,9 @@ def list_delivery_notes_default_causals( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1355,21 +1481,27 @@ def list_delivery_notes_default_causals( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_delivery_notes_default_causals_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListDeliveryNotesDefaultCausalsResponse", - "401": None, + '200': "ListDeliveryNotesDefaultCausalsResponse", + '401': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1377,6 +1509,7 @@ def list_delivery_notes_default_causals( response_types_map=_response_types_map, ).data + @validate_call def list_delivery_notes_default_causals_with_http_info( self, @@ -1384,8 +1517,9 @@ def list_delivery_notes_default_causals_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1416,21 +1550,27 @@ def list_delivery_notes_default_causals_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_delivery_notes_default_causals_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListDeliveryNotesDefaultCausalsResponse", - "401": None, + '200': "ListDeliveryNotesDefaultCausalsResponse", + '401': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1438,6 +1578,7 @@ def list_delivery_notes_default_causals_with_http_info( response_types_map=_response_types_map, ) + @validate_call def list_delivery_notes_default_causals_without_preload_content( self, @@ -1445,8 +1586,9 @@ def list_delivery_notes_default_causals_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1477,24 +1619,31 @@ def list_delivery_notes_default_causals_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_delivery_notes_default_causals_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListDeliveryNotesDefaultCausalsResponse", - "401": None, + '200': "ListDeliveryNotesDefaultCausalsResponse", + '401': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _list_delivery_notes_default_causals_serialize( self, _request_auth, @@ -1505,7 +1654,8 @@ def _list_delivery_notes_default_causals_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1522,18 +1672,24 @@ def _list_delivery_notes_default_causals_serialize( # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/info/dn_causals", + method='GET', + resource_path='/info/dn_causals', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1543,9 +1699,12 @@ def _list_delivery_notes_default_causals_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def list_detailed_countries( self, @@ -1553,8 +1712,9 @@ def list_detailed_countries( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1585,21 +1745,27 @@ def list_detailed_countries( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_detailed_countries_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListDetailedCountriesResponse", - "401": None, + '200': "ListDetailedCountriesResponse", + '401': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1607,6 +1773,7 @@ def list_detailed_countries( response_types_map=_response_types_map, ).data + @validate_call def list_detailed_countries_with_http_info( self, @@ -1614,8 +1781,9 @@ def list_detailed_countries_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1646,21 +1814,27 @@ def list_detailed_countries_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_detailed_countries_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListDetailedCountriesResponse", - "401": None, + '200': "ListDetailedCountriesResponse", + '401': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1668,6 +1842,7 @@ def list_detailed_countries_with_http_info( response_types_map=_response_types_map, ) + @validate_call def list_detailed_countries_without_preload_content( self, @@ -1675,8 +1850,9 @@ def list_detailed_countries_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1707,24 +1883,31 @@ def list_detailed_countries_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_detailed_countries_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListDetailedCountriesResponse", - "401": None, + '200': "ListDetailedCountriesResponse", + '401': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _list_detailed_countries_serialize( self, _request_auth, @@ -1735,7 +1918,8 @@ def _list_detailed_countries_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1752,18 +1936,24 @@ def _list_detailed_countries_serialize( # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/info/detailed_countries", + method='GET', + resource_path='/info/detailed_countries', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1773,9 +1963,12 @@ def _list_detailed_countries_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def list_languages( self, @@ -1783,8 +1976,9 @@ def list_languages( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1815,21 +2009,27 @@ def list_languages( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_languages_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListLanguagesResponse", - "401": None, + '200': "ListLanguagesResponse", + '401': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1837,6 +2037,7 @@ def list_languages( response_types_map=_response_types_map, ).data + @validate_call def list_languages_with_http_info( self, @@ -1844,8 +2045,9 @@ def list_languages_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1876,21 +2078,27 @@ def list_languages_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_languages_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListLanguagesResponse", - "401": None, + '200': "ListLanguagesResponse", + '401': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1898,6 +2106,7 @@ def list_languages_with_http_info( response_types_map=_response_types_map, ) + @validate_call def list_languages_without_preload_content( self, @@ -1905,8 +2114,9 @@ def list_languages_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1937,24 +2147,31 @@ def list_languages_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_languages_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListLanguagesResponse", - "401": None, + '200': "ListLanguagesResponse", + '401': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _list_languages_serialize( self, _request_auth, @@ -1965,7 +2182,8 @@ def _list_languages_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1982,18 +2200,24 @@ def _list_languages_serialize( # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/info/languages", + method='GET', + resource_path='/info/languages', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2003,31 +2227,26 @@ def _list_languages_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def list_payment_accounts( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - fields: Annotated[ - Optional[StrictStr], Field(description="List of comma-separated fields.") - ] = None, - fieldset: Annotated[ - Optional[StrictStr], Field(description="Name of the fieldset.") - ] = None, - sort: Annotated[ - Optional[StrictStr], - Field( - description="List of comma-separated fields for result sorting (minus for desc sorting)." - ), - ] = None, + fields: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields.")] = None, + fieldset: Annotated[Optional[StrictStr], Field(description="Name of the fieldset.")] = None, + sort: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields for result sorting (minus for desc sorting).")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2066,7 +2285,7 @@ def list_payment_accounts( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_payment_accounts_serialize( company_id=company_id, @@ -2076,16 +2295,22 @@ def list_payment_accounts( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListPaymentAccountsResponse", - "401": None, - "404": None, + '200': "ListPaymentAccountsResponse", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2093,28 +2318,21 @@ def list_payment_accounts( response_types_map=_response_types_map, ).data + @validate_call def list_payment_accounts_with_http_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - fields: Annotated[ - Optional[StrictStr], Field(description="List of comma-separated fields.") - ] = None, - fieldset: Annotated[ - Optional[StrictStr], Field(description="Name of the fieldset.") - ] = None, - sort: Annotated[ - Optional[StrictStr], - Field( - description="List of comma-separated fields for result sorting (minus for desc sorting)." - ), - ] = None, + fields: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields.")] = None, + fieldset: Annotated[Optional[StrictStr], Field(description="Name of the fieldset.")] = None, + sort: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields for result sorting (minus for desc sorting).")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2153,7 +2371,7 @@ def list_payment_accounts_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_payment_accounts_serialize( company_id=company_id, @@ -2163,16 +2381,22 @@ def list_payment_accounts_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListPaymentAccountsResponse", - "401": None, - "404": None, + '200': "ListPaymentAccountsResponse", + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2180,28 +2404,21 @@ def list_payment_accounts_with_http_info( response_types_map=_response_types_map, ) + @validate_call def list_payment_accounts_without_preload_content( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - fields: Annotated[ - Optional[StrictStr], Field(description="List of comma-separated fields.") - ] = None, - fieldset: Annotated[ - Optional[StrictStr], Field(description="Name of the fieldset.") - ] = None, - sort: Annotated[ - Optional[StrictStr], - Field( - description="List of comma-separated fields for result sorting (minus for desc sorting)." - ), - ] = None, + fields: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields.")] = None, + fieldset: Annotated[Optional[StrictStr], Field(description="Name of the fieldset.")] = None, + sort: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields for result sorting (minus for desc sorting).")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2240,7 +2457,7 @@ def list_payment_accounts_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_payment_accounts_serialize( company_id=company_id, @@ -2250,19 +2467,26 @@ def list_payment_accounts_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListPaymentAccountsResponse", - "401": None, - "404": None, + '200': "ListPaymentAccountsResponse", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _list_payment_accounts_serialize( self, company_id, @@ -2277,7 +2501,8 @@ def _list_payment_accounts_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -2290,36 +2515,42 @@ def _list_payment_accounts_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id # process the query parameters if fields is not None: - - _query_params.append(("fields", fields)) - + + _query_params.append(('fields', fields)) + if fieldset is not None: - - _query_params.append(("fieldset", fieldset)) - + + _query_params.append(('fieldset', fieldset)) + if sort is not None: - - _query_params.append(("sort", sort)) - + + _query_params.append(('sort', sort)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/c/{company_id}/info/payment_accounts", + method='GET', + resource_path='/c/{company_id}/info/payment_accounts', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2329,31 +2560,26 @@ def _list_payment_accounts_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def list_payment_methods( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - fields: Annotated[ - Optional[StrictStr], Field(description="List of comma-separated fields.") - ] = None, - fieldset: Annotated[ - Optional[StrictStr], Field(description="Name of the fieldset.") - ] = None, - sort: Annotated[ - Optional[StrictStr], - Field( - description="List of comma-separated fields for result sorting (minus for desc sorting)." - ), - ] = None, + fields: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields.")] = None, + fieldset: Annotated[Optional[StrictStr], Field(description="Name of the fieldset.")] = None, + sort: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields for result sorting (minus for desc sorting).")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2392,7 +2618,7 @@ def list_payment_methods( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_payment_methods_serialize( company_id=company_id, @@ -2402,16 +2628,22 @@ def list_payment_methods( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListPaymentMethodsResponse", - "401": None, - "404": None, + '200': "ListPaymentMethodsResponse", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2419,28 +2651,21 @@ def list_payment_methods( response_types_map=_response_types_map, ).data + @validate_call def list_payment_methods_with_http_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - fields: Annotated[ - Optional[StrictStr], Field(description="List of comma-separated fields.") - ] = None, - fieldset: Annotated[ - Optional[StrictStr], Field(description="Name of the fieldset.") - ] = None, - sort: Annotated[ - Optional[StrictStr], - Field( - description="List of comma-separated fields for result sorting (minus for desc sorting)." - ), - ] = None, + fields: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields.")] = None, + fieldset: Annotated[Optional[StrictStr], Field(description="Name of the fieldset.")] = None, + sort: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields for result sorting (minus for desc sorting).")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2479,7 +2704,7 @@ def list_payment_methods_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_payment_methods_serialize( company_id=company_id, @@ -2489,16 +2714,22 @@ def list_payment_methods_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListPaymentMethodsResponse", - "401": None, - "404": None, + '200': "ListPaymentMethodsResponse", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2506,28 +2737,21 @@ def list_payment_methods_with_http_info( response_types_map=_response_types_map, ) + @validate_call def list_payment_methods_without_preload_content( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - fields: Annotated[ - Optional[StrictStr], Field(description="List of comma-separated fields.") - ] = None, - fieldset: Annotated[ - Optional[StrictStr], Field(description="Name of the fieldset.") - ] = None, - sort: Annotated[ - Optional[StrictStr], - Field( - description="List of comma-separated fields for result sorting (minus for desc sorting)." - ), - ] = None, + fields: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields.")] = None, + fieldset: Annotated[Optional[StrictStr], Field(description="Name of the fieldset.")] = None, + sort: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields for result sorting (minus for desc sorting).")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2566,7 +2790,7 @@ def list_payment_methods_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_payment_methods_serialize( company_id=company_id, @@ -2576,19 +2800,26 @@ def list_payment_methods_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListPaymentMethodsResponse", - "401": None, - "404": None, + '200': "ListPaymentMethodsResponse", + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _list_payment_methods_serialize( self, company_id, @@ -2603,7 +2834,8 @@ def _list_payment_methods_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -2616,36 +2848,42 @@ def _list_payment_methods_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id # process the query parameters if fields is not None: - - _query_params.append(("fields", fields)) - + + _query_params.append(('fields', fields)) + if fieldset is not None: - - _query_params.append(("fieldset", fieldset)) - + + _query_params.append(('fieldset', fieldset)) + if sort is not None: - - _query_params.append(("sort", sort)) - + + _query_params.append(('sort', sort)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/c/{company_id}/info/payment_methods", + method='GET', + resource_path='/c/{company_id}/info/payment_methods', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2655,9 +2893,12 @@ def _list_payment_methods_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def list_product_categories( self, @@ -2667,8 +2908,9 @@ def list_product_categories( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2703,7 +2945,7 @@ def list_product_categories( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_product_categories_serialize( company_id=company_id, @@ -2711,16 +2953,22 @@ def list_product_categories( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListProductCategoriesResponse", - "401": None, - "404": None, + '200': "ListProductCategoriesResponse", + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2728,6 +2976,7 @@ def list_product_categories( response_types_map=_response_types_map, ).data + @validate_call def list_product_categories_with_http_info( self, @@ -2737,8 +2986,9 @@ def list_product_categories_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2773,7 +3023,7 @@ def list_product_categories_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_product_categories_serialize( company_id=company_id, @@ -2781,16 +3031,22 @@ def list_product_categories_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListProductCategoriesResponse", - "401": None, - "404": None, + '200': "ListProductCategoriesResponse", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2798,6 +3054,7 @@ def list_product_categories_with_http_info( response_types_map=_response_types_map, ) + @validate_call def list_product_categories_without_preload_content( self, @@ -2807,8 +3064,9 @@ def list_product_categories_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2843,7 +3101,7 @@ def list_product_categories_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_product_categories_serialize( company_id=company_id, @@ -2851,19 +3109,26 @@ def list_product_categories_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListProductCategoriesResponse", - "401": None, - "404": None, + '200': "ListProductCategoriesResponse", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _list_product_categories_serialize( self, company_id, @@ -2876,7 +3141,8 @@ def _list_product_categories_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -2889,28 +3155,34 @@ def _list_product_categories_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id # process the query parameters if context is not None: - - _query_params.append(("context", context)) - + + _query_params.append(('context', context)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/c/{company_id}/info/product_categories", + method='GET', + resource_path='/c/{company_id}/info/product_categories', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2920,9 +3192,12 @@ def _list_product_categories_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def list_received_document_categories( self, @@ -2931,8 +3206,9 @@ def list_received_document_categories( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2965,21 +3241,27 @@ def list_received_document_categories( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_received_document_categories_serialize( company_id=company_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListReceivedDocumentCategoriesResponse", + '200': "ListReceivedDocumentCategoriesResponse", } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2987,6 +3269,7 @@ def list_received_document_categories( response_types_map=_response_types_map, ).data + @validate_call def list_received_document_categories_with_http_info( self, @@ -2995,8 +3278,9 @@ def list_received_document_categories_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3029,21 +3313,27 @@ def list_received_document_categories_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_received_document_categories_serialize( company_id=company_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListReceivedDocumentCategoriesResponse", + '200': "ListReceivedDocumentCategoriesResponse", } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -3051,6 +3341,7 @@ def list_received_document_categories_with_http_info( response_types_map=_response_types_map, ) + @validate_call def list_received_document_categories_without_preload_content( self, @@ -3059,8 +3350,9 @@ def list_received_document_categories_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3093,24 +3385,31 @@ def list_received_document_categories_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_received_document_categories_serialize( company_id=company_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListReceivedDocumentCategoriesResponse", + '200': "ListReceivedDocumentCategoriesResponse", } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _list_received_document_categories_serialize( self, company_id, @@ -3122,7 +3421,8 @@ def _list_received_document_categories_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -3135,24 +3435,30 @@ def _list_received_document_categories_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/c/{company_id}/info/received_document_categories", + method='GET', + resource_path='/c/{company_id}/info/received_document_categories', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3162,9 +3468,12 @@ def _list_received_document_categories_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def list_revenue_centers( self, @@ -3173,8 +3482,9 @@ def list_revenue_centers( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3207,23 +3517,29 @@ def list_revenue_centers( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_revenue_centers_serialize( company_id=company_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListRevenueCentersResponse", - "401": None, - "404": None, + '200': "ListRevenueCentersResponse", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -3231,6 +3547,7 @@ def list_revenue_centers( response_types_map=_response_types_map, ).data + @validate_call def list_revenue_centers_with_http_info( self, @@ -3239,8 +3556,9 @@ def list_revenue_centers_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3273,23 +3591,29 @@ def list_revenue_centers_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_revenue_centers_serialize( company_id=company_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListRevenueCentersResponse", - "401": None, - "404": None, + '200': "ListRevenueCentersResponse", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -3297,6 +3621,7 @@ def list_revenue_centers_with_http_info( response_types_map=_response_types_map, ) + @validate_call def list_revenue_centers_without_preload_content( self, @@ -3305,8 +3630,9 @@ def list_revenue_centers_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3339,26 +3665,33 @@ def list_revenue_centers_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_revenue_centers_serialize( company_id=company_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListRevenueCentersResponse", - "401": None, - "404": None, + '200': "ListRevenueCentersResponse", + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _list_revenue_centers_serialize( self, company_id, @@ -3370,7 +3703,8 @@ def _list_revenue_centers_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -3383,24 +3717,30 @@ def _list_revenue_centers_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/c/{company_id}/info/revenue_centers", + method='GET', + resource_path='/c/{company_id}/info/revenue_centers', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3410,27 +3750,24 @@ def _list_revenue_centers_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def list_templates( self, - type: Annotated[ - Optional[StrictStr], Field(description="Type of the templates.") - ] = None, - by_type: Annotated[ - Optional[StrictBool], - Field( - description="[Only if type=all] If true, splits the list in objects, grouping templates by type." - ), - ] = None, + type: Annotated[Optional[StrictStr], Field(description="Type of the templates.")] = None, + by_type: Annotated[Optional[StrictBool], Field(description="[Only if type=all] If true, splits the list in objects, grouping templates by type.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3465,7 +3802,7 @@ def list_templates( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_templates_serialize( type=type, @@ -3473,15 +3810,21 @@ def list_templates( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListTemplatesResponse", - "401": None, + '200': "ListTemplatesResponse", + '401': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -3489,24 +3832,19 @@ def list_templates( response_types_map=_response_types_map, ).data + @validate_call def list_templates_with_http_info( self, - type: Annotated[ - Optional[StrictStr], Field(description="Type of the templates.") - ] = None, - by_type: Annotated[ - Optional[StrictBool], - Field( - description="[Only if type=all] If true, splits the list in objects, grouping templates by type." - ), - ] = None, + type: Annotated[Optional[StrictStr], Field(description="Type of the templates.")] = None, + by_type: Annotated[Optional[StrictBool], Field(description="[Only if type=all] If true, splits the list in objects, grouping templates by type.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3541,7 +3879,7 @@ def list_templates_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_templates_serialize( type=type, @@ -3549,15 +3887,21 @@ def list_templates_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListTemplatesResponse", - "401": None, + '200': "ListTemplatesResponse", + '401': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -3565,24 +3909,19 @@ def list_templates_with_http_info( response_types_map=_response_types_map, ) + @validate_call def list_templates_without_preload_content( self, - type: Annotated[ - Optional[StrictStr], Field(description="Type of the templates.") - ] = None, - by_type: Annotated[ - Optional[StrictBool], - Field( - description="[Only if type=all] If true, splits the list in objects, grouping templates by type." - ), - ] = None, + type: Annotated[Optional[StrictStr], Field(description="Type of the templates.")] = None, + by_type: Annotated[Optional[StrictBool], Field(description="[Only if type=all] If true, splits the list in objects, grouping templates by type.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3617,7 +3956,7 @@ def list_templates_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_templates_serialize( type=type, @@ -3625,18 +3964,25 @@ def list_templates_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListTemplatesResponse", - "401": None, + '200': "ListTemplatesResponse", + '401': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _list_templates_serialize( self, type, @@ -3649,7 +3995,8 @@ def _list_templates_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -3663,29 +4010,35 @@ def _list_templates_serialize( # process the path parameters # process the query parameters if type is not None: - - _query_params.append(("type", type)) - + + _query_params.append(('type', type)) + if by_type is not None: - - _query_params.append(("by_type", by_type)) - + + _query_params.append(('by_type', by_type)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/info/templates", + method='GET', + resource_path='/info/templates', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3695,9 +4048,12 @@ def _list_templates_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def list_units_of_measure( self, @@ -3705,8 +4061,9 @@ def list_units_of_measure( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3737,21 +4094,27 @@ def list_units_of_measure( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_units_of_measure_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListUnitsOfMeasureResponse", - "401": None, + '200': "ListUnitsOfMeasureResponse", + '401': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -3759,6 +4122,7 @@ def list_units_of_measure( response_types_map=_response_types_map, ).data + @validate_call def list_units_of_measure_with_http_info( self, @@ -3766,8 +4130,9 @@ def list_units_of_measure_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3798,21 +4163,27 @@ def list_units_of_measure_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_units_of_measure_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListUnitsOfMeasureResponse", - "401": None, + '200': "ListUnitsOfMeasureResponse", + '401': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -3820,6 +4191,7 @@ def list_units_of_measure_with_http_info( response_types_map=_response_types_map, ) + @validate_call def list_units_of_measure_without_preload_content( self, @@ -3827,8 +4199,9 @@ def list_units_of_measure_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3859,24 +4232,31 @@ def list_units_of_measure_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_units_of_measure_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListUnitsOfMeasureResponse", - "401": None, + '200': "ListUnitsOfMeasureResponse", + '401': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _list_units_of_measure_serialize( self, _request_auth, @@ -3887,7 +4267,8 @@ def _list_units_of_measure_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -3904,18 +4285,24 @@ def _list_units_of_measure_serialize( # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/info/measures", + method='GET', + resource_path='/info/measures', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3925,22 +4312,24 @@ def _list_units_of_measure_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def list_vat_types( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - fieldset: Annotated[ - Optional[StrictStr], Field(description="Name of the fieldset.") - ] = None, + fieldset: Annotated[Optional[StrictStr], Field(description="Name of the fieldset.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3975,7 +4364,7 @@ def list_vat_types( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_vat_types_serialize( company_id=company_id, @@ -3983,16 +4372,22 @@ def list_vat_types( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListVatTypesResponse", - "401": None, - "404": None, + '200': "ListVatTypesResponse", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -4000,19 +4395,19 @@ def list_vat_types( response_types_map=_response_types_map, ).data + @validate_call def list_vat_types_with_http_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - fieldset: Annotated[ - Optional[StrictStr], Field(description="Name of the fieldset.") - ] = None, + fieldset: Annotated[Optional[StrictStr], Field(description="Name of the fieldset.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -4047,7 +4442,7 @@ def list_vat_types_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_vat_types_serialize( company_id=company_id, @@ -4055,16 +4450,22 @@ def list_vat_types_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListVatTypesResponse", - "401": None, - "404": None, + '200': "ListVatTypesResponse", + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -4072,19 +4473,19 @@ def list_vat_types_with_http_info( response_types_map=_response_types_map, ) + @validate_call def list_vat_types_without_preload_content( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - fieldset: Annotated[ - Optional[StrictStr], Field(description="Name of the fieldset.") - ] = None, + fieldset: Annotated[Optional[StrictStr], Field(description="Name of the fieldset.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -4119,7 +4520,7 @@ def list_vat_types_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_vat_types_serialize( company_id=company_id, @@ -4127,19 +4528,26 @@ def list_vat_types_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListVatTypesResponse", - "401": None, - "404": None, + '200': "ListVatTypesResponse", + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _list_vat_types_serialize( self, company_id, @@ -4152,7 +4560,8 @@ def _list_vat_types_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -4165,28 +4574,34 @@ def _list_vat_types_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id # process the query parameters if fieldset is not None: - - _query_params.append(("fieldset", fieldset)) - + + _query_params.append(('fieldset', fieldset)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/c/{company_id}/info/vat_types", + method='GET', + resource_path='/c/{company_id}/info/vat_types', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4196,5 +4611,7 @@ def _list_vat_types_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/fattureincloud_python_sdk/api/issued_documents_api.py b/fattureincloud_python_sdk/api/issued_documents_api.py index 88edc5a9..69d1c579 100644 --- a/fattureincloud_python_sdk/api/issued_documents_api.py +++ b/fattureincloud_python_sdk/api/issued_documents_api.py @@ -1,17 +1,16 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 - import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union @@ -20,58 +19,24 @@ from pydantic import Field, StrictBytes, StrictInt, StrictStr, field_validator from typing import Optional, Tuple, Union from typing_extensions import Annotated -from fattureincloud_python_sdk.models.create_issued_document_request import ( - CreateIssuedDocumentRequest, -) -from fattureincloud_python_sdk.models.create_issued_document_response import ( - CreateIssuedDocumentResponse, -) -from fattureincloud_python_sdk.models.get_bin_issued_document_response import ( - GetBinIssuedDocumentResponse, -) -from fattureincloud_python_sdk.models.get_email_data_response import ( - GetEmailDataResponse, -) -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, -) -from fattureincloud_python_sdk.models.get_issued_document_pre_create_info_response import ( - GetIssuedDocumentPreCreateInfoResponse, -) -from fattureincloud_python_sdk.models.get_issued_document_response import ( - GetIssuedDocumentResponse, -) -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, -) -from fattureincloud_python_sdk.models.join_issued_documents_response import ( - JoinIssuedDocumentsResponse, -) -from fattureincloud_python_sdk.models.list_bin_issued_documents import ( - ListBinIssuedDocuments, -) -from fattureincloud_python_sdk.models.list_issued_documents_response import ( - ListIssuedDocumentsResponse, -) -from fattureincloud_python_sdk.models.modify_issued_document_request import ( - ModifyIssuedDocumentRequest, -) -from fattureincloud_python_sdk.models.modify_issued_document_response import ( - ModifyIssuedDocumentResponse, -) +from fattureincloud_python_sdk.models.create_issued_document_request import CreateIssuedDocumentRequest +from fattureincloud_python_sdk.models.create_issued_document_response import CreateIssuedDocumentResponse +from fattureincloud_python_sdk.models.get_bin_issued_document_response import GetBinIssuedDocumentResponse +from fattureincloud_python_sdk.models.get_email_data_response import GetEmailDataResponse +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 +from fattureincloud_python_sdk.models.get_issued_document_pre_create_info_response import GetIssuedDocumentPreCreateInfoResponse +from fattureincloud_python_sdk.models.get_issued_document_response import GetIssuedDocumentResponse +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 +from fattureincloud_python_sdk.models.join_issued_documents_response import JoinIssuedDocumentsResponse +from fattureincloud_python_sdk.models.list_bin_issued_documents import ListBinIssuedDocuments +from fattureincloud_python_sdk.models.list_issued_documents_response import ListIssuedDocumentsResponse +from fattureincloud_python_sdk.models.modify_issued_document_request import ModifyIssuedDocumentRequest +from fattureincloud_python_sdk.models.modify_issued_document_response import ModifyIssuedDocumentResponse from fattureincloud_python_sdk.models.schedule_email_request import ScheduleEmailRequest -from fattureincloud_python_sdk.models.transform_issued_document_response import ( - TransformIssuedDocumentResponse, -) -from fattureincloud_python_sdk.models.upload_issued_document_attachment_response import ( - UploadIssuedDocumentAttachmentResponse, -) +from fattureincloud_python_sdk.models.transform_issued_document_response import TransformIssuedDocumentResponse +from fattureincloud_python_sdk.models.upload_issued_document_attachment_response import UploadIssuedDocumentAttachmentResponse from fattureincloud_python_sdk.api_client import ApiClient, RequestSerialized from fattureincloud_python_sdk.api_response import ApiResponse @@ -90,20 +55,19 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def create_issued_document( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - create_issued_document_request: Annotated[ - Optional[CreateIssuedDocumentRequest], - Field(description="The Issued Document"), - ] = None, + create_issued_document_request: Annotated[Optional[CreateIssuedDocumentRequest], Field(description="The Issued Document")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -138,7 +102,7 @@ def create_issued_document( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_issued_document_serialize( company_id=company_id, @@ -146,15 +110,21 @@ def create_issued_document( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateIssuedDocumentResponse", - "401": None, + '200': "CreateIssuedDocumentResponse", + '401': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -162,20 +132,19 @@ def create_issued_document( response_types_map=_response_types_map, ).data + @validate_call def create_issued_document_with_http_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - create_issued_document_request: Annotated[ - Optional[CreateIssuedDocumentRequest], - Field(description="The Issued Document"), - ] = None, + create_issued_document_request: Annotated[Optional[CreateIssuedDocumentRequest], Field(description="The Issued Document")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -210,7 +179,7 @@ def create_issued_document_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_issued_document_serialize( company_id=company_id, @@ -218,15 +187,21 @@ def create_issued_document_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateIssuedDocumentResponse", - "401": None, + '200': "CreateIssuedDocumentResponse", + '401': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -234,20 +209,19 @@ def create_issued_document_with_http_info( response_types_map=_response_types_map, ) + @validate_call def create_issued_document_without_preload_content( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - create_issued_document_request: Annotated[ - Optional[CreateIssuedDocumentRequest], - Field(description="The Issued Document"), - ] = None, + create_issued_document_request: Annotated[Optional[CreateIssuedDocumentRequest], Field(description="The Issued Document")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -282,7 +256,7 @@ def create_issued_document_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_issued_document_serialize( company_id=company_id, @@ -290,18 +264,25 @@ def create_issued_document_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateIssuedDocumentResponse", - "401": None, + '200': "CreateIssuedDocumentResponse", + '401': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _create_issued_document_serialize( self, company_id, @@ -314,7 +295,8 @@ def _create_issued_document_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -327,7 +309,7 @@ def _create_issued_document_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id # process the query parameters # process the header parameters # process the form parameters @@ -335,28 +317,37 @@ def _create_issued_document_serialize( if create_issued_document_request is not None: _body_params = create_issued_document_request + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) # set the HTTP header `Content-Type` if _content_type: - _header_params["Content-Type"] = _content_type + _header_params['Content-Type'] = _content_type else: - _default_content_type = self.api_client.select_header_content_type( - ["application/json"] + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) ) if _default_content_type is not None: - _header_params["Content-Type"] = _default_content_type + _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/c/{company_id}/issued_documents", + method='POST', + resource_path='/c/{company_id}/issued_documents', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -366,9 +357,12 @@ def _create_issued_document_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def delete_bin_issued_document( self, @@ -378,15 +372,16 @@ def delete_bin_issued_document( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + 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, ) -> None: - """ + """Delete Bin Issued Document Delete Bin Issued Document @@ -414,7 +409,7 @@ def delete_bin_issued_document( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_bin_issued_document_serialize( company_id=company_id, @@ -422,14 +417,20 @@ def delete_bin_issued_document( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": None, + '200': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -437,6 +438,7 @@ def delete_bin_issued_document( response_types_map=_response_types_map, ).data + @validate_call def delete_bin_issued_document_with_http_info( self, @@ -446,15 +448,16 @@ def delete_bin_issued_document_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + 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[None]: - """ + """Delete Bin Issued Document Delete Bin Issued Document @@ -482,7 +485,7 @@ def delete_bin_issued_document_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_bin_issued_document_serialize( company_id=company_id, @@ -490,14 +493,20 @@ def delete_bin_issued_document_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": None, + '200': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -505,6 +514,7 @@ def delete_bin_issued_document_with_http_info( response_types_map=_response_types_map, ) + @validate_call def delete_bin_issued_document_without_preload_content( self, @@ -514,15 +524,16 @@ def delete_bin_issued_document_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + 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: - """ + """Delete Bin Issued Document Delete Bin Issued Document @@ -550,7 +561,7 @@ def delete_bin_issued_document_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_bin_issued_document_serialize( company_id=company_id, @@ -558,17 +569,24 @@ def delete_bin_issued_document_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": None, + '200': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _delete_bin_issued_document_serialize( self, company_id, @@ -581,7 +599,8 @@ def _delete_bin_issued_document_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -594,20 +613,25 @@ def _delete_bin_issued_document_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id if document_id is not None: - _path_params["document_id"] = document_id + _path_params['document_id'] = document_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + + + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="DELETE", - resource_path="/c/{company_id}/bin/issued_documents/{document_id}", + method='DELETE', + resource_path='/c/{company_id}/bin/issued_documents/{document_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -617,9 +641,12 @@ def _delete_bin_issued_document_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def delete_issued_document( self, @@ -629,8 +656,9 @@ def delete_issued_document( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -665,7 +693,7 @@ def delete_issued_document( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_issued_document_serialize( company_id=company_id, @@ -673,16 +701,22 @@ def delete_issued_document( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": None, - "401": None, - "404": None, + '200': None, + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -690,6 +724,7 @@ def delete_issued_document( response_types_map=_response_types_map, ).data + @validate_call def delete_issued_document_with_http_info( self, @@ -699,8 +734,9 @@ def delete_issued_document_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -735,7 +771,7 @@ def delete_issued_document_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_issued_document_serialize( company_id=company_id, @@ -743,16 +779,22 @@ def delete_issued_document_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": None, - "401": None, - "404": None, + '200': None, + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -760,6 +802,7 @@ def delete_issued_document_with_http_info( response_types_map=_response_types_map, ) + @validate_call def delete_issued_document_without_preload_content( self, @@ -769,8 +812,9 @@ def delete_issued_document_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -805,7 +849,7 @@ def delete_issued_document_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_issued_document_serialize( company_id=company_id, @@ -813,19 +857,26 @@ def delete_issued_document_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": None, - "401": None, - "404": None, + '200': None, + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _delete_issued_document_serialize( self, company_id, @@ -838,7 +889,8 @@ def _delete_issued_document_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -851,20 +903,25 @@ def _delete_issued_document_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id if document_id is not None: - _path_params["document_id"] = document_id + _path_params['document_id'] = document_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + + + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="DELETE", - resource_path="/c/{company_id}/issued_documents/{document_id}", + method='DELETE', + resource_path='/c/{company_id}/issued_documents/{document_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -874,9 +931,12 @@ def _delete_issued_document_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def delete_issued_document_attachment( self, @@ -886,8 +946,9 @@ def delete_issued_document_attachment( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -922,7 +983,7 @@ def delete_issued_document_attachment( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_issued_document_attachment_serialize( company_id=company_id, @@ -930,16 +991,22 @@ def delete_issued_document_attachment( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": None, - "401": None, - "404": None, + '200': None, + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -947,6 +1014,7 @@ def delete_issued_document_attachment( response_types_map=_response_types_map, ).data + @validate_call def delete_issued_document_attachment_with_http_info( self, @@ -956,8 +1024,9 @@ def delete_issued_document_attachment_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -992,7 +1061,7 @@ def delete_issued_document_attachment_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_issued_document_attachment_serialize( company_id=company_id, @@ -1000,16 +1069,22 @@ def delete_issued_document_attachment_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": None, - "401": None, - "404": None, + '200': None, + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1017,6 +1092,7 @@ def delete_issued_document_attachment_with_http_info( response_types_map=_response_types_map, ) + @validate_call def delete_issued_document_attachment_without_preload_content( self, @@ -1026,8 +1102,9 @@ def delete_issued_document_attachment_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1062,7 +1139,7 @@ def delete_issued_document_attachment_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_issued_document_attachment_serialize( company_id=company_id, @@ -1070,19 +1147,26 @@ def delete_issued_document_attachment_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": None, - "401": None, - "404": None, + '200': None, + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _delete_issued_document_attachment_serialize( self, company_id, @@ -1095,7 +1179,8 @@ def _delete_issued_document_attachment_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1108,20 +1193,25 @@ def _delete_issued_document_attachment_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id if document_id is not None: - _path_params["document_id"] = document_id + _path_params['document_id'] = document_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + + + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="DELETE", - resource_path="/c/{company_id}/issued_documents/{document_id}/attachment", + method='DELETE', + resource_path='/c/{company_id}/issued_documents/{document_id}/attachment', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1131,9 +1221,12 @@ def _delete_issued_document_attachment_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def get_bin_issued_document( self, @@ -1143,8 +1236,9 @@ def get_bin_issued_document( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1179,7 +1273,7 @@ def get_bin_issued_document( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_bin_issued_document_serialize( company_id=company_id, @@ -1187,14 +1281,20 @@ def get_bin_issued_document( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetBinIssuedDocumentResponse", + '200': "GetBinIssuedDocumentResponse", } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1202,6 +1302,7 @@ def get_bin_issued_document( response_types_map=_response_types_map, ).data + @validate_call def get_bin_issued_document_with_http_info( self, @@ -1211,8 +1312,9 @@ def get_bin_issued_document_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1247,7 +1349,7 @@ def get_bin_issued_document_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_bin_issued_document_serialize( company_id=company_id, @@ -1255,14 +1357,20 @@ def get_bin_issued_document_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetBinIssuedDocumentResponse", + '200': "GetBinIssuedDocumentResponse", } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1270,6 +1378,7 @@ def get_bin_issued_document_with_http_info( response_types_map=_response_types_map, ) + @validate_call def get_bin_issued_document_without_preload_content( self, @@ -1279,8 +1388,9 @@ def get_bin_issued_document_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1315,7 +1425,7 @@ def get_bin_issued_document_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_bin_issued_document_serialize( company_id=company_id, @@ -1323,17 +1433,24 @@ def get_bin_issued_document_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetBinIssuedDocumentResponse", + '200': "GetBinIssuedDocumentResponse", } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _get_bin_issued_document_serialize( self, company_id, @@ -1346,7 +1463,8 @@ def _get_bin_issued_document_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1359,26 +1477,32 @@ def _get_bin_issued_document_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id if document_id is not None: - _path_params["document_id"] = document_id + _path_params['document_id'] = document_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/c/{company_id}/bin/issued_documents/{document_id}", + method='GET', + resource_path='/c/{company_id}/bin/issued_documents/{document_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1388,9 +1512,12 @@ def _get_bin_issued_document_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def get_email_data( self, @@ -1400,8 +1527,9 @@ def get_email_data( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1436,7 +1564,7 @@ def get_email_data( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_email_data_serialize( company_id=company_id, @@ -1444,14 +1572,20 @@ def get_email_data( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetEmailDataResponse", + '200': "GetEmailDataResponse", } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1459,6 +1593,7 @@ def get_email_data( response_types_map=_response_types_map, ).data + @validate_call def get_email_data_with_http_info( self, @@ -1468,8 +1603,9 @@ def get_email_data_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1504,7 +1640,7 @@ def get_email_data_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_email_data_serialize( company_id=company_id, @@ -1512,14 +1648,20 @@ def get_email_data_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetEmailDataResponse", + '200': "GetEmailDataResponse", } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1527,6 +1669,7 @@ def get_email_data_with_http_info( response_types_map=_response_types_map, ) + @validate_call def get_email_data_without_preload_content( self, @@ -1536,8 +1679,9 @@ def get_email_data_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1572,7 +1716,7 @@ def get_email_data_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_email_data_serialize( company_id=company_id, @@ -1580,17 +1724,24 @@ def get_email_data_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetEmailDataResponse", + '200': "GetEmailDataResponse", } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _get_email_data_serialize( self, company_id, @@ -1603,7 +1754,8 @@ def _get_email_data_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1616,26 +1768,32 @@ def _get_email_data_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id if document_id is not None: - _path_params["document_id"] = document_id + _path_params['document_id'] = document_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/c/{company_id}/issued_documents/{document_id}/email", + method='GET', + resource_path='/c/{company_id}/issued_documents/{document_id}/email', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1645,23 +1803,25 @@ def _get_email_data_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def get_existing_issued_document_totals( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], document_id: Annotated[StrictInt, Field(description="The ID of the document.")], - get_existing_issued_document_totals_request: Optional[ - GetExistingIssuedDocumentTotalsRequest - ] = None, + get_existing_issued_document_totals_request: Optional[GetExistingIssuedDocumentTotalsRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1698,7 +1858,7 @@ def get_existing_issued_document_totals( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_existing_issued_document_totals_serialize( company_id=company_id, @@ -1707,16 +1867,22 @@ def get_existing_issued_document_totals( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetExistingIssuedDocumentTotalsResponse", - "401": None, - "404": None, + '200': "GetExistingIssuedDocumentTotalsResponse", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1724,20 +1890,20 @@ def get_existing_issued_document_totals( response_types_map=_response_types_map, ).data + @validate_call def get_existing_issued_document_totals_with_http_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], document_id: Annotated[StrictInt, Field(description="The ID of the document.")], - get_existing_issued_document_totals_request: Optional[ - GetExistingIssuedDocumentTotalsRequest - ] = None, + get_existing_issued_document_totals_request: Optional[GetExistingIssuedDocumentTotalsRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1774,7 +1940,7 @@ def get_existing_issued_document_totals_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_existing_issued_document_totals_serialize( company_id=company_id, @@ -1783,16 +1949,22 @@ def get_existing_issued_document_totals_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetExistingIssuedDocumentTotalsResponse", - "401": None, - "404": None, + '200': "GetExistingIssuedDocumentTotalsResponse", + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1800,20 +1972,20 @@ def get_existing_issued_document_totals_with_http_info( response_types_map=_response_types_map, ) + @validate_call def get_existing_issued_document_totals_without_preload_content( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], document_id: Annotated[StrictInt, Field(description="The ID of the document.")], - get_existing_issued_document_totals_request: Optional[ - GetExistingIssuedDocumentTotalsRequest - ] = None, + get_existing_issued_document_totals_request: Optional[GetExistingIssuedDocumentTotalsRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1850,7 +2022,7 @@ def get_existing_issued_document_totals_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_existing_issued_document_totals_serialize( company_id=company_id, @@ -1859,19 +2031,26 @@ def get_existing_issued_document_totals_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetExistingIssuedDocumentTotalsResponse", - "401": None, - "404": None, + '200': "GetExistingIssuedDocumentTotalsResponse", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _get_existing_issued_document_totals_serialize( self, company_id, @@ -1885,7 +2064,8 @@ def _get_existing_issued_document_totals_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1898,9 +2078,9 @@ def _get_existing_issued_document_totals_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id if document_id is not None: - _path_params["document_id"] = document_id + _path_params['document_id'] = document_id # process the query parameters # process the header parameters # process the form parameters @@ -1908,28 +2088,37 @@ def _get_existing_issued_document_totals_serialize( if get_existing_issued_document_totals_request is not None: _body_params = get_existing_issued_document_totals_request + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) # set the HTTP header `Content-Type` if _content_type: - _header_params["Content-Type"] = _content_type + _header_params['Content-Type'] = _content_type else: - _default_content_type = self.api_client.select_header_content_type( - ["application/json"] + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) ) if _default_content_type is not None: - _header_params["Content-Type"] = _default_content_type + _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/c/{company_id}/issued_documents/{document_id}/totals", + method='POST', + resource_path='/c/{company_id}/issued_documents/{document_id}/totals', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1939,26 +2128,26 @@ def _get_existing_issued_document_totals_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def get_issued_document( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], document_id: Annotated[StrictInt, Field(description="The ID of the document.")], - fields: Annotated[ - Optional[StrictStr], Field(description="List of comma-separated fields.") - ] = None, - fieldset: Annotated[ - Optional[StrictStr], Field(description="Name of the fieldset.") - ] = None, + fields: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields.")] = None, + fieldset: Annotated[Optional[StrictStr], Field(description="Name of the fieldset.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1967,7 +2156,7 @@ def get_issued_document( ) -> GetIssuedDocumentResponse: """Get Issued Document - Gets the specified document. + Gets the specified document. :param company_id: The ID of the company. (required) :type company_id: int @@ -1997,7 +2186,7 @@ def get_issued_document( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_issued_document_serialize( company_id=company_id, @@ -2007,16 +2196,22 @@ def get_issued_document( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetIssuedDocumentResponse", - "401": None, - "404": None, + '200': "GetIssuedDocumentResponse", + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2024,23 +2219,21 @@ def get_issued_document( response_types_map=_response_types_map, ).data + @validate_call def get_issued_document_with_http_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], document_id: Annotated[StrictInt, Field(description="The ID of the document.")], - fields: Annotated[ - Optional[StrictStr], Field(description="List of comma-separated fields.") - ] = None, - fieldset: Annotated[ - Optional[StrictStr], Field(description="Name of the fieldset.") - ] = None, + fields: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields.")] = None, + fieldset: Annotated[Optional[StrictStr], Field(description="Name of the fieldset.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2049,7 +2242,7 @@ def get_issued_document_with_http_info( ) -> ApiResponse[GetIssuedDocumentResponse]: """Get Issued Document - Gets the specified document. + Gets the specified document. :param company_id: The ID of the company. (required) :type company_id: int @@ -2079,7 +2272,7 @@ def get_issued_document_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_issued_document_serialize( company_id=company_id, @@ -2089,16 +2282,22 @@ def get_issued_document_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetIssuedDocumentResponse", - "401": None, - "404": None, + '200': "GetIssuedDocumentResponse", + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2106,23 +2305,21 @@ def get_issued_document_with_http_info( response_types_map=_response_types_map, ) + @validate_call def get_issued_document_without_preload_content( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], document_id: Annotated[StrictInt, Field(description="The ID of the document.")], - fields: Annotated[ - Optional[StrictStr], Field(description="List of comma-separated fields.") - ] = None, - fieldset: Annotated[ - Optional[StrictStr], Field(description="Name of the fieldset.") - ] = None, + fields: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields.")] = None, + fieldset: Annotated[Optional[StrictStr], Field(description="Name of the fieldset.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2131,7 +2328,7 @@ def get_issued_document_without_preload_content( ) -> RESTResponseType: """Get Issued Document - Gets the specified document. + Gets the specified document. :param company_id: The ID of the company. (required) :type company_id: int @@ -2161,7 +2358,7 @@ def get_issued_document_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_issued_document_serialize( company_id=company_id, @@ -2171,19 +2368,26 @@ def get_issued_document_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetIssuedDocumentResponse", - "401": None, - "404": None, + '200': "GetIssuedDocumentResponse", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _get_issued_document_serialize( self, company_id, @@ -2198,7 +2402,8 @@ def _get_issued_document_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -2211,34 +2416,40 @@ def _get_issued_document_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id if document_id is not None: - _path_params["document_id"] = document_id + _path_params['document_id'] = document_id # process the query parameters if fields is not None: - - _query_params.append(("fields", fields)) - + + _query_params.append(('fields', fields)) + if fieldset is not None: - - _query_params.append(("fieldset", fieldset)) - + + _query_params.append(('fieldset', fieldset)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/c/{company_id}/issued_documents/{document_id}", + method='GET', + resource_path='/c/{company_id}/issued_documents/{document_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2248,22 +2459,24 @@ def _get_issued_document_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def get_issued_document_pre_create_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - type: Annotated[ - StrictStr, Field(description="The type of the issued document.") - ], + type: Annotated[StrictStr, Field(description="The type of the issued document.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2298,7 +2511,7 @@ def get_issued_document_pre_create_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_issued_document_pre_create_info_serialize( company_id=company_id, @@ -2306,14 +2519,20 @@ def get_issued_document_pre_create_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetIssuedDocumentPreCreateInfoResponse", + '200': "GetIssuedDocumentPreCreateInfoResponse", } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2321,19 +2540,19 @@ def get_issued_document_pre_create_info( response_types_map=_response_types_map, ).data + @validate_call def get_issued_document_pre_create_info_with_http_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - type: Annotated[ - StrictStr, Field(description="The type of the issued document.") - ], + type: Annotated[StrictStr, Field(description="The type of the issued document.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2368,7 +2587,7 @@ def get_issued_document_pre_create_info_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_issued_document_pre_create_info_serialize( company_id=company_id, @@ -2376,14 +2595,20 @@ def get_issued_document_pre_create_info_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetIssuedDocumentPreCreateInfoResponse", + '200': "GetIssuedDocumentPreCreateInfoResponse", } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2391,19 +2616,19 @@ def get_issued_document_pre_create_info_with_http_info( response_types_map=_response_types_map, ) + @validate_call def get_issued_document_pre_create_info_without_preload_content( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - type: Annotated[ - StrictStr, Field(description="The type of the issued document.") - ], + type: Annotated[StrictStr, Field(description="The type of the issued document.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2438,7 +2663,7 @@ def get_issued_document_pre_create_info_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_issued_document_pre_create_info_serialize( company_id=company_id, @@ -2446,17 +2671,24 @@ def get_issued_document_pre_create_info_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetIssuedDocumentPreCreateInfoResponse", + '200': "GetIssuedDocumentPreCreateInfoResponse", } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _get_issued_document_pre_create_info_serialize( self, company_id, @@ -2469,7 +2701,8 @@ def _get_issued_document_pre_create_info_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -2482,28 +2715,34 @@ def _get_issued_document_pre_create_info_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id # process the query parameters if type is not None: - - _query_params.append(("type", type)) - + + _query_params.append(('type', type)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/c/{company_id}/issued_documents/info", + method='GET', + resource_path='/c/{company_id}/issued_documents/info', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2513,22 +2752,24 @@ def _get_issued_document_pre_create_info_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def get_new_issued_document_totals( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - get_new_issued_document_totals_request: Optional[ - GetNewIssuedDocumentTotalsRequest - ] = None, + get_new_issued_document_totals_request: Optional[GetNewIssuedDocumentTotalsRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2563,7 +2804,7 @@ def get_new_issued_document_totals( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_new_issued_document_totals_serialize( company_id=company_id, @@ -2571,15 +2812,21 @@ def get_new_issued_document_totals( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetNewIssuedDocumentTotalsResponse", - "401": None, + '200': "GetNewIssuedDocumentTotalsResponse", + '401': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2587,19 +2834,19 @@ def get_new_issued_document_totals( response_types_map=_response_types_map, ).data + @validate_call def get_new_issued_document_totals_with_http_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - get_new_issued_document_totals_request: Optional[ - GetNewIssuedDocumentTotalsRequest - ] = None, + get_new_issued_document_totals_request: Optional[GetNewIssuedDocumentTotalsRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2634,7 +2881,7 @@ def get_new_issued_document_totals_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_new_issued_document_totals_serialize( company_id=company_id, @@ -2642,15 +2889,21 @@ def get_new_issued_document_totals_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetNewIssuedDocumentTotalsResponse", - "401": None, + '200': "GetNewIssuedDocumentTotalsResponse", + '401': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2658,19 +2911,19 @@ def get_new_issued_document_totals_with_http_info( response_types_map=_response_types_map, ) + @validate_call def get_new_issued_document_totals_without_preload_content( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - get_new_issued_document_totals_request: Optional[ - GetNewIssuedDocumentTotalsRequest - ] = None, + get_new_issued_document_totals_request: Optional[GetNewIssuedDocumentTotalsRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2705,7 +2958,7 @@ def get_new_issued_document_totals_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_new_issued_document_totals_serialize( company_id=company_id, @@ -2713,18 +2966,25 @@ def get_new_issued_document_totals_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetNewIssuedDocumentTotalsResponse", - "401": None, + '200': "GetNewIssuedDocumentTotalsResponse", + '401': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _get_new_issued_document_totals_serialize( self, company_id, @@ -2737,7 +2997,8 @@ def _get_new_issued_document_totals_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -2750,7 +3011,7 @@ def _get_new_issued_document_totals_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id # process the query parameters # process the header parameters # process the form parameters @@ -2758,28 +3019,37 @@ def _get_new_issued_document_totals_serialize( if get_new_issued_document_totals_request is not None: _body_params = get_new_issued_document_totals_request + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) # set the HTTP header `Content-Type` if _content_type: - _header_params["Content-Type"] = _content_type + _header_params['Content-Type'] = _content_type else: - _default_content_type = self.api_client.select_header_content_type( - ["application/json"] + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) ) if _default_content_type is not None: - _header_params["Content-Type"] = _default_content_type + _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/c/{company_id}/issued_documents/totals", + method='POST', + resource_path='/c/{company_id}/issued_documents/totals', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2789,24 +3059,26 @@ def _get_new_issued_document_totals_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def join_issued_documents( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], ids: Annotated[StrictStr, Field(description="Ids of the documents.")], group: Annotated[Optional[StrictInt], Field(description="Group items.")] = None, - type: Annotated[ - Optional[StrictStr], Field(description="Type of the documents to be joined") - ] = None, + type: Annotated[Optional[StrictStr], Field(description="Type of the documents to be joined")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2845,7 +3117,7 @@ def join_issued_documents( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._join_issued_documents_serialize( company_id=company_id, @@ -2855,14 +3127,20 @@ def join_issued_documents( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "JoinIssuedDocumentsResponse", + '200': "JoinIssuedDocumentsResponse", } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2870,21 +3148,21 @@ def join_issued_documents( response_types_map=_response_types_map, ).data + @validate_call def join_issued_documents_with_http_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], ids: Annotated[StrictStr, Field(description="Ids of the documents.")], group: Annotated[Optional[StrictInt], Field(description="Group items.")] = None, - type: Annotated[ - Optional[StrictStr], Field(description="Type of the documents to be joined") - ] = None, + type: Annotated[Optional[StrictStr], Field(description="Type of the documents to be joined")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2923,7 +3201,7 @@ def join_issued_documents_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._join_issued_documents_serialize( company_id=company_id, @@ -2933,14 +3211,20 @@ def join_issued_documents_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "JoinIssuedDocumentsResponse", + '200': "JoinIssuedDocumentsResponse", } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2948,21 +3232,21 @@ def join_issued_documents_with_http_info( response_types_map=_response_types_map, ) + @validate_call def join_issued_documents_without_preload_content( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], ids: Annotated[StrictStr, Field(description="Ids of the documents.")], group: Annotated[Optional[StrictInt], Field(description="Group items.")] = None, - type: Annotated[ - Optional[StrictStr], Field(description="Type of the documents to be joined") - ] = None, + type: Annotated[Optional[StrictStr], Field(description="Type of the documents to be joined")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3001,7 +3285,7 @@ def join_issued_documents_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._join_issued_documents_serialize( company_id=company_id, @@ -3011,17 +3295,24 @@ def join_issued_documents_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "JoinIssuedDocumentsResponse", + '200': "JoinIssuedDocumentsResponse", } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _join_issued_documents_serialize( self, company_id, @@ -3036,7 +3327,8 @@ def _join_issued_documents_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -3049,36 +3341,42 @@ def _join_issued_documents_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id # process the query parameters if ids is not None: - - _query_params.append(("ids", ids)) - + + _query_params.append(('ids', ids)) + if group is not None: - - _query_params.append(("group", group)) - + + _query_params.append(('group', group)) + if type is not None: - - _query_params.append(("type", type)) - + + _query_params.append(('type', type)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/c/{company_id}/issued_documents/join", + method='GET', + resource_path='/c/{company_id}/issued_documents/join', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3088,9 +3386,12 @@ def _join_issued_documents_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def list_bin_issued_documents( self, @@ -3099,8 +3400,9 @@ def list_bin_issued_documents( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3133,21 +3435,27 @@ def list_bin_issued_documents( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_bin_issued_documents_serialize( company_id=company_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListBinIssuedDocuments", + '200': "ListBinIssuedDocuments", } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -3155,6 +3463,7 @@ def list_bin_issued_documents( response_types_map=_response_types_map, ).data + @validate_call def list_bin_issued_documents_with_http_info( self, @@ -3163,8 +3472,9 @@ def list_bin_issued_documents_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3197,21 +3507,27 @@ def list_bin_issued_documents_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_bin_issued_documents_serialize( company_id=company_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListBinIssuedDocuments", + '200': "ListBinIssuedDocuments", } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -3219,6 +3535,7 @@ def list_bin_issued_documents_with_http_info( response_types_map=_response_types_map, ) + @validate_call def list_bin_issued_documents_without_preload_content( self, @@ -3227,8 +3544,9 @@ def list_bin_issued_documents_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3261,24 +3579,31 @@ def list_bin_issued_documents_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_bin_issued_documents_serialize( company_id=company_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListBinIssuedDocuments", + '200': "ListBinIssuedDocuments", } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _list_bin_issued_documents_serialize( self, company_id, @@ -3290,7 +3615,8 @@ def _list_bin_issued_documents_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -3303,24 +3629,30 @@ def _list_bin_issued_documents_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/c/{company_id}/bin/issued_documents", + method='GET', + resource_path='/c/{company_id}/bin/issued_documents', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3330,50 +3662,31 @@ def _list_bin_issued_documents_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def list_issued_documents( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - type: Annotated[ - StrictStr, Field(description="The type of the issued document.") - ], - fields: Annotated[ - Optional[StrictStr], Field(description="List of comma-separated fields.") - ] = None, - fieldset: Annotated[ - Optional[StrictStr], Field(description="Name of the fieldset.") - ] = None, - sort: Annotated[ - Optional[StrictStr], - Field( - description="List of comma-separated fields for result sorting (minus for desc sorting)." - ), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="The page to retrieve.") - ] = None, - per_page: Annotated[ - Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], - Field(description="The size of the page."), - ] = None, - q: Annotated[ - Optional[StrictStr], Field(description="Query for filtering the results.") - ] = None, - inclusive: Annotated[ - Optional[StrictInt], - Field( - description="(Only for type = delivery_notes) Include invoices delivery notes." - ), - ] = None, + type: Annotated[StrictStr, Field(description="The type of the issued document.")], + fields: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields.")] = None, + fieldset: Annotated[Optional[StrictStr], Field(description="Name of the fieldset.")] = None, + sort: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields for result sorting (minus for desc sorting).")] = None, + page: Annotated[Optional[StrictInt], Field(description="The page to retrieve.")] = None, + per_page: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="The size of the page.")] = None, + q: Annotated[Optional[StrictStr], Field(description="Query for filtering the results.")] = None, + inclusive: Annotated[Optional[StrictInt], Field(description="(Only for type = delivery_notes) Include invoices delivery notes.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3422,7 +3735,7 @@ def list_issued_documents( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_issued_documents_serialize( company_id=company_id, @@ -3437,16 +3750,22 @@ def list_issued_documents( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListIssuedDocumentsResponse", - "401": None, - "404": None, + '200': "ListIssuedDocumentsResponse", + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -3454,47 +3773,26 @@ def list_issued_documents( response_types_map=_response_types_map, ).data + @validate_call def list_issued_documents_with_http_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - type: Annotated[ - StrictStr, Field(description="The type of the issued document.") - ], - fields: Annotated[ - Optional[StrictStr], Field(description="List of comma-separated fields.") - ] = None, - fieldset: Annotated[ - Optional[StrictStr], Field(description="Name of the fieldset.") - ] = None, - sort: Annotated[ - Optional[StrictStr], - Field( - description="List of comma-separated fields for result sorting (minus for desc sorting)." - ), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="The page to retrieve.") - ] = None, - per_page: Annotated[ - Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], - Field(description="The size of the page."), - ] = None, - q: Annotated[ - Optional[StrictStr], Field(description="Query for filtering the results.") - ] = None, - inclusive: Annotated[ - Optional[StrictInt], - Field( - description="(Only for type = delivery_notes) Include invoices delivery notes." - ), - ] = None, + type: Annotated[StrictStr, Field(description="The type of the issued document.")], + fields: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields.")] = None, + fieldset: Annotated[Optional[StrictStr], Field(description="Name of the fieldset.")] = None, + sort: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields for result sorting (minus for desc sorting).")] = None, + page: Annotated[Optional[StrictInt], Field(description="The page to retrieve.")] = None, + per_page: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="The size of the page.")] = None, + q: Annotated[Optional[StrictStr], Field(description="Query for filtering the results.")] = None, + inclusive: Annotated[Optional[StrictInt], Field(description="(Only for type = delivery_notes) Include invoices delivery notes.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3543,7 +3841,7 @@ def list_issued_documents_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_issued_documents_serialize( company_id=company_id, @@ -3558,16 +3856,22 @@ def list_issued_documents_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListIssuedDocumentsResponse", - "401": None, - "404": None, + '200': "ListIssuedDocumentsResponse", + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -3575,47 +3879,26 @@ def list_issued_documents_with_http_info( response_types_map=_response_types_map, ) + @validate_call def list_issued_documents_without_preload_content( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - type: Annotated[ - StrictStr, Field(description="The type of the issued document.") - ], - fields: Annotated[ - Optional[StrictStr], Field(description="List of comma-separated fields.") - ] = None, - fieldset: Annotated[ - Optional[StrictStr], Field(description="Name of the fieldset.") - ] = None, - sort: Annotated[ - Optional[StrictStr], - Field( - description="List of comma-separated fields for result sorting (minus for desc sorting)." - ), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="The page to retrieve.") - ] = None, - per_page: Annotated[ - Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], - Field(description="The size of the page."), - ] = None, - q: Annotated[ - Optional[StrictStr], Field(description="Query for filtering the results.") - ] = None, - inclusive: Annotated[ - Optional[StrictInt], - Field( - description="(Only for type = delivery_notes) Include invoices delivery notes." - ), - ] = None, + type: Annotated[StrictStr, Field(description="The type of the issued document.")], + fields: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields.")] = None, + fieldset: Annotated[Optional[StrictStr], Field(description="Name of the fieldset.")] = None, + sort: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields for result sorting (minus for desc sorting).")] = None, + page: Annotated[Optional[StrictInt], Field(description="The page to retrieve.")] = None, + per_page: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="The size of the page.")] = None, + q: Annotated[Optional[StrictStr], Field(description="Query for filtering the results.")] = None, + inclusive: Annotated[Optional[StrictInt], Field(description="(Only for type = delivery_notes) Include invoices delivery notes.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3664,7 +3947,7 @@ def list_issued_documents_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_issued_documents_serialize( company_id=company_id, @@ -3679,19 +3962,26 @@ def list_issued_documents_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListIssuedDocumentsResponse", - "401": None, - "404": None, + '200': "ListIssuedDocumentsResponse", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _list_issued_documents_serialize( self, company_id, @@ -3711,7 +4001,8 @@ def _list_issued_documents_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -3724,56 +4015,62 @@ def _list_issued_documents_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id # process the query parameters if type is not None: - - _query_params.append(("type", type)) - + + _query_params.append(('type', type)) + if fields is not None: - - _query_params.append(("fields", fields)) - + + _query_params.append(('fields', fields)) + if fieldset is not None: - - _query_params.append(("fieldset", fieldset)) - + + _query_params.append(('fieldset', fieldset)) + if sort is not None: - - _query_params.append(("sort", sort)) - + + _query_params.append(('sort', sort)) + if page is not None: - - _query_params.append(("page", page)) - + + _query_params.append(('page', page)) + if per_page is not None: - - _query_params.append(("per_page", per_page)) - + + _query_params.append(('per_page', per_page)) + if q is not None: - - _query_params.append(("q", q)) - + + _query_params.append(('q', q)) + if inclusive is not None: - - _query_params.append(("inclusive", inclusive)) - + + _query_params.append(('inclusive', inclusive)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/c/{company_id}/issued_documents", + method='GET', + resource_path='/c/{company_id}/issued_documents', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3783,24 +4080,25 @@ def _list_issued_documents_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def modify_issued_document( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], document_id: Annotated[StrictInt, Field(description="The ID of the document.")], - modify_issued_document_request: Annotated[ - Optional[ModifyIssuedDocumentRequest], - Field(description="The modified document"), - ] = None, + modify_issued_document_request: Annotated[Optional[ModifyIssuedDocumentRequest], Field(description="The modified document")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3837,7 +4135,7 @@ def modify_issued_document( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._modify_issued_document_serialize( company_id=company_id, @@ -3846,16 +4144,22 @@ def modify_issued_document( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ModifyIssuedDocumentResponse", - "401": None, - "404": None, + '200': "ModifyIssuedDocumentResponse", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -3863,21 +4167,20 @@ def modify_issued_document( response_types_map=_response_types_map, ).data + @validate_call def modify_issued_document_with_http_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], document_id: Annotated[StrictInt, Field(description="The ID of the document.")], - modify_issued_document_request: Annotated[ - Optional[ModifyIssuedDocumentRequest], - Field(description="The modified document"), - ] = None, + modify_issued_document_request: Annotated[Optional[ModifyIssuedDocumentRequest], Field(description="The modified document")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3914,7 +4217,7 @@ def modify_issued_document_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._modify_issued_document_serialize( company_id=company_id, @@ -3923,16 +4226,22 @@ def modify_issued_document_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ModifyIssuedDocumentResponse", - "401": None, - "404": None, + '200': "ModifyIssuedDocumentResponse", + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -3940,21 +4249,20 @@ def modify_issued_document_with_http_info( response_types_map=_response_types_map, ) + @validate_call def modify_issued_document_without_preload_content( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], document_id: Annotated[StrictInt, Field(description="The ID of the document.")], - modify_issued_document_request: Annotated[ - Optional[ModifyIssuedDocumentRequest], - Field(description="The modified document"), - ] = None, + modify_issued_document_request: Annotated[Optional[ModifyIssuedDocumentRequest], Field(description="The modified document")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3991,7 +4299,7 @@ def modify_issued_document_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._modify_issued_document_serialize( company_id=company_id, @@ -4000,19 +4308,26 @@ def modify_issued_document_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ModifyIssuedDocumentResponse", - "401": None, - "404": None, + '200': "ModifyIssuedDocumentResponse", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _modify_issued_document_serialize( self, company_id, @@ -4026,7 +4341,8 @@ def _modify_issued_document_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -4039,9 +4355,9 @@ def _modify_issued_document_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id if document_id is not None: - _path_params["document_id"] = document_id + _path_params['document_id'] = document_id # process the query parameters # process the header parameters # process the form parameters @@ -4049,28 +4365,37 @@ def _modify_issued_document_serialize( if modify_issued_document_request is not None: _body_params = modify_issued_document_request + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) # set the HTTP header `Content-Type` if _content_type: - _header_params["Content-Type"] = _content_type + _header_params['Content-Type'] = _content_type else: - _default_content_type = self.api_client.select_header_content_type( - ["application/json"] + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) ) if _default_content_type is not None: - _header_params["Content-Type"] = _default_content_type + _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="PUT", - resource_path="/c/{company_id}/issued_documents/{document_id}", + method='PUT', + resource_path='/c/{company_id}/issued_documents/{document_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4080,9 +4405,12 @@ def _modify_issued_document_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def recover_bin_issued_document( self, @@ -4092,15 +4420,16 @@ def recover_bin_issued_document( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + 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, ) -> None: - """ + """Recover Issued Document From The Bin Recover Issued Document From The Bin @@ -4128,7 +4457,7 @@ def recover_bin_issued_document( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._recover_bin_issued_document_serialize( company_id=company_id, @@ -4136,14 +4465,20 @@ def recover_bin_issued_document( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": None, + '200': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -4151,6 +4486,7 @@ def recover_bin_issued_document( response_types_map=_response_types_map, ).data + @validate_call def recover_bin_issued_document_with_http_info( self, @@ -4160,15 +4496,16 @@ def recover_bin_issued_document_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + 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[None]: - """ + """Recover Issued Document From The Bin Recover Issued Document From The Bin @@ -4196,7 +4533,7 @@ def recover_bin_issued_document_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._recover_bin_issued_document_serialize( company_id=company_id, @@ -4204,14 +4541,20 @@ def recover_bin_issued_document_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": None, + '200': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -4219,6 +4562,7 @@ def recover_bin_issued_document_with_http_info( response_types_map=_response_types_map, ) + @validate_call def recover_bin_issued_document_without_preload_content( self, @@ -4228,15 +4572,16 @@ def recover_bin_issued_document_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + 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: - """ + """Recover Issued Document From The Bin Recover Issued Document From The Bin @@ -4264,7 +4609,7 @@ def recover_bin_issued_document_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._recover_bin_issued_document_serialize( company_id=company_id, @@ -4272,17 +4617,24 @@ def recover_bin_issued_document_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": None, + '200': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _recover_bin_issued_document_serialize( self, company_id, @@ -4295,7 +4647,8 @@ def _recover_bin_issued_document_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -4308,20 +4661,25 @@ def _recover_bin_issued_document_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id if document_id is not None: - _path_params["document_id"] = document_id + _path_params['document_id'] = document_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + + + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/c/{company_id}/bin/issued_documents/{document_id}/recover", + method='POST', + resource_path='/c/{company_id}/bin/issued_documents/{document_id}/recover', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4331,23 +4689,25 @@ def _recover_bin_issued_document_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def schedule_email( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], document_id: Annotated[StrictInt, Field(description="The ID of the document.")], - schedule_email_request: Annotated[ - Optional[ScheduleEmailRequest], Field(description="Email Schedule") - ] = None, + schedule_email_request: Annotated[Optional[ScheduleEmailRequest], Field(description="Email Schedule")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -4384,7 +4744,7 @@ def schedule_email( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._schedule_email_serialize( company_id=company_id, @@ -4393,16 +4753,22 @@ def schedule_email( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": None, - "401": None, - "404": None, + '200': None, + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -4410,20 +4776,20 @@ def schedule_email( response_types_map=_response_types_map, ).data + @validate_call def schedule_email_with_http_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], document_id: Annotated[StrictInt, Field(description="The ID of the document.")], - schedule_email_request: Annotated[ - Optional[ScheduleEmailRequest], Field(description="Email Schedule") - ] = None, + schedule_email_request: Annotated[Optional[ScheduleEmailRequest], Field(description="Email Schedule")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -4460,7 +4826,7 @@ def schedule_email_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._schedule_email_serialize( company_id=company_id, @@ -4469,16 +4835,22 @@ def schedule_email_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": None, - "401": None, - "404": None, + '200': None, + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -4486,20 +4858,20 @@ def schedule_email_with_http_info( response_types_map=_response_types_map, ) + @validate_call def schedule_email_without_preload_content( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], document_id: Annotated[StrictInt, Field(description="The ID of the document.")], - schedule_email_request: Annotated[ - Optional[ScheduleEmailRequest], Field(description="Email Schedule") - ] = None, + schedule_email_request: Annotated[Optional[ScheduleEmailRequest], Field(description="Email Schedule")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -4536,7 +4908,7 @@ def schedule_email_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._schedule_email_serialize( company_id=company_id, @@ -4545,19 +4917,26 @@ def schedule_email_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": None, - "401": None, - "404": None, + '200': None, + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _schedule_email_serialize( self, company_id, @@ -4571,7 +4950,8 @@ def _schedule_email_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -4584,9 +4964,9 @@ def _schedule_email_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id if document_id is not None: - _path_params["document_id"] = document_id + _path_params['document_id'] = document_id # process the query parameters # process the header parameters # process the form parameters @@ -4594,22 +4974,30 @@ def _schedule_email_serialize( if schedule_email_request is not None: _body_params = schedule_email_request + + # set the HTTP header `Content-Type` if _content_type: - _header_params["Content-Type"] = _content_type + _header_params['Content-Type'] = _content_type else: - _default_content_type = self.api_client.select_header_content_type( - ["application/json"] + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) ) if _default_content_type is not None: - _header_params["Content-Type"] = _default_content_type + _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/c/{company_id}/issued_documents/{document_id}/email", + method='POST', + resource_path='/c/{company_id}/issued_documents/{document_id}/email', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4619,32 +5007,28 @@ def _schedule_email_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def transform_issued_document( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - original_document_id: Annotated[ - StrictInt, Field(description="Original document id.") - ], + original_document_id: Annotated[StrictInt, Field(description="Original document id.")], new_type: Annotated[StrictStr, Field(description="New document type.")], - type: Annotated[ - Optional[StrictStr], Field(description="Current document type.") - ] = None, - e_invoice: Annotated[ - Optional[StrictInt], Field(description="New document e_invoice.") - ] = None, - transform_keep_copy: Annotated[ - Optional[StrictInt], Field(description="Keep the old document.") - ] = None, + type: Annotated[Optional[StrictStr], Field(description="Current document type.")] = None, + e_invoice: Annotated[Optional[StrictInt], Field(description="New document e_invoice.")] = None, + transform_keep_copy: Annotated[Optional[StrictInt], Field(description="Keep the old document.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -4687,7 +5071,7 @@ def transform_issued_document( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._transform_issued_document_serialize( company_id=company_id, @@ -4699,14 +5083,20 @@ def transform_issued_document( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "TransformIssuedDocumentResponse", + '200': "TransformIssuedDocumentResponse", } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -4714,29 +5104,23 @@ def transform_issued_document( response_types_map=_response_types_map, ).data + @validate_call def transform_issued_document_with_http_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - original_document_id: Annotated[ - StrictInt, Field(description="Original document id.") - ], + original_document_id: Annotated[StrictInt, Field(description="Original document id.")], new_type: Annotated[StrictStr, Field(description="New document type.")], - type: Annotated[ - Optional[StrictStr], Field(description="Current document type.") - ] = None, - e_invoice: Annotated[ - Optional[StrictInt], Field(description="New document e_invoice.") - ] = None, - transform_keep_copy: Annotated[ - Optional[StrictInt], Field(description="Keep the old document.") - ] = None, + type: Annotated[Optional[StrictStr], Field(description="Current document type.")] = None, + e_invoice: Annotated[Optional[StrictInt], Field(description="New document e_invoice.")] = None, + transform_keep_copy: Annotated[Optional[StrictInt], Field(description="Keep the old document.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -4779,7 +5163,7 @@ def transform_issued_document_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._transform_issued_document_serialize( company_id=company_id, @@ -4791,14 +5175,20 @@ def transform_issued_document_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "TransformIssuedDocumentResponse", + '200': "TransformIssuedDocumentResponse", } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -4806,29 +5196,23 @@ def transform_issued_document_with_http_info( response_types_map=_response_types_map, ) + @validate_call def transform_issued_document_without_preload_content( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - original_document_id: Annotated[ - StrictInt, Field(description="Original document id.") - ], + original_document_id: Annotated[StrictInt, Field(description="Original document id.")], new_type: Annotated[StrictStr, Field(description="New document type.")], - type: Annotated[ - Optional[StrictStr], Field(description="Current document type.") - ] = None, - e_invoice: Annotated[ - Optional[StrictInt], Field(description="New document e_invoice.") - ] = None, - transform_keep_copy: Annotated[ - Optional[StrictInt], Field(description="Keep the old document.") - ] = None, + type: Annotated[Optional[StrictStr], Field(description="Current document type.")] = None, + e_invoice: Annotated[Optional[StrictInt], Field(description="New document e_invoice.")] = None, + transform_keep_copy: Annotated[Optional[StrictInt], Field(description="Keep the old document.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -4871,7 +5255,7 @@ def transform_issued_document_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._transform_issued_document_serialize( company_id=company_id, @@ -4883,17 +5267,24 @@ def transform_issued_document_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "TransformIssuedDocumentResponse", + '200': "TransformIssuedDocumentResponse", } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _transform_issued_document_serialize( self, company_id, @@ -4910,7 +5301,8 @@ def _transform_issued_document_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -4923,44 +5315,50 @@ def _transform_issued_document_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _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)) - + + _query_params.append(('original_document_id', original_document_id)) + if new_type is not None: - - _query_params.append(("new_type", new_type)) - + + _query_params.append(('new_type', new_type)) + if type is not None: - - _query_params.append(("type", type)) - + + _query_params.append(('type', type)) + if e_invoice is not None: - - _query_params.append(("e_invoice", e_invoice)) - + + _query_params.append(('e_invoice', e_invoice)) + if transform_keep_copy is not None: - - _query_params.append(("transform_keep_copy", transform_keep_copy)) - + + _query_params.append(('transform_keep_copy', transform_keep_copy)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/c/{company_id}/issued_documents/transform", + method='GET', + resource_path='/c/{company_id}/issued_documents/transform', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4970,28 +5368,25 @@ def _transform_issued_document_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def upload_issued_document_attachment( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - filename: Annotated[ - Optional[StrictStr], Field(description="Attachment file name") - ] = None, - attachment: Annotated[ - Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], - Field( - description="Attachment file [.png, .jpg, .gif, .pdf, .zip, .xls, .xlsx, .doc, .docx]" - ), - ] = None, + filename: Annotated[Optional[StrictStr], Field(description="Attachment file name")] = None, + attachment: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Attachment file [.png, .jpg, .gif, .pdf, .zip, .xls, .xlsx, .doc, .docx]")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -5028,7 +5423,7 @@ def upload_issued_document_attachment( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._upload_issued_document_attachment_serialize( company_id=company_id, @@ -5037,15 +5432,21 @@ def upload_issued_document_attachment( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UploadIssuedDocumentAttachmentResponse", - "401": None, + '200': "UploadIssuedDocumentAttachmentResponse", + '401': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -5053,25 +5454,20 @@ def upload_issued_document_attachment( response_types_map=_response_types_map, ).data + @validate_call def upload_issued_document_attachment_with_http_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - filename: Annotated[ - Optional[StrictStr], Field(description="Attachment file name") - ] = None, - attachment: Annotated[ - Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], - Field( - description="Attachment file [.png, .jpg, .gif, .pdf, .zip, .xls, .xlsx, .doc, .docx]" - ), - ] = None, + filename: Annotated[Optional[StrictStr], Field(description="Attachment file name")] = None, + attachment: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Attachment file [.png, .jpg, .gif, .pdf, .zip, .xls, .xlsx, .doc, .docx]")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -5108,7 +5504,7 @@ def upload_issued_document_attachment_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._upload_issued_document_attachment_serialize( company_id=company_id, @@ -5117,15 +5513,21 @@ def upload_issued_document_attachment_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UploadIssuedDocumentAttachmentResponse", - "401": None, + '200': "UploadIssuedDocumentAttachmentResponse", + '401': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -5133,25 +5535,20 @@ def upload_issued_document_attachment_with_http_info( response_types_map=_response_types_map, ) + @validate_call def upload_issued_document_attachment_without_preload_content( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - filename: Annotated[ - Optional[StrictStr], Field(description="Attachment file name") - ] = None, - attachment: Annotated[ - Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], - Field( - description="Attachment file [.png, .jpg, .gif, .pdf, .zip, .xls, .xlsx, .doc, .docx]" - ), - ] = None, + filename: Annotated[Optional[StrictStr], Field(description="Attachment file name")] = None, + attachment: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Attachment file [.png, .jpg, .gif, .pdf, .zip, .xls, .xlsx, .doc, .docx]")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -5188,7 +5585,7 @@ def upload_issued_document_attachment_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._upload_issued_document_attachment_serialize( company_id=company_id, @@ -5197,18 +5594,25 @@ def upload_issued_document_attachment_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UploadIssuedDocumentAttachmentResponse", - "401": None, + '200': "UploadIssuedDocumentAttachmentResponse", + '401': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _upload_issued_document_attachment_serialize( self, company_id, @@ -5222,7 +5626,8 @@ def _upload_issued_document_attachment_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -5235,38 +5640,47 @@ def _upload_issued_document_attachment_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id # process the query parameters # process the header parameters # process the form parameters if filename is not None: - _form_params.append(("filename", filename)) + _form_params.append(('filename', filename)) if attachment is not None: - _files["attachment"] = attachment + _files['attachment'] = attachment # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) # set the HTTP header `Content-Type` if _content_type: - _header_params["Content-Type"] = _content_type + _header_params['Content-Type'] = _content_type else: - _default_content_type = self.api_client.select_header_content_type( - ["multipart/form-data"] + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'multipart/form-data' + ] + ) ) if _default_content_type is not None: - _header_params["Content-Type"] = _default_content_type + _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/c/{company_id}/issued_documents/attachment", + method='POST', + resource_path='/c/{company_id}/issued_documents/attachment', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5276,5 +5690,7 @@ def _upload_issued_document_attachment_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/fattureincloud_python_sdk/api/issued_e_invoices_api.py b/fattureincloud_python_sdk/api/issued_e_invoices_api.py index ac95de51..cd7f33d3 100644 --- a/fattureincloud_python_sdk/api/issued_e_invoices_api.py +++ b/fattureincloud_python_sdk/api/issued_e_invoices_api.py @@ -1,17 +1,16 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 - import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union @@ -20,16 +19,10 @@ from pydantic import Field, StrictBool, StrictInt, StrictStr from typing import Optional from typing_extensions import Annotated -from fattureincloud_python_sdk.models.get_e_invoice_rejection_reason_response import ( - GetEInvoiceRejectionReasonResponse, -) +from fattureincloud_python_sdk.models.get_e_invoice_rejection_reason_response import GetEInvoiceRejectionReasonResponse from fattureincloud_python_sdk.models.send_e_invoice_request import SendEInvoiceRequest -from fattureincloud_python_sdk.models.send_e_invoice_response import ( - SendEInvoiceResponse, -) -from fattureincloud_python_sdk.models.verify_e_invoice_xml_response import ( - VerifyEInvoiceXmlResponse, -) +from fattureincloud_python_sdk.models.send_e_invoice_response import SendEInvoiceResponse +from fattureincloud_python_sdk.models.verify_e_invoice_xml_response import VerifyEInvoiceXmlResponse from fattureincloud_python_sdk.api_client import ApiClient, RequestSerialized from fattureincloud_python_sdk.api_response import ApiResponse @@ -48,6 +41,7 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def get_e_invoice_rejection_reason( self, @@ -57,8 +51,9 @@ def get_e_invoice_rejection_reason( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -93,7 +88,7 @@ def get_e_invoice_rejection_reason( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_e_invoice_rejection_reason_serialize( company_id=company_id, @@ -101,14 +96,20 @@ def get_e_invoice_rejection_reason( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetEInvoiceRejectionReasonResponse", + '200': "GetEInvoiceRejectionReasonResponse", } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -116,6 +117,7 @@ def get_e_invoice_rejection_reason( response_types_map=_response_types_map, ).data + @validate_call def get_e_invoice_rejection_reason_with_http_info( self, @@ -125,8 +127,9 @@ def get_e_invoice_rejection_reason_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -161,7 +164,7 @@ def get_e_invoice_rejection_reason_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_e_invoice_rejection_reason_serialize( company_id=company_id, @@ -169,14 +172,20 @@ def get_e_invoice_rejection_reason_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetEInvoiceRejectionReasonResponse", + '200': "GetEInvoiceRejectionReasonResponse", } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -184,6 +193,7 @@ def get_e_invoice_rejection_reason_with_http_info( response_types_map=_response_types_map, ) + @validate_call def get_e_invoice_rejection_reason_without_preload_content( self, @@ -193,8 +203,9 @@ def get_e_invoice_rejection_reason_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -229,7 +240,7 @@ def get_e_invoice_rejection_reason_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_e_invoice_rejection_reason_serialize( company_id=company_id, @@ -237,17 +248,24 @@ def get_e_invoice_rejection_reason_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetEInvoiceRejectionReasonResponse", + '200': "GetEInvoiceRejectionReasonResponse", } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _get_e_invoice_rejection_reason_serialize( self, company_id, @@ -260,7 +278,8 @@ def _get_e_invoice_rejection_reason_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -273,26 +292,32 @@ def _get_e_invoice_rejection_reason_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id if document_id is not None: - _path_params["document_id"] = document_id + _path_params['document_id'] = document_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/c/{company_id}/issued_documents/{document_id}/e_invoice/error_reason", + method='GET', + resource_path='/c/{company_id}/issued_documents/{document_id}/e_invoice/error_reason', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -302,24 +327,25 @@ def _get_e_invoice_rejection_reason_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def get_e_invoice_xml( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], document_id: Annotated[StrictInt, Field(description="The ID of the document.")], - include_attachment: Annotated[ - Optional[StrictBool], - Field(description="Include the attachment to the XML e-invoice."), - ] = None, + include_attachment: Annotated[Optional[StrictBool], Field(description="Include the attachment to the XML e-invoice.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -356,7 +382,7 @@ def get_e_invoice_xml( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_e_invoice_xml_serialize( company_id=company_id, @@ -365,16 +391,22 @@ def get_e_invoice_xml( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "str", - "401": None, - "404": None, + '200': "str", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -382,21 +414,20 @@ def get_e_invoice_xml( response_types_map=_response_types_map, ).data + @validate_call def get_e_invoice_xml_with_http_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], document_id: Annotated[StrictInt, Field(description="The ID of the document.")], - include_attachment: Annotated[ - Optional[StrictBool], - Field(description="Include the attachment to the XML e-invoice."), - ] = None, + include_attachment: Annotated[Optional[StrictBool], Field(description="Include the attachment to the XML e-invoice.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -433,7 +464,7 @@ def get_e_invoice_xml_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_e_invoice_xml_serialize( company_id=company_id, @@ -442,16 +473,22 @@ def get_e_invoice_xml_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "str", - "401": None, - "404": None, + '200': "str", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -459,21 +496,20 @@ def get_e_invoice_xml_with_http_info( response_types_map=_response_types_map, ) + @validate_call def get_e_invoice_xml_without_preload_content( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], document_id: Annotated[StrictInt, Field(description="The ID of the document.")], - include_attachment: Annotated[ - Optional[StrictBool], - Field(description="Include the attachment to the XML e-invoice."), - ] = None, + include_attachment: Annotated[Optional[StrictBool], Field(description="Include the attachment to the XML e-invoice.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -510,7 +546,7 @@ def get_e_invoice_xml_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_e_invoice_xml_serialize( company_id=company_id, @@ -519,19 +555,26 @@ def get_e_invoice_xml_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "str", - "401": None, - "404": None, + '200': "str", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _get_e_invoice_xml_serialize( self, company_id, @@ -545,7 +588,8 @@ def _get_e_invoice_xml_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -558,30 +602,36 @@ def _get_e_invoice_xml_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id if document_id is not None: - _path_params["document_id"] = document_id + _path_params['document_id'] = document_id # process the query parameters if include_attachment is not None: - - _query_params.append(("include_attachment", include_attachment)) - + + _query_params.append(('include_attachment', include_attachment)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["text/xml"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/xml' + ] ) + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/c/{company_id}/issued_documents/{document_id}/e_invoice/xml", + method='GET', + resource_path='/c/{company_id}/issued_documents/{document_id}/e_invoice/xml', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -591,9 +641,12 @@ def _get_e_invoice_xml_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def send_e_invoice( self, @@ -604,8 +657,9 @@ def send_e_invoice( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -620,7 +674,7 @@ def send_e_invoice( :type company_id: int :param document_id: The ID of the document. (required) :type document_id: int - :param send_e_invoice_request: + :param send_e_invoice_request: :type send_e_invoice_request: SendEInvoiceRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -642,7 +696,7 @@ def send_e_invoice( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._send_e_invoice_serialize( company_id=company_id, @@ -651,16 +705,22 @@ def send_e_invoice( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "SendEInvoiceResponse", - "401": None, - "404": None, + '200': "SendEInvoiceResponse", + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -668,6 +728,7 @@ def send_e_invoice( response_types_map=_response_types_map, ).data + @validate_call def send_e_invoice_with_http_info( self, @@ -678,8 +739,9 @@ def send_e_invoice_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -694,7 +756,7 @@ def send_e_invoice_with_http_info( :type company_id: int :param document_id: The ID of the document. (required) :type document_id: int - :param send_e_invoice_request: + :param send_e_invoice_request: :type send_e_invoice_request: SendEInvoiceRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -716,7 +778,7 @@ def send_e_invoice_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._send_e_invoice_serialize( company_id=company_id, @@ -725,16 +787,22 @@ def send_e_invoice_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "SendEInvoiceResponse", - "401": None, - "404": None, + '200': "SendEInvoiceResponse", + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -742,6 +810,7 @@ def send_e_invoice_with_http_info( response_types_map=_response_types_map, ) + @validate_call def send_e_invoice_without_preload_content( self, @@ -752,8 +821,9 @@ def send_e_invoice_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -768,7 +838,7 @@ def send_e_invoice_without_preload_content( :type company_id: int :param document_id: The ID of the document. (required) :type document_id: int - :param send_e_invoice_request: + :param send_e_invoice_request: :type send_e_invoice_request: SendEInvoiceRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -790,7 +860,7 @@ def send_e_invoice_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._send_e_invoice_serialize( company_id=company_id, @@ -799,19 +869,26 @@ def send_e_invoice_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "SendEInvoiceResponse", - "401": None, - "404": None, + '200': "SendEInvoiceResponse", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _send_e_invoice_serialize( self, company_id, @@ -825,7 +902,8 @@ def _send_e_invoice_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -838,9 +916,9 @@ def _send_e_invoice_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id if document_id is not None: - _path_params["document_id"] = document_id + _path_params['document_id'] = document_id # process the query parameters # process the header parameters # process the form parameters @@ -848,28 +926,37 @@ def _send_e_invoice_serialize( if send_e_invoice_request is not None: _body_params = send_e_invoice_request + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) # set the HTTP header `Content-Type` if _content_type: - _header_params["Content-Type"] = _content_type + _header_params['Content-Type'] = _content_type else: - _default_content_type = self.api_client.select_header_content_type( - ["application/json"] + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) ) if _default_content_type is not None: - _header_params["Content-Type"] = _default_content_type + _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/c/{company_id}/issued_documents/{document_id}/e_invoice/send", + method='POST', + resource_path='/c/{company_id}/issued_documents/{document_id}/e_invoice/send', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -879,9 +966,12 @@ def _send_e_invoice_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def verify_e_invoice_xml( self, @@ -891,8 +981,9 @@ def verify_e_invoice_xml( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -927,7 +1018,7 @@ def verify_e_invoice_xml( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._verify_e_invoice_xml_serialize( company_id=company_id, @@ -935,17 +1026,23 @@ def verify_e_invoice_xml( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "VerifyEInvoiceXmlResponse", - "401": None, - "404": None, - "422": "VerifyEInvoiceXmlErrorResponse", + '200': "VerifyEInvoiceXmlResponse", + '401': None, + '404': None, + '422': "VerifyEInvoiceXmlErrorResponse", } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -953,6 +1050,7 @@ def verify_e_invoice_xml( response_types_map=_response_types_map, ).data + @validate_call def verify_e_invoice_xml_with_http_info( self, @@ -962,8 +1060,9 @@ def verify_e_invoice_xml_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -998,7 +1097,7 @@ def verify_e_invoice_xml_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._verify_e_invoice_xml_serialize( company_id=company_id, @@ -1006,17 +1105,23 @@ def verify_e_invoice_xml_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "VerifyEInvoiceXmlResponse", - "401": None, - "404": None, - "422": "VerifyEInvoiceXmlErrorResponse", + '200': "VerifyEInvoiceXmlResponse", + '401': None, + '404': None, + '422': "VerifyEInvoiceXmlErrorResponse", } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1024,6 +1129,7 @@ def verify_e_invoice_xml_with_http_info( response_types_map=_response_types_map, ) + @validate_call def verify_e_invoice_xml_without_preload_content( self, @@ -1033,8 +1139,9 @@ def verify_e_invoice_xml_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1069,7 +1176,7 @@ def verify_e_invoice_xml_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._verify_e_invoice_xml_serialize( company_id=company_id, @@ -1077,20 +1184,27 @@ def verify_e_invoice_xml_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "VerifyEInvoiceXmlResponse", - "401": None, - "404": None, - "422": "VerifyEInvoiceXmlErrorResponse", + '200': "VerifyEInvoiceXmlResponse", + '401': None, + '404': None, + '422': "VerifyEInvoiceXmlErrorResponse", } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _verify_e_invoice_xml_serialize( self, company_id, @@ -1103,7 +1217,8 @@ def _verify_e_invoice_xml_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1116,26 +1231,32 @@ def _verify_e_invoice_xml_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id if document_id is not None: - _path_params["document_id"] = document_id + _path_params['document_id'] = document_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/c/{company_id}/issued_documents/{document_id}/e_invoice/xml_verify", + method='GET', + resource_path='/c/{company_id}/issued_documents/{document_id}/e_invoice/xml_verify', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1145,5 +1266,7 @@ def _verify_e_invoice_xml_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/fattureincloud_python_sdk/api/price_lists_api.py b/fattureincloud_python_sdk/api/price_lists_api.py index a5df4f07..a8c9e9d2 100644 --- a/fattureincloud_python_sdk/api/price_lists_api.py +++ b/fattureincloud_python_sdk/api/price_lists_api.py @@ -1,17 +1,16 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 - import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union @@ -19,12 +18,8 @@ from pydantic import Field, StrictInt, StrictStr from typing_extensions import Annotated -from fattureincloud_python_sdk.models.get_price_list_items_response import ( - GetPriceListItemsResponse, -) -from fattureincloud_python_sdk.models.list_price_lists_response import ( - ListPriceListsResponse, -) +from fattureincloud_python_sdk.models.get_price_list_items_response import GetPriceListItemsResponse +from fattureincloud_python_sdk.models.list_price_lists_response import ListPriceListsResponse from fattureincloud_python_sdk.api_client import ApiClient, RequestSerialized from fattureincloud_python_sdk.api_response import ApiResponse @@ -43,17 +38,19 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def get_price_list_items( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - price_list_id: StrictStr, + price_list_id: Annotated[StrictStr, Field(description="The ID of the price")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -66,7 +63,7 @@ def get_price_list_items( :param company_id: The ID of the company. (required) :type company_id: int - :param price_list_id: (required) + :param price_list_id: The ID of the price (required) :type price_list_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -88,7 +85,7 @@ def get_price_list_items( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_price_list_items_serialize( company_id=company_id, @@ -96,16 +93,22 @@ def get_price_list_items( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetPriceListItemsResponse", - "401": None, - "404": None, + '200': "GetPriceListItemsResponse", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -113,17 +116,19 @@ def get_price_list_items( response_types_map=_response_types_map, ).data + @validate_call def get_price_list_items_with_http_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - price_list_id: StrictStr, + price_list_id: Annotated[StrictStr, Field(description="The ID of the price")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -136,7 +141,7 @@ def get_price_list_items_with_http_info( :param company_id: The ID of the company. (required) :type company_id: int - :param price_list_id: (required) + :param price_list_id: The ID of the price (required) :type price_list_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -158,7 +163,7 @@ def get_price_list_items_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_price_list_items_serialize( company_id=company_id, @@ -166,16 +171,22 @@ def get_price_list_items_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetPriceListItemsResponse", - "401": None, - "404": None, + '200': "GetPriceListItemsResponse", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -183,17 +194,19 @@ def get_price_list_items_with_http_info( response_types_map=_response_types_map, ) + @validate_call def get_price_list_items_without_preload_content( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - price_list_id: StrictStr, + price_list_id: Annotated[StrictStr, Field(description="The ID of the price")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -206,7 +219,7 @@ def get_price_list_items_without_preload_content( :param company_id: The ID of the company. (required) :type company_id: int - :param price_list_id: (required) + :param price_list_id: The ID of the price (required) :type price_list_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -228,7 +241,7 @@ def get_price_list_items_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_price_list_items_serialize( company_id=company_id, @@ -236,19 +249,26 @@ def get_price_list_items_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetPriceListItemsResponse", - "401": None, - "404": None, + '200': "GetPriceListItemsResponse", + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _get_price_list_items_serialize( self, company_id, @@ -261,7 +281,8 @@ def _get_price_list_items_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -274,26 +295,32 @@ def _get_price_list_items_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id if price_list_id is not None: - _path_params["price_list_id"] = price_list_id + _path_params['price_list_id'] = price_list_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/c/{company_id}/price_lists/{price_list_id}/items", + method='GET', + resource_path='/c/{company_id}/price_lists/{price_list_id}/items', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -303,9 +330,12 @@ def _get_price_list_items_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def get_price_lists( self, @@ -314,8 +344,9 @@ def get_price_lists( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -348,23 +379,29 @@ def get_price_lists( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_price_lists_serialize( company_id=company_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListPriceListsResponse", - "401": None, - "404": None, + '200': "ListPriceListsResponse", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -372,6 +409,7 @@ def get_price_lists( response_types_map=_response_types_map, ).data + @validate_call def get_price_lists_with_http_info( self, @@ -380,8 +418,9 @@ def get_price_lists_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -414,23 +453,29 @@ def get_price_lists_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_price_lists_serialize( company_id=company_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListPriceListsResponse", - "401": None, - "404": None, + '200': "ListPriceListsResponse", + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -438,6 +483,7 @@ def get_price_lists_with_http_info( response_types_map=_response_types_map, ) + @validate_call def get_price_lists_without_preload_content( self, @@ -446,8 +492,9 @@ def get_price_lists_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -480,26 +527,33 @@ def get_price_lists_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_price_lists_serialize( company_id=company_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListPriceListsResponse", - "401": None, - "404": None, + '200': "ListPriceListsResponse", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _get_price_lists_serialize( self, company_id, @@ -511,7 +565,8 @@ def _get_price_lists_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -524,24 +579,30 @@ def _get_price_lists_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/c/{company_id}/price_lists", + method='GET', + resource_path='/c/{company_id}/price_lists', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -551,5 +612,7 @@ def _get_price_lists_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/fattureincloud_python_sdk/api/products_api.py b/fattureincloud_python_sdk/api/products_api.py index 834ef3b0..6a4fc379 100644 --- a/fattureincloud_python_sdk/api/products_api.py +++ b/fattureincloud_python_sdk/api/products_api.py @@ -1,17 +1,16 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 - import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union @@ -21,15 +20,11 @@ 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, -) +from fattureincloud_python_sdk.models.create_product_response import CreateProductResponse from fattureincloud_python_sdk.models.get_product_response import GetProductResponse from fattureincloud_python_sdk.models.list_products_response import ListProductsResponse from fattureincloud_python_sdk.models.modify_product_request import ModifyProductRequest -from fattureincloud_python_sdk.models.modify_product_response import ( - ModifyProductResponse, -) +from fattureincloud_python_sdk.models.modify_product_response import ModifyProductResponse from fattureincloud_python_sdk.api_client import ApiClient, RequestSerialized from fattureincloud_python_sdk.api_response import ApiResponse @@ -48,6 +43,7 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def create_product( self, @@ -57,8 +53,9 @@ def create_product( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -71,7 +68,7 @@ def create_product( :param company_id: The ID of the company. (required) :type company_id: int - :param create_product_request: + :param create_product_request: :type create_product_request: CreateProductRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -93,7 +90,7 @@ def create_product( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_product_serialize( company_id=company_id, @@ -101,14 +98,20 @@ def create_product( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateProductResponse", + '200': "CreateProductResponse", } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -116,6 +119,7 @@ def create_product( response_types_map=_response_types_map, ).data + @validate_call def create_product_with_http_info( self, @@ -125,8 +129,9 @@ def create_product_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -139,7 +144,7 @@ def create_product_with_http_info( :param company_id: The ID of the company. (required) :type company_id: int - :param create_product_request: + :param create_product_request: :type create_product_request: CreateProductRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -161,7 +166,7 @@ def create_product_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_product_serialize( company_id=company_id, @@ -169,14 +174,20 @@ def create_product_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateProductResponse", + '200': "CreateProductResponse", } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -184,6 +195,7 @@ def create_product_with_http_info( response_types_map=_response_types_map, ) + @validate_call def create_product_without_preload_content( self, @@ -193,8 +205,9 @@ def create_product_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -207,7 +220,7 @@ def create_product_without_preload_content( :param company_id: The ID of the company. (required) :type company_id: int - :param create_product_request: + :param create_product_request: :type create_product_request: CreateProductRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -229,7 +242,7 @@ def create_product_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_product_serialize( company_id=company_id, @@ -237,17 +250,24 @@ def create_product_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateProductResponse", + '200': "CreateProductResponse", } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _create_product_serialize( self, company_id, @@ -260,7 +280,8 @@ def _create_product_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -273,7 +294,7 @@ def _create_product_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id # process the query parameters # process the header parameters # process the form parameters @@ -281,28 +302,37 @@ def _create_product_serialize( if create_product_request is not None: _body_params = create_product_request + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) # set the HTTP header `Content-Type` if _content_type: - _header_params["Content-Type"] = _content_type + _header_params['Content-Type'] = _content_type else: - _default_content_type = self.api_client.select_header_content_type( - ["application/json"] + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) ) if _default_content_type is not None: - _header_params["Content-Type"] = _default_content_type + _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/c/{company_id}/products", + method='POST', + resource_path='/c/{company_id}/products', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -312,9 +342,12 @@ def _create_product_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def delete_product( self, @@ -324,8 +357,9 @@ def delete_product( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -360,7 +394,7 @@ def delete_product( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_product_serialize( company_id=company_id, @@ -368,16 +402,22 @@ def delete_product( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": None, - "401": None, - "404": None, + '200': None, + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -385,6 +425,7 @@ def delete_product( response_types_map=_response_types_map, ).data + @validate_call def delete_product_with_http_info( self, @@ -394,8 +435,9 @@ def delete_product_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -430,7 +472,7 @@ def delete_product_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_product_serialize( company_id=company_id, @@ -438,16 +480,22 @@ def delete_product_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": None, - "401": None, - "404": None, + '200': None, + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -455,6 +503,7 @@ def delete_product_with_http_info( response_types_map=_response_types_map, ) + @validate_call def delete_product_without_preload_content( self, @@ -464,8 +513,9 @@ def delete_product_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -500,7 +550,7 @@ def delete_product_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_product_serialize( company_id=company_id, @@ -508,19 +558,26 @@ def delete_product_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": None, - "401": None, - "404": None, + '200': None, + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _delete_product_serialize( self, company_id, @@ -533,7 +590,8 @@ def _delete_product_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -546,20 +604,25 @@ def _delete_product_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id if product_id is not None: - _path_params["product_id"] = product_id + _path_params['product_id'] = product_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + + + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="DELETE", - resource_path="/c/{company_id}/products/{product_id}", + method='DELETE', + resource_path='/c/{company_id}/products/{product_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -569,26 +632,26 @@ def _delete_product_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def get_product( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], product_id: Annotated[StrictInt, Field(description="The ID of the product.")], - fields: Annotated[ - Optional[StrictStr], Field(description="List of comma-separated fields.") - ] = None, - fieldset: Annotated[ - Optional[StrictStr], Field(description="Name of the fieldset.") - ] = None, + fields: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields.")] = None, + fieldset: Annotated[Optional[StrictStr], Field(description="Name of the fieldset.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -627,7 +690,7 @@ def get_product( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_product_serialize( company_id=company_id, @@ -637,16 +700,22 @@ def get_product( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetProductResponse", - "401": None, - "404": None, + '200': "GetProductResponse", + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -654,23 +723,21 @@ def get_product( response_types_map=_response_types_map, ).data + @validate_call def get_product_with_http_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], product_id: Annotated[StrictInt, Field(description="The ID of the product.")], - fields: Annotated[ - Optional[StrictStr], Field(description="List of comma-separated fields.") - ] = None, - fieldset: Annotated[ - Optional[StrictStr], Field(description="Name of the fieldset.") - ] = None, + fields: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields.")] = None, + fieldset: Annotated[Optional[StrictStr], Field(description="Name of the fieldset.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -709,7 +776,7 @@ def get_product_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_product_serialize( company_id=company_id, @@ -719,16 +786,22 @@ def get_product_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetProductResponse", - "401": None, - "404": None, + '200': "GetProductResponse", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -736,23 +809,21 @@ def get_product_with_http_info( response_types_map=_response_types_map, ) + @validate_call def get_product_without_preload_content( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], product_id: Annotated[StrictInt, Field(description="The ID of the product.")], - fields: Annotated[ - Optional[StrictStr], Field(description="List of comma-separated fields.") - ] = None, - fieldset: Annotated[ - Optional[StrictStr], Field(description="Name of the fieldset.") - ] = None, + fields: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields.")] = None, + fieldset: Annotated[Optional[StrictStr], Field(description="Name of the fieldset.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -791,7 +862,7 @@ def get_product_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_product_serialize( company_id=company_id, @@ -801,19 +872,26 @@ def get_product_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetProductResponse", - "401": None, - "404": None, + '200': "GetProductResponse", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _get_product_serialize( self, company_id, @@ -828,7 +906,8 @@ def _get_product_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -841,34 +920,40 @@ def _get_product_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id if product_id is not None: - _path_params["product_id"] = product_id + _path_params['product_id'] = product_id # process the query parameters if fields is not None: - - _query_params.append(("fields", fields)) - + + _query_params.append(('fields', fields)) + if fieldset is not None: - - _query_params.append(("fieldset", fieldset)) - + + _query_params.append(('fieldset', fieldset)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/c/{company_id}/products/{product_id}", + method='GET', + resource_path='/c/{company_id}/products/{product_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -878,41 +963,29 @@ def _get_product_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def list_products( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - fields: Annotated[ - Optional[StrictStr], Field(description="List of comma-separated fields.") - ] = None, - fieldset: Annotated[ - Optional[StrictStr], Field(description="Name of the fieldset.") - ] = None, - sort: Annotated[ - Optional[StrictStr], - Field( - description="List of comma-separated fields for result sorting (minus for desc sorting)." - ), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="The page to retrieve.") - ] = None, - per_page: Annotated[ - Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], - Field(description="The size of the page."), - ] = None, - q: Annotated[ - Optional[StrictStr], Field(description="Query for filtering the results.") - ] = None, + fields: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields.")] = None, + fieldset: Annotated[Optional[StrictStr], Field(description="Name of the fieldset.")] = None, + sort: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields for result sorting (minus for desc sorting).")] = None, + page: Annotated[Optional[StrictInt], Field(description="The page to retrieve.")] = None, + per_page: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="The size of the page.")] = None, + q: Annotated[Optional[StrictStr], Field(description="Query for filtering the results.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -957,7 +1030,7 @@ def list_products( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_products_serialize( company_id=company_id, @@ -970,15 +1043,21 @@ def list_products( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListProductsResponse", - "401": None, + '200': "ListProductsResponse", + '401': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -986,38 +1065,24 @@ def list_products( response_types_map=_response_types_map, ).data + @validate_call def list_products_with_http_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - fields: Annotated[ - Optional[StrictStr], Field(description="List of comma-separated fields.") - ] = None, - fieldset: Annotated[ - Optional[StrictStr], Field(description="Name of the fieldset.") - ] = None, - sort: Annotated[ - Optional[StrictStr], - Field( - description="List of comma-separated fields for result sorting (minus for desc sorting)." - ), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="The page to retrieve.") - ] = None, - per_page: Annotated[ - Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], - Field(description="The size of the page."), - ] = None, - q: Annotated[ - Optional[StrictStr], Field(description="Query for filtering the results.") - ] = None, + fields: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields.")] = None, + fieldset: Annotated[Optional[StrictStr], Field(description="Name of the fieldset.")] = None, + sort: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields for result sorting (minus for desc sorting).")] = None, + page: Annotated[Optional[StrictInt], Field(description="The page to retrieve.")] = None, + per_page: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="The size of the page.")] = None, + q: Annotated[Optional[StrictStr], Field(description="Query for filtering the results.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1062,7 +1127,7 @@ def list_products_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_products_serialize( company_id=company_id, @@ -1075,15 +1140,21 @@ def list_products_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListProductsResponse", - "401": None, + '200': "ListProductsResponse", + '401': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1091,38 +1162,24 @@ def list_products_with_http_info( response_types_map=_response_types_map, ) + @validate_call def list_products_without_preload_content( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - fields: Annotated[ - Optional[StrictStr], Field(description="List of comma-separated fields.") - ] = None, - fieldset: Annotated[ - Optional[StrictStr], Field(description="Name of the fieldset.") - ] = None, - sort: Annotated[ - Optional[StrictStr], - Field( - description="List of comma-separated fields for result sorting (minus for desc sorting)." - ), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="The page to retrieve.") - ] = None, - per_page: Annotated[ - Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], - Field(description="The size of the page."), - ] = None, - q: Annotated[ - Optional[StrictStr], Field(description="Query for filtering the results.") - ] = None, + fields: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields.")] = None, + fieldset: Annotated[Optional[StrictStr], Field(description="Name of the fieldset.")] = None, + sort: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields for result sorting (minus for desc sorting).")] = None, + page: Annotated[Optional[StrictInt], Field(description="The page to retrieve.")] = None, + per_page: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="The size of the page.")] = None, + q: Annotated[Optional[StrictStr], Field(description="Query for filtering the results.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1167,7 +1224,7 @@ def list_products_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_products_serialize( company_id=company_id, @@ -1180,18 +1237,25 @@ def list_products_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListProductsResponse", - "401": None, + '200': "ListProductsResponse", + '401': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _list_products_serialize( self, company_id, @@ -1209,7 +1273,8 @@ def _list_products_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1222,48 +1287,54 @@ def _list_products_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id # process the query parameters if fields is not None: - - _query_params.append(("fields", fields)) - + + _query_params.append(('fields', fields)) + if fieldset is not None: - - _query_params.append(("fieldset", fieldset)) - + + _query_params.append(('fieldset', fieldset)) + if sort is not None: - - _query_params.append(("sort", sort)) - + + _query_params.append(('sort', sort)) + if page is not None: - - _query_params.append(("page", page)) - + + _query_params.append(('page', page)) + if per_page is not None: - - _query_params.append(("per_page", per_page)) - + + _query_params.append(('per_page', per_page)) + if q is not None: - - _query_params.append(("q", q)) - + + _query_params.append(('q', q)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/c/{company_id}/products", + method='GET', + resource_path='/c/{company_id}/products', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1273,24 +1344,25 @@ def _list_products_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def modify_product( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], product_id: Annotated[StrictInt, Field(description="The ID of the product.")], - modify_product_request: Annotated[ - Optional[ModifyProductRequest], - Field(description="Modified product details."), - ] = None, + modify_product_request: Annotated[Optional[ModifyProductRequest], Field(description="Modified product details.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1327,7 +1399,7 @@ def modify_product( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._modify_product_serialize( company_id=company_id, @@ -1336,16 +1408,22 @@ def modify_product( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ModifyProductResponse", - "401": None, - "404": None, + '200': "ModifyProductResponse", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1353,21 +1431,20 @@ def modify_product( response_types_map=_response_types_map, ).data + @validate_call def modify_product_with_http_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], product_id: Annotated[StrictInt, Field(description="The ID of the product.")], - modify_product_request: Annotated[ - Optional[ModifyProductRequest], - Field(description="Modified product details."), - ] = None, + modify_product_request: Annotated[Optional[ModifyProductRequest], Field(description="Modified product details.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1404,7 +1481,7 @@ def modify_product_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._modify_product_serialize( company_id=company_id, @@ -1413,16 +1490,22 @@ def modify_product_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ModifyProductResponse", - "401": None, - "404": None, + '200': "ModifyProductResponse", + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1430,21 +1513,20 @@ def modify_product_with_http_info( response_types_map=_response_types_map, ) + @validate_call def modify_product_without_preload_content( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], product_id: Annotated[StrictInt, Field(description="The ID of the product.")], - modify_product_request: Annotated[ - Optional[ModifyProductRequest], - Field(description="Modified product details."), - ] = None, + modify_product_request: Annotated[Optional[ModifyProductRequest], Field(description="Modified product details.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1481,7 +1563,7 @@ def modify_product_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._modify_product_serialize( company_id=company_id, @@ -1490,19 +1572,26 @@ def modify_product_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ModifyProductResponse", - "401": None, - "404": None, + '200': "ModifyProductResponse", + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _modify_product_serialize( self, company_id, @@ -1516,7 +1605,8 @@ def _modify_product_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1529,9 +1619,9 @@ def _modify_product_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id if product_id is not None: - _path_params["product_id"] = product_id + _path_params['product_id'] = product_id # process the query parameters # process the header parameters # process the form parameters @@ -1539,28 +1629,37 @@ def _modify_product_serialize( if modify_product_request is not None: _body_params = modify_product_request + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) # set the HTTP header `Content-Type` if _content_type: - _header_params["Content-Type"] = _content_type + _header_params['Content-Type'] = _content_type else: - _default_content_type = self.api_client.select_header_content_type( - ["application/json"] + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) ) if _default_content_type is not None: - _header_params["Content-Type"] = _default_content_type + _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="PUT", - resource_path="/c/{company_id}/products/{product_id}", + method='PUT', + resource_path='/c/{company_id}/products/{product_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1570,5 +1669,7 @@ def _modify_product_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/fattureincloud_python_sdk/api/receipts_api.py b/fattureincloud_python_sdk/api/receipts_api.py index dd1eaf10..e75357cb 100644 --- a/fattureincloud_python_sdk/api/receipts_api.py +++ b/fattureincloud_python_sdk/api/receipts_api.py @@ -1,17 +1,16 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 - import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union @@ -21,21 +20,13 @@ 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, -) -from fattureincloud_python_sdk.models.get_receipt_pre_create_info_response import ( - GetReceiptPreCreateInfoResponse, -) +from fattureincloud_python_sdk.models.create_receipt_response import CreateReceiptResponse +from fattureincloud_python_sdk.models.get_receipt_pre_create_info_response import GetReceiptPreCreateInfoResponse from fattureincloud_python_sdk.models.get_receipt_response import GetReceiptResponse -from fattureincloud_python_sdk.models.get_receipts_monthly_totals_response import ( - GetReceiptsMonthlyTotalsResponse, -) +from fattureincloud_python_sdk.models.get_receipts_monthly_totals_response import GetReceiptsMonthlyTotalsResponse from fattureincloud_python_sdk.models.list_receipts_response import ListReceiptsResponse from fattureincloud_python_sdk.models.modify_receipt_request import ModifyReceiptRequest -from fattureincloud_python_sdk.models.modify_receipt_response import ( - ModifyReceiptResponse, -) +from fattureincloud_python_sdk.models.modify_receipt_response import ModifyReceiptResponse from fattureincloud_python_sdk.api_client import ApiClient, RequestSerialized from fattureincloud_python_sdk.api_response import ApiResponse @@ -54,19 +45,19 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def create_receipt( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - create_receipt_request: Annotated[ - Optional[CreateReceiptRequest], Field(description="The Receipt to create.") - ] = None, + create_receipt_request: Annotated[Optional[CreateReceiptRequest], Field(description="The Receipt to create.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -101,7 +92,7 @@ def create_receipt( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_receipt_serialize( company_id=company_id, @@ -109,15 +100,21 @@ def create_receipt( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateReceiptResponse", - "401": None, + '200': "CreateReceiptResponse", + '401': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -125,19 +122,19 @@ def create_receipt( response_types_map=_response_types_map, ).data + @validate_call def create_receipt_with_http_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - create_receipt_request: Annotated[ - Optional[CreateReceiptRequest], Field(description="The Receipt to create.") - ] = None, + create_receipt_request: Annotated[Optional[CreateReceiptRequest], Field(description="The Receipt to create.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -172,7 +169,7 @@ def create_receipt_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_receipt_serialize( company_id=company_id, @@ -180,15 +177,21 @@ def create_receipt_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateReceiptResponse", - "401": None, + '200': "CreateReceiptResponse", + '401': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -196,19 +199,19 @@ def create_receipt_with_http_info( response_types_map=_response_types_map, ) + @validate_call def create_receipt_without_preload_content( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - create_receipt_request: Annotated[ - Optional[CreateReceiptRequest], Field(description="The Receipt to create.") - ] = None, + create_receipt_request: Annotated[Optional[CreateReceiptRequest], Field(description="The Receipt to create.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -243,7 +246,7 @@ def create_receipt_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_receipt_serialize( company_id=company_id, @@ -251,18 +254,25 @@ def create_receipt_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateReceiptResponse", - "401": None, + '200': "CreateReceiptResponse", + '401': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _create_receipt_serialize( self, company_id, @@ -275,7 +285,8 @@ def _create_receipt_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -288,7 +299,7 @@ def _create_receipt_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id # process the query parameters # process the header parameters # process the form parameters @@ -296,28 +307,37 @@ def _create_receipt_serialize( if create_receipt_request is not None: _body_params = create_receipt_request + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) # set the HTTP header `Content-Type` if _content_type: - _header_params["Content-Type"] = _content_type + _header_params['Content-Type'] = _content_type else: - _default_content_type = self.api_client.select_header_content_type( - ["application/json"] + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) ) if _default_content_type is not None: - _header_params["Content-Type"] = _default_content_type + _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/c/{company_id}/receipts", + method='POST', + resource_path='/c/{company_id}/receipts', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -327,9 +347,12 @@ def _create_receipt_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def delete_receipt( self, @@ -339,8 +362,9 @@ def delete_receipt( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -375,7 +399,7 @@ def delete_receipt( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_receipt_serialize( company_id=company_id, @@ -383,16 +407,22 @@ def delete_receipt( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": None, - "401": None, - "404": None, + '200': None, + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -400,6 +430,7 @@ def delete_receipt( response_types_map=_response_types_map, ).data + @validate_call def delete_receipt_with_http_info( self, @@ -409,8 +440,9 @@ def delete_receipt_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -445,7 +477,7 @@ def delete_receipt_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_receipt_serialize( company_id=company_id, @@ -453,16 +485,22 @@ def delete_receipt_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": None, - "401": None, - "404": None, + '200': None, + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -470,6 +508,7 @@ def delete_receipt_with_http_info( response_types_map=_response_types_map, ) + @validate_call def delete_receipt_without_preload_content( self, @@ -479,8 +518,9 @@ def delete_receipt_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -515,7 +555,7 @@ def delete_receipt_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_receipt_serialize( company_id=company_id, @@ -523,19 +563,26 @@ def delete_receipt_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": None, - "401": None, - "404": None, + '200': None, + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _delete_receipt_serialize( self, company_id, @@ -548,7 +595,8 @@ def _delete_receipt_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -561,20 +609,25 @@ def _delete_receipt_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id if document_id is not None: - _path_params["document_id"] = document_id + _path_params['document_id'] = document_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + + + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="DELETE", - resource_path="/c/{company_id}/receipts/{document_id}", + method='DELETE', + resource_path='/c/{company_id}/receipts/{document_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -584,26 +637,26 @@ def _delete_receipt_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def get_receipt( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], document_id: Annotated[StrictInt, Field(description="The ID of the document.")], - fields: Annotated[ - Optional[StrictStr], Field(description="List of comma-separated fields.") - ] = None, - fieldset: Annotated[ - Optional[StrictStr], Field(description="Name of the fieldset.") - ] = None, + fields: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields.")] = None, + fieldset: Annotated[Optional[StrictStr], Field(description="Name of the fieldset.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -642,7 +695,7 @@ def get_receipt( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_receipt_serialize( company_id=company_id, @@ -652,16 +705,22 @@ def get_receipt( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetReceiptResponse", - "401": None, - "404": None, + '200': "GetReceiptResponse", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -669,23 +728,21 @@ def get_receipt( response_types_map=_response_types_map, ).data + @validate_call def get_receipt_with_http_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], document_id: Annotated[StrictInt, Field(description="The ID of the document.")], - fields: Annotated[ - Optional[StrictStr], Field(description="List of comma-separated fields.") - ] = None, - fieldset: Annotated[ - Optional[StrictStr], Field(description="Name of the fieldset.") - ] = None, + fields: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields.")] = None, + fieldset: Annotated[Optional[StrictStr], Field(description="Name of the fieldset.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -724,7 +781,7 @@ def get_receipt_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_receipt_serialize( company_id=company_id, @@ -734,16 +791,22 @@ def get_receipt_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetReceiptResponse", - "401": None, - "404": None, + '200': "GetReceiptResponse", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -751,23 +814,21 @@ def get_receipt_with_http_info( response_types_map=_response_types_map, ) + @validate_call def get_receipt_without_preload_content( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], document_id: Annotated[StrictInt, Field(description="The ID of the document.")], - fields: Annotated[ - Optional[StrictStr], Field(description="List of comma-separated fields.") - ] = None, - fieldset: Annotated[ - Optional[StrictStr], Field(description="Name of the fieldset.") - ] = None, + fields: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields.")] = None, + fieldset: Annotated[Optional[StrictStr], Field(description="Name of the fieldset.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -806,7 +867,7 @@ def get_receipt_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_receipt_serialize( company_id=company_id, @@ -816,19 +877,26 @@ def get_receipt_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetReceiptResponse", - "401": None, - "404": None, + '200': "GetReceiptResponse", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _get_receipt_serialize( self, company_id, @@ -843,7 +911,8 @@ def _get_receipt_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -856,34 +925,40 @@ def _get_receipt_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id if document_id is not None: - _path_params["document_id"] = document_id + _path_params['document_id'] = document_id # process the query parameters if fields is not None: - - _query_params.append(("fields", fields)) - + + _query_params.append(('fields', fields)) + if fieldset is not None: - - _query_params.append(("fieldset", fieldset)) - + + _query_params.append(('fieldset', fieldset)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/c/{company_id}/receipts/{document_id}", + method='GET', + resource_path='/c/{company_id}/receipts/{document_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -893,9 +968,12 @@ def _get_receipt_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def get_receipt_pre_create_info( self, @@ -904,8 +982,9 @@ def get_receipt_pre_create_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -938,23 +1017,29 @@ def get_receipt_pre_create_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_receipt_pre_create_info_serialize( company_id=company_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetReceiptPreCreateInfoResponse", - "401": None, - "404": None, + '200': "GetReceiptPreCreateInfoResponse", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -962,6 +1047,7 @@ def get_receipt_pre_create_info( response_types_map=_response_types_map, ).data + @validate_call def get_receipt_pre_create_info_with_http_info( self, @@ -970,8 +1056,9 @@ def get_receipt_pre_create_info_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1004,23 +1091,29 @@ def get_receipt_pre_create_info_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_receipt_pre_create_info_serialize( company_id=company_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetReceiptPreCreateInfoResponse", - "401": None, - "404": None, + '200': "GetReceiptPreCreateInfoResponse", + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1028,6 +1121,7 @@ def get_receipt_pre_create_info_with_http_info( response_types_map=_response_types_map, ) + @validate_call def get_receipt_pre_create_info_without_preload_content( self, @@ -1036,8 +1130,9 @@ def get_receipt_pre_create_info_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1070,26 +1165,33 @@ def get_receipt_pre_create_info_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_receipt_pre_create_info_serialize( company_id=company_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetReceiptPreCreateInfoResponse", - "401": None, - "404": None, + '200': "GetReceiptPreCreateInfoResponse", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _get_receipt_pre_create_info_serialize( self, company_id, @@ -1101,7 +1203,8 @@ def _get_receipt_pre_create_info_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1114,24 +1217,30 @@ def _get_receipt_pre_create_info_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/c/{company_id}/receipts/info", + method='GET', + resource_path='/c/{company_id}/receipts/info', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1141,23 +1250,25 @@ def _get_receipt_pre_create_info_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def get_receipts_monthly_totals( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], type: Annotated[StrictStr, Field(description="Receipt Type")], - year: Annotated[ - StrictStr, Field(description="Year for which you want monthly totals") - ], + year: Annotated[StrictStr, Field(description="Year for which you want monthly totals")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1194,7 +1305,7 @@ def get_receipts_monthly_totals( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_receipts_monthly_totals_serialize( company_id=company_id, @@ -1203,16 +1314,22 @@ def get_receipts_monthly_totals( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetReceiptsMonthlyTotalsResponse", - "401": None, - "404": None, + '200': "GetReceiptsMonthlyTotalsResponse", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1220,20 +1337,20 @@ def get_receipts_monthly_totals( response_types_map=_response_types_map, ).data + @validate_call def get_receipts_monthly_totals_with_http_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], type: Annotated[StrictStr, Field(description="Receipt Type")], - year: Annotated[ - StrictStr, Field(description="Year for which you want monthly totals") - ], + year: Annotated[StrictStr, Field(description="Year for which you want monthly totals")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1270,7 +1387,7 @@ def get_receipts_monthly_totals_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_receipts_monthly_totals_serialize( company_id=company_id, @@ -1279,16 +1396,22 @@ def get_receipts_monthly_totals_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetReceiptsMonthlyTotalsResponse", - "401": None, - "404": None, + '200': "GetReceiptsMonthlyTotalsResponse", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1296,20 +1419,20 @@ def get_receipts_monthly_totals_with_http_info( response_types_map=_response_types_map, ) + @validate_call def get_receipts_monthly_totals_without_preload_content( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], type: Annotated[StrictStr, Field(description="Receipt Type")], - year: Annotated[ - StrictStr, Field(description="Year for which you want monthly totals") - ], + year: Annotated[StrictStr, Field(description="Year for which you want monthly totals")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1346,7 +1469,7 @@ def get_receipts_monthly_totals_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_receipts_monthly_totals_serialize( company_id=company_id, @@ -1355,19 +1478,26 @@ def get_receipts_monthly_totals_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetReceiptsMonthlyTotalsResponse", - "401": None, - "404": None, + '200': "GetReceiptsMonthlyTotalsResponse", + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _get_receipts_monthly_totals_serialize( self, company_id, @@ -1381,7 +1511,8 @@ def _get_receipts_monthly_totals_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1394,32 +1525,38 @@ def _get_receipts_monthly_totals_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id # process the query parameters if type is not None: - - _query_params.append(("type", type)) - + + _query_params.append(('type', type)) + if year is not None: - - _query_params.append(("year", year)) - + + _query_params.append(('year', year)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/c/{company_id}/receipts/monthly_totals", + method='GET', + resource_path='/c/{company_id}/receipts/monthly_totals', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1429,41 +1566,29 @@ def _get_receipts_monthly_totals_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def list_receipts( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - fields: Annotated[ - Optional[StrictStr], Field(description="List of comma-separated fields.") - ] = None, - fieldset: Annotated[ - Optional[StrictStr], Field(description="Name of the fieldset.") - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="The page to retrieve.") - ] = None, - per_page: Annotated[ - Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], - Field(description="The size of the page."), - ] = None, - sort: Annotated[ - Optional[StrictStr], - Field( - description="List of comma-separated fields for result sorting (minus for desc sorting)." - ), - ] = None, - q: Annotated[ - Optional[StrictStr], Field(description="Query for filtering the results.") - ] = None, + fields: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields.")] = None, + fieldset: Annotated[Optional[StrictStr], Field(description="Name of the fieldset.")] = None, + page: Annotated[Optional[StrictInt], Field(description="The page to retrieve.")] = None, + per_page: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="The size of the page.")] = None, + sort: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields for result sorting (minus for desc sorting).")] = None, + q: Annotated[Optional[StrictStr], Field(description="Query for filtering the results.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1508,7 +1633,7 @@ def list_receipts( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_receipts_serialize( company_id=company_id, @@ -1521,15 +1646,21 @@ def list_receipts( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListReceiptsResponse", - "401": None, + '200': "ListReceiptsResponse", + '401': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1537,38 +1668,24 @@ def list_receipts( response_types_map=_response_types_map, ).data + @validate_call def list_receipts_with_http_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - fields: Annotated[ - Optional[StrictStr], Field(description="List of comma-separated fields.") - ] = None, - fieldset: Annotated[ - Optional[StrictStr], Field(description="Name of the fieldset.") - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="The page to retrieve.") - ] = None, - per_page: Annotated[ - Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], - Field(description="The size of the page."), - ] = None, - sort: Annotated[ - Optional[StrictStr], - Field( - description="List of comma-separated fields for result sorting (minus for desc sorting)." - ), - ] = None, - q: Annotated[ - Optional[StrictStr], Field(description="Query for filtering the results.") - ] = None, + fields: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields.")] = None, + fieldset: Annotated[Optional[StrictStr], Field(description="Name of the fieldset.")] = None, + page: Annotated[Optional[StrictInt], Field(description="The page to retrieve.")] = None, + per_page: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="The size of the page.")] = None, + sort: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields for result sorting (minus for desc sorting).")] = None, + q: Annotated[Optional[StrictStr], Field(description="Query for filtering the results.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1613,7 +1730,7 @@ def list_receipts_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_receipts_serialize( company_id=company_id, @@ -1626,15 +1743,21 @@ def list_receipts_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListReceiptsResponse", - "401": None, + '200': "ListReceiptsResponse", + '401': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1642,38 +1765,24 @@ def list_receipts_with_http_info( response_types_map=_response_types_map, ) + @validate_call def list_receipts_without_preload_content( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - fields: Annotated[ - Optional[StrictStr], Field(description="List of comma-separated fields.") - ] = None, - fieldset: Annotated[ - Optional[StrictStr], Field(description="Name of the fieldset.") - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="The page to retrieve.") - ] = None, - per_page: Annotated[ - Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], - Field(description="The size of the page."), - ] = None, - sort: Annotated[ - Optional[StrictStr], - Field( - description="List of comma-separated fields for result sorting (minus for desc sorting)." - ), - ] = None, - q: Annotated[ - Optional[StrictStr], Field(description="Query for filtering the results.") - ] = None, + fields: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields.")] = None, + fieldset: Annotated[Optional[StrictStr], Field(description="Name of the fieldset.")] = None, + page: Annotated[Optional[StrictInt], Field(description="The page to retrieve.")] = None, + per_page: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="The size of the page.")] = None, + sort: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields for result sorting (minus for desc sorting).")] = None, + q: Annotated[Optional[StrictStr], Field(description="Query for filtering the results.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1718,7 +1827,7 @@ def list_receipts_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_receipts_serialize( company_id=company_id, @@ -1731,18 +1840,25 @@ def list_receipts_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListReceiptsResponse", - "401": None, + '200': "ListReceiptsResponse", + '401': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _list_receipts_serialize( self, company_id, @@ -1760,7 +1876,8 @@ def _list_receipts_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1773,48 +1890,54 @@ def _list_receipts_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id # process the query parameters if fields is not None: - - _query_params.append(("fields", fields)) - + + _query_params.append(('fields', fields)) + if fieldset is not None: - - _query_params.append(("fieldset", fieldset)) - + + _query_params.append(('fieldset', fieldset)) + if page is not None: - - _query_params.append(("page", page)) - + + _query_params.append(('page', page)) + if per_page is not None: - - _query_params.append(("per_page", per_page)) - + + _query_params.append(('per_page', per_page)) + if sort is not None: - - _query_params.append(("sort", sort)) - + + _query_params.append(('sort', sort)) + if q is not None: - - _query_params.append(("q", q)) - + + _query_params.append(('q', q)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/c/{company_id}/receipts", + method='GET', + resource_path='/c/{company_id}/receipts', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1824,23 +1947,25 @@ def _list_receipts_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def modify_receipt( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], document_id: Annotated[StrictInt, Field(description="The ID of the document.")], - modify_receipt_request: Annotated[ - Optional[ModifyReceiptRequest], Field(description="Modified receipt.") - ] = None, + modify_receipt_request: Annotated[Optional[ModifyReceiptRequest], Field(description="Modified receipt.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1877,7 +2002,7 @@ def modify_receipt( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._modify_receipt_serialize( company_id=company_id, @@ -1886,16 +2011,22 @@ def modify_receipt( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ModifyReceiptResponse", - "401": None, - "404": None, + '200': "ModifyReceiptResponse", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1903,20 +2034,20 @@ def modify_receipt( response_types_map=_response_types_map, ).data + @validate_call def modify_receipt_with_http_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], document_id: Annotated[StrictInt, Field(description="The ID of the document.")], - modify_receipt_request: Annotated[ - Optional[ModifyReceiptRequest], Field(description="Modified receipt.") - ] = None, + modify_receipt_request: Annotated[Optional[ModifyReceiptRequest], Field(description="Modified receipt.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1953,7 +2084,7 @@ def modify_receipt_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._modify_receipt_serialize( company_id=company_id, @@ -1962,16 +2093,22 @@ def modify_receipt_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ModifyReceiptResponse", - "401": None, - "404": None, + '200': "ModifyReceiptResponse", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1979,20 +2116,20 @@ def modify_receipt_with_http_info( response_types_map=_response_types_map, ) + @validate_call def modify_receipt_without_preload_content( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], document_id: Annotated[StrictInt, Field(description="The ID of the document.")], - modify_receipt_request: Annotated[ - Optional[ModifyReceiptRequest], Field(description="Modified receipt.") - ] = None, + modify_receipt_request: Annotated[Optional[ModifyReceiptRequest], Field(description="Modified receipt.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2029,7 +2166,7 @@ def modify_receipt_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._modify_receipt_serialize( company_id=company_id, @@ -2038,19 +2175,26 @@ def modify_receipt_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ModifyReceiptResponse", - "401": None, - "404": None, + '200': "ModifyReceiptResponse", + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _modify_receipt_serialize( self, company_id, @@ -2064,7 +2208,8 @@ def _modify_receipt_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -2077,9 +2222,9 @@ def _modify_receipt_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id if document_id is not None: - _path_params["document_id"] = document_id + _path_params['document_id'] = document_id # process the query parameters # process the header parameters # process the form parameters @@ -2087,28 +2232,37 @@ def _modify_receipt_serialize( if modify_receipt_request is not None: _body_params = modify_receipt_request + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) # set the HTTP header `Content-Type` if _content_type: - _header_params["Content-Type"] = _content_type + _header_params['Content-Type'] = _content_type else: - _default_content_type = self.api_client.select_header_content_type( - ["application/json"] + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) ) if _default_content_type is not None: - _header_params["Content-Type"] = _default_content_type + _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="PUT", - resource_path="/c/{company_id}/receipts/{document_id}", + method='PUT', + resource_path='/c/{company_id}/receipts/{document_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2118,5 +2272,7 @@ def _modify_receipt_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/fattureincloud_python_sdk/api/received_documents_api.py b/fattureincloud_python_sdk/api/received_documents_api.py index 7815f90c..8ef69af5 100644 --- a/fattureincloud_python_sdk/api/received_documents_api.py +++ b/fattureincloud_python_sdk/api/received_documents_api.py @@ -1,17 +1,16 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 - import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union @@ -20,48 +19,20 @@ from pydantic import Field, StrictBytes, StrictInt, StrictStr, field_validator from typing import Optional, Tuple, Union from typing_extensions import Annotated -from fattureincloud_python_sdk.models.create_received_document_request import ( - CreateReceivedDocumentRequest, -) -from fattureincloud_python_sdk.models.create_received_document_response import ( - CreateReceivedDocumentResponse, -) -from fattureincloud_python_sdk.models.get_bin_issued_document_response import ( - GetBinIssuedDocumentResponse, -) -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, -) -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, -) -from fattureincloud_python_sdk.models.get_received_document_pre_create_info_response import ( - GetReceivedDocumentPreCreateInfoResponse, -) -from fattureincloud_python_sdk.models.get_received_document_response import ( - GetReceivedDocumentResponse, -) -from fattureincloud_python_sdk.models.list_bin_received_documents import ( - ListBinReceivedDocuments, -) -from fattureincloud_python_sdk.models.list_received_documents_response import ( - ListReceivedDocumentsResponse, -) -from fattureincloud_python_sdk.models.modify_received_document_request import ( - ModifyReceivedDocumentRequest, -) -from fattureincloud_python_sdk.models.modify_received_document_response import ( - ModifyReceivedDocumentResponse, -) -from fattureincloud_python_sdk.models.upload_received_document_attachment_response import ( - UploadReceivedDocumentAttachmentResponse, -) +from fattureincloud_python_sdk.models.create_received_document_request import CreateReceivedDocumentRequest +from fattureincloud_python_sdk.models.create_received_document_response import CreateReceivedDocumentResponse +from fattureincloud_python_sdk.models.get_bin_issued_document_response import GetBinIssuedDocumentResponse +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 +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 +from fattureincloud_python_sdk.models.get_received_document_pre_create_info_response import GetReceivedDocumentPreCreateInfoResponse +from fattureincloud_python_sdk.models.get_received_document_response import GetReceivedDocumentResponse +from fattureincloud_python_sdk.models.list_bin_received_documents import ListBinReceivedDocuments +from fattureincloud_python_sdk.models.list_received_documents_response import ListReceivedDocumentsResponse +from fattureincloud_python_sdk.models.modify_received_document_request import ModifyReceivedDocumentRequest +from fattureincloud_python_sdk.models.modify_received_document_response import ModifyReceivedDocumentResponse +from fattureincloud_python_sdk.models.upload_received_document_attachment_response import UploadReceivedDocumentAttachmentResponse from fattureincloud_python_sdk.api_client import ApiClient, RequestSerialized from fattureincloud_python_sdk.api_response import ApiResponse @@ -80,20 +51,19 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def create_received_document( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - create_received_document_request: Annotated[ - Optional[CreateReceivedDocumentRequest], - Field(description="Document to create"), - ] = None, + create_received_document_request: Annotated[Optional[CreateReceivedDocumentRequest], Field(description="Document to create")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -128,7 +98,7 @@ def create_received_document( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_received_document_serialize( company_id=company_id, @@ -136,14 +106,20 @@ def create_received_document( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateReceivedDocumentResponse", + '200': "CreateReceivedDocumentResponse", } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -151,20 +127,19 @@ def create_received_document( response_types_map=_response_types_map, ).data + @validate_call def create_received_document_with_http_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - create_received_document_request: Annotated[ - Optional[CreateReceivedDocumentRequest], - Field(description="Document to create"), - ] = None, + create_received_document_request: Annotated[Optional[CreateReceivedDocumentRequest], Field(description="Document to create")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -199,7 +174,7 @@ def create_received_document_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_received_document_serialize( company_id=company_id, @@ -207,14 +182,20 @@ def create_received_document_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateReceivedDocumentResponse", + '200': "CreateReceivedDocumentResponse", } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -222,20 +203,19 @@ def create_received_document_with_http_info( response_types_map=_response_types_map, ) + @validate_call def create_received_document_without_preload_content( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - create_received_document_request: Annotated[ - Optional[CreateReceivedDocumentRequest], - Field(description="Document to create"), - ] = None, + create_received_document_request: Annotated[Optional[CreateReceivedDocumentRequest], Field(description="Document to create")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -270,7 +250,7 @@ def create_received_document_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_received_document_serialize( company_id=company_id, @@ -278,17 +258,24 @@ def create_received_document_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateReceivedDocumentResponse", + '200': "CreateReceivedDocumentResponse", } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _create_received_document_serialize( self, company_id, @@ -301,7 +288,8 @@ def _create_received_document_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -314,7 +302,7 @@ def _create_received_document_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id # process the query parameters # process the header parameters # process the form parameters @@ -322,28 +310,37 @@ def _create_received_document_serialize( if create_received_document_request is not None: _body_params = create_received_document_request + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) # set the HTTP header `Content-Type` if _content_type: - _header_params["Content-Type"] = _content_type + _header_params['Content-Type'] = _content_type else: - _default_content_type = self.api_client.select_header_content_type( - ["application/json"] + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) ) if _default_content_type is not None: - _header_params["Content-Type"] = _default_content_type + _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/c/{company_id}/received_documents", + method='POST', + resource_path='/c/{company_id}/received_documents', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -353,9 +350,12 @@ def _create_received_document_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def delete_bin_received_document( self, @@ -365,15 +365,16 @@ def delete_bin_received_document( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + 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, ) -> None: - """ + """Delete Bin Received Document Delete Bin Received Document @@ -401,7 +402,7 @@ def delete_bin_received_document( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_bin_received_document_serialize( company_id=company_id, @@ -409,14 +410,20 @@ def delete_bin_received_document( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": None, + '200': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -424,6 +431,7 @@ def delete_bin_received_document( response_types_map=_response_types_map, ).data + @validate_call def delete_bin_received_document_with_http_info( self, @@ -433,15 +441,16 @@ def delete_bin_received_document_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + 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[None]: - """ + """Delete Bin Received Document Delete Bin Received Document @@ -469,7 +478,7 @@ def delete_bin_received_document_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_bin_received_document_serialize( company_id=company_id, @@ -477,14 +486,20 @@ def delete_bin_received_document_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": None, + '200': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -492,6 +507,7 @@ def delete_bin_received_document_with_http_info( response_types_map=_response_types_map, ) + @validate_call def delete_bin_received_document_without_preload_content( self, @@ -501,15 +517,16 @@ def delete_bin_received_document_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + 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: - """ + """Delete Bin Received Document Delete Bin Received Document @@ -537,7 +554,7 @@ def delete_bin_received_document_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_bin_received_document_serialize( company_id=company_id, @@ -545,17 +562,24 @@ def delete_bin_received_document_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": None, + '200': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _delete_bin_received_document_serialize( self, company_id, @@ -568,7 +592,8 @@ def _delete_bin_received_document_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -581,20 +606,25 @@ def _delete_bin_received_document_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id if document_id is not None: - _path_params["document_id"] = document_id + _path_params['document_id'] = document_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + + + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="DELETE", - resource_path="/c/{company_id}/bin/received_documents/{document_id}", + method='DELETE', + resource_path='/c/{company_id}/bin/received_documents/{document_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -604,9 +634,12 @@ def _delete_bin_received_document_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def delete_received_document( self, @@ -616,8 +649,9 @@ def delete_received_document( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -652,7 +686,7 @@ def delete_received_document( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_received_document_serialize( company_id=company_id, @@ -660,16 +694,22 @@ def delete_received_document( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": None, - "401": None, - "404": None, + '200': None, + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -677,6 +717,7 @@ def delete_received_document( response_types_map=_response_types_map, ).data + @validate_call def delete_received_document_with_http_info( self, @@ -686,8 +727,9 @@ def delete_received_document_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -722,7 +764,7 @@ def delete_received_document_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_received_document_serialize( company_id=company_id, @@ -730,16 +772,22 @@ def delete_received_document_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": None, - "401": None, - "404": None, + '200': None, + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -747,6 +795,7 @@ def delete_received_document_with_http_info( response_types_map=_response_types_map, ) + @validate_call def delete_received_document_without_preload_content( self, @@ -756,8 +805,9 @@ def delete_received_document_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -792,7 +842,7 @@ def delete_received_document_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_received_document_serialize( company_id=company_id, @@ -800,19 +850,26 @@ def delete_received_document_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": None, - "401": None, - "404": None, + '200': None, + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _delete_received_document_serialize( self, company_id, @@ -825,7 +882,8 @@ def _delete_received_document_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -838,20 +896,25 @@ def _delete_received_document_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id if document_id is not None: - _path_params["document_id"] = document_id + _path_params['document_id'] = document_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + + + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="DELETE", - resource_path="/c/{company_id}/received_documents/{document_id}", + method='DELETE', + resource_path='/c/{company_id}/received_documents/{document_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -861,9 +924,12 @@ def _delete_received_document_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def delete_received_document_attachment( self, @@ -873,8 +939,9 @@ def delete_received_document_attachment( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -909,7 +976,7 @@ def delete_received_document_attachment( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_received_document_attachment_serialize( company_id=company_id, @@ -917,16 +984,22 @@ def delete_received_document_attachment( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": None, - "401": None, - "404": None, + '200': None, + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -934,6 +1007,7 @@ def delete_received_document_attachment( response_types_map=_response_types_map, ).data + @validate_call def delete_received_document_attachment_with_http_info( self, @@ -943,8 +1017,9 @@ def delete_received_document_attachment_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -979,7 +1054,7 @@ def delete_received_document_attachment_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_received_document_attachment_serialize( company_id=company_id, @@ -987,16 +1062,22 @@ def delete_received_document_attachment_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": None, - "401": None, - "404": None, + '200': None, + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1004,6 +1085,7 @@ def delete_received_document_attachment_with_http_info( response_types_map=_response_types_map, ) + @validate_call def delete_received_document_attachment_without_preload_content( self, @@ -1013,8 +1095,9 @@ def delete_received_document_attachment_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1049,7 +1132,7 @@ def delete_received_document_attachment_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_received_document_attachment_serialize( company_id=company_id, @@ -1057,19 +1140,26 @@ def delete_received_document_attachment_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": None, - "401": None, - "404": None, + '200': None, + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _delete_received_document_attachment_serialize( self, company_id, @@ -1082,7 +1172,8 @@ def _delete_received_document_attachment_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1095,20 +1186,25 @@ def _delete_received_document_attachment_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id if document_id is not None: - _path_params["document_id"] = document_id + _path_params['document_id'] = document_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + + + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="DELETE", - resource_path="/c/{company_id}/received_documents/{document_id}/attachment", + method='DELETE', + resource_path='/c/{company_id}/received_documents/{document_id}/attachment', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1118,9 +1214,12 @@ def _delete_received_document_attachment_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def get_bin_received_document( self, @@ -1130,8 +1229,9 @@ def get_bin_received_document( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1166,7 +1266,7 @@ def get_bin_received_document( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_bin_received_document_serialize( company_id=company_id, @@ -1174,14 +1274,20 @@ def get_bin_received_document( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetBinIssuedDocumentResponse", + '200': "GetBinIssuedDocumentResponse", } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1189,6 +1295,7 @@ def get_bin_received_document( response_types_map=_response_types_map, ).data + @validate_call def get_bin_received_document_with_http_info( self, @@ -1198,8 +1305,9 @@ def get_bin_received_document_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1234,7 +1342,7 @@ def get_bin_received_document_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_bin_received_document_serialize( company_id=company_id, @@ -1242,14 +1350,20 @@ def get_bin_received_document_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetBinIssuedDocumentResponse", + '200': "GetBinIssuedDocumentResponse", } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1257,6 +1371,7 @@ def get_bin_received_document_with_http_info( response_types_map=_response_types_map, ) + @validate_call def get_bin_received_document_without_preload_content( self, @@ -1266,8 +1381,9 @@ def get_bin_received_document_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1302,7 +1418,7 @@ def get_bin_received_document_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_bin_received_document_serialize( company_id=company_id, @@ -1310,17 +1426,24 @@ def get_bin_received_document_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetBinIssuedDocumentResponse", + '200': "GetBinIssuedDocumentResponse", } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _get_bin_received_document_serialize( self, company_id, @@ -1333,7 +1456,8 @@ def _get_bin_received_document_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1346,26 +1470,32 @@ def _get_bin_received_document_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id if document_id is not None: - _path_params["document_id"] = document_id + _path_params['document_id'] = document_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/c/{company_id}/bin/received_documents/{document_id}", + method='GET', + resource_path='/c/{company_id}/bin/received_documents/{document_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1375,24 +1505,25 @@ def _get_bin_received_document_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def get_existing_received_document_totals( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], document_id: Annotated[StrictInt, Field(description="The ID of the document.")], - get_existing_received_document_totals_request: Annotated[ - Optional[GetExistingReceivedDocumentTotalsRequest], - Field(description="Received document."), - ] = None, + get_existing_received_document_totals_request: Annotated[Optional[GetExistingReceivedDocumentTotalsRequest], Field(description="Received document.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1429,7 +1560,7 @@ def get_existing_received_document_totals( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_existing_received_document_totals_serialize( company_id=company_id, @@ -1438,14 +1569,20 @@ def get_existing_received_document_totals( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetExistingReceivedDocumentTotalsResponse", + '200': "GetExistingReceivedDocumentTotalsResponse", } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1453,21 +1590,20 @@ def get_existing_received_document_totals( response_types_map=_response_types_map, ).data + @validate_call def get_existing_received_document_totals_with_http_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], document_id: Annotated[StrictInt, Field(description="The ID of the document.")], - get_existing_received_document_totals_request: Annotated[ - Optional[GetExistingReceivedDocumentTotalsRequest], - Field(description="Received document."), - ] = None, + get_existing_received_document_totals_request: Annotated[Optional[GetExistingReceivedDocumentTotalsRequest], Field(description="Received document.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1504,7 +1640,7 @@ def get_existing_received_document_totals_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_existing_received_document_totals_serialize( company_id=company_id, @@ -1513,14 +1649,20 @@ def get_existing_received_document_totals_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetExistingReceivedDocumentTotalsResponse", + '200': "GetExistingReceivedDocumentTotalsResponse", } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1528,21 +1670,20 @@ def get_existing_received_document_totals_with_http_info( response_types_map=_response_types_map, ) + @validate_call def get_existing_received_document_totals_without_preload_content( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], document_id: Annotated[StrictInt, Field(description="The ID of the document.")], - get_existing_received_document_totals_request: Annotated[ - Optional[GetExistingReceivedDocumentTotalsRequest], - Field(description="Received document."), - ] = None, + get_existing_received_document_totals_request: Annotated[Optional[GetExistingReceivedDocumentTotalsRequest], Field(description="Received document.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1579,7 +1720,7 @@ def get_existing_received_document_totals_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_existing_received_document_totals_serialize( company_id=company_id, @@ -1588,17 +1729,24 @@ def get_existing_received_document_totals_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetExistingReceivedDocumentTotalsResponse", + '200': "GetExistingReceivedDocumentTotalsResponse", } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _get_existing_received_document_totals_serialize( self, company_id, @@ -1612,7 +1760,8 @@ def _get_existing_received_document_totals_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1625,9 +1774,9 @@ def _get_existing_received_document_totals_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id if document_id is not None: - _path_params["document_id"] = document_id + _path_params['document_id'] = document_id # process the query parameters # process the header parameters # process the form parameters @@ -1635,28 +1784,37 @@ def _get_existing_received_document_totals_serialize( if get_existing_received_document_totals_request is not None: _body_params = get_existing_received_document_totals_request + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) # set the HTTP header `Content-Type` if _content_type: - _header_params["Content-Type"] = _content_type + _header_params['Content-Type'] = _content_type else: - _default_content_type = self.api_client.select_header_content_type( - ["application/json"] + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) ) if _default_content_type is not None: - _header_params["Content-Type"] = _default_content_type + _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/c/{company_id}/received_documents/{document_id}/totals", + method='POST', + resource_path='/c/{company_id}/received_documents/{document_id}/totals', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1666,23 +1824,24 @@ def _get_existing_received_document_totals_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def get_new_received_document_totals( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - get_new_received_document_totals_request: Annotated[ - Optional[GetNewReceivedDocumentTotalsRequest], - Field(description="Received document."), - ] = None, + get_new_received_document_totals_request: Annotated[Optional[GetNewReceivedDocumentTotalsRequest], Field(description="Received document.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1717,7 +1876,7 @@ def get_new_received_document_totals( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_new_received_document_totals_serialize( company_id=company_id, @@ -1725,16 +1884,22 @@ def get_new_received_document_totals( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetNewReceivedDocumentTotalsResponse", - "401": None, - "404": None, + '200': "GetNewReceivedDocumentTotalsResponse", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1742,20 +1907,19 @@ def get_new_received_document_totals( response_types_map=_response_types_map, ).data + @validate_call def get_new_received_document_totals_with_http_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - get_new_received_document_totals_request: Annotated[ - Optional[GetNewReceivedDocumentTotalsRequest], - Field(description="Received document."), - ] = None, + get_new_received_document_totals_request: Annotated[Optional[GetNewReceivedDocumentTotalsRequest], Field(description="Received document.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1790,7 +1954,7 @@ def get_new_received_document_totals_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_new_received_document_totals_serialize( company_id=company_id, @@ -1798,16 +1962,22 @@ def get_new_received_document_totals_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetNewReceivedDocumentTotalsResponse", - "401": None, - "404": None, + '200': "GetNewReceivedDocumentTotalsResponse", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1815,20 +1985,19 @@ def get_new_received_document_totals_with_http_info( response_types_map=_response_types_map, ) + @validate_call def get_new_received_document_totals_without_preload_content( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - get_new_received_document_totals_request: Annotated[ - Optional[GetNewReceivedDocumentTotalsRequest], - Field(description="Received document."), - ] = None, + get_new_received_document_totals_request: Annotated[Optional[GetNewReceivedDocumentTotalsRequest], Field(description="Received document.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1863,7 +2032,7 @@ def get_new_received_document_totals_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_new_received_document_totals_serialize( company_id=company_id, @@ -1871,19 +2040,26 @@ def get_new_received_document_totals_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetNewReceivedDocumentTotalsResponse", - "401": None, - "404": None, + '200': "GetNewReceivedDocumentTotalsResponse", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _get_new_received_document_totals_serialize( self, company_id, @@ -1896,7 +2072,8 @@ def _get_new_received_document_totals_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1909,7 +2086,7 @@ def _get_new_received_document_totals_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id # process the query parameters # process the header parameters # process the form parameters @@ -1917,28 +2094,37 @@ def _get_new_received_document_totals_serialize( if get_new_received_document_totals_request is not None: _body_params = get_new_received_document_totals_request + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) # set the HTTP header `Content-Type` if _content_type: - _header_params["Content-Type"] = _content_type + _header_params['Content-Type'] = _content_type else: - _default_content_type = self.api_client.select_header_content_type( - ["application/json"] + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) ) if _default_content_type is not None: - _header_params["Content-Type"] = _default_content_type + _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/c/{company_id}/received_documents/totals", + method='POST', + resource_path='/c/{company_id}/received_documents/totals', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1948,26 +2134,26 @@ def _get_new_received_document_totals_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def get_received_document( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], document_id: Annotated[StrictInt, Field(description="The ID of the document.")], - fields: Annotated[ - Optional[StrictStr], Field(description="List of comma-separated fields.") - ] = None, - fieldset: Annotated[ - Optional[StrictStr], Field(description="Name of the fieldset.") - ] = None, + fields: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields.")] = None, + fieldset: Annotated[Optional[StrictStr], Field(description="Name of the fieldset.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2006,7 +2192,7 @@ def get_received_document( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_received_document_serialize( company_id=company_id, @@ -2016,16 +2202,22 @@ def get_received_document( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetReceivedDocumentResponse", - "401": None, - "404": None, + '200': "GetReceivedDocumentResponse", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2033,23 +2225,21 @@ def get_received_document( response_types_map=_response_types_map, ).data + @validate_call def get_received_document_with_http_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], document_id: Annotated[StrictInt, Field(description="The ID of the document.")], - fields: Annotated[ - Optional[StrictStr], Field(description="List of comma-separated fields.") - ] = None, - fieldset: Annotated[ - Optional[StrictStr], Field(description="Name of the fieldset.") - ] = None, + fields: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields.")] = None, + fieldset: Annotated[Optional[StrictStr], Field(description="Name of the fieldset.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2088,7 +2278,7 @@ def get_received_document_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_received_document_serialize( company_id=company_id, @@ -2098,16 +2288,22 @@ def get_received_document_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetReceivedDocumentResponse", - "401": None, - "404": None, + '200': "GetReceivedDocumentResponse", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2115,23 +2311,21 @@ def get_received_document_with_http_info( response_types_map=_response_types_map, ) + @validate_call def get_received_document_without_preload_content( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], document_id: Annotated[StrictInt, Field(description="The ID of the document.")], - fields: Annotated[ - Optional[StrictStr], Field(description="List of comma-separated fields.") - ] = None, - fieldset: Annotated[ - Optional[StrictStr], Field(description="Name of the fieldset.") - ] = None, + fields: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields.")] = None, + fieldset: Annotated[Optional[StrictStr], Field(description="Name of the fieldset.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2170,7 +2364,7 @@ def get_received_document_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_received_document_serialize( company_id=company_id, @@ -2180,19 +2374,26 @@ def get_received_document_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetReceivedDocumentResponse", - "401": None, - "404": None, + '200': "GetReceivedDocumentResponse", + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _get_received_document_serialize( self, company_id, @@ -2207,7 +2408,8 @@ def _get_received_document_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -2220,34 +2422,40 @@ def _get_received_document_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id if document_id is not None: - _path_params["document_id"] = document_id + _path_params['document_id'] = document_id # process the query parameters if fields is not None: - - _query_params.append(("fields", fields)) - + + _query_params.append(('fields', fields)) + if fieldset is not None: - - _query_params.append(("fieldset", fieldset)) - + + _query_params.append(('fieldset', fieldset)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/c/{company_id}/received_documents/{document_id}", + method='GET', + resource_path='/c/{company_id}/received_documents/{document_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2257,22 +2465,24 @@ def _get_received_document_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def get_received_document_pre_create_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - type: Annotated[ - StrictStr, Field(description="The type of the received document.") - ], + type: Annotated[StrictStr, Field(description="The type of the received document.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2307,7 +2517,7 @@ def get_received_document_pre_create_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_received_document_pre_create_info_serialize( company_id=company_id, @@ -2315,14 +2525,20 @@ def get_received_document_pre_create_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetReceivedDocumentPreCreateInfoResponse", + '200': "GetReceivedDocumentPreCreateInfoResponse", } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2330,19 +2546,19 @@ def get_received_document_pre_create_info( response_types_map=_response_types_map, ).data + @validate_call def get_received_document_pre_create_info_with_http_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - type: Annotated[ - StrictStr, Field(description="The type of the received document.") - ], + type: Annotated[StrictStr, Field(description="The type of the received document.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2377,7 +2593,7 @@ def get_received_document_pre_create_info_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_received_document_pre_create_info_serialize( company_id=company_id, @@ -2385,14 +2601,20 @@ def get_received_document_pre_create_info_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetReceivedDocumentPreCreateInfoResponse", + '200': "GetReceivedDocumentPreCreateInfoResponse", } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2400,19 +2622,19 @@ def get_received_document_pre_create_info_with_http_info( response_types_map=_response_types_map, ) + @validate_call def get_received_document_pre_create_info_without_preload_content( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - type: Annotated[ - StrictStr, Field(description="The type of the received document.") - ], + type: Annotated[StrictStr, Field(description="The type of the received document.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2447,7 +2669,7 @@ def get_received_document_pre_create_info_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_received_document_pre_create_info_serialize( company_id=company_id, @@ -2455,17 +2677,24 @@ def get_received_document_pre_create_info_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetReceivedDocumentPreCreateInfoResponse", + '200': "GetReceivedDocumentPreCreateInfoResponse", } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _get_received_document_pre_create_info_serialize( self, company_id, @@ -2478,7 +2707,8 @@ def _get_received_document_pre_create_info_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -2491,28 +2721,34 @@ def _get_received_document_pre_create_info_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id # process the query parameters if type is not None: - - _query_params.append(("type", type)) - + + _query_params.append(('type', type)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/c/{company_id}/received_documents/info", + method='GET', + resource_path='/c/{company_id}/received_documents/info', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2522,9 +2758,12 @@ def _get_received_document_pre_create_info_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def list_bin_received_documents( self, @@ -2533,8 +2772,9 @@ def list_bin_received_documents( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2567,21 +2807,27 @@ def list_bin_received_documents( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_bin_received_documents_serialize( company_id=company_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListBinReceivedDocuments", + '200': "ListBinReceivedDocuments", } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2589,6 +2835,7 @@ def list_bin_received_documents( response_types_map=_response_types_map, ).data + @validate_call def list_bin_received_documents_with_http_info( self, @@ -2597,8 +2844,9 @@ def list_bin_received_documents_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2631,21 +2879,27 @@ def list_bin_received_documents_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_bin_received_documents_serialize( company_id=company_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListBinReceivedDocuments", + '200': "ListBinReceivedDocuments", } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2653,6 +2907,7 @@ def list_bin_received_documents_with_http_info( response_types_map=_response_types_map, ) + @validate_call def list_bin_received_documents_without_preload_content( self, @@ -2661,8 +2916,9 @@ def list_bin_received_documents_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2695,24 +2951,31 @@ def list_bin_received_documents_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_bin_received_documents_serialize( company_id=company_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListBinReceivedDocuments", + '200': "ListBinReceivedDocuments", } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _list_bin_received_documents_serialize( self, company_id, @@ -2724,7 +2987,8 @@ def _list_bin_received_documents_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -2737,24 +3001,30 @@ def _list_bin_received_documents_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/c/{company_id}/bin/received_documents", + method='GET', + resource_path='/c/{company_id}/bin/received_documents', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2764,44 +3034,30 @@ def _list_bin_received_documents_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def list_received_documents( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - type: Annotated[ - StrictStr, Field(description="The type of the received document.") - ], - fields: Annotated[ - Optional[StrictStr], Field(description="List of comma-separated fields.") - ] = None, - fieldset: Annotated[ - Optional[StrictStr], Field(description="Name of the fieldset.") - ] = None, - sort: Annotated[ - Optional[StrictStr], - Field( - description="List of comma-separated fields for result sorting (minus for desc sorting)." - ), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="The page to retrieve.") - ] = None, - per_page: Annotated[ - Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], - Field(description="The size of the page."), - ] = None, - q: Annotated[ - Optional[StrictStr], Field(description="Query for filtering the results.") - ] = None, + type: Annotated[StrictStr, Field(description="The type of the received document.")], + fields: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields.")] = None, + fieldset: Annotated[Optional[StrictStr], Field(description="Name of the fieldset.")] = None, + sort: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields for result sorting (minus for desc sorting).")] = None, + page: Annotated[Optional[StrictInt], Field(description="The page to retrieve.")] = None, + per_page: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="The size of the page.")] = None, + q: Annotated[Optional[StrictStr], Field(description="Query for filtering the results.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2848,7 +3104,7 @@ def list_received_documents( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_received_documents_serialize( company_id=company_id, @@ -2862,15 +3118,21 @@ def list_received_documents( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListReceivedDocumentsResponse", - "401": None, + '200': "ListReceivedDocumentsResponse", + '401': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2878,41 +3140,25 @@ def list_received_documents( response_types_map=_response_types_map, ).data + @validate_call def list_received_documents_with_http_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - type: Annotated[ - StrictStr, Field(description="The type of the received document.") - ], - fields: Annotated[ - Optional[StrictStr], Field(description="List of comma-separated fields.") - ] = None, - fieldset: Annotated[ - Optional[StrictStr], Field(description="Name of the fieldset.") - ] = None, - sort: Annotated[ - Optional[StrictStr], - Field( - description="List of comma-separated fields for result sorting (minus for desc sorting)." - ), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="The page to retrieve.") - ] = None, - per_page: Annotated[ - Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], - Field(description="The size of the page."), - ] = None, - q: Annotated[ - Optional[StrictStr], Field(description="Query for filtering the results.") - ] = None, + type: Annotated[StrictStr, Field(description="The type of the received document.")], + fields: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields.")] = None, + fieldset: Annotated[Optional[StrictStr], Field(description="Name of the fieldset.")] = None, + sort: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields for result sorting (minus for desc sorting).")] = None, + page: Annotated[Optional[StrictInt], Field(description="The page to retrieve.")] = None, + per_page: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="The size of the page.")] = None, + q: Annotated[Optional[StrictStr], Field(description="Query for filtering the results.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2959,7 +3205,7 @@ def list_received_documents_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_received_documents_serialize( company_id=company_id, @@ -2973,15 +3219,21 @@ def list_received_documents_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListReceivedDocumentsResponse", - "401": None, + '200': "ListReceivedDocumentsResponse", + '401': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2989,41 +3241,25 @@ def list_received_documents_with_http_info( response_types_map=_response_types_map, ) + @validate_call def list_received_documents_without_preload_content( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - type: Annotated[ - StrictStr, Field(description="The type of the received document.") - ], - fields: Annotated[ - Optional[StrictStr], Field(description="List of comma-separated fields.") - ] = None, - fieldset: Annotated[ - Optional[StrictStr], Field(description="Name of the fieldset.") - ] = None, - sort: Annotated[ - Optional[StrictStr], - Field( - description="List of comma-separated fields for result sorting (minus for desc sorting)." - ), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="The page to retrieve.") - ] = None, - per_page: Annotated[ - Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], - Field(description="The size of the page."), - ] = None, - q: Annotated[ - Optional[StrictStr], Field(description="Query for filtering the results.") - ] = None, + type: Annotated[StrictStr, Field(description="The type of the received document.")], + fields: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields.")] = None, + fieldset: Annotated[Optional[StrictStr], Field(description="Name of the fieldset.")] = None, + sort: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields for result sorting (minus for desc sorting).")] = None, + page: Annotated[Optional[StrictInt], Field(description="The page to retrieve.")] = None, + per_page: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="The size of the page.")] = None, + q: Annotated[Optional[StrictStr], Field(description="Query for filtering the results.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3070,7 +3306,7 @@ def list_received_documents_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_received_documents_serialize( company_id=company_id, @@ -3084,18 +3320,25 @@ def list_received_documents_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListReceivedDocumentsResponse", - "401": None, + '200': "ListReceivedDocumentsResponse", + '401': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _list_received_documents_serialize( self, company_id, @@ -3114,7 +3357,8 @@ def _list_received_documents_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -3127,52 +3371,58 @@ def _list_received_documents_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id # process the query parameters if type is not None: - - _query_params.append(("type", type)) - + + _query_params.append(('type', type)) + if fields is not None: - - _query_params.append(("fields", fields)) - + + _query_params.append(('fields', fields)) + if fieldset is not None: - - _query_params.append(("fieldset", fieldset)) - + + _query_params.append(('fieldset', fieldset)) + if sort is not None: - - _query_params.append(("sort", sort)) - + + _query_params.append(('sort', sort)) + if page is not None: - - _query_params.append(("page", page)) - + + _query_params.append(('page', page)) + if per_page is not None: - - _query_params.append(("per_page", per_page)) - + + _query_params.append(('per_page', per_page)) + if q is not None: - - _query_params.append(("q", q)) - + + _query_params.append(('q', q)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/c/{company_id}/received_documents", + method='GET', + resource_path='/c/{company_id}/received_documents', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3182,24 +3432,25 @@ def _list_received_documents_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def modify_received_document( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], document_id: Annotated[StrictInt, Field(description="The ID of the document.")], - modify_received_document_request: Annotated[ - Optional[ModifyReceivedDocumentRequest], - Field(description="Modified document."), - ] = None, + modify_received_document_request: Annotated[Optional[ModifyReceivedDocumentRequest], Field(description="Modified document.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3236,7 +3487,7 @@ def modify_received_document( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._modify_received_document_serialize( company_id=company_id, @@ -3245,16 +3496,22 @@ def modify_received_document( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ModifyReceivedDocumentResponse", - "401": None, - "404": None, + '200': "ModifyReceivedDocumentResponse", + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -3262,21 +3519,20 @@ def modify_received_document( response_types_map=_response_types_map, ).data + @validate_call def modify_received_document_with_http_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], document_id: Annotated[StrictInt, Field(description="The ID of the document.")], - modify_received_document_request: Annotated[ - Optional[ModifyReceivedDocumentRequest], - Field(description="Modified document."), - ] = None, + modify_received_document_request: Annotated[Optional[ModifyReceivedDocumentRequest], Field(description="Modified document.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3313,7 +3569,7 @@ def modify_received_document_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._modify_received_document_serialize( company_id=company_id, @@ -3322,16 +3578,22 @@ def modify_received_document_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ModifyReceivedDocumentResponse", - "401": None, - "404": None, + '200': "ModifyReceivedDocumentResponse", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -3339,21 +3601,20 @@ def modify_received_document_with_http_info( response_types_map=_response_types_map, ) + @validate_call def modify_received_document_without_preload_content( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], document_id: Annotated[StrictInt, Field(description="The ID of the document.")], - modify_received_document_request: Annotated[ - Optional[ModifyReceivedDocumentRequest], - Field(description="Modified document."), - ] = None, + modify_received_document_request: Annotated[Optional[ModifyReceivedDocumentRequest], Field(description="Modified document.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3390,7 +3651,7 @@ def modify_received_document_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._modify_received_document_serialize( company_id=company_id, @@ -3399,19 +3660,26 @@ def modify_received_document_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ModifyReceivedDocumentResponse", - "401": None, - "404": None, + '200': "ModifyReceivedDocumentResponse", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _modify_received_document_serialize( self, company_id, @@ -3425,7 +3693,8 @@ def _modify_received_document_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -3438,9 +3707,9 @@ def _modify_received_document_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id if document_id is not None: - _path_params["document_id"] = document_id + _path_params['document_id'] = document_id # process the query parameters # process the header parameters # process the form parameters @@ -3448,28 +3717,37 @@ def _modify_received_document_serialize( if modify_received_document_request is not None: _body_params = modify_received_document_request + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) # set the HTTP header `Content-Type` if _content_type: - _header_params["Content-Type"] = _content_type + _header_params['Content-Type'] = _content_type else: - _default_content_type = self.api_client.select_header_content_type( - ["application/json"] + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) ) if _default_content_type is not None: - _header_params["Content-Type"] = _default_content_type + _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="PUT", - resource_path="/c/{company_id}/received_documents/{document_id}", + method='PUT', + resource_path='/c/{company_id}/received_documents/{document_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3479,9 +3757,12 @@ def _modify_received_document_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def recover_bin_received_document( self, @@ -3491,15 +3772,16 @@ def recover_bin_received_document( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + 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, ) -> None: - """ + """Recover Received Document From The Bin Recover Received Document From The Bin @@ -3527,7 +3809,7 @@ def recover_bin_received_document( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._recover_bin_received_document_serialize( company_id=company_id, @@ -3535,14 +3817,20 @@ def recover_bin_received_document( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": None, + '200': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -3550,6 +3838,7 @@ def recover_bin_received_document( response_types_map=_response_types_map, ).data + @validate_call def recover_bin_received_document_with_http_info( self, @@ -3559,15 +3848,16 @@ def recover_bin_received_document_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + 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[None]: - """ + """Recover Received Document From The Bin Recover Received Document From The Bin @@ -3595,7 +3885,7 @@ def recover_bin_received_document_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._recover_bin_received_document_serialize( company_id=company_id, @@ -3603,14 +3893,20 @@ def recover_bin_received_document_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": None, + '200': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -3618,6 +3914,7 @@ def recover_bin_received_document_with_http_info( response_types_map=_response_types_map, ) + @validate_call def recover_bin_received_document_without_preload_content( self, @@ -3627,15 +3924,16 @@ def recover_bin_received_document_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + 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: - """ + """Recover Received Document From The Bin Recover Received Document From The Bin @@ -3663,7 +3961,7 @@ def recover_bin_received_document_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._recover_bin_received_document_serialize( company_id=company_id, @@ -3671,17 +3969,24 @@ def recover_bin_received_document_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": None, + '200': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _recover_bin_received_document_serialize( self, company_id, @@ -3694,7 +3999,8 @@ def _recover_bin_received_document_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -3707,20 +4013,25 @@ def _recover_bin_received_document_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id if document_id is not None: - _path_params["document_id"] = document_id + _path_params['document_id'] = document_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + + + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/c/{company_id}/bin/received_documents/{document_id}/recover", + method='POST', + resource_path='/c/{company_id}/bin/received_documents/{document_id}/recover', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3730,28 +4041,25 @@ def _recover_bin_received_document_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def upload_received_document_attachment( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - filename: Annotated[ - Optional[StrictStr], Field(description="Attachment file name") - ] = None, - attachment: Annotated[ - Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], - Field( - description="Attachment file [.png, .jpg, .gif, .pdf, .zip, .xls, .xlsx, .doc, .docx]" - ), - ] = None, + filename: Annotated[Optional[StrictStr], Field(description="Attachment file name")] = None, + attachment: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Attachment file [.png, .jpg, .gif, .pdf, .zip, .xls, .xlsx, .doc, .docx]")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3788,7 +4096,7 @@ def upload_received_document_attachment( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._upload_received_document_attachment_serialize( company_id=company_id, @@ -3797,15 +4105,21 @@ def upload_received_document_attachment( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UploadReceivedDocumentAttachmentResponse", - "401": None, + '200': "UploadReceivedDocumentAttachmentResponse", + '401': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -3813,25 +4127,20 @@ def upload_received_document_attachment( response_types_map=_response_types_map, ).data + @validate_call def upload_received_document_attachment_with_http_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - filename: Annotated[ - Optional[StrictStr], Field(description="Attachment file name") - ] = None, - attachment: Annotated[ - Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], - Field( - description="Attachment file [.png, .jpg, .gif, .pdf, .zip, .xls, .xlsx, .doc, .docx]" - ), - ] = None, + filename: Annotated[Optional[StrictStr], Field(description="Attachment file name")] = None, + attachment: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Attachment file [.png, .jpg, .gif, .pdf, .zip, .xls, .xlsx, .doc, .docx]")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3868,7 +4177,7 @@ def upload_received_document_attachment_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._upload_received_document_attachment_serialize( company_id=company_id, @@ -3877,15 +4186,21 @@ def upload_received_document_attachment_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UploadReceivedDocumentAttachmentResponse", - "401": None, + '200': "UploadReceivedDocumentAttachmentResponse", + '401': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -3893,25 +4208,20 @@ def upload_received_document_attachment_with_http_info( response_types_map=_response_types_map, ) + @validate_call def upload_received_document_attachment_without_preload_content( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - filename: Annotated[ - Optional[StrictStr], Field(description="Attachment file name") - ] = None, - attachment: Annotated[ - Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], - Field( - description="Attachment file [.png, .jpg, .gif, .pdf, .zip, .xls, .xlsx, .doc, .docx]" - ), - ] = None, + filename: Annotated[Optional[StrictStr], Field(description="Attachment file name")] = None, + attachment: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Attachment file [.png, .jpg, .gif, .pdf, .zip, .xls, .xlsx, .doc, .docx]")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3948,7 +4258,7 @@ def upload_received_document_attachment_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._upload_received_document_attachment_serialize( company_id=company_id, @@ -3957,18 +4267,25 @@ def upload_received_document_attachment_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UploadReceivedDocumentAttachmentResponse", - "401": None, + '200': "UploadReceivedDocumentAttachmentResponse", + '401': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _upload_received_document_attachment_serialize( self, company_id, @@ -3982,7 +4299,8 @@ def _upload_received_document_attachment_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -3995,38 +4313,47 @@ def _upload_received_document_attachment_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id # process the query parameters # process the header parameters # process the form parameters if filename is not None: - _form_params.append(("filename", filename)) + _form_params.append(('filename', filename)) if attachment is not None: - _files["attachment"] = attachment + _files['attachment'] = attachment # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) # set the HTTP header `Content-Type` if _content_type: - _header_params["Content-Type"] = _content_type + _header_params['Content-Type'] = _content_type else: - _default_content_type = self.api_client.select_header_content_type( - ["multipart/form-data"] + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'multipart/form-data' + ] + ) ) if _default_content_type is not None: - _header_params["Content-Type"] = _default_content_type + _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/c/{company_id}/received_documents/attachment", + method='POST', + resource_path='/c/{company_id}/received_documents/attachment', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4036,5 +4363,7 @@ def _upload_received_document_attachment_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/fattureincloud_python_sdk/api/settings_api.py b/fattureincloud_python_sdk/api/settings_api.py index e9bb181b..e9ff7b68 100644 --- a/fattureincloud_python_sdk/api/settings_api.py +++ b/fattureincloud_python_sdk/api/settings_api.py @@ -1,17 +1,16 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 - import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union @@ -20,52 +19,22 @@ 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, -) -from fattureincloud_python_sdk.models.create_payment_account_response import ( - CreatePaymentAccountResponse, -) -from fattureincloud_python_sdk.models.create_payment_method_request import ( - CreatePaymentMethodRequest, -) -from fattureincloud_python_sdk.models.create_payment_method_response import ( - CreatePaymentMethodResponse, -) -from fattureincloud_python_sdk.models.create_vat_type_request import ( - CreateVatTypeRequest, -) -from fattureincloud_python_sdk.models.create_vat_type_response import ( - CreateVatTypeResponse, -) -from fattureincloud_python_sdk.models.get_payment_account_response import ( - GetPaymentAccountResponse, -) -from fattureincloud_python_sdk.models.get_payment_method_response import ( - GetPaymentMethodResponse, -) -from fattureincloud_python_sdk.models.get_tax_profile_response import ( - GetTaxProfileResponse, -) +from fattureincloud_python_sdk.models.create_payment_account_request import CreatePaymentAccountRequest +from fattureincloud_python_sdk.models.create_payment_account_response import CreatePaymentAccountResponse +from fattureincloud_python_sdk.models.create_payment_method_request import CreatePaymentMethodRequest +from fattureincloud_python_sdk.models.create_payment_method_response import CreatePaymentMethodResponse +from fattureincloud_python_sdk.models.create_vat_type_request import CreateVatTypeRequest +from fattureincloud_python_sdk.models.create_vat_type_response import CreateVatTypeResponse +from fattureincloud_python_sdk.models.get_payment_account_response import GetPaymentAccountResponse +from fattureincloud_python_sdk.models.get_payment_method_response import GetPaymentMethodResponse +from fattureincloud_python_sdk.models.get_tax_profile_response import GetTaxProfileResponse from fattureincloud_python_sdk.models.get_vat_type_response import GetVatTypeResponse -from fattureincloud_python_sdk.models.modify_payment_account_request import ( - ModifyPaymentAccountRequest, -) -from fattureincloud_python_sdk.models.modify_payment_account_response import ( - ModifyPaymentAccountResponse, -) -from fattureincloud_python_sdk.models.modify_payment_method_request import ( - ModifyPaymentMethodRequest, -) -from fattureincloud_python_sdk.models.modify_payment_method_response import ( - ModifyPaymentMethodResponse, -) -from fattureincloud_python_sdk.models.modify_vat_type_request import ( - ModifyVatTypeRequest, -) -from fattureincloud_python_sdk.models.modify_vat_type_response import ( - ModifyVatTypeResponse, -) +from fattureincloud_python_sdk.models.modify_payment_account_request import ModifyPaymentAccountRequest +from fattureincloud_python_sdk.models.modify_payment_account_response import ModifyPaymentAccountResponse +from fattureincloud_python_sdk.models.modify_payment_method_request import ModifyPaymentMethodRequest +from fattureincloud_python_sdk.models.modify_payment_method_response import ModifyPaymentMethodResponse +from fattureincloud_python_sdk.models.modify_vat_type_request import ModifyVatTypeRequest +from fattureincloud_python_sdk.models.modify_vat_type_response import ModifyVatTypeResponse from fattureincloud_python_sdk.api_client import ApiClient, RequestSerialized from fattureincloud_python_sdk.api_response import ApiResponse @@ -84,6 +53,7 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def create_payment_account( self, @@ -93,8 +63,9 @@ def create_payment_account( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -129,7 +100,7 @@ def create_payment_account( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_payment_account_serialize( company_id=company_id, @@ -137,14 +108,20 @@ def create_payment_account( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreatePaymentAccountResponse", + '200': "CreatePaymentAccountResponse", } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -152,6 +129,7 @@ def create_payment_account( response_types_map=_response_types_map, ).data + @validate_call def create_payment_account_with_http_info( self, @@ -161,8 +139,9 @@ def create_payment_account_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -197,7 +176,7 @@ def create_payment_account_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_payment_account_serialize( company_id=company_id, @@ -205,14 +184,20 @@ def create_payment_account_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreatePaymentAccountResponse", + '200': "CreatePaymentAccountResponse", } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -220,6 +205,7 @@ def create_payment_account_with_http_info( response_types_map=_response_types_map, ) + @validate_call def create_payment_account_without_preload_content( self, @@ -229,8 +215,9 @@ def create_payment_account_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -265,7 +252,7 @@ def create_payment_account_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_payment_account_serialize( company_id=company_id, @@ -273,17 +260,24 @@ def create_payment_account_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreatePaymentAccountResponse", + '200': "CreatePaymentAccountResponse", } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _create_payment_account_serialize( self, company_id, @@ -296,7 +290,8 @@ def _create_payment_account_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -309,7 +304,7 @@ def _create_payment_account_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id # process the query parameters # process the header parameters # process the form parameters @@ -317,28 +312,37 @@ def _create_payment_account_serialize( if create_payment_account_request is not None: _body_params = create_payment_account_request + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) # set the HTTP header `Content-Type` if _content_type: - _header_params["Content-Type"] = _content_type + _header_params['Content-Type'] = _content_type else: - _default_content_type = self.api_client.select_header_content_type( - ["application/json"] + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) ) if _default_content_type is not None: - _header_params["Content-Type"] = _default_content_type + _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/c/{company_id}/settings/payment_accounts", + method='POST', + resource_path='/c/{company_id}/settings/payment_accounts', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -348,9 +352,12 @@ def _create_payment_account_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def create_payment_method( self, @@ -360,8 +367,9 @@ def create_payment_method( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -396,7 +404,7 @@ def create_payment_method( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_payment_method_serialize( company_id=company_id, @@ -404,14 +412,20 @@ def create_payment_method( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreatePaymentMethodResponse", + '200': "CreatePaymentMethodResponse", } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -419,6 +433,7 @@ def create_payment_method( response_types_map=_response_types_map, ).data + @validate_call def create_payment_method_with_http_info( self, @@ -428,8 +443,9 @@ def create_payment_method_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -464,7 +480,7 @@ def create_payment_method_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_payment_method_serialize( company_id=company_id, @@ -472,14 +488,20 @@ def create_payment_method_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreatePaymentMethodResponse", + '200': "CreatePaymentMethodResponse", } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -487,6 +509,7 @@ def create_payment_method_with_http_info( response_types_map=_response_types_map, ) + @validate_call def create_payment_method_without_preload_content( self, @@ -496,8 +519,9 @@ def create_payment_method_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -532,7 +556,7 @@ def create_payment_method_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_payment_method_serialize( company_id=company_id, @@ -540,17 +564,24 @@ def create_payment_method_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreatePaymentMethodResponse", + '200': "CreatePaymentMethodResponse", } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _create_payment_method_serialize( self, company_id, @@ -563,7 +594,8 @@ def _create_payment_method_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -576,7 +608,7 @@ def _create_payment_method_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id # process the query parameters # process the header parameters # process the form parameters @@ -584,28 +616,37 @@ def _create_payment_method_serialize( if create_payment_method_request is not None: _body_params = create_payment_method_request + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) # set the HTTP header `Content-Type` if _content_type: - _header_params["Content-Type"] = _content_type + _header_params['Content-Type'] = _content_type else: - _default_content_type = self.api_client.select_header_content_type( - ["application/json"] + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) ) if _default_content_type is not None: - _header_params["Content-Type"] = _default_content_type + _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/c/{company_id}/settings/payment_methods", + method='POST', + resource_path='/c/{company_id}/settings/payment_methods', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -615,9 +656,12 @@ def _create_payment_method_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def create_vat_type( self, @@ -627,8 +671,9 @@ def create_vat_type( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -641,7 +686,7 @@ def create_vat_type( :param company_id: The ID of the company. (required) :type company_id: int - :param create_vat_type_request: + :param create_vat_type_request: :type create_vat_type_request: CreateVatTypeRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -663,7 +708,7 @@ def create_vat_type( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_vat_type_serialize( company_id=company_id, @@ -671,14 +716,20 @@ def create_vat_type( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateVatTypeResponse", + '200': "CreateVatTypeResponse", } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -686,6 +737,7 @@ def create_vat_type( response_types_map=_response_types_map, ).data + @validate_call def create_vat_type_with_http_info( self, @@ -695,8 +747,9 @@ def create_vat_type_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -709,7 +762,7 @@ def create_vat_type_with_http_info( :param company_id: The ID of the company. (required) :type company_id: int - :param create_vat_type_request: + :param create_vat_type_request: :type create_vat_type_request: CreateVatTypeRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -731,7 +784,7 @@ def create_vat_type_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_vat_type_serialize( company_id=company_id, @@ -739,14 +792,20 @@ def create_vat_type_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateVatTypeResponse", + '200': "CreateVatTypeResponse", } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -754,6 +813,7 @@ def create_vat_type_with_http_info( response_types_map=_response_types_map, ) + @validate_call def create_vat_type_without_preload_content( self, @@ -763,8 +823,9 @@ def create_vat_type_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -777,7 +838,7 @@ def create_vat_type_without_preload_content( :param company_id: The ID of the company. (required) :type company_id: int - :param create_vat_type_request: + :param create_vat_type_request: :type create_vat_type_request: CreateVatTypeRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -799,7 +860,7 @@ def create_vat_type_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_vat_type_serialize( company_id=company_id, @@ -807,17 +868,24 @@ def create_vat_type_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateVatTypeResponse", + '200': "CreateVatTypeResponse", } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _create_vat_type_serialize( self, company_id, @@ -830,7 +898,8 @@ def _create_vat_type_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -843,7 +912,7 @@ def _create_vat_type_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id # process the query parameters # process the header parameters # process the form parameters @@ -851,28 +920,37 @@ def _create_vat_type_serialize( if create_vat_type_request is not None: _body_params = create_vat_type_request + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) # set the HTTP header `Content-Type` if _content_type: - _header_params["Content-Type"] = _content_type + _header_params['Content-Type'] = _content_type else: - _default_content_type = self.api_client.select_header_content_type( - ["application/json"] + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) ) if _default_content_type is not None: - _header_params["Content-Type"] = _default_content_type + _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/c/{company_id}/settings/vat_types", + method='POST', + resource_path='/c/{company_id}/settings/vat_types', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -882,22 +960,24 @@ def _create_vat_type_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def delete_payment_account( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - payment_account_id: Annotated[ - StrictInt, Field(description="The Referred Payment Account Id.") - ], + payment_account_id: Annotated[StrictInt, Field(description="The Referred Payment Account Id.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -932,7 +1012,7 @@ def delete_payment_account( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_payment_account_serialize( company_id=company_id, @@ -940,14 +1020,20 @@ def delete_payment_account( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": None, + '200': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -955,19 +1041,19 @@ def delete_payment_account( response_types_map=_response_types_map, ).data + @validate_call def delete_payment_account_with_http_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - payment_account_id: Annotated[ - StrictInt, Field(description="The Referred Payment Account Id.") - ], + payment_account_id: Annotated[StrictInt, Field(description="The Referred Payment Account Id.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1002,7 +1088,7 @@ def delete_payment_account_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_payment_account_serialize( company_id=company_id, @@ -1010,14 +1096,20 @@ def delete_payment_account_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": None, + '200': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1025,19 +1117,19 @@ def delete_payment_account_with_http_info( response_types_map=_response_types_map, ) + @validate_call def delete_payment_account_without_preload_content( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - payment_account_id: Annotated[ - StrictInt, Field(description="The Referred Payment Account Id.") - ], + payment_account_id: Annotated[StrictInt, Field(description="The Referred Payment Account Id.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1072,7 +1164,7 @@ def delete_payment_account_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_payment_account_serialize( company_id=company_id, @@ -1080,17 +1172,24 @@ def delete_payment_account_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": None, + '200': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _delete_payment_account_serialize( self, company_id, @@ -1103,7 +1202,8 @@ def _delete_payment_account_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1116,20 +1216,25 @@ def _delete_payment_account_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id if payment_account_id is not None: - _path_params["payment_account_id"] = payment_account_id + _path_params['payment_account_id'] = payment_account_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + + + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="DELETE", - resource_path="/c/{company_id}/settings/payment_accounts/{payment_account_id}", + method='DELETE', + resource_path='/c/{company_id}/settings/payment_accounts/{payment_account_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1139,22 +1244,24 @@ def _delete_payment_account_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def delete_payment_method( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - payment_method_id: Annotated[ - StrictInt, Field(description="The Referred Payment Method Id.") - ], + payment_method_id: Annotated[StrictInt, Field(description="The Referred Payment Method Id.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1189,7 +1296,7 @@ def delete_payment_method( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_payment_method_serialize( company_id=company_id, @@ -1197,14 +1304,20 @@ def delete_payment_method( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": None, + '200': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1212,19 +1325,19 @@ def delete_payment_method( response_types_map=_response_types_map, ).data + @validate_call def delete_payment_method_with_http_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - payment_method_id: Annotated[ - StrictInt, Field(description="The Referred Payment Method Id.") - ], + payment_method_id: Annotated[StrictInt, Field(description="The Referred Payment Method Id.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1259,7 +1372,7 @@ def delete_payment_method_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_payment_method_serialize( company_id=company_id, @@ -1267,14 +1380,20 @@ def delete_payment_method_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": None, + '200': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1282,19 +1401,19 @@ def delete_payment_method_with_http_info( response_types_map=_response_types_map, ) + @validate_call def delete_payment_method_without_preload_content( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - payment_method_id: Annotated[ - StrictInt, Field(description="The Referred Payment Method Id.") - ], + payment_method_id: Annotated[StrictInt, Field(description="The Referred Payment Method Id.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1329,7 +1448,7 @@ def delete_payment_method_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_payment_method_serialize( company_id=company_id, @@ -1337,17 +1456,24 @@ def delete_payment_method_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": None, + '200': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _delete_payment_method_serialize( self, company_id, @@ -1360,7 +1486,8 @@ def _delete_payment_method_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1373,20 +1500,25 @@ def _delete_payment_method_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id if payment_method_id is not None: - _path_params["payment_method_id"] = payment_method_id + _path_params['payment_method_id'] = payment_method_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + + + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="DELETE", - resource_path="/c/{company_id}/settings/payment_methods/{payment_method_id}", + method='DELETE', + resource_path='/c/{company_id}/settings/payment_methods/{payment_method_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1396,22 +1528,24 @@ def _delete_payment_method_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def delete_vat_type( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - vat_type_id: Annotated[ - StrictInt, Field(description="The Referred Vat Type Id.") - ], + vat_type_id: Annotated[StrictInt, Field(description="The Referred Vat Type Id.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1446,7 +1580,7 @@ def delete_vat_type( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_vat_type_serialize( company_id=company_id, @@ -1454,14 +1588,20 @@ def delete_vat_type( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": None, + '200': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1469,19 +1609,19 @@ def delete_vat_type( response_types_map=_response_types_map, ).data + @validate_call def delete_vat_type_with_http_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - vat_type_id: Annotated[ - StrictInt, Field(description="The Referred Vat Type Id.") - ], + vat_type_id: Annotated[StrictInt, Field(description="The Referred Vat Type Id.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1516,7 +1656,7 @@ def delete_vat_type_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_vat_type_serialize( company_id=company_id, @@ -1524,14 +1664,20 @@ def delete_vat_type_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": None, + '200': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1539,19 +1685,19 @@ def delete_vat_type_with_http_info( response_types_map=_response_types_map, ) + @validate_call def delete_vat_type_without_preload_content( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - vat_type_id: Annotated[ - StrictInt, Field(description="The Referred Vat Type Id.") - ], + vat_type_id: Annotated[StrictInt, Field(description="The Referred Vat Type Id.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1586,7 +1732,7 @@ def delete_vat_type_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_vat_type_serialize( company_id=company_id, @@ -1594,17 +1740,24 @@ def delete_vat_type_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": None, + '200': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _delete_vat_type_serialize( self, company_id, @@ -1617,7 +1770,8 @@ def _delete_vat_type_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1630,20 +1784,25 @@ def _delete_vat_type_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id if vat_type_id is not None: - _path_params["vat_type_id"] = vat_type_id + _path_params['vat_type_id'] = vat_type_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + + + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="DELETE", - resource_path="/c/{company_id}/settings/vat_types/{vat_type_id}", + method='DELETE', + resource_path='/c/{company_id}/settings/vat_types/{vat_type_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1653,28 +1812,26 @@ def _delete_vat_type_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def get_payment_account( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - payment_account_id: Annotated[ - StrictInt, Field(description="The Referred Payment Account Id.") - ], - fields: Annotated[ - Optional[StrictStr], Field(description="List of comma-separated fields.") - ] = None, - fieldset: Annotated[ - Optional[StrictStr], Field(description="Name of the fieldset.") - ] = None, + payment_account_id: Annotated[StrictInt, Field(description="The Referred Payment Account Id.")], + fields: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields.")] = None, + fieldset: Annotated[Optional[StrictStr], Field(description="Name of the fieldset.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1713,7 +1870,7 @@ def get_payment_account( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_payment_account_serialize( company_id=company_id, @@ -1723,14 +1880,20 @@ def get_payment_account( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetPaymentAccountResponse", + '200': "GetPaymentAccountResponse", } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1738,25 +1901,21 @@ def get_payment_account( response_types_map=_response_types_map, ).data + @validate_call def get_payment_account_with_http_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - payment_account_id: Annotated[ - StrictInt, Field(description="The Referred Payment Account Id.") - ], - fields: Annotated[ - Optional[StrictStr], Field(description="List of comma-separated fields.") - ] = None, - fieldset: Annotated[ - Optional[StrictStr], Field(description="Name of the fieldset.") - ] = None, + payment_account_id: Annotated[StrictInt, Field(description="The Referred Payment Account Id.")], + fields: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields.")] = None, + fieldset: Annotated[Optional[StrictStr], Field(description="Name of the fieldset.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1795,7 +1954,7 @@ def get_payment_account_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_payment_account_serialize( company_id=company_id, @@ -1805,14 +1964,20 @@ def get_payment_account_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetPaymentAccountResponse", + '200': "GetPaymentAccountResponse", } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1820,25 +1985,21 @@ def get_payment_account_with_http_info( response_types_map=_response_types_map, ) + @validate_call def get_payment_account_without_preload_content( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - payment_account_id: Annotated[ - StrictInt, Field(description="The Referred Payment Account Id.") - ], - fields: Annotated[ - Optional[StrictStr], Field(description="List of comma-separated fields.") - ] = None, - fieldset: Annotated[ - Optional[StrictStr], Field(description="Name of the fieldset.") - ] = None, + payment_account_id: Annotated[StrictInt, Field(description="The Referred Payment Account Id.")], + fields: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields.")] = None, + fieldset: Annotated[Optional[StrictStr], Field(description="Name of the fieldset.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1877,7 +2038,7 @@ def get_payment_account_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_payment_account_serialize( company_id=company_id, @@ -1887,17 +2048,24 @@ def get_payment_account_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetPaymentAccountResponse", + '200': "GetPaymentAccountResponse", } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _get_payment_account_serialize( self, company_id, @@ -1912,7 +2080,8 @@ def _get_payment_account_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1925,34 +2094,40 @@ def _get_payment_account_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id if payment_account_id is not None: - _path_params["payment_account_id"] = payment_account_id + _path_params['payment_account_id'] = payment_account_id # process the query parameters if fields is not None: - - _query_params.append(("fields", fields)) - + + _query_params.append(('fields', fields)) + if fieldset is not None: - - _query_params.append(("fieldset", fieldset)) - + + _query_params.append(('fieldset', fieldset)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/c/{company_id}/settings/payment_accounts/{payment_account_id}", + method='GET', + resource_path='/c/{company_id}/settings/payment_accounts/{payment_account_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1962,28 +2137,26 @@ def _get_payment_account_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def get_payment_method( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - payment_method_id: Annotated[ - StrictInt, Field(description="The Referred Payment Method Id.") - ], - fields: Annotated[ - Optional[StrictStr], Field(description="List of comma-separated fields.") - ] = None, - fieldset: Annotated[ - Optional[StrictStr], Field(description="Name of the fieldset.") - ] = None, + payment_method_id: Annotated[StrictInt, Field(description="The Referred Payment Method Id.")], + fields: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields.")] = None, + fieldset: Annotated[Optional[StrictStr], Field(description="Name of the fieldset.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2022,7 +2195,7 @@ def get_payment_method( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_payment_method_serialize( company_id=company_id, @@ -2032,14 +2205,20 @@ def get_payment_method( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetPaymentMethodResponse", + '200': "GetPaymentMethodResponse", } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2047,25 +2226,21 @@ def get_payment_method( response_types_map=_response_types_map, ).data + @validate_call def get_payment_method_with_http_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - payment_method_id: Annotated[ - StrictInt, Field(description="The Referred Payment Method Id.") - ], - fields: Annotated[ - Optional[StrictStr], Field(description="List of comma-separated fields.") - ] = None, - fieldset: Annotated[ - Optional[StrictStr], Field(description="Name of the fieldset.") - ] = None, + payment_method_id: Annotated[StrictInt, Field(description="The Referred Payment Method Id.")], + fields: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields.")] = None, + fieldset: Annotated[Optional[StrictStr], Field(description="Name of the fieldset.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2104,7 +2279,7 @@ def get_payment_method_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_payment_method_serialize( company_id=company_id, @@ -2114,14 +2289,20 @@ def get_payment_method_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetPaymentMethodResponse", + '200': "GetPaymentMethodResponse", } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2129,25 +2310,21 @@ def get_payment_method_with_http_info( response_types_map=_response_types_map, ) + @validate_call def get_payment_method_without_preload_content( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - payment_method_id: Annotated[ - StrictInt, Field(description="The Referred Payment Method Id.") - ], - fields: Annotated[ - Optional[StrictStr], Field(description="List of comma-separated fields.") - ] = None, - fieldset: Annotated[ - Optional[StrictStr], Field(description="Name of the fieldset.") - ] = None, + payment_method_id: Annotated[StrictInt, Field(description="The Referred Payment Method Id.")], + fields: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields.")] = None, + fieldset: Annotated[Optional[StrictStr], Field(description="Name of the fieldset.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2186,7 +2363,7 @@ def get_payment_method_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_payment_method_serialize( company_id=company_id, @@ -2196,17 +2373,24 @@ def get_payment_method_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetPaymentMethodResponse", + '200': "GetPaymentMethodResponse", } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _get_payment_method_serialize( self, company_id, @@ -2221,7 +2405,8 @@ def _get_payment_method_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -2234,34 +2419,40 @@ def _get_payment_method_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id if payment_method_id is not None: - _path_params["payment_method_id"] = payment_method_id + _path_params['payment_method_id'] = payment_method_id # process the query parameters if fields is not None: - - _query_params.append(("fields", fields)) - + + _query_params.append(('fields', fields)) + if fieldset is not None: - - _query_params.append(("fieldset", fieldset)) - + + _query_params.append(('fieldset', fieldset)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/c/{company_id}/settings/payment_methods/{payment_method_id}", + method='GET', + resource_path='/c/{company_id}/settings/payment_methods/{payment_method_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2271,9 +2462,12 @@ def _get_payment_method_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def get_tax_profile( self, @@ -2282,8 +2476,9 @@ def get_tax_profile( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2316,21 +2511,27 @@ def get_tax_profile( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_tax_profile_serialize( company_id=company_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetTaxProfileResponse", + '200': "GetTaxProfileResponse", } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2338,6 +2539,7 @@ def get_tax_profile( response_types_map=_response_types_map, ).data + @validate_call def get_tax_profile_with_http_info( self, @@ -2346,8 +2548,9 @@ def get_tax_profile_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2380,21 +2583,27 @@ def get_tax_profile_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_tax_profile_serialize( company_id=company_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetTaxProfileResponse", + '200': "GetTaxProfileResponse", } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2402,6 +2611,7 @@ def get_tax_profile_with_http_info( response_types_map=_response_types_map, ) + @validate_call def get_tax_profile_without_preload_content( self, @@ -2410,8 +2620,9 @@ def get_tax_profile_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2444,24 +2655,31 @@ def get_tax_profile_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_tax_profile_serialize( company_id=company_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetTaxProfileResponse", + '200': "GetTaxProfileResponse", } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _get_tax_profile_serialize( self, company_id, @@ -2473,7 +2691,8 @@ def _get_tax_profile_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -2486,24 +2705,30 @@ def _get_tax_profile_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/c/{company_id}/settings/tax_profile", + method='GET', + resource_path='/c/{company_id}/settings/tax_profile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2513,22 +2738,24 @@ def _get_tax_profile_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def get_vat_type( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - vat_type_id: Annotated[ - StrictInt, Field(description="The Referred Vat Type Id.") - ], + vat_type_id: Annotated[StrictInt, Field(description="The Referred Vat Type Id.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2563,7 +2790,7 @@ def get_vat_type( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_vat_type_serialize( company_id=company_id, @@ -2571,14 +2798,20 @@ def get_vat_type( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetVatTypeResponse", + '200': "GetVatTypeResponse", } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2586,19 +2819,19 @@ def get_vat_type( response_types_map=_response_types_map, ).data + @validate_call def get_vat_type_with_http_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - vat_type_id: Annotated[ - StrictInt, Field(description="The Referred Vat Type Id.") - ], + vat_type_id: Annotated[StrictInt, Field(description="The Referred Vat Type Id.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2633,7 +2866,7 @@ def get_vat_type_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_vat_type_serialize( company_id=company_id, @@ -2641,14 +2874,20 @@ def get_vat_type_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetVatTypeResponse", + '200': "GetVatTypeResponse", } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2656,19 +2895,19 @@ def get_vat_type_with_http_info( response_types_map=_response_types_map, ) + @validate_call def get_vat_type_without_preload_content( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - vat_type_id: Annotated[ - StrictInt, Field(description="The Referred Vat Type Id.") - ], + vat_type_id: Annotated[StrictInt, Field(description="The Referred Vat Type Id.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2703,7 +2942,7 @@ def get_vat_type_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_vat_type_serialize( company_id=company_id, @@ -2711,17 +2950,24 @@ def get_vat_type_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetVatTypeResponse", + '200': "GetVatTypeResponse", } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _get_vat_type_serialize( self, company_id, @@ -2734,7 +2980,8 @@ def _get_vat_type_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -2747,26 +2994,32 @@ def _get_vat_type_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id if vat_type_id is not None: - _path_params["vat_type_id"] = vat_type_id + _path_params['vat_type_id'] = vat_type_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/c/{company_id}/settings/vat_types/{vat_type_id}", + method='GET', + resource_path='/c/{company_id}/settings/vat_types/{vat_type_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2776,23 +3029,25 @@ def _get_vat_type_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def modify_payment_account( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - payment_account_id: Annotated[ - StrictInt, Field(description="The Referred Payment Account Id.") - ], + payment_account_id: Annotated[StrictInt, Field(description="The Referred Payment Account Id.")], modify_payment_account_request: Optional[ModifyPaymentAccountRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2829,7 +3084,7 @@ def modify_payment_account( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._modify_payment_account_serialize( company_id=company_id, @@ -2838,14 +3093,20 @@ def modify_payment_account( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ModifyPaymentAccountResponse", + '200': "ModifyPaymentAccountResponse", } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2853,20 +3114,20 @@ def modify_payment_account( response_types_map=_response_types_map, ).data + @validate_call def modify_payment_account_with_http_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - payment_account_id: Annotated[ - StrictInt, Field(description="The Referred Payment Account Id.") - ], + payment_account_id: Annotated[StrictInt, Field(description="The Referred Payment Account Id.")], modify_payment_account_request: Optional[ModifyPaymentAccountRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2903,7 +3164,7 @@ def modify_payment_account_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._modify_payment_account_serialize( company_id=company_id, @@ -2912,14 +3173,20 @@ def modify_payment_account_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ModifyPaymentAccountResponse", + '200': "ModifyPaymentAccountResponse", } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2927,20 +3194,20 @@ def modify_payment_account_with_http_info( response_types_map=_response_types_map, ) + @validate_call def modify_payment_account_without_preload_content( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - payment_account_id: Annotated[ - StrictInt, Field(description="The Referred Payment Account Id.") - ], + payment_account_id: Annotated[StrictInt, Field(description="The Referred Payment Account Id.")], modify_payment_account_request: Optional[ModifyPaymentAccountRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2977,7 +3244,7 @@ def modify_payment_account_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._modify_payment_account_serialize( company_id=company_id, @@ -2986,17 +3253,24 @@ def modify_payment_account_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ModifyPaymentAccountResponse", + '200': "ModifyPaymentAccountResponse", } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _modify_payment_account_serialize( self, company_id, @@ -3010,7 +3284,8 @@ def _modify_payment_account_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -3023,9 +3298,9 @@ def _modify_payment_account_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id if payment_account_id is not None: - _path_params["payment_account_id"] = payment_account_id + _path_params['payment_account_id'] = payment_account_id # process the query parameters # process the header parameters # process the form parameters @@ -3033,28 +3308,37 @@ def _modify_payment_account_serialize( if modify_payment_account_request is not None: _body_params = modify_payment_account_request + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) # set the HTTP header `Content-Type` if _content_type: - _header_params["Content-Type"] = _content_type + _header_params['Content-Type'] = _content_type else: - _default_content_type = self.api_client.select_header_content_type( - ["application/json"] + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) ) if _default_content_type is not None: - _header_params["Content-Type"] = _default_content_type + _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="PUT", - resource_path="/c/{company_id}/settings/payment_accounts/{payment_account_id}", + method='PUT', + resource_path='/c/{company_id}/settings/payment_accounts/{payment_account_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3064,23 +3348,25 @@ def _modify_payment_account_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def modify_payment_method( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - payment_method_id: Annotated[ - StrictInt, Field(description="The Referred Payment Method Id.") - ], + payment_method_id: Annotated[StrictInt, Field(description="The Referred Payment Method Id.")], modify_payment_method_request: Optional[ModifyPaymentMethodRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3095,7 +3381,7 @@ def modify_payment_method( :type company_id: int :param payment_method_id: The Referred Payment Method Id. (required) :type payment_method_id: int - :param modify_payment_method_request: + :param modify_payment_method_request: :type modify_payment_method_request: ModifyPaymentMethodRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -3117,7 +3403,7 @@ def modify_payment_method( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._modify_payment_method_serialize( company_id=company_id, @@ -3126,14 +3412,20 @@ def modify_payment_method( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ModifyPaymentMethodResponse", + '200': "ModifyPaymentMethodResponse", } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -3141,20 +3433,20 @@ def modify_payment_method( response_types_map=_response_types_map, ).data + @validate_call def modify_payment_method_with_http_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - payment_method_id: Annotated[ - StrictInt, Field(description="The Referred Payment Method Id.") - ], + payment_method_id: Annotated[StrictInt, Field(description="The Referred Payment Method Id.")], modify_payment_method_request: Optional[ModifyPaymentMethodRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3169,7 +3461,7 @@ def modify_payment_method_with_http_info( :type company_id: int :param payment_method_id: The Referred Payment Method Id. (required) :type payment_method_id: int - :param modify_payment_method_request: + :param modify_payment_method_request: :type modify_payment_method_request: ModifyPaymentMethodRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -3191,7 +3483,7 @@ def modify_payment_method_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._modify_payment_method_serialize( company_id=company_id, @@ -3200,14 +3492,20 @@ def modify_payment_method_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ModifyPaymentMethodResponse", + '200': "ModifyPaymentMethodResponse", } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -3215,20 +3513,20 @@ def modify_payment_method_with_http_info( response_types_map=_response_types_map, ) + @validate_call def modify_payment_method_without_preload_content( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - payment_method_id: Annotated[ - StrictInt, Field(description="The Referred Payment Method Id.") - ], + payment_method_id: Annotated[StrictInt, Field(description="The Referred Payment Method Id.")], modify_payment_method_request: Optional[ModifyPaymentMethodRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3243,7 +3541,7 @@ def modify_payment_method_without_preload_content( :type company_id: int :param payment_method_id: The Referred Payment Method Id. (required) :type payment_method_id: int - :param modify_payment_method_request: + :param modify_payment_method_request: :type modify_payment_method_request: ModifyPaymentMethodRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -3265,7 +3563,7 @@ def modify_payment_method_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._modify_payment_method_serialize( company_id=company_id, @@ -3274,17 +3572,24 @@ def modify_payment_method_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ModifyPaymentMethodResponse", + '200': "ModifyPaymentMethodResponse", } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _modify_payment_method_serialize( self, company_id, @@ -3298,7 +3603,8 @@ def _modify_payment_method_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -3311,9 +3617,9 @@ def _modify_payment_method_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id if payment_method_id is not None: - _path_params["payment_method_id"] = payment_method_id + _path_params['payment_method_id'] = payment_method_id # process the query parameters # process the header parameters # process the form parameters @@ -3321,28 +3627,37 @@ def _modify_payment_method_serialize( if modify_payment_method_request is not None: _body_params = modify_payment_method_request + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) # set the HTTP header `Content-Type` if _content_type: - _header_params["Content-Type"] = _content_type + _header_params['Content-Type'] = _content_type else: - _default_content_type = self.api_client.select_header_content_type( - ["application/json"] + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) ) if _default_content_type is not None: - _header_params["Content-Type"] = _default_content_type + _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="PUT", - resource_path="/c/{company_id}/settings/payment_methods/{payment_method_id}", + method='PUT', + resource_path='/c/{company_id}/settings/payment_methods/{payment_method_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3352,23 +3667,25 @@ def _modify_payment_method_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def modify_vat_type( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - vat_type_id: Annotated[ - StrictInt, Field(description="The Referred Vat Type Id.") - ], + vat_type_id: Annotated[StrictInt, Field(description="The Referred Vat Type Id.")], modify_vat_type_request: Optional[ModifyVatTypeRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3405,7 +3722,7 @@ def modify_vat_type( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._modify_vat_type_serialize( company_id=company_id, @@ -3414,14 +3731,20 @@ def modify_vat_type( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ModifyVatTypeResponse", + '200': "ModifyVatTypeResponse", } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -3429,20 +3752,20 @@ def modify_vat_type( response_types_map=_response_types_map, ).data + @validate_call def modify_vat_type_with_http_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - vat_type_id: Annotated[ - StrictInt, Field(description="The Referred Vat Type Id.") - ], + vat_type_id: Annotated[StrictInt, Field(description="The Referred Vat Type Id.")], modify_vat_type_request: Optional[ModifyVatTypeRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3479,7 +3802,7 @@ def modify_vat_type_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._modify_vat_type_serialize( company_id=company_id, @@ -3488,14 +3811,20 @@ def modify_vat_type_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ModifyVatTypeResponse", + '200': "ModifyVatTypeResponse", } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -3503,20 +3832,20 @@ def modify_vat_type_with_http_info( response_types_map=_response_types_map, ) + @validate_call def modify_vat_type_without_preload_content( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - vat_type_id: Annotated[ - StrictInt, Field(description="The Referred Vat Type Id.") - ], + vat_type_id: Annotated[StrictInt, Field(description="The Referred Vat Type Id.")], modify_vat_type_request: Optional[ModifyVatTypeRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3553,7 +3882,7 @@ def modify_vat_type_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._modify_vat_type_serialize( company_id=company_id, @@ -3562,17 +3891,24 @@ def modify_vat_type_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ModifyVatTypeResponse", + '200': "ModifyVatTypeResponse", } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _modify_vat_type_serialize( self, company_id, @@ -3586,7 +3922,8 @@ def _modify_vat_type_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -3599,9 +3936,9 @@ def _modify_vat_type_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id if vat_type_id is not None: - _path_params["vat_type_id"] = vat_type_id + _path_params['vat_type_id'] = vat_type_id # process the query parameters # process the header parameters # process the form parameters @@ -3609,28 +3946,37 @@ def _modify_vat_type_serialize( if modify_vat_type_request is not None: _body_params = modify_vat_type_request + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) # set the HTTP header `Content-Type` if _content_type: - _header_params["Content-Type"] = _content_type + _header_params['Content-Type'] = _content_type else: - _default_content_type = self.api_client.select_header_content_type( - ["application/json"] + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) ) if _default_content_type is not None: - _header_params["Content-Type"] = _default_content_type + _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="PUT", - resource_path="/c/{company_id}/settings/vat_types/{vat_type_id}", + method='PUT', + resource_path='/c/{company_id}/settings/vat_types/{vat_type_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3640,5 +3986,7 @@ def _modify_vat_type_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/fattureincloud_python_sdk/api/suppliers_api.py b/fattureincloud_python_sdk/api/suppliers_api.py index 0144c7b8..29cea351 100644 --- a/fattureincloud_python_sdk/api/suppliers_api.py +++ b/fattureincloud_python_sdk/api/suppliers_api.py @@ -1,17 +1,16 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 - import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union @@ -20,22 +19,12 @@ 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, -) -from fattureincloud_python_sdk.models.create_supplier_response import ( - CreateSupplierResponse, -) +from fattureincloud_python_sdk.models.create_supplier_request import CreateSupplierRequest +from fattureincloud_python_sdk.models.create_supplier_response import CreateSupplierResponse from fattureincloud_python_sdk.models.get_supplier_response import GetSupplierResponse -from fattureincloud_python_sdk.models.list_suppliers_response import ( - ListSuppliersResponse, -) -from fattureincloud_python_sdk.models.modify_supplier_request import ( - ModifySupplierRequest, -) -from fattureincloud_python_sdk.models.modify_supplier_response import ( - ModifySupplierResponse, -) +from fattureincloud_python_sdk.models.list_suppliers_response import ListSuppliersResponse +from fattureincloud_python_sdk.models.modify_supplier_request import ModifySupplierRequest +from fattureincloud_python_sdk.models.modify_supplier_response import ModifySupplierResponse from fattureincloud_python_sdk.api_client import ApiClient, RequestSerialized from fattureincloud_python_sdk.api_response import ApiResponse @@ -54,19 +43,19 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def create_supplier( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - create_supplier_request: Annotated[ - Optional[CreateSupplierRequest], Field(description="The supplier to create") - ] = None, + create_supplier_request: Annotated[Optional[CreateSupplierRequest], Field(description="The supplier to create")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -101,7 +90,7 @@ def create_supplier( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_supplier_serialize( company_id=company_id, @@ -109,14 +98,20 @@ def create_supplier( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateSupplierResponse", + '200': "CreateSupplierResponse", } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -124,19 +119,19 @@ def create_supplier( response_types_map=_response_types_map, ).data + @validate_call def create_supplier_with_http_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - create_supplier_request: Annotated[ - Optional[CreateSupplierRequest], Field(description="The supplier to create") - ] = None, + create_supplier_request: Annotated[Optional[CreateSupplierRequest], Field(description="The supplier to create")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -171,7 +166,7 @@ def create_supplier_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_supplier_serialize( company_id=company_id, @@ -179,14 +174,20 @@ def create_supplier_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateSupplierResponse", + '200': "CreateSupplierResponse", } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -194,19 +195,19 @@ def create_supplier_with_http_info( response_types_map=_response_types_map, ) + @validate_call def create_supplier_without_preload_content( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - create_supplier_request: Annotated[ - Optional[CreateSupplierRequest], Field(description="The supplier to create") - ] = None, + create_supplier_request: Annotated[Optional[CreateSupplierRequest], Field(description="The supplier to create")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -241,7 +242,7 @@ def create_supplier_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_supplier_serialize( company_id=company_id, @@ -249,17 +250,24 @@ def create_supplier_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateSupplierResponse", + '200': "CreateSupplierResponse", } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _create_supplier_serialize( self, company_id, @@ -272,7 +280,8 @@ def _create_supplier_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -285,7 +294,7 @@ def _create_supplier_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id # process the query parameters # process the header parameters # process the form parameters @@ -293,28 +302,37 @@ def _create_supplier_serialize( if create_supplier_request is not None: _body_params = create_supplier_request + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) # set the HTTP header `Content-Type` if _content_type: - _header_params["Content-Type"] = _content_type + _header_params['Content-Type'] = _content_type else: - _default_content_type = self.api_client.select_header_content_type( - ["application/json"] + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) ) if _default_content_type is not None: - _header_params["Content-Type"] = _default_content_type + _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/c/{company_id}/entities/suppliers", + method='POST', + resource_path='/c/{company_id}/entities/suppliers', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -324,9 +342,12 @@ def _create_supplier_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def delete_supplier( self, @@ -336,8 +357,9 @@ def delete_supplier( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -372,7 +394,7 @@ def delete_supplier( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_supplier_serialize( company_id=company_id, @@ -380,16 +402,22 @@ def delete_supplier( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": None, - "401": None, - "404": None, + '200': None, + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -397,6 +425,7 @@ def delete_supplier( response_types_map=_response_types_map, ).data + @validate_call def delete_supplier_with_http_info( self, @@ -406,8 +435,9 @@ def delete_supplier_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -442,7 +472,7 @@ def delete_supplier_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_supplier_serialize( company_id=company_id, @@ -450,16 +480,22 @@ def delete_supplier_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": None, - "401": None, - "404": None, + '200': None, + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -467,6 +503,7 @@ def delete_supplier_with_http_info( response_types_map=_response_types_map, ) + @validate_call def delete_supplier_without_preload_content( self, @@ -476,8 +513,9 @@ def delete_supplier_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -512,7 +550,7 @@ def delete_supplier_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_supplier_serialize( company_id=company_id, @@ -520,19 +558,26 @@ def delete_supplier_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": None, - "401": None, - "404": None, + '200': None, + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _delete_supplier_serialize( self, company_id, @@ -545,7 +590,8 @@ def _delete_supplier_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -558,20 +604,25 @@ def _delete_supplier_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id if supplier_id is not None: - _path_params["supplier_id"] = supplier_id + _path_params['supplier_id'] = supplier_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + + + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="DELETE", - resource_path="/c/{company_id}/entities/suppliers/{supplier_id}", + method='DELETE', + resource_path='/c/{company_id}/entities/suppliers/{supplier_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -581,26 +632,26 @@ def _delete_supplier_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def get_supplier( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], supplier_id: Annotated[StrictInt, Field(description="The ID of the supplier.")], - fields: Annotated[ - Optional[StrictStr], Field(description="List of comma-separated fields.") - ] = None, - fieldset: Annotated[ - Optional[StrictStr], Field(description="Name of the fieldset.") - ] = None, + fields: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields.")] = None, + fieldset: Annotated[Optional[StrictStr], Field(description="Name of the fieldset.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -639,7 +690,7 @@ def get_supplier( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_supplier_serialize( company_id=company_id, @@ -649,16 +700,22 @@ def get_supplier( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetSupplierResponse", - "401": None, - "404": None, + '200': "GetSupplierResponse", + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -666,23 +723,21 @@ def get_supplier( response_types_map=_response_types_map, ).data + @validate_call def get_supplier_with_http_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], supplier_id: Annotated[StrictInt, Field(description="The ID of the supplier.")], - fields: Annotated[ - Optional[StrictStr], Field(description="List of comma-separated fields.") - ] = None, - fieldset: Annotated[ - Optional[StrictStr], Field(description="Name of the fieldset.") - ] = None, + fields: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields.")] = None, + fieldset: Annotated[Optional[StrictStr], Field(description="Name of the fieldset.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -721,7 +776,7 @@ def get_supplier_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_supplier_serialize( company_id=company_id, @@ -731,16 +786,22 @@ def get_supplier_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetSupplierResponse", - "401": None, - "404": None, + '200': "GetSupplierResponse", + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -748,23 +809,21 @@ def get_supplier_with_http_info( response_types_map=_response_types_map, ) + @validate_call def get_supplier_without_preload_content( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], supplier_id: Annotated[StrictInt, Field(description="The ID of the supplier.")], - fields: Annotated[ - Optional[StrictStr], Field(description="List of comma-separated fields.") - ] = None, - fieldset: Annotated[ - Optional[StrictStr], Field(description="Name of the fieldset.") - ] = None, + fields: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields.")] = None, + fieldset: Annotated[Optional[StrictStr], Field(description="Name of the fieldset.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -803,7 +862,7 @@ def get_supplier_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_supplier_serialize( company_id=company_id, @@ -813,19 +872,26 @@ def get_supplier_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetSupplierResponse", - "401": None, - "404": None, + '200': "GetSupplierResponse", + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _get_supplier_serialize( self, company_id, @@ -840,7 +906,8 @@ def _get_supplier_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -853,34 +920,40 @@ def _get_supplier_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id if supplier_id is not None: - _path_params["supplier_id"] = supplier_id + _path_params['supplier_id'] = supplier_id # process the query parameters if fields is not None: - - _query_params.append(("fields", fields)) - + + _query_params.append(('fields', fields)) + if fieldset is not None: - - _query_params.append(("fieldset", fieldset)) - + + _query_params.append(('fieldset', fieldset)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/c/{company_id}/entities/suppliers/{supplier_id}", + method='GET', + resource_path='/c/{company_id}/entities/suppliers/{supplier_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -890,41 +963,29 @@ def _get_supplier_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def list_suppliers( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - fields: Annotated[ - Optional[StrictStr], Field(description="List of comma-separated fields.") - ] = None, - fieldset: Annotated[ - Optional[StrictStr], Field(description="Name of the fieldset.") - ] = None, - sort: Annotated[ - Optional[StrictStr], - Field( - description="List of comma-separated fields for result sorting (minus for desc sorting)." - ), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="The page to retrieve.") - ] = None, - per_page: Annotated[ - Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], - Field(description="The size of the page."), - ] = None, - q: Annotated[ - Optional[StrictStr], Field(description="Query for filtering the results.") - ] = None, + fields: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields.")] = None, + fieldset: Annotated[Optional[StrictStr], Field(description="Name of the fieldset.")] = None, + sort: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields for result sorting (minus for desc sorting).")] = None, + page: Annotated[Optional[StrictInt], Field(description="The page to retrieve.")] = None, + per_page: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="The size of the page.")] = None, + q: Annotated[Optional[StrictStr], Field(description="Query for filtering the results.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -969,7 +1030,7 @@ def list_suppliers( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_suppliers_serialize( company_id=company_id, @@ -982,15 +1043,21 @@ def list_suppliers( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListSuppliersResponse", - "401": None, + '200': "ListSuppliersResponse", + '401': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -998,38 +1065,24 @@ def list_suppliers( response_types_map=_response_types_map, ).data + @validate_call def list_suppliers_with_http_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - fields: Annotated[ - Optional[StrictStr], Field(description="List of comma-separated fields.") - ] = None, - fieldset: Annotated[ - Optional[StrictStr], Field(description="Name of the fieldset.") - ] = None, - sort: Annotated[ - Optional[StrictStr], - Field( - description="List of comma-separated fields for result sorting (minus for desc sorting)." - ), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="The page to retrieve.") - ] = None, - per_page: Annotated[ - Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], - Field(description="The size of the page."), - ] = None, - q: Annotated[ - Optional[StrictStr], Field(description="Query for filtering the results.") - ] = None, + fields: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields.")] = None, + fieldset: Annotated[Optional[StrictStr], Field(description="Name of the fieldset.")] = None, + sort: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields for result sorting (minus for desc sorting).")] = None, + page: Annotated[Optional[StrictInt], Field(description="The page to retrieve.")] = None, + per_page: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="The size of the page.")] = None, + q: Annotated[Optional[StrictStr], Field(description="Query for filtering the results.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1074,7 +1127,7 @@ def list_suppliers_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_suppliers_serialize( company_id=company_id, @@ -1087,15 +1140,21 @@ def list_suppliers_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListSuppliersResponse", - "401": None, + '200': "ListSuppliersResponse", + '401': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1103,38 +1162,24 @@ def list_suppliers_with_http_info( response_types_map=_response_types_map, ) + @validate_call def list_suppliers_without_preload_content( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - fields: Annotated[ - Optional[StrictStr], Field(description="List of comma-separated fields.") - ] = None, - fieldset: Annotated[ - Optional[StrictStr], Field(description="Name of the fieldset.") - ] = None, - sort: Annotated[ - Optional[StrictStr], - Field( - description="List of comma-separated fields for result sorting (minus for desc sorting)." - ), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="The page to retrieve.") - ] = None, - per_page: Annotated[ - Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], - Field(description="The size of the page."), - ] = None, - q: Annotated[ - Optional[StrictStr], Field(description="Query for filtering the results.") - ] = None, + fields: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields.")] = None, + fieldset: Annotated[Optional[StrictStr], Field(description="Name of the fieldset.")] = None, + sort: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields for result sorting (minus for desc sorting).")] = None, + page: Annotated[Optional[StrictInt], Field(description="The page to retrieve.")] = None, + per_page: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="The size of the page.")] = None, + q: Annotated[Optional[StrictStr], Field(description="Query for filtering the results.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1179,7 +1224,7 @@ def list_suppliers_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_suppliers_serialize( company_id=company_id, @@ -1192,18 +1237,25 @@ def list_suppliers_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListSuppliersResponse", - "401": None, + '200': "ListSuppliersResponse", + '401': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _list_suppliers_serialize( self, company_id, @@ -1221,7 +1273,8 @@ def _list_suppliers_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1234,48 +1287,54 @@ def _list_suppliers_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id # process the query parameters if fields is not None: - - _query_params.append(("fields", fields)) - + + _query_params.append(('fields', fields)) + if fieldset is not None: - - _query_params.append(("fieldset", fieldset)) - + + _query_params.append(('fieldset', fieldset)) + if sort is not None: - - _query_params.append(("sort", sort)) - + + _query_params.append(('sort', sort)) + if page is not None: - - _query_params.append(("page", page)) - + + _query_params.append(('page', page)) + if per_page is not None: - - _query_params.append(("per_page", per_page)) - + + _query_params.append(('per_page', per_page)) + if q is not None: - - _query_params.append(("q", q)) - + + _query_params.append(('q', q)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/c/{company_id}/entities/suppliers", + method='GET', + resource_path='/c/{company_id}/entities/suppliers', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1285,26 +1344,25 @@ def _list_suppliers_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def modify_supplier( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], supplier_id: Annotated[StrictInt, Field(description="The ID of the supplier.")], - modify_supplier_request: Annotated[ - Optional[ModifySupplierRequest], - Field( - description="The modified Supplier. First level parameters are managed in delta mode." - ), - ] = None, + modify_supplier_request: Annotated[Optional[ModifySupplierRequest], Field(description="The modified Supplier. First level parameters are managed in delta mode.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1341,7 +1399,7 @@ def modify_supplier( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._modify_supplier_serialize( company_id=company_id, @@ -1350,16 +1408,22 @@ def modify_supplier( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ModifySupplierResponse", - "401": None, - "404": None, + '200': "ModifySupplierResponse", + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1367,23 +1431,20 @@ def modify_supplier( response_types_map=_response_types_map, ).data + @validate_call def modify_supplier_with_http_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], supplier_id: Annotated[StrictInt, Field(description="The ID of the supplier.")], - modify_supplier_request: Annotated[ - Optional[ModifySupplierRequest], - Field( - description="The modified Supplier. First level parameters are managed in delta mode." - ), - ] = None, + modify_supplier_request: Annotated[Optional[ModifySupplierRequest], Field(description="The modified Supplier. First level parameters are managed in delta mode.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1420,7 +1481,7 @@ def modify_supplier_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._modify_supplier_serialize( company_id=company_id, @@ -1429,16 +1490,22 @@ def modify_supplier_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ModifySupplierResponse", - "401": None, - "404": None, + '200': "ModifySupplierResponse", + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1446,23 +1513,20 @@ def modify_supplier_with_http_info( response_types_map=_response_types_map, ) + @validate_call def modify_supplier_without_preload_content( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], supplier_id: Annotated[StrictInt, Field(description="The ID of the supplier.")], - modify_supplier_request: Annotated[ - Optional[ModifySupplierRequest], - Field( - description="The modified Supplier. First level parameters are managed in delta mode." - ), - ] = None, + modify_supplier_request: Annotated[Optional[ModifySupplierRequest], Field(description="The modified Supplier. First level parameters are managed in delta mode.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1499,7 +1563,7 @@ def modify_supplier_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._modify_supplier_serialize( company_id=company_id, @@ -1508,19 +1572,26 @@ def modify_supplier_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ModifySupplierResponse", - "401": None, - "404": None, + '200': "ModifySupplierResponse", + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _modify_supplier_serialize( self, company_id, @@ -1534,7 +1605,8 @@ def _modify_supplier_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1547,9 +1619,9 @@ def _modify_supplier_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id if supplier_id is not None: - _path_params["supplier_id"] = supplier_id + _path_params['supplier_id'] = supplier_id # process the query parameters # process the header parameters # process the form parameters @@ -1557,28 +1629,37 @@ def _modify_supplier_serialize( if modify_supplier_request is not None: _body_params = modify_supplier_request + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) # set the HTTP header `Content-Type` if _content_type: - _header_params["Content-Type"] = _content_type + _header_params['Content-Type'] = _content_type else: - _default_content_type = self.api_client.select_header_content_type( - ["application/json"] + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) ) if _default_content_type is not None: - _header_params["Content-Type"] = _default_content_type + _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="PUT", - resource_path="/c/{company_id}/entities/suppliers/{supplier_id}", + method='PUT', + resource_path='/c/{company_id}/entities/suppliers/{supplier_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1588,5 +1669,7 @@ def _modify_supplier_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/fattureincloud_python_sdk/api/taxes_api.py b/fattureincloud_python_sdk/api/taxes_api.py index ca8fce7c..e2dc371d 100644 --- a/fattureincloud_python_sdk/api/taxes_api.py +++ b/fattureincloud_python_sdk/api/taxes_api.py @@ -1,17 +1,16 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 - import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union @@ -26,9 +25,7 @@ from fattureincloud_python_sdk.models.list_f24_response import ListF24Response from fattureincloud_python_sdk.models.modify_f24_request import ModifyF24Request from fattureincloud_python_sdk.models.modify_f24_response import ModifyF24Response -from fattureincloud_python_sdk.models.upload_f24_attachment_response import ( - UploadF24AttachmentResponse, -) +from fattureincloud_python_sdk.models.upload_f24_attachment_response import UploadF24AttachmentResponse from fattureincloud_python_sdk.api_client import ApiClient, RequestSerialized from fattureincloud_python_sdk.api_response import ApiResponse @@ -47,19 +44,19 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def create_f24( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - create_f24_request: Annotated[ - Optional[CreateF24Request], Field(description="The F24 to create") - ] = None, + create_f24_request: Annotated[Optional[CreateF24Request], Field(description="The F24 to create")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -94,7 +91,7 @@ def create_f24( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_f24_serialize( company_id=company_id, @@ -102,16 +99,22 @@ def create_f24( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateF24Response", - "401": None, - "404": None, + '200': "CreateF24Response", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -119,19 +122,19 @@ def create_f24( response_types_map=_response_types_map, ).data + @validate_call def create_f24_with_http_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - create_f24_request: Annotated[ - Optional[CreateF24Request], Field(description="The F24 to create") - ] = None, + create_f24_request: Annotated[Optional[CreateF24Request], Field(description="The F24 to create")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -166,7 +169,7 @@ def create_f24_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_f24_serialize( company_id=company_id, @@ -174,16 +177,22 @@ def create_f24_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateF24Response", - "401": None, - "404": None, + '200': "CreateF24Response", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -191,19 +200,19 @@ def create_f24_with_http_info( response_types_map=_response_types_map, ) + @validate_call def create_f24_without_preload_content( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - create_f24_request: Annotated[ - Optional[CreateF24Request], Field(description="The F24 to create") - ] = None, + create_f24_request: Annotated[Optional[CreateF24Request], Field(description="The F24 to create")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -238,7 +247,7 @@ def create_f24_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_f24_serialize( company_id=company_id, @@ -246,19 +255,26 @@ def create_f24_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateF24Response", - "401": None, - "404": None, + '200': "CreateF24Response", + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _create_f24_serialize( self, company_id, @@ -271,7 +287,8 @@ def _create_f24_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -284,7 +301,7 @@ def _create_f24_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id # process the query parameters # process the header parameters # process the form parameters @@ -292,28 +309,37 @@ def _create_f24_serialize( if create_f24_request is not None: _body_params = create_f24_request + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) # set the HTTP header `Content-Type` if _content_type: - _header_params["Content-Type"] = _content_type + _header_params['Content-Type'] = _content_type else: - _default_content_type = self.api_client.select_header_content_type( - ["application/json"] + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) ) if _default_content_type is not None: - _header_params["Content-Type"] = _default_content_type + _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/c/{company_id}/taxes", + method='POST', + resource_path='/c/{company_id}/taxes', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -323,9 +349,12 @@ def _create_f24_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def delete_f24( self, @@ -335,8 +364,9 @@ def delete_f24( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -371,7 +401,7 @@ def delete_f24( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_f24_serialize( company_id=company_id, @@ -379,16 +409,22 @@ def delete_f24( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": None, - "401": None, - "404": None, + '200': None, + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -396,6 +432,7 @@ def delete_f24( response_types_map=_response_types_map, ).data + @validate_call def delete_f24_with_http_info( self, @@ -405,8 +442,9 @@ def delete_f24_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -441,7 +479,7 @@ def delete_f24_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_f24_serialize( company_id=company_id, @@ -449,16 +487,22 @@ def delete_f24_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": None, - "401": None, - "404": None, + '200': None, + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -466,6 +510,7 @@ def delete_f24_with_http_info( response_types_map=_response_types_map, ) + @validate_call def delete_f24_without_preload_content( self, @@ -475,8 +520,9 @@ def delete_f24_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -511,7 +557,7 @@ def delete_f24_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_f24_serialize( company_id=company_id, @@ -519,19 +565,26 @@ def delete_f24_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": None, - "401": None, - "404": None, + '200': None, + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _delete_f24_serialize( self, company_id, @@ -544,7 +597,8 @@ def _delete_f24_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -557,20 +611,25 @@ def _delete_f24_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id if document_id is not None: - _path_params["document_id"] = document_id + _path_params['document_id'] = document_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + + + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="DELETE", - resource_path="/c/{company_id}/taxes/{document_id}", + method='DELETE', + resource_path='/c/{company_id}/taxes/{document_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -580,9 +639,12 @@ def _delete_f24_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def delete_f24_attachment( self, @@ -592,8 +654,9 @@ def delete_f24_attachment( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -628,7 +691,7 @@ def delete_f24_attachment( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_f24_attachment_serialize( company_id=company_id, @@ -636,16 +699,22 @@ def delete_f24_attachment( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": None, - "401": None, - "404": None, + '200': None, + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -653,6 +722,7 @@ def delete_f24_attachment( response_types_map=_response_types_map, ).data + @validate_call def delete_f24_attachment_with_http_info( self, @@ -662,8 +732,9 @@ def delete_f24_attachment_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -698,7 +769,7 @@ def delete_f24_attachment_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_f24_attachment_serialize( company_id=company_id, @@ -706,16 +777,22 @@ def delete_f24_attachment_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": None, - "401": None, - "404": None, + '200': None, + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -723,6 +800,7 @@ def delete_f24_attachment_with_http_info( response_types_map=_response_types_map, ) + @validate_call def delete_f24_attachment_without_preload_content( self, @@ -732,8 +810,9 @@ def delete_f24_attachment_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -768,7 +847,7 @@ def delete_f24_attachment_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_f24_attachment_serialize( company_id=company_id, @@ -776,19 +855,26 @@ def delete_f24_attachment_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": None, - "401": None, - "404": None, + '200': None, + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _delete_f24_attachment_serialize( self, company_id, @@ -801,7 +887,8 @@ def _delete_f24_attachment_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -814,20 +901,25 @@ def _delete_f24_attachment_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id if document_id is not None: - _path_params["document_id"] = document_id + _path_params['document_id'] = document_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + + + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="DELETE", - resource_path="/c/{company_id}/taxes/{document_id}/attachment", + method='DELETE', + resource_path='/c/{company_id}/taxes/{document_id}/attachment', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -837,26 +929,26 @@ def _delete_f24_attachment_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def get_f24( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], document_id: Annotated[StrictInt, Field(description="The ID of the document.")], - fields: Annotated[ - Optional[StrictStr], Field(description="List of comma-separated fields.") - ] = None, - fieldset: Annotated[ - Optional[StrictStr], Field(description="Name of the fieldset.") - ] = None, + fields: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields.")] = None, + fieldset: Annotated[Optional[StrictStr], Field(description="Name of the fieldset.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -895,7 +987,7 @@ def get_f24( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_f24_serialize( company_id=company_id, @@ -905,16 +997,22 @@ def get_f24( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetF24Response", - "401": None, - "404": None, + '200': "GetF24Response", + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -922,23 +1020,21 @@ def get_f24( response_types_map=_response_types_map, ).data + @validate_call def get_f24_with_http_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], document_id: Annotated[StrictInt, Field(description="The ID of the document.")], - fields: Annotated[ - Optional[StrictStr], Field(description="List of comma-separated fields.") - ] = None, - fieldset: Annotated[ - Optional[StrictStr], Field(description="Name of the fieldset.") - ] = None, + fields: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields.")] = None, + fieldset: Annotated[Optional[StrictStr], Field(description="Name of the fieldset.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -977,7 +1073,7 @@ def get_f24_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_f24_serialize( company_id=company_id, @@ -987,16 +1083,22 @@ def get_f24_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetF24Response", - "401": None, - "404": None, + '200': "GetF24Response", + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1004,23 +1106,21 @@ def get_f24_with_http_info( response_types_map=_response_types_map, ) + @validate_call def get_f24_without_preload_content( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], document_id: Annotated[StrictInt, Field(description="The ID of the document.")], - fields: Annotated[ - Optional[StrictStr], Field(description="List of comma-separated fields.") - ] = None, - fieldset: Annotated[ - Optional[StrictStr], Field(description="Name of the fieldset.") - ] = None, + fields: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields.")] = None, + fieldset: Annotated[Optional[StrictStr], Field(description="Name of the fieldset.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1059,7 +1159,7 @@ def get_f24_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_f24_serialize( company_id=company_id, @@ -1069,19 +1169,26 @@ def get_f24_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetF24Response", - "401": None, - "404": None, + '200': "GetF24Response", + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _get_f24_serialize( self, company_id, @@ -1096,7 +1203,8 @@ def _get_f24_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1109,34 +1217,40 @@ def _get_f24_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id if document_id is not None: - _path_params["document_id"] = document_id + _path_params['document_id'] = document_id # process the query parameters if fields is not None: - - _query_params.append(("fields", fields)) - + + _query_params.append(('fields', fields)) + if fieldset is not None: - - _query_params.append(("fieldset", fieldset)) - + + _query_params.append(('fieldset', fieldset)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/c/{company_id}/taxes/{document_id}", + method='GET', + resource_path='/c/{company_id}/taxes/{document_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1146,41 +1260,29 @@ def _get_f24_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def list_f24( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - fields: Annotated[ - Optional[StrictStr], Field(description="List of comma-separated fields.") - ] = None, - fieldset: Annotated[ - Optional[StrictStr], Field(description="Name of the fieldset.") - ] = None, - sort: Annotated[ - Optional[StrictStr], - Field( - description="List of comma-separated fields for result sorting (minus for desc sorting)." - ), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="The page to retrieve.") - ] = None, - per_page: Annotated[ - Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], - Field(description="The size of the page."), - ] = None, - q: Annotated[ - Optional[StrictStr], Field(description="Query for filtering the results.") - ] = None, + fields: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields.")] = None, + fieldset: Annotated[Optional[StrictStr], Field(description="Name of the fieldset.")] = None, + sort: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields for result sorting (minus for desc sorting).")] = None, + page: Annotated[Optional[StrictInt], Field(description="The page to retrieve.")] = None, + per_page: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="The size of the page.")] = None, + q: Annotated[Optional[StrictStr], Field(description="Query for filtering the results.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1225,7 +1327,7 @@ def list_f24( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_f24_serialize( company_id=company_id, @@ -1238,15 +1340,21 @@ def list_f24( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListF24Response", - "401": None, + '200': "ListF24Response", + '401': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1254,38 +1362,24 @@ def list_f24( response_types_map=_response_types_map, ).data + @validate_call def list_f24_with_http_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - fields: Annotated[ - Optional[StrictStr], Field(description="List of comma-separated fields.") - ] = None, - fieldset: Annotated[ - Optional[StrictStr], Field(description="Name of the fieldset.") - ] = None, - sort: Annotated[ - Optional[StrictStr], - Field( - description="List of comma-separated fields for result sorting (minus for desc sorting)." - ), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="The page to retrieve.") - ] = None, - per_page: Annotated[ - Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], - Field(description="The size of the page."), - ] = None, - q: Annotated[ - Optional[StrictStr], Field(description="Query for filtering the results.") - ] = None, + fields: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields.")] = None, + fieldset: Annotated[Optional[StrictStr], Field(description="Name of the fieldset.")] = None, + sort: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields for result sorting (minus for desc sorting).")] = None, + page: Annotated[Optional[StrictInt], Field(description="The page to retrieve.")] = None, + per_page: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="The size of the page.")] = None, + q: Annotated[Optional[StrictStr], Field(description="Query for filtering the results.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1330,7 +1424,7 @@ def list_f24_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_f24_serialize( company_id=company_id, @@ -1343,15 +1437,21 @@ def list_f24_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListF24Response", - "401": None, + '200': "ListF24Response", + '401': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1359,38 +1459,24 @@ def list_f24_with_http_info( response_types_map=_response_types_map, ) + @validate_call def list_f24_without_preload_content( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - fields: Annotated[ - Optional[StrictStr], Field(description="List of comma-separated fields.") - ] = None, - fieldset: Annotated[ - Optional[StrictStr], Field(description="Name of the fieldset.") - ] = None, - sort: Annotated[ - Optional[StrictStr], - Field( - description="List of comma-separated fields for result sorting (minus for desc sorting)." - ), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="The page to retrieve.") - ] = None, - per_page: Annotated[ - Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], - Field(description="The size of the page."), - ] = None, - q: Annotated[ - Optional[StrictStr], Field(description="Query for filtering the results.") - ] = None, + fields: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields.")] = None, + fieldset: Annotated[Optional[StrictStr], Field(description="Name of the fieldset.")] = None, + sort: Annotated[Optional[StrictStr], Field(description="List of comma-separated fields for result sorting (minus for desc sorting).")] = None, + page: Annotated[Optional[StrictInt], Field(description="The page to retrieve.")] = None, + per_page: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="The size of the page.")] = None, + q: Annotated[Optional[StrictStr], Field(description="Query for filtering the results.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1435,7 +1521,7 @@ def list_f24_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_f24_serialize( company_id=company_id, @@ -1448,18 +1534,25 @@ def list_f24_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListF24Response", - "401": None, + '200': "ListF24Response", + '401': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _list_f24_serialize( self, company_id, @@ -1477,7 +1570,8 @@ def _list_f24_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1490,48 +1584,54 @@ def _list_f24_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id # process the query parameters if fields is not None: - - _query_params.append(("fields", fields)) - + + _query_params.append(('fields', fields)) + if fieldset is not None: - - _query_params.append(("fieldset", fieldset)) - + + _query_params.append(('fieldset', fieldset)) + if sort is not None: - - _query_params.append(("sort", sort)) - + + _query_params.append(('sort', sort)) + if page is not None: - - _query_params.append(("page", page)) - + + _query_params.append(('page', page)) + if per_page is not None: - - _query_params.append(("per_page", per_page)) - + + _query_params.append(('per_page', per_page)) + if q is not None: - - _query_params.append(("q", q)) - + + _query_params.append(('q', q)) + # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/c/{company_id}/taxes", + method='GET', + resource_path='/c/{company_id}/taxes', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1541,23 +1641,25 @@ def _list_f24_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def modify_f24( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], document_id: Annotated[StrictInt, Field(description="The ID of the document.")], - modify_f24_request: Annotated[ - Optional[ModifyF24Request], Field(description="The F24") - ] = None, + modify_f24_request: Annotated[Optional[ModifyF24Request], Field(description="The F24")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1594,7 +1696,7 @@ def modify_f24( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._modify_f24_serialize( company_id=company_id, @@ -1603,16 +1705,22 @@ def modify_f24( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ModifyF24Response", - "401": None, - "404": None, + '200': "ModifyF24Response", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1620,20 +1728,20 @@ def modify_f24( response_types_map=_response_types_map, ).data + @validate_call def modify_f24_with_http_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], document_id: Annotated[StrictInt, Field(description="The ID of the document.")], - modify_f24_request: Annotated[ - Optional[ModifyF24Request], Field(description="The F24") - ] = None, + modify_f24_request: Annotated[Optional[ModifyF24Request], Field(description="The F24")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1670,7 +1778,7 @@ def modify_f24_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._modify_f24_serialize( company_id=company_id, @@ -1679,16 +1787,22 @@ def modify_f24_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ModifyF24Response", - "401": None, - "404": None, + '200': "ModifyF24Response", + '401': None, + '404': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1696,20 +1810,20 @@ def modify_f24_with_http_info( response_types_map=_response_types_map, ) + @validate_call def modify_f24_without_preload_content( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], document_id: Annotated[StrictInt, Field(description="The ID of the document.")], - modify_f24_request: Annotated[ - Optional[ModifyF24Request], Field(description="The F24") - ] = None, + modify_f24_request: Annotated[Optional[ModifyF24Request], Field(description="The F24")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1746,7 +1860,7 @@ def modify_f24_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._modify_f24_serialize( company_id=company_id, @@ -1755,19 +1869,26 @@ def modify_f24_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ModifyF24Response", - "401": None, - "404": None, + '200': "ModifyF24Response", + '401': None, + '404': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _modify_f24_serialize( self, company_id, @@ -1781,7 +1902,8 @@ def _modify_f24_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1794,9 +1916,9 @@ def _modify_f24_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id if document_id is not None: - _path_params["document_id"] = document_id + _path_params['document_id'] = document_id # process the query parameters # process the header parameters # process the form parameters @@ -1804,28 +1926,37 @@ def _modify_f24_serialize( if modify_f24_request is not None: _body_params = modify_f24_request + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) # set the HTTP header `Content-Type` if _content_type: - _header_params["Content-Type"] = _content_type + _header_params['Content-Type'] = _content_type else: - _default_content_type = self.api_client.select_header_content_type( - ["application/json"] + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) ) if _default_content_type is not None: - _header_params["Content-Type"] = _default_content_type + _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="PUT", - resource_path="/c/{company_id}/taxes/{document_id}", + method='PUT', + resource_path='/c/{company_id}/taxes/{document_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1835,28 +1966,25 @@ def _modify_f24_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def upload_f24_attachment( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - filename: Annotated[ - Optional[StrictStr], Field(description="Attachment file name") - ] = None, - attachment: Annotated[ - Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], - Field( - description="Attachment file [.png, .jpg, .gif, .pdf, .zip, .xls, .xlsx, .doc, .docx]" - ), - ] = None, + filename: Annotated[Optional[StrictStr], Field(description="Attachment file name")] = None, + attachment: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Attachment file [.png, .jpg, .gif, .pdf, .zip, .xls, .xlsx, .doc, .docx]")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1893,7 +2021,7 @@ def upload_f24_attachment( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._upload_f24_attachment_serialize( company_id=company_id, @@ -1902,14 +2030,20 @@ def upload_f24_attachment( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UploadF24AttachmentResponse", + '200': "UploadF24AttachmentResponse", } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1917,25 +2051,20 @@ def upload_f24_attachment( response_types_map=_response_types_map, ).data + @validate_call def upload_f24_attachment_with_http_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - filename: Annotated[ - Optional[StrictStr], Field(description="Attachment file name") - ] = None, - attachment: Annotated[ - Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], - Field( - description="Attachment file [.png, .jpg, .gif, .pdf, .zip, .xls, .xlsx, .doc, .docx]" - ), - ] = None, + filename: Annotated[Optional[StrictStr], Field(description="Attachment file name")] = None, + attachment: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Attachment file [.png, .jpg, .gif, .pdf, .zip, .xls, .xlsx, .doc, .docx]")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1972,7 +2101,7 @@ def upload_f24_attachment_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._upload_f24_attachment_serialize( company_id=company_id, @@ -1981,14 +2110,20 @@ def upload_f24_attachment_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UploadF24AttachmentResponse", + '200': "UploadF24AttachmentResponse", } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1996,25 +2131,20 @@ def upload_f24_attachment_with_http_info( response_types_map=_response_types_map, ) + @validate_call def upload_f24_attachment_without_preload_content( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - filename: Annotated[ - Optional[StrictStr], Field(description="Attachment file name") - ] = None, - attachment: Annotated[ - Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], - Field( - description="Attachment file [.png, .jpg, .gif, .pdf, .zip, .xls, .xlsx, .doc, .docx]" - ), - ] = None, + filename: Annotated[Optional[StrictStr], Field(description="Attachment file name")] = None, + attachment: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Attachment file [.png, .jpg, .gif, .pdf, .zip, .xls, .xlsx, .doc, .docx]")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2051,7 +2181,7 @@ def upload_f24_attachment_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._upload_f24_attachment_serialize( company_id=company_id, @@ -2060,17 +2190,24 @@ def upload_f24_attachment_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UploadF24AttachmentResponse", + '200': "UploadF24AttachmentResponse", } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _upload_f24_attachment_serialize( self, company_id, @@ -2084,7 +2221,8 @@ def _upload_f24_attachment_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -2097,38 +2235,47 @@ def _upload_f24_attachment_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id # process the query parameters # process the header parameters # process the form parameters if filename is not None: - _form_params.append(("filename", filename)) + _form_params.append(('filename', filename)) if attachment is not None: - _files["attachment"] = attachment + _files['attachment'] = attachment # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) # set the HTTP header `Content-Type` if _content_type: - _header_params["Content-Type"] = _content_type + _header_params['Content-Type'] = _content_type else: - _default_content_type = self.api_client.select_header_content_type( - ["multipart/form-data"] + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'multipart/form-data' + ] + ) ) if _default_content_type is not None: - _header_params["Content-Type"] = _default_content_type + _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/c/{company_id}/taxes/attachment", + method='POST', + resource_path='/c/{company_id}/taxes/attachment', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2138,5 +2285,7 @@ def _upload_f24_attachment_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/fattureincloud_python_sdk/api/user_api.py b/fattureincloud_python_sdk/api/user_api.py index e2950eb4..ef1de3ee 100644 --- a/fattureincloud_python_sdk/api/user_api.py +++ b/fattureincloud_python_sdk/api/user_api.py @@ -1,26 +1,23 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 - import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt 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.models.list_user_companies_response import ListUserCompaniesResponse from fattureincloud_python_sdk.api_client import ApiClient, RequestSerialized from fattureincloud_python_sdk.api_response import ApiResponse @@ -39,6 +36,7 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def get_user_info( self, @@ -46,8 +44,9 @@ def get_user_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -78,21 +77,27 @@ def get_user_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_user_info_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetUserInfoResponse", - "401": None, + '200': "GetUserInfoResponse", + '401': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -100,6 +105,7 @@ def get_user_info( response_types_map=_response_types_map, ).data + @validate_call def get_user_info_with_http_info( self, @@ -107,8 +113,9 @@ def get_user_info_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -139,21 +146,27 @@ def get_user_info_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_user_info_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetUserInfoResponse", - "401": None, + '200': "GetUserInfoResponse", + '401': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -161,6 +174,7 @@ def get_user_info_with_http_info( response_types_map=_response_types_map, ) + @validate_call def get_user_info_without_preload_content( self, @@ -168,8 +182,9 @@ def get_user_info_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -200,24 +215,31 @@ def get_user_info_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_user_info_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetUserInfoResponse", - "401": None, + '200': "GetUserInfoResponse", + '401': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _get_user_info_serialize( self, _request_auth, @@ -228,7 +250,8 @@ def _get_user_info_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -245,18 +268,24 @@ def _get_user_info_serialize( # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/user/info", + method='GET', + resource_path='/user/info', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -266,9 +295,12 @@ def _get_user_info_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def list_user_companies( self, @@ -276,8 +308,9 @@ def list_user_companies( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -308,21 +341,27 @@ def list_user_companies( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_user_companies_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListUserCompaniesResponse", - "401": None, + '200': "ListUserCompaniesResponse", + '401': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -330,6 +369,7 @@ def list_user_companies( response_types_map=_response_types_map, ).data + @validate_call def list_user_companies_with_http_info( self, @@ -337,8 +377,9 @@ def list_user_companies_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -369,21 +410,27 @@ def list_user_companies_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_user_companies_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListUserCompaniesResponse", - "401": None, + '200': "ListUserCompaniesResponse", + '401': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -391,6 +438,7 @@ def list_user_companies_with_http_info( response_types_map=_response_types_map, ) + @validate_call def list_user_companies_without_preload_content( self, @@ -398,8 +446,9 @@ def list_user_companies_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -430,24 +479,31 @@ def list_user_companies_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_user_companies_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListUserCompaniesResponse", - "401": None, + '200': "ListUserCompaniesResponse", + '401': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _list_user_companies_serialize( self, _request_auth, @@ -458,7 +514,8 @@ def _list_user_companies_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -475,18 +532,24 @@ def _list_user_companies_serialize( # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/user/companies", + method='GET', + resource_path='/user/companies', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -496,5 +559,7 @@ def _list_user_companies_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/fattureincloud_python_sdk/api/webhooks_api.py b/fattureincloud_python_sdk/api/webhooks_api.py index 4c01de40..ee19534c 100644 --- a/fattureincloud_python_sdk/api/webhooks_api.py +++ b/fattureincloud_python_sdk/api/webhooks_api.py @@ -1,17 +1,16 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 - import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union @@ -20,27 +19,13 @@ 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, -) -from fattureincloud_python_sdk.models.create_webhooks_subscription_response import ( - CreateWebhooksSubscriptionResponse, -) -from fattureincloud_python_sdk.models.get_webhooks_subscription_response import ( - GetWebhooksSubscriptionResponse, -) -from fattureincloud_python_sdk.models.list_webhooks_subscriptions_response import ( - ListWebhooksSubscriptionsResponse, -) -from fattureincloud_python_sdk.models.modify_webhooks_subscription_request import ( - ModifyWebhooksSubscriptionRequest, -) -from fattureincloud_python_sdk.models.modify_webhooks_subscription_response import ( - ModifyWebhooksSubscriptionResponse, -) -from fattureincloud_python_sdk.models.verify_webhooks_subscription_request import ( - VerifyWebhooksSubscriptionRequest, -) +from fattureincloud_python_sdk.models.create_webhooks_subscription_request import CreateWebhooksSubscriptionRequest +from fattureincloud_python_sdk.models.create_webhooks_subscription_response import CreateWebhooksSubscriptionResponse +from fattureincloud_python_sdk.models.get_webhooks_subscription_response import GetWebhooksSubscriptionResponse +from fattureincloud_python_sdk.models.list_webhooks_subscriptions_response import ListWebhooksSubscriptionsResponse +from fattureincloud_python_sdk.models.modify_webhooks_subscription_request import ModifyWebhooksSubscriptionRequest +from fattureincloud_python_sdk.models.modify_webhooks_subscription_response import ModifyWebhooksSubscriptionResponse +from fattureincloud_python_sdk.models.verify_webhooks_subscription_request import VerifyWebhooksSubscriptionRequest from fattureincloud_python_sdk.api_client import ApiClient, RequestSerialized from fattureincloud_python_sdk.api_response import ApiResponse @@ -59,19 +44,19 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def create_webhooks_subscription( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - create_webhooks_subscription_request: Optional[ - CreateWebhooksSubscriptionRequest - ] = None, + create_webhooks_subscription_request: Optional[CreateWebhooksSubscriptionRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -84,7 +69,7 @@ def create_webhooks_subscription( :param company_id: The ID of the company. (required) :type company_id: int - :param create_webhooks_subscription_request: + :param create_webhooks_subscription_request: :type create_webhooks_subscription_request: CreateWebhooksSubscriptionRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -106,7 +91,7 @@ def create_webhooks_subscription( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_webhooks_subscription_serialize( company_id=company_id, @@ -114,14 +99,20 @@ def create_webhooks_subscription( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateWebhooksSubscriptionResponse", + '200': "CreateWebhooksSubscriptionResponse", } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -129,19 +120,19 @@ def create_webhooks_subscription( response_types_map=_response_types_map, ).data + @validate_call def create_webhooks_subscription_with_http_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - create_webhooks_subscription_request: Optional[ - CreateWebhooksSubscriptionRequest - ] = None, + create_webhooks_subscription_request: Optional[CreateWebhooksSubscriptionRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -154,7 +145,7 @@ def create_webhooks_subscription_with_http_info( :param company_id: The ID of the company. (required) :type company_id: int - :param create_webhooks_subscription_request: + :param create_webhooks_subscription_request: :type create_webhooks_subscription_request: CreateWebhooksSubscriptionRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -176,7 +167,7 @@ def create_webhooks_subscription_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_webhooks_subscription_serialize( company_id=company_id, @@ -184,14 +175,20 @@ def create_webhooks_subscription_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateWebhooksSubscriptionResponse", + '200': "CreateWebhooksSubscriptionResponse", } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -199,19 +196,19 @@ def create_webhooks_subscription_with_http_info( response_types_map=_response_types_map, ) + @validate_call def create_webhooks_subscription_without_preload_content( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - create_webhooks_subscription_request: Optional[ - CreateWebhooksSubscriptionRequest - ] = None, + create_webhooks_subscription_request: Optional[CreateWebhooksSubscriptionRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -224,7 +221,7 @@ def create_webhooks_subscription_without_preload_content( :param company_id: The ID of the company. (required) :type company_id: int - :param create_webhooks_subscription_request: + :param create_webhooks_subscription_request: :type create_webhooks_subscription_request: CreateWebhooksSubscriptionRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -246,7 +243,7 @@ def create_webhooks_subscription_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._create_webhooks_subscription_serialize( company_id=company_id, @@ -254,17 +251,24 @@ def create_webhooks_subscription_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CreateWebhooksSubscriptionResponse", + '200': "CreateWebhooksSubscriptionResponse", } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _create_webhooks_subscription_serialize( self, company_id, @@ -277,7 +281,8 @@ def _create_webhooks_subscription_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -290,7 +295,7 @@ def _create_webhooks_subscription_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id # process the query parameters # process the header parameters # process the form parameters @@ -298,28 +303,37 @@ def _create_webhooks_subscription_serialize( if create_webhooks_subscription_request is not None: _body_params = create_webhooks_subscription_request + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) # set the HTTP header `Content-Type` if _content_type: - _header_params["Content-Type"] = _content_type + _header_params['Content-Type'] = _content_type else: - _default_content_type = self.api_client.select_header_content_type( - ["application/json"] + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) ) if _default_content_type is not None: - _header_params["Content-Type"] = _default_content_type + _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/c/{company_id}/subscriptions", + method='POST', + resource_path='/c/{company_id}/subscriptions', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -329,22 +343,24 @@ def _create_webhooks_subscription_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def delete_webhooks_subscription( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - subscription_id: Annotated[ - StrictStr, Field(description="The ID of the subscription.") - ], + subscription_id: Annotated[StrictStr, Field(description="The ID of the subscription.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -379,7 +395,7 @@ def delete_webhooks_subscription( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_webhooks_subscription_serialize( company_id=company_id, @@ -387,14 +403,20 @@ def delete_webhooks_subscription( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": None, + '200': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -402,19 +424,19 @@ def delete_webhooks_subscription( response_types_map=_response_types_map, ).data + @validate_call def delete_webhooks_subscription_with_http_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - subscription_id: Annotated[ - StrictStr, Field(description="The ID of the subscription.") - ], + subscription_id: Annotated[StrictStr, Field(description="The ID of the subscription.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -449,7 +471,7 @@ def delete_webhooks_subscription_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_webhooks_subscription_serialize( company_id=company_id, @@ -457,14 +479,20 @@ def delete_webhooks_subscription_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": None, + '200': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -472,19 +500,19 @@ def delete_webhooks_subscription_with_http_info( response_types_map=_response_types_map, ) + @validate_call def delete_webhooks_subscription_without_preload_content( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - subscription_id: Annotated[ - StrictStr, Field(description="The ID of the subscription.") - ], + subscription_id: Annotated[StrictStr, Field(description="The ID of the subscription.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -519,7 +547,7 @@ def delete_webhooks_subscription_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_webhooks_subscription_serialize( company_id=company_id, @@ -527,17 +555,24 @@ def delete_webhooks_subscription_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": None, + '200': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _delete_webhooks_subscription_serialize( self, company_id, @@ -550,7 +585,8 @@ def _delete_webhooks_subscription_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -563,20 +599,25 @@ def _delete_webhooks_subscription_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id if subscription_id is not None: - _path_params["subscription_id"] = subscription_id + _path_params['subscription_id'] = subscription_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + + + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="DELETE", - resource_path="/c/{company_id}/subscriptions/{subscription_id}", + method='DELETE', + resource_path='/c/{company_id}/subscriptions/{subscription_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -586,22 +627,24 @@ def _delete_webhooks_subscription_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def get_webhooks_subscription( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - subscription_id: Annotated[ - StrictStr, Field(description="The ID of the subscription.") - ], + subscription_id: Annotated[StrictStr, Field(description="The ID of the subscription.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -636,7 +679,7 @@ def get_webhooks_subscription( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_webhooks_subscription_serialize( company_id=company_id, @@ -644,14 +687,20 @@ def get_webhooks_subscription( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetWebhooksSubscriptionResponse", + '200': "GetWebhooksSubscriptionResponse", } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -659,19 +708,19 @@ def get_webhooks_subscription( response_types_map=_response_types_map, ).data + @validate_call def get_webhooks_subscription_with_http_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - subscription_id: Annotated[ - StrictStr, Field(description="The ID of the subscription.") - ], + subscription_id: Annotated[StrictStr, Field(description="The ID of the subscription.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -706,7 +755,7 @@ def get_webhooks_subscription_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_webhooks_subscription_serialize( company_id=company_id, @@ -714,14 +763,20 @@ def get_webhooks_subscription_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetWebhooksSubscriptionResponse", + '200': "GetWebhooksSubscriptionResponse", } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -729,19 +784,19 @@ def get_webhooks_subscription_with_http_info( response_types_map=_response_types_map, ) + @validate_call def get_webhooks_subscription_without_preload_content( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - subscription_id: Annotated[ - StrictStr, Field(description="The ID of the subscription.") - ], + subscription_id: Annotated[StrictStr, Field(description="The ID of the subscription.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -776,7 +831,7 @@ def get_webhooks_subscription_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_webhooks_subscription_serialize( company_id=company_id, @@ -784,17 +839,24 @@ def get_webhooks_subscription_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetWebhooksSubscriptionResponse", + '200': "GetWebhooksSubscriptionResponse", } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _get_webhooks_subscription_serialize( self, company_id, @@ -807,7 +869,8 @@ def _get_webhooks_subscription_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -820,26 +883,32 @@ def _get_webhooks_subscription_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id if subscription_id is not None: - _path_params["subscription_id"] = subscription_id + _path_params['subscription_id'] = subscription_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/c/{company_id}/subscriptions/{subscription_id}", + method='GET', + resource_path='/c/{company_id}/subscriptions/{subscription_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -849,9 +918,12 @@ def _get_webhooks_subscription_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def list_webhooks_subscriptions( self, @@ -860,8 +932,9 @@ def list_webhooks_subscriptions( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -894,21 +967,27 @@ def list_webhooks_subscriptions( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_webhooks_subscriptions_serialize( company_id=company_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListWebhooksSubscriptionsResponse", + '200': "ListWebhooksSubscriptionsResponse", } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -916,6 +995,7 @@ def list_webhooks_subscriptions( response_types_map=_response_types_map, ).data + @validate_call def list_webhooks_subscriptions_with_http_info( self, @@ -924,8 +1004,9 @@ def list_webhooks_subscriptions_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -958,21 +1039,27 @@ def list_webhooks_subscriptions_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_webhooks_subscriptions_serialize( company_id=company_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListWebhooksSubscriptionsResponse", + '200': "ListWebhooksSubscriptionsResponse", } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -980,6 +1067,7 @@ def list_webhooks_subscriptions_with_http_info( response_types_map=_response_types_map, ) + @validate_call def list_webhooks_subscriptions_without_preload_content( self, @@ -988,8 +1076,9 @@ def list_webhooks_subscriptions_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1022,24 +1111,31 @@ def list_webhooks_subscriptions_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_webhooks_subscriptions_serialize( company_id=company_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListWebhooksSubscriptionsResponse", + '200': "ListWebhooksSubscriptionsResponse", } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _list_webhooks_subscriptions_serialize( self, company_id, @@ -1051,7 +1147,8 @@ def _list_webhooks_subscriptions_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1064,24 +1161,30 @@ def _list_webhooks_subscriptions_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/c/{company_id}/subscriptions", + method='GET', + resource_path='/c/{company_id}/subscriptions', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1091,25 +1194,25 @@ def _list_webhooks_subscriptions_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def modify_webhooks_subscription( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - subscription_id: Annotated[ - StrictStr, Field(description="The ID of the subscription.") - ], - modify_webhooks_subscription_request: Optional[ - ModifyWebhooksSubscriptionRequest - ] = None, + subscription_id: Annotated[StrictStr, Field(description="The ID of the subscription.")], + modify_webhooks_subscription_request: Optional[ModifyWebhooksSubscriptionRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1146,7 +1249,7 @@ def modify_webhooks_subscription( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._modify_webhooks_subscription_serialize( company_id=company_id, @@ -1155,14 +1258,20 @@ def modify_webhooks_subscription( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ModifyWebhooksSubscriptionResponse", + '200': "ModifyWebhooksSubscriptionResponse", } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1170,22 +1279,20 @@ def modify_webhooks_subscription( response_types_map=_response_types_map, ).data + @validate_call def modify_webhooks_subscription_with_http_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - subscription_id: Annotated[ - StrictStr, Field(description="The ID of the subscription.") - ], - modify_webhooks_subscription_request: Optional[ - ModifyWebhooksSubscriptionRequest - ] = None, + subscription_id: Annotated[StrictStr, Field(description="The ID of the subscription.")], + modify_webhooks_subscription_request: Optional[ModifyWebhooksSubscriptionRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1222,7 +1329,7 @@ def modify_webhooks_subscription_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._modify_webhooks_subscription_serialize( company_id=company_id, @@ -1231,14 +1338,20 @@ def modify_webhooks_subscription_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ModifyWebhooksSubscriptionResponse", + '200': "ModifyWebhooksSubscriptionResponse", } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1246,22 +1359,20 @@ def modify_webhooks_subscription_with_http_info( response_types_map=_response_types_map, ) + @validate_call def modify_webhooks_subscription_without_preload_content( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - subscription_id: Annotated[ - StrictStr, Field(description="The ID of the subscription.") - ], - modify_webhooks_subscription_request: Optional[ - ModifyWebhooksSubscriptionRequest - ] = None, + subscription_id: Annotated[StrictStr, Field(description="The ID of the subscription.")], + modify_webhooks_subscription_request: Optional[ModifyWebhooksSubscriptionRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1298,7 +1409,7 @@ def modify_webhooks_subscription_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._modify_webhooks_subscription_serialize( company_id=company_id, @@ -1307,17 +1418,24 @@ def modify_webhooks_subscription_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ModifyWebhooksSubscriptionResponse", + '200': "ModifyWebhooksSubscriptionResponse", } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _modify_webhooks_subscription_serialize( self, company_id, @@ -1331,7 +1449,8 @@ def _modify_webhooks_subscription_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1344,9 +1463,9 @@ def _modify_webhooks_subscription_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id if subscription_id is not None: - _path_params["subscription_id"] = subscription_id + _path_params['subscription_id'] = subscription_id # process the query parameters # process the header parameters # process the form parameters @@ -1354,28 +1473,37 @@ def _modify_webhooks_subscription_serialize( if modify_webhooks_subscription_request is not None: _body_params = modify_webhooks_subscription_request + # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) # set the HTTP header `Content-Type` if _content_type: - _header_params["Content-Type"] = _content_type + _header_params['Content-Type'] = _content_type else: - _default_content_type = self.api_client.select_header_content_type( - ["application/json"] + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) ) if _default_content_type is not None: - _header_params["Content-Type"] = _default_content_type + _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="PUT", - resource_path="/c/{company_id}/subscriptions/{subscription_id}", + method='PUT', + resource_path='/c/{company_id}/subscriptions/{subscription_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1385,25 +1513,25 @@ def _modify_webhooks_subscription_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def verify_webhooks_subscription( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - subscription_id: Annotated[ - StrictStr, Field(description="The ID of the subscription.") - ], - verify_webhooks_subscription_request: Optional[ - VerifyWebhooksSubscriptionRequest - ] = None, + subscription_id: Annotated[StrictStr, Field(description="The ID of the subscription.")], + verify_webhooks_subscription_request: Optional[VerifyWebhooksSubscriptionRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1440,7 +1568,7 @@ def verify_webhooks_subscription( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._verify_webhooks_subscription_serialize( company_id=company_id, @@ -1449,14 +1577,20 @@ def verify_webhooks_subscription( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": None, + '200': None, } + response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout + ) + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1464,22 +1598,20 @@ def verify_webhooks_subscription( response_types_map=_response_types_map, ).data + @validate_call def verify_webhooks_subscription_with_http_info( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - subscription_id: Annotated[ - StrictStr, Field(description="The ID of the subscription.") - ], - verify_webhooks_subscription_request: Optional[ - VerifyWebhooksSubscriptionRequest - ] = None, + subscription_id: Annotated[StrictStr, Field(description="The ID of the subscription.")], + verify_webhooks_subscription_request: Optional[VerifyWebhooksSubscriptionRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1516,7 +1648,7 @@ def verify_webhooks_subscription_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._verify_webhooks_subscription_serialize( company_id=company_id, @@ -1525,14 +1657,20 @@ def verify_webhooks_subscription_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": None, + '200': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1540,22 +1678,20 @@ def verify_webhooks_subscription_with_http_info( response_types_map=_response_types_map, ) + @validate_call def verify_webhooks_subscription_without_preload_content( self, company_id: Annotated[StrictInt, Field(description="The ID of the company.")], - subscription_id: Annotated[ - StrictStr, Field(description="The ID of the subscription.") - ], - verify_webhooks_subscription_request: Optional[ - VerifyWebhooksSubscriptionRequest - ] = None, + subscription_id: Annotated[StrictStr, Field(description="The ID of the subscription.")], + verify_webhooks_subscription_request: Optional[VerifyWebhooksSubscriptionRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1592,7 +1728,7 @@ def verify_webhooks_subscription_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._verify_webhooks_subscription_serialize( company_id=company_id, @@ -1601,17 +1737,24 @@ def verify_webhooks_subscription_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": None, + '200': None, } + + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _verify_webhooks_subscription_serialize( self, company_id, @@ -1625,7 +1768,8 @@ def _verify_webhooks_subscription_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1638,9 +1782,9 @@ def _verify_webhooks_subscription_serialize( # process the path parameters if company_id is not None: - _path_params["company_id"] = company_id + _path_params['company_id'] = company_id if subscription_id is not None: - _path_params["subscription_id"] = subscription_id + _path_params['subscription_id'] = subscription_id # process the query parameters # process the header parameters # process the form parameters @@ -1648,22 +1792,30 @@ def _verify_webhooks_subscription_serialize( if verify_webhooks_subscription_request is not None: _body_params = verify_webhooks_subscription_request + + # set the HTTP header `Content-Type` if _content_type: - _header_params["Content-Type"] = _content_type + _header_params['Content-Type'] = _content_type else: - _default_content_type = self.api_client.select_header_content_type( - ["application/json"] + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) ) if _default_content_type is not None: - _header_params["Content-Type"] = _default_content_type + _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = ["OAuth2AuthenticationCodeFlow"] + _auth_settings: List[str] = [ + 'OAuth2AuthenticationCodeFlow' + ] return self.api_client.param_serialize( - method="POST", - resource_path="/c/{company_id}/subscriptions/{subscription_id}/verify", + method='POST', + resource_path='/c/{company_id}/subscriptions/{subscription_id}/verify', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1673,5 +1825,7 @@ def _verify_webhooks_subscription_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/fattureincloud_python_sdk/api_client.py b/fattureincloud_python_sdk/api_client.py index bd6ba82f..15dfc503 100644 --- a/fattureincloud_python_sdk/api_client.py +++ b/fattureincloud_python_sdk/api_client.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,6 +22,7 @@ import os import re import tempfile +import uuid from urllib.parse import quote from typing import Tuple, Optional, List, Dict, Union @@ -38,12 +39,11 @@ UnauthorizedException, ForbiddenException, NotFoundException, - ServiceException, + ServiceException ) RequestSerialized = Tuple[str, str, Dict[str, str], Optional[str], List[str]] - class ApiClient: """Generic API client for OpenAPI client library builds. @@ -62,20 +62,24 @@ class ApiClient: PRIMITIVE_TYPES = (float, bool, bytes, str, int) NATIVE_TYPES_MAPPING = { - "int": int, - "long": int, # TODO remove as only py3 is supported? - "float": float, - "str": str, - "bool": bool, - "date": datetime.date, - "datetime": datetime.datetime, - "decimal": decimal.Decimal, - "object": object, + 'int': int, + 'long': int, # TODO remove as only py3 is supported? + 'float': float, + 'str': str, + 'bool': bool, + 'date': datetime.date, + 'datetime': datetime.datetime, + 'decimal': decimal.Decimal, + 'object': object, } _pool = None def __init__( - self, configuration=None, header_name=None, header_value=None, cookie=None + self, + configuration=None, + header_name=None, + header_value=None, + cookie=None ) -> None: # use default configuration if none is provided if configuration is None: @@ -88,7 +92,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = "FattureInCloud/2.1.3/Python-SDK" + self.user_agent = 'FattureInCloud/2.1.4/Python-SDK' self.client_side_validation = configuration.client_side_validation def __enter__(self): @@ -100,15 +104,16 @@ def __exit__(self, exc_type, exc_value, traceback): @property def user_agent(self): """User agent for this API client""" - return self.default_headers["User-Agent"] + return self.default_headers['User-Agent'] @user_agent.setter def user_agent(self, value): - self.default_headers["User-Agent"] = value + self.default_headers['User-Agent'] = value def set_default_header(self, header_name, header_value): self.default_headers[header_name] = header_value + _default = None @classmethod @@ -144,12 +149,12 @@ def param_serialize( header_params=None, body=None, post_params=None, - files=None, - auth_settings=None, + files=None, auth_settings=None, collection_formats=None, _host=None, - _request_auth=None, + _request_auth=None ) -> RequestSerialized: + """Builds the HTTP request params needed by the request. :param method: Method to call. :param resource_path: Path to method endpoint. @@ -178,28 +183,35 @@ def param_serialize( header_params = header_params or {} header_params.update(self.default_headers) if self.cookie: - header_params["Cookie"] = self.cookie + header_params['Cookie'] = self.cookie if header_params: header_params = self.sanitize_for_serialization(header_params) header_params = dict( - self.parameters_to_tuples(header_params, collection_formats) + self.parameters_to_tuples(header_params,collection_formats) ) # path parameters if path_params: path_params = self.sanitize_for_serialization(path_params) - path_params = self.parameters_to_tuples(path_params, collection_formats) + path_params = self.parameters_to_tuples( + path_params, + collection_formats + ) for k, v in path_params: # specified safe chars, encode everything resource_path = resource_path.replace( - "{%s}" % k, quote(str(v), safe=config.safe_chars_for_path_param) + '{%s}' % k, + quote(str(v), safe=config.safe_chars_for_path_param) ) # post parameters if post_params or files: post_params = post_params if post_params else [] post_params = self.sanitize_for_serialization(post_params) - post_params = self.parameters_to_tuples(post_params, collection_formats) + post_params = self.parameters_to_tuples( + post_params, + collection_formats + ) if files: post_params.extend(self.files_parameters(files)) @@ -211,7 +223,7 @@ def param_serialize( resource_path, method, body, - request_auth=_request_auth, + request_auth=_request_auth ) # body @@ -228,11 +240,15 @@ def param_serialize( # query parameters if query_params: query_params = self.sanitize_for_serialization(query_params) - url_query = self.parameters_to_url_query(query_params, collection_formats) + url_query = self.parameters_to_url_query( + query_params, + collection_formats + ) url += "?" + url_query return method, url, header_params, body, post_params + def call_api( self, method, @@ -240,7 +256,7 @@ def call_api( header_params=None, body=None, post_params=None, - _request_timeout=None, + _request_timeout=None ) -> rest.RESTResponse: """Makes the HTTP request (synchronous) :param method: Method to call. @@ -257,12 +273,10 @@ def call_api( try: # perform request and return response response_data = self.rest_client.request( - method, - url, + method, url, headers=header_params, - body=body, - post_params=post_params, - _request_timeout=_request_timeout, + body=body, post_params=post_params, + _request_timeout=_request_timeout ) except ApiException as e: @@ -273,7 +287,7 @@ def call_api( def response_deserialize( self, response_data: rest.RESTResponse, - response_types_map: Optional[Dict[str, ApiResponseT]] = None, + response_types_map: Optional[Dict[str, ApiResponseT]]=None ) -> ApiResponse[ApiResponseT]: """Deserializes response into an object. :param response_data: RESTResponse object to be deserialized. @@ -285,15 +299,9 @@ def 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 - and isinstance(response_data.status, int) - and 100 <= response_data.status <= 599 - ): + if not response_type and isinstance(response_data.status, int) and 100 <= response_data.status <= 599: # if not found, look for '1XX', '2XX', etc. - response_type = response_types_map.get( - str(response_data.status)[0] + "XX", None - ) + response_type = response_types_map.get(str(response_data.status)[0] + "XX", None) # deserialize response data response_text = None @@ -305,14 +313,12 @@ def response_deserialize( return_data = self.__deserialize_file(response_data) elif response_type is not None: match = None - content_type = response_data.getheader("content-type") + 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, content_type - ) + return_data = self.deserialize(response_text, response_type, content_type) finally: if not 200 <= response_data.status <= 299: raise ApiException.from_response( @@ -322,10 +328,10 @@ def response_deserialize( ) return ApiResponse( - status_code=response_data.status, - data=return_data, - headers=response_data.getheaders(), - raw_data=response_data.data, + status_code = response_data.status, + data = return_data, + headers = response_data.getheaders(), + raw_data = response_data.data ) def sanitize_for_serialization(self, obj): @@ -352,10 +358,16 @@ def sanitize_for_serialization(self, obj): return obj.get_secret_value() elif isinstance(obj, self.PRIMITIVE_TYPES): return obj + elif isinstance(obj, uuid.UUID): + return str(obj) elif isinstance(obj, list): - return [self.sanitize_for_serialization(sub_obj) for sub_obj in obj] + return [ + self.sanitize_for_serialization(sub_obj) for sub_obj in obj + ] elif isinstance(obj, tuple): - return tuple(self.sanitize_for_serialization(sub_obj) for sub_obj in obj) + return tuple( + self.sanitize_for_serialization(sub_obj) for sub_obj in obj + ) elif isinstance(obj, (datetime.datetime, datetime.date)): return obj.isoformat() elif isinstance(obj, decimal.Decimal): @@ -369,18 +381,21 @@ def sanitize_for_serialization(self, obj): # and attributes which value is not None. # Convert attribute name to json key in # model definition for request. - if hasattr(obj, "to_dict") and callable(getattr(obj, "to_dict")): + if hasattr(obj, 'to_dict') and callable(getattr(obj, 'to_dict')): obj_dict = obj.to_dict() else: obj_dict = obj.__dict__ + if isinstance(obj_dict, list): + # here we handle instances that can either be a list or something else, and only became a real list by calling to_dict() + return self.sanitize_for_serialization(obj_dict) + return { - key: self.sanitize_for_serialization(val) for key, val in obj_dict.items() + key: self.sanitize_for_serialization(val) + for key, val in obj_dict.items() } - def deserialize( - self, response_text: str, response_type: str, content_type: Optional[str] - ): + def deserialize(self, response_text: str, response_type: str, content_type: Optional[str]): """Deserializes response into an object. :param response: RESTResponse object to be deserialized. @@ -397,20 +412,17 @@ def deserialize( data = json.loads(response_text) except ValueError: data = response_text - elif re.match( - r"^application/(json|[\w!#$&.+-^_]+\+json)\s*(;|$)", - content_type, - re.IGNORECASE, - ): + elif re.match(r'^application/(json|[\w!#$&.+\-^_]+\+json)\s*(;|$)', content_type, re.IGNORECASE): if response_text == "": data = "" else: data = json.loads(response_text) - elif re.match(r"^text\/[a-z.+-]+\s*(;|$)", content_type, re.IGNORECASE): + elif re.match(r'^text\/[a-z.+-]+\s*(;|$)', content_type, re.IGNORECASE): data = response_text else: raise ApiException( - status=0, reason="Unsupported content type: {0}".format(content_type) + status=0, + reason="Unsupported content type: {0}".format(content_type) ) return self.__deserialize(data, response_type) @@ -427,17 +439,19 @@ def __deserialize(self, data, klass): return None if isinstance(klass, str): - if klass.startswith("List["): - m = re.match(r"List\[(.*)]", klass) + if klass.startswith('List['): + 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] + return [self.__deserialize(sub_data, sub_kls) + for sub_data in data] - if klass.startswith("Dict["): - m = re.match(r"Dict\[([^,]*), (.*)]", klass) + if klass.startswith('Dict['): + 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()} + return {k: self.__deserialize(v, sub_kls) + for k, v in data.items()} # convert str to class if klass in self.NATIVE_TYPES_MAPPING: @@ -447,13 +461,13 @@ def __deserialize(self, data, klass): if klass in self.PRIMITIVE_TYPES: return self.__deserialize_primitive(data, klass) - elif klass == object: + elif klass is object: return self.__deserialize_object(data) - elif klass == datetime.date: + elif klass is datetime.date: return self.__deserialize_date(data) - elif klass == datetime.datetime: + elif klass is datetime.datetime: return self.__deserialize_datetime(data) - elif klass == decimal.Decimal: + elif klass is decimal.Decimal: return decimal.Decimal(data) elif issubclass(klass, Enum): return self.__deserialize_enum(data, klass) @@ -473,18 +487,19 @@ def parameters_to_tuples(self, params, collection_formats): for k, v in params.items() if isinstance(params, dict) else params: if k in collection_formats: collection_format = collection_formats[k] - if collection_format == "multi": + if collection_format == 'multi': new_params.extend((k, value) for value in v) else: - if collection_format == "ssv": - delimiter = " " - elif collection_format == "tsv": - delimiter = "\t" - elif collection_format == "pipes": - delimiter = "|" + if collection_format == 'ssv': + delimiter = ' ' + elif collection_format == 'tsv': + delimiter = '\t' + elif collection_format == 'pipes': + delimiter = '|' else: # csv is the default - delimiter = "," - new_params.append((k, delimiter.join(str(value) for value in v))) + delimiter = ',' + new_params.append( + (k, delimiter.join(str(value) for value in v))) else: new_params.append((k, v)) return new_params @@ -509,17 +524,17 @@ def parameters_to_url_query(self, params, collection_formats): if k in collection_formats: collection_format = collection_formats[k] - if collection_format == "multi": + if collection_format == 'multi': new_params.extend((k, quote(str(value))) for value in v) else: - if collection_format == "ssv": - delimiter = " " - elif collection_format == "tsv": - delimiter = "\t" - elif collection_format == "pipes": - delimiter = "|" + if collection_format == 'ssv': + delimiter = ' ' + elif collection_format == 'tsv': + delimiter = '\t' + elif collection_format == 'pipes': + delimiter = '|' else: # csv is the default - delimiter = "," + delimiter = ',' new_params.append( (k, delimiter.join(quote(str(value)) for value in v)) ) @@ -540,7 +555,7 @@ def files_parameters( params = [] for k, v in files.items(): if isinstance(v, str): - with open(v, "rb") as f: + with open(v, 'rb') as f: filename = os.path.basename(f.name) filedata = f.read() elif isinstance(v, bytes): @@ -554,8 +569,13 @@ def files_parameters( continue else: raise ValueError("Unsupported file value") - mimetype = mimetypes.guess_type(filename)[0] or "application/octet-stream" - params.append(tuple([k, tuple([filename, filedata, mimetype])])) + mimetype = ( + mimetypes.guess_type(filename)[0] + or 'application/octet-stream' + ) + params.append( + tuple([k, tuple([filename, filedata, mimetype])]) + ) return params def select_header_accept(self, accepts: List[str]) -> Optional[str]: @@ -568,7 +588,7 @@ def select_header_accept(self, accepts: List[str]) -> Optional[str]: return None for accept in accepts: - if re.search("json", accept, re.IGNORECASE): + if re.search('json', accept, re.IGNORECASE): return accept return accepts[0] @@ -583,7 +603,7 @@ def select_header_content_type(self, content_types): return None for content_type in content_types: - if re.search("json", content_type, re.IGNORECASE): + if re.search('json', content_type, re.IGNORECASE): return content_type return content_types[0] @@ -596,7 +616,7 @@ def update_params_for_auth( resource_path, method, body, - request_auth=None, + request_auth=None ) -> None: """Updates header and query params based on authentication setting. @@ -615,18 +635,34 @@ def update_params_for_auth( if request_auth: self._apply_auth_params( - headers, queries, resource_path, method, body, request_auth + headers, + queries, + resource_path, + method, + body, + request_auth ) else: for auth in auth_settings: auth_setting = self.configuration.auth_settings().get(auth) if auth_setting: self._apply_auth_params( - headers, queries, resource_path, method, body, auth_setting + headers, + queries, + resource_path, + method, + body, + auth_setting ) def _apply_auth_params( - self, headers, queries, resource_path, method, body, auth_setting + self, + headers, + queries, + resource_path, + method, + body, + auth_setting ) -> None: """Updates the request parameters based on a single auth_setting @@ -638,15 +674,17 @@ def _apply_auth_params( The object type is the return value of sanitize_for_serialization(). :param auth_setting: auth settings for the endpoint """ - if auth_setting["in"] == "cookie": - headers["Cookie"] = auth_setting["value"] - elif auth_setting["in"] == "header": - if auth_setting["type"] != "http-signature": - headers[auth_setting["key"]] = auth_setting["value"] - elif auth_setting["in"] == "query": - queries.append((auth_setting["key"], auth_setting["value"])) + if auth_setting['in'] == 'cookie': + headers['Cookie'] = auth_setting['value'] + elif auth_setting['in'] == 'header': + if auth_setting['type'] != 'http-signature': + headers[auth_setting['key']] = auth_setting['value'] + elif auth_setting['in'] == 'query': + queries.append((auth_setting['key'], auth_setting['value'])) else: - raise ApiValueError("Authentication token must be in `query` or `header`") + raise ApiValueError( + 'Authentication token must be in `query` or `header`' + ) def __deserialize_file(self, response): """Deserializes body to file @@ -666,7 +704,10 @@ def __deserialize_file(self, response): content_disposition = response.getheader("Content-Disposition") if content_disposition: - m = re.search(r'filename=[\'"]?([^\'"\s]+)[\'"]?', content_disposition) + 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) @@ -710,7 +751,8 @@ def __deserialize_date(self, string): return string except ValueError: raise rest.ApiException( - status=0, reason="Failed to parse `{0}` as date object".format(string) + status=0, + reason="Failed to parse `{0}` as date object".format(string) ) def __deserialize_datetime(self, string): @@ -728,7 +770,10 @@ def __deserialize_datetime(self, string): except ValueError: raise rest.ApiException( status=0, - reason=("Failed to parse `{0}` as datetime object".format(string)), + reason=( + "Failed to parse `{0}` as datetime object" + .format(string) + ) ) def __deserialize_enum(self, data, klass): @@ -742,7 +787,11 @@ def __deserialize_enum(self, data, klass): return klass(data) except ValueError: raise rest.ApiException( - status=0, reason=("Failed to parse `{0}` as `{1}`".format(data, klass)) + status=0, + reason=( + "Failed to parse `{0}` as `{1}`" + .format(data, klass) + ) ) def __deserialize_model(self, data, klass): diff --git a/fattureincloud_python_sdk/api_response.py b/fattureincloud_python_sdk/api_response.py index 1ce13729..9bc7c11f 100644 --- a/fattureincloud_python_sdk/api_response.py +++ b/fattureincloud_python_sdk/api_response.py @@ -6,7 +6,6 @@ T = TypeVar("T") - class ApiResponse(BaseModel, Generic[T]): """ API response object @@ -17,4 +16,6 @@ class ApiResponse(BaseModel, Generic[T]): data: T = Field(description="Deserialized data given the data type") raw_data: StrictBytes = Field(description="Raw data (HTTP response body)") - model_config = {"arbitrary_types_allowed": True} + model_config = { + "arbitrary_types_allowed": True + } diff --git a/fattureincloud_python_sdk/configuration.py b/fattureincloud_python_sdk/configuration.py index bf549838..e14480b6 100644 --- a/fattureincloud_python_sdk/configuration.py +++ b/fattureincloud_python_sdk/configuration.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -26,16 +26,9 @@ JSON_SCHEMA_VALIDATION_KEYWORDS = { - "multipleOf", - "maximum", - "exclusiveMaximum", - "minimum", - "exclusiveMinimum", - "maxLength", - "minLength", - "pattern", - "maxItems", - "minItems", + 'multipleOf', 'maximum', 'exclusiveMaximum', + 'minimum', 'exclusiveMinimum', 'maxLength', + 'minLength', 'pattern', 'maxItems', 'minItems' } ServerVariablesT = Dict[str, str] @@ -179,24 +172,25 @@ class Configuration: def __init__( self, - host: Optional[str] = None, - api_key: Optional[Dict[str, str]] = None, - api_key_prefix: Optional[Dict[str, str]] = None, - username: Optional[str] = None, - password: Optional[str] = None, - access_token: Optional[str] = None, - server_index: Optional[int] = None, - server_variables: Optional[ServerVariablesT] = None, - server_operation_index: Optional[Dict[int, int]] = None, - server_operation_variables: Optional[Dict[int, ServerVariablesT]] = None, - ignore_operation_servers: bool = False, - ssl_ca_cert: Optional[str] = None, + host: Optional[str]=None, + api_key: Optional[Dict[str, str]]=None, + api_key_prefix: Optional[Dict[str, str]]=None, + username: Optional[str]=None, + password: Optional[str]=None, + access_token: Optional[str]=None, + server_index: Optional[int]=None, + server_variables: Optional[ServerVariablesT]=None, + server_operation_index: Optional[Dict[int, int]]=None, + server_operation_variables: Optional[Dict[int, ServerVariablesT]]=None, + ignore_operation_servers: bool=False, + ssl_ca_cert: Optional[str]=None, retries: Optional[int] = None, ca_cert_data: Optional[Union[str, bytes]] = None, *, debug: Optional[bool] = None, ) -> None: - """Constructor""" + """Constructor + """ self._base_path = "https://api-v2.fattureincloud.it" if host is None else host """Default Base url """ @@ -242,7 +236,7 @@ def __init__( """ self.logger["package_logger"] = logging.getLogger("fattureincloud_python_sdk") self.logger["urllib3_logger"] = logging.getLogger("urllib3") - self.logger_format = "%(asctime)s %(levelname)s %(message)s" + self.logger_format = '%(asctime)s %(levelname)s %(message)s' """Log format """ self.logger_stream_handler = None @@ -301,7 +295,7 @@ def __init__( self.proxy_headers = None """Proxy headers """ - self.safe_chars_for_path_param = "" + self.safe_chars_for_path_param = '' """Safe chars for path_param """ self.retries = retries @@ -322,12 +316,12 @@ def __init__( """date format """ - def __deepcopy__(self, memo: Dict[int, Any]) -> Self: + def __deepcopy__(self, memo: Dict[int, Any]) -> Self: cls = self.__class__ result = cls.__new__(cls) memo[id(self)] = result for k, v in self.__dict__.items(): - if k not in ("logger", "logger_file_handler"): + if k not in ('logger', 'logger_file_handler'): setattr(result, k, copy.deepcopy(v, memo)) # shallow copy of loggers result.logger = copy.copy(self.logger) @@ -459,9 +453,7 @@ def logger_format(self, value: str) -> None: self.__logger_format = value self.logger_formatter = logging.Formatter(self.__logger_format) - def get_api_key_with_prefix( - self, identifier: str, alias: Optional[str] = None - ) -> Optional[str]: + def get_api_key_with_prefix(self, identifier: str, alias: Optional[str]=None) -> Optional[str]: """Gets API key (with prefix if set). :param identifier: The identifier of apiKey. @@ -470,9 +462,7 @@ def get_api_key_with_prefix( """ if self.refresh_api_key_hook is not None: self.refresh_api_key_hook(self) - key = self.api_key.get( - identifier, self.api_key.get(alias) if alias is not None else None - ) + key = self.api_key.get(identifier, self.api_key.get(alias) if alias is not None else None) if key: prefix = self.api_key_prefix.get(identifier) if prefix: @@ -493,22 +483,22 @@ def get_basic_auth_token(self) -> Optional[str]: password = "" if self.password is not None: password = self.password - return urllib3.util.make_headers(basic_auth=username + ":" + password).get( - "authorization" - ) + return urllib3.util.make_headers( + basic_auth=username + ':' + password + ).get('authorization') - def auth_settings(self) -> AuthSettings: + def auth_settings(self)-> AuthSettings: """Gets Auth Settings dict for api client. :return: The Auth Settings information dict. """ auth: AuthSettings = {} if self.access_token is not None: - auth["OAuth2AuthenticationCodeFlow"] = { - "type": "oauth2", - "in": "header", - "key": "Authorization", - "value": "Bearer " + self.access_token, + auth['OAuth2AuthenticationCodeFlow'] = { + 'type': 'oauth2', + 'in': 'header', + 'key': 'Authorization', + 'value': 'Bearer ' + self.access_token } return auth @@ -517,13 +507,12 @@ def to_debug_report(self) -> str: :return: The report for debugging. """ - return ( - "Python SDK Debug Report:\n" - "OS: {env}\n" - "Python Version: {pyversion}\n" - "Version of the API: 2.1.5\n" - "SDK Package Version: 2.1.3".format(env=sys.platform, pyversion=sys.version) - ) + return "Python SDK Debug Report:\n"\ + "OS: {env}\n"\ + "Python Version: {pyversion}\n"\ + "Version of the API: 2.1.8\n"\ + "SDK Package Version: 2.1.4".\ + format(env=sys.platform, pyversion=sys.version) def get_host_settings(self) -> List[HostSetting]: """Gets an array of host settings @@ -532,16 +521,16 @@ def get_host_settings(self) -> List[HostSetting]: """ return [ { - "url": "https://api-v2.fattureincloud.it", - "description": "No description provided", + 'url': "https://api-v2.fattureincloud.it", + 'description': "No description provided", } ] def get_host_from_settings( self, index: Optional[int], - variables: Optional[ServerVariablesT] = None, - servers: Optional[List[HostSetting]] = None, + variables: Optional[ServerVariablesT]=None, + servers: Optional[List[HostSetting]]=None, ) -> str: """Gets host URL based on the index and variables :param index: array index of the host settings @@ -560,22 +549,22 @@ def get_host_from_settings( except IndexError: raise ValueError( "Invalid index {0} when selecting the host settings. " - "Must be less than {1}".format(index, len(servers)) - ) + "Must be less than {1}".format(index, len(servers))) - url = server["url"] + url = server['url'] # go through variables and replace placeholders - for variable_name, variable in server.get("variables", {}).items(): - used_value = variables.get(variable_name, variable["default_value"]) + for variable_name, variable in server.get('variables', {}).items(): + used_value = variables.get( + variable_name, variable['default_value']) - if "enum_values" in variable and used_value not in variable["enum_values"]: + if 'enum_values' in variable \ + and used_value not in variable['enum_values']: raise ValueError( "The variable `{0}` in the host URL has invalid value " "{1}. Must be {2}.".format( - variable_name, variables[variable_name], variable["enum_values"] - ) - ) + variable_name, variables[variable_name], + variable['enum_values'])) url = url.replace("{" + variable_name + "}", used_value) @@ -584,9 +573,7 @@ def get_host_from_settings( @property def host(self) -> str: """Return generated host.""" - return self.get_host_from_settings( - self.server_index, variables=self.server_variables - ) + return self.get_host_from_settings(self.server_index, variables=self.server_variables) @host.setter def host(self, value: str) -> None: diff --git a/fattureincloud_python_sdk/exceptions.py b/fattureincloud_python_sdk/exceptions.py index 394db364..c226fbff 100644 --- a/fattureincloud_python_sdk/exceptions.py +++ b/fattureincloud_python_sdk/exceptions.py @@ -1,30 +1,28 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + 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""" class ApiTypeError(OpenApiException, TypeError): - def __init__( - self, msg, path_to_item=None, valid_classes=None, key_type=None - ) -> None: - """Raises an exception for TypeErrors + def __init__(self, msg, path_to_item=None, valid_classes=None, + key_type=None) -> None: + """ Raises an exception for TypeErrors Args: msg (str): the exception message @@ -107,9 +105,9 @@ def __init__(self, msg, path_to_item=None) -> None: class ApiException(OpenApiException): def __init__( - self, - status=None, - reason=None, + self, + status=None, + reason=None, http_resp=None, *, body: Optional[str] = None, @@ -128,17 +126,17 @@ def __init__( self.reason = http_resp.reason if self.body is None: try: - self.body = http_resp.data.decode("utf-8") + self.body = http_resp.data.decode('utf-8') except Exception: pass self.headers = http_resp.getheaders() @classmethod def from_response( - cls, - *, - http_resp, - body: Optional[str], + cls, + *, + http_resp, + body: Optional[str], data: Optional[Any], ) -> Self: if http_resp.status == 400: @@ -158,9 +156,7 @@ def from_response( raise ConflictException(http_resp=http_resp, body=body, data=data) if http_resp.status == 422: - raise UnprocessableEntityException( - http_resp=http_resp, body=body, data=data - ) + raise UnprocessableEntityException(http_resp=http_resp, body=body, data=data) if 500 <= http_resp.status <= 599: raise ServiceException(http_resp=http_resp, body=body, data=data) @@ -168,9 +164,11 @@ def from_response( def __str__(self): """Custom error messages for exception""" - error_message = "({0})\n" "Reason: {1}\n".format(self.status, self.reason) + error_message = "({0})\n"\ + "Reason: {1}\n".format(self.status, self.reason) if self.headers: - error_message += "HTTP response headers: {0}\n".format(self.headers) + error_message += "HTTP response headers: {0}\n".format( + self.headers) if self.data or self.body: error_message += "HTTP response body: {0}\n".format(self.data or self.body) @@ -200,13 +198,11 @@ class ServiceException(ApiException): class ConflictException(ApiException): """Exception for HTTP 409 Conflict.""" - pass class UnprocessableEntityException(ApiException): """Exception for HTTP 422 Unprocessable Entity.""" - pass diff --git a/fattureincloud_python_sdk/models/__init__.py b/fattureincloud_python_sdk/models/__init__.py index b6a4903b..463fe040 100644 --- a/fattureincloud_python_sdk/models/__init__.py +++ b/fattureincloud_python_sdk/models/__init__.py @@ -2,25 +2,22 @@ # flake8: noqa """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 - # import models into model package from fattureincloud_python_sdk.models.archive_document import ArchiveDocument from fattureincloud_python_sdk.models.attachment_data import AttachmentData from fattureincloud_python_sdk.models.cashbook_entry import CashbookEntry -from fattureincloud_python_sdk.models.cashbook_entry_document import ( - CashbookEntryDocument, -) +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.city import City @@ -28,432 +25,182 @@ from fattureincloud_python_sdk.models.client_type import ClientType from fattureincloud_python_sdk.models.company import Company from fattureincloud_python_sdk.models.company_info import CompanyInfo -from fattureincloud_python_sdk.models.company_info_access_info import ( - CompanyInfoAccessInfo, -) +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_info_plan_info_functions import ( - CompanyInfoPlanInfoFunctions, -) -from fattureincloud_python_sdk.models.company_info_plan_info_functions_status import ( - CompanyInfoPlanInfoFunctionsStatus, -) -from fattureincloud_python_sdk.models.company_info_plan_info_limits import ( - CompanyInfoPlanInfoLimits, -) +from fattureincloud_python_sdk.models.company_info_plan_info_functions import CompanyInfoPlanInfoFunctions +from fattureincloud_python_sdk.models.company_info_plan_info_functions_status import CompanyInfoPlanInfoFunctionsStatus +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 ( - CreateArchiveDocumentRequest, -) -from fattureincloud_python_sdk.models.create_archive_document_response import ( - CreateArchiveDocumentResponse, -) -from fattureincloud_python_sdk.models.create_cashbook_entry_request import ( - CreateCashbookEntryRequest, -) -from fattureincloud_python_sdk.models.create_cashbook_entry_response import ( - CreateCashbookEntryResponse, -) +from fattureincloud_python_sdk.models.create_archive_document_request import CreateArchiveDocumentRequest +from fattureincloud_python_sdk.models.create_archive_document_response import CreateArchiveDocumentResponse +from fattureincloud_python_sdk.models.create_cashbook_entry_request import CreateCashbookEntryRequest +from fattureincloud_python_sdk.models.create_cashbook_entry_response import CreateCashbookEntryResponse 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.create_f24_request import CreateF24Request from fattureincloud_python_sdk.models.create_f24_response import CreateF24Response -from fattureincloud_python_sdk.models.create_issued_document_request import ( - CreateIssuedDocumentRequest, -) -from fattureincloud_python_sdk.models.create_issued_document_response import ( - CreateIssuedDocumentResponse, -) -from fattureincloud_python_sdk.models.create_payment_account_request import ( - CreatePaymentAccountRequest, -) -from fattureincloud_python_sdk.models.create_payment_account_response import ( - CreatePaymentAccountResponse, -) -from fattureincloud_python_sdk.models.create_payment_method_request import ( - CreatePaymentMethodRequest, -) -from fattureincloud_python_sdk.models.create_payment_method_response import ( - CreatePaymentMethodResponse, -) +from fattureincloud_python_sdk.models.create_issued_document_request import CreateIssuedDocumentRequest +from fattureincloud_python_sdk.models.create_issued_document_response import CreateIssuedDocumentResponse +from fattureincloud_python_sdk.models.create_payment_account_request import CreatePaymentAccountRequest +from fattureincloud_python_sdk.models.create_payment_account_response import CreatePaymentAccountResponse +from fattureincloud_python_sdk.models.create_payment_method_request import CreatePaymentMethodRequest +from fattureincloud_python_sdk.models.create_payment_method_response import CreatePaymentMethodResponse from fattureincloud_python_sdk.models.create_product_request import CreateProductRequest -from fattureincloud_python_sdk.models.create_product_response import ( - CreateProductResponse, -) +from fattureincloud_python_sdk.models.create_product_response import CreateProductResponse from fattureincloud_python_sdk.models.create_receipt_request import CreateReceiptRequest -from fattureincloud_python_sdk.models.create_receipt_response import ( - CreateReceiptResponse, -) -from fattureincloud_python_sdk.models.create_received_document_request import ( - CreateReceivedDocumentRequest, -) -from fattureincloud_python_sdk.models.create_received_document_response import ( - CreateReceivedDocumentResponse, -) -from fattureincloud_python_sdk.models.create_supplier_request import ( - CreateSupplierRequest, -) -from fattureincloud_python_sdk.models.create_supplier_response import ( - CreateSupplierResponse, -) -from fattureincloud_python_sdk.models.create_vat_type_request import ( - CreateVatTypeRequest, -) -from fattureincloud_python_sdk.models.create_vat_type_response import ( - CreateVatTypeResponse, -) -from fattureincloud_python_sdk.models.create_webhooks_subscription_request import ( - CreateWebhooksSubscriptionRequest, -) -from fattureincloud_python_sdk.models.create_webhooks_subscription_response import ( - CreateWebhooksSubscriptionResponse, -) +from fattureincloud_python_sdk.models.create_receipt_response import CreateReceiptResponse +from fattureincloud_python_sdk.models.create_received_document_request import CreateReceivedDocumentRequest +from fattureincloud_python_sdk.models.create_received_document_response import CreateReceivedDocumentResponse +from fattureincloud_python_sdk.models.create_supplier_request import CreateSupplierRequest +from fattureincloud_python_sdk.models.create_supplier_response import CreateSupplierResponse +from fattureincloud_python_sdk.models.create_vat_type_request import CreateVatTypeRequest +from fattureincloud_python_sdk.models.create_vat_type_response import CreateVatTypeResponse +from fattureincloud_python_sdk.models.create_webhooks_subscription_request import CreateWebhooksSubscriptionRequest +from fattureincloud_python_sdk.models.create_webhooks_subscription_response import CreateWebhooksSubscriptionResponse from fattureincloud_python_sdk.models.currency import Currency from fattureincloud_python_sdk.models.detailed_country import DetailedCountry from fattureincloud_python_sdk.models.document_template import DocumentTemplate -from fattureincloud_python_sdk.models.e_invoice_rejection_reason import ( - EInvoiceRejectionReason, -) +from fattureincloud_python_sdk.models.e_invoice_rejection_reason import EInvoiceRejectionReason from fattureincloud_python_sdk.models.email import Email from fattureincloud_python_sdk.models.email_attachment import EmailAttachment from fattureincloud_python_sdk.models.email_data import EmailData -from fattureincloud_python_sdk.models.email_data_default_sender_email import ( - EmailDataDefaultSenderEmail, -) +from fattureincloud_python_sdk.models.email_data_default_sender_email import EmailDataDefaultSenderEmail from fattureincloud_python_sdk.models.email_recipient_status import EmailRecipientStatus from fattureincloud_python_sdk.models.email_schedule import EmailSchedule from fattureincloud_python_sdk.models.email_schedule_include import EmailScheduleInclude from fattureincloud_python_sdk.models.email_status import EmailStatus from fattureincloud_python_sdk.models.entity import Entity -from fattureincloud_python_sdk.models.entity_client_pre_create_info import ( - EntityClientPreCreateInfo, -) +from fattureincloud_python_sdk.models.entity_client_pre_create_info import EntityClientPreCreateInfo from fattureincloud_python_sdk.models.entity_type import EntityType 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.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, -) -from fattureincloud_python_sdk.models.get_bin_issued_document_response import ( - GetBinIssuedDocumentResponse, -) -from fattureincloud_python_sdk.models.get_bin_received_document_response import ( - GetBinReceivedDocumentResponse, -) -from fattureincloud_python_sdk.models.get_cashbook_entry_response import ( - GetCashbookEntryResponse, -) +from fattureincloud_python_sdk.models.get_archive_document_response import GetArchiveDocumentResponse +from fattureincloud_python_sdk.models.get_bin_issued_document_response import GetBinIssuedDocumentResponse +from fattureincloud_python_sdk.models.get_bin_received_document_response import GetBinReceivedDocumentResponse +from fattureincloud_python_sdk.models.get_cashbook_entry_response import GetCashbookEntryResponse from fattureincloud_python_sdk.models.get_client_response import GetClientResponse -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, -) -from fattureincloud_python_sdk.models.get_email_data_response import ( - GetEmailDataResponse, -) -from fattureincloud_python_sdk.models.get_entity_client_pre_create_info_response import ( - GetEntityClientPreCreateInfoResponse, -) -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, -) -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, -) +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 +from fattureincloud_python_sdk.models.get_email_data_response import GetEmailDataResponse +from fattureincloud_python_sdk.models.get_entity_client_pre_create_info_response import GetEntityClientPreCreateInfoResponse +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 +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 from fattureincloud_python_sdk.models.get_f24_response import GetF24Response -from fattureincloud_python_sdk.models.get_issued_document_pre_create_info_response import ( - GetIssuedDocumentPreCreateInfoResponse, -) -from fattureincloud_python_sdk.models.get_issued_document_response import ( - GetIssuedDocumentResponse, -) -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, -) -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, -) -from fattureincloud_python_sdk.models.get_payment_account_response import ( - GetPaymentAccountResponse, -) -from fattureincloud_python_sdk.models.get_payment_method_response import ( - GetPaymentMethodResponse, -) -from fattureincloud_python_sdk.models.get_price_list_items_response import ( - GetPriceListItemsResponse, -) +from fattureincloud_python_sdk.models.get_issued_document_pre_create_info_response import GetIssuedDocumentPreCreateInfoResponse +from fattureincloud_python_sdk.models.get_issued_document_response import GetIssuedDocumentResponse +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 +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 +from fattureincloud_python_sdk.models.get_payment_account_response import GetPaymentAccountResponse +from fattureincloud_python_sdk.models.get_payment_method_response import GetPaymentMethodResponse +from fattureincloud_python_sdk.models.get_price_list_items_response import GetPriceListItemsResponse from fattureincloud_python_sdk.models.get_product_response import GetProductResponse -from fattureincloud_python_sdk.models.get_receipt_pre_create_info_response import ( - GetReceiptPreCreateInfoResponse, -) +from fattureincloud_python_sdk.models.get_receipt_pre_create_info_response import GetReceiptPreCreateInfoResponse from fattureincloud_python_sdk.models.get_receipt_response import GetReceiptResponse -from fattureincloud_python_sdk.models.get_receipts_monthly_totals_response import ( - GetReceiptsMonthlyTotalsResponse, -) -from fattureincloud_python_sdk.models.get_received_document_pre_create_info_response import ( - GetReceivedDocumentPreCreateInfoResponse, -) -from fattureincloud_python_sdk.models.get_received_document_response import ( - GetReceivedDocumentResponse, -) +from fattureincloud_python_sdk.models.get_receipts_monthly_totals_response import GetReceiptsMonthlyTotalsResponse +from fattureincloud_python_sdk.models.get_received_document_pre_create_info_response import GetReceivedDocumentPreCreateInfoResponse +from fattureincloud_python_sdk.models.get_received_document_response import GetReceivedDocumentResponse from fattureincloud_python_sdk.models.get_supplier_response import GetSupplierResponse -from fattureincloud_python_sdk.models.get_tax_profile_response import ( - GetTaxProfileResponse, -) +from fattureincloud_python_sdk.models.get_tax_profile_response import GetTaxProfileResponse from fattureincloud_python_sdk.models.get_user_info_response import GetUserInfoResponse -from fattureincloud_python_sdk.models.get_user_info_response_email_confirmation_state import ( - GetUserInfoResponseEmailConfirmationState, -) -from fattureincloud_python_sdk.models.get_user_info_response_info import ( - GetUserInfoResponseInfo, -) +from fattureincloud_python_sdk.models.get_user_info_response_email_confirmation_state import GetUserInfoResponseEmailConfirmationState +from fattureincloud_python_sdk.models.get_user_info_response_info import GetUserInfoResponseInfo from fattureincloud_python_sdk.models.get_vat_type_response import GetVatTypeResponse -from fattureincloud_python_sdk.models.get_webhooks_subscription_response import ( - GetWebhooksSubscriptionResponse, -) +from fattureincloud_python_sdk.models.get_webhooks_subscription_response import GetWebhooksSubscriptionResponse from fattureincloud_python_sdk.models.issued_document import IssuedDocument -from fattureincloud_python_sdk.models.issued_document_ei_data import ( - IssuedDocumentEiData, -) -from fattureincloud_python_sdk.models.issued_document_extra_data import ( - IssuedDocumentExtraData, -) -from fattureincloud_python_sdk.models.issued_document_items_list_item import ( - IssuedDocumentItemsListItem, -) -from fattureincloud_python_sdk.models.issued_document_options import ( - IssuedDocumentOptions, -) -from fattureincloud_python_sdk.models.issued_document_payments_list_item import ( - IssuedDocumentPaymentsListItem, -) -from fattureincloud_python_sdk.models.issued_document_payments_list_item_payment_terms import ( - IssuedDocumentPaymentsListItemPaymentTerms, -) -from fattureincloud_python_sdk.models.issued_document_pre_create_info import ( - IssuedDocumentPreCreateInfo, -) -from fattureincloud_python_sdk.models.issued_document_pre_create_info_default_values import ( - IssuedDocumentPreCreateInfoDefaultValues, -) -from fattureincloud_python_sdk.models.issued_document_pre_create_info_extra_data_default_values import ( - IssuedDocumentPreCreateInfoExtraDataDefaultValues, -) -from fattureincloud_python_sdk.models.issued_document_pre_create_info_items_default_values import ( - IssuedDocumentPreCreateInfoItemsDefaultValues, -) +from fattureincloud_python_sdk.models.issued_document_ei_data import IssuedDocumentEiData +from fattureincloud_python_sdk.models.issued_document_extra_data import IssuedDocumentExtraData +from fattureincloud_python_sdk.models.issued_document_items_list_item import IssuedDocumentItemsListItem +from fattureincloud_python_sdk.models.issued_document_options import IssuedDocumentOptions +from fattureincloud_python_sdk.models.issued_document_payments_list_item import IssuedDocumentPaymentsListItem +from fattureincloud_python_sdk.models.issued_document_payments_list_item_payment_terms import IssuedDocumentPaymentsListItemPaymentTerms +from fattureincloud_python_sdk.models.issued_document_pre_create_info import IssuedDocumentPreCreateInfo +from fattureincloud_python_sdk.models.issued_document_pre_create_info_default_values import IssuedDocumentPreCreateInfoDefaultValues +from fattureincloud_python_sdk.models.issued_document_pre_create_info_extra_data_default_values import IssuedDocumentPreCreateInfoExtraDataDefaultValues +from fattureincloud_python_sdk.models.issued_document_pre_create_info_items_default_values import IssuedDocumentPreCreateInfoItemsDefaultValues from fattureincloud_python_sdk.models.issued_document_status import IssuedDocumentStatus from fattureincloud_python_sdk.models.issued_document_totals import IssuedDocumentTotals from fattureincloud_python_sdk.models.issued_document_type import IssuedDocumentType -from fattureincloud_python_sdk.models.join_issued_documents_response import ( - JoinIssuedDocumentsResponse, -) +from fattureincloud_python_sdk.models.join_issued_documents_response import JoinIssuedDocumentsResponse from fattureincloud_python_sdk.models.language import Language -from fattureincloud_python_sdk.models.list_archive_categories_response import ( - ListArchiveCategoriesResponse, -) -from fattureincloud_python_sdk.models.list_archive_documents_response import ( - ListArchiveDocumentsResponse, -) -from fattureincloud_python_sdk.models.list_archive_documents_response_page import ( - ListArchiveDocumentsResponsePage, -) -from fattureincloud_python_sdk.models.list_bin_issued_documents import ( - ListBinIssuedDocuments, -) -from fattureincloud_python_sdk.models.list_bin_received_documents import ( - ListBinReceivedDocuments, -) -from fattureincloud_python_sdk.models.list_cashbook_entries_response import ( - ListCashbookEntriesResponse, -) +from fattureincloud_python_sdk.models.list_archive_categories_response import ListArchiveCategoriesResponse +from fattureincloud_python_sdk.models.list_archive_documents_response import ListArchiveDocumentsResponse +from fattureincloud_python_sdk.models.list_archive_documents_response_page import ListArchiveDocumentsResponsePage +from fattureincloud_python_sdk.models.list_bin_issued_documents import ListBinIssuedDocuments +from fattureincloud_python_sdk.models.list_bin_received_documents import ListBinReceivedDocuments +from fattureincloud_python_sdk.models.list_cashbook_entries_response import ListCashbookEntriesResponse from fattureincloud_python_sdk.models.list_cities_response import ListCitiesResponse from fattureincloud_python_sdk.models.list_clients_response import ListClientsResponse -from fattureincloud_python_sdk.models.list_clients_response_page import ( - ListClientsResponsePage, -) -from fattureincloud_python_sdk.models.list_cost_centers_response import ( - ListCostCentersResponse, -) -from fattureincloud_python_sdk.models.list_countries_response import ( - ListCountriesResponse, -) -from fattureincloud_python_sdk.models.list_currencies_response import ( - ListCurrenciesResponse, -) -from fattureincloud_python_sdk.models.list_delivery_notes_default_causals_response import ( - ListDeliveryNotesDefaultCausalsResponse, -) -from fattureincloud_python_sdk.models.list_detailed_countries_response import ( - ListDetailedCountriesResponse, -) +from fattureincloud_python_sdk.models.list_clients_response_page import ListClientsResponsePage +from fattureincloud_python_sdk.models.list_cost_centers_response import ListCostCentersResponse +from fattureincloud_python_sdk.models.list_countries_response import ListCountriesResponse +from fattureincloud_python_sdk.models.list_currencies_response import ListCurrenciesResponse +from fattureincloud_python_sdk.models.list_delivery_notes_default_causals_response import ListDeliveryNotesDefaultCausalsResponse +from fattureincloud_python_sdk.models.list_detailed_countries_response import ListDetailedCountriesResponse from fattureincloud_python_sdk.models.list_emails_response import ListEmailsResponse -from fattureincloud_python_sdk.models.list_emails_response_page import ( - ListEmailsResponsePage, -) +from fattureincloud_python_sdk.models.list_emails_response_page import ListEmailsResponsePage from fattureincloud_python_sdk.models.list_f24_response import ListF24Response -from fattureincloud_python_sdk.models.list_f24_response_aggregated_data import ( - ListF24ResponseAggregatedData, -) -from fattureincloud_python_sdk.models.list_f24_response_aggregation import ( - ListF24ResponseAggregation, -) +from fattureincloud_python_sdk.models.list_f24_response_aggregated_data import ListF24ResponseAggregatedData +from fattureincloud_python_sdk.models.list_f24_response_aggregation import ListF24ResponseAggregation from fattureincloud_python_sdk.models.list_f24_response_page import ListF24ResponsePage -from fattureincloud_python_sdk.models.list_issued_documents_response import ( - ListIssuedDocumentsResponse, -) -from fattureincloud_python_sdk.models.list_issued_documents_response_page import ( - ListIssuedDocumentsResponsePage, -) -from fattureincloud_python_sdk.models.list_languages_response import ( - ListLanguagesResponse, -) -from fattureincloud_python_sdk.models.list_payment_accounts_response import ( - ListPaymentAccountsResponse, -) -from fattureincloud_python_sdk.models.list_payment_methods_response import ( - ListPaymentMethodsResponse, -) -from fattureincloud_python_sdk.models.list_price_lists_response import ( - ListPriceListsResponse, -) -from fattureincloud_python_sdk.models.list_product_categories_response import ( - ListProductCategoriesResponse, -) +from fattureincloud_python_sdk.models.list_issued_documents_response import ListIssuedDocumentsResponse +from fattureincloud_python_sdk.models.list_issued_documents_response_page import ListIssuedDocumentsResponsePage +from fattureincloud_python_sdk.models.list_languages_response import ListLanguagesResponse +from fattureincloud_python_sdk.models.list_payment_accounts_response import ListPaymentAccountsResponse +from fattureincloud_python_sdk.models.list_payment_methods_response import ListPaymentMethodsResponse +from fattureincloud_python_sdk.models.list_price_lists_response import ListPriceListsResponse +from fattureincloud_python_sdk.models.list_product_categories_response import ListProductCategoriesResponse from fattureincloud_python_sdk.models.list_products_response import ListProductsResponse -from fattureincloud_python_sdk.models.list_products_response_page import ( - ListProductsResponsePage, -) +from fattureincloud_python_sdk.models.list_products_response_page import ListProductsResponsePage from fattureincloud_python_sdk.models.list_receipts_response import ListReceiptsResponse -from fattureincloud_python_sdk.models.list_receipts_response_page import ( - ListReceiptsResponsePage, -) -from fattureincloud_python_sdk.models.list_received_document_categories_response import ( - ListReceivedDocumentCategoriesResponse, -) -from fattureincloud_python_sdk.models.list_received_documents_response import ( - ListReceivedDocumentsResponse, -) -from fattureincloud_python_sdk.models.list_received_documents_response_page import ( - ListReceivedDocumentsResponsePage, -) -from fattureincloud_python_sdk.models.list_revenue_centers_response import ( - ListRevenueCentersResponse, -) -from fattureincloud_python_sdk.models.list_suppliers_response import ( - ListSuppliersResponse, -) -from fattureincloud_python_sdk.models.list_suppliers_response_page import ( - ListSuppliersResponsePage, -) -from fattureincloud_python_sdk.models.list_templates_response import ( - ListTemplatesResponse, -) -from fattureincloud_python_sdk.models.list_units_of_measure_response import ( - ListUnitsOfMeasureResponse, -) -from fattureincloud_python_sdk.models.list_user_companies_response import ( - ListUserCompaniesResponse, -) -from fattureincloud_python_sdk.models.list_user_companies_response_data import ( - ListUserCompaniesResponseData, -) -from fattureincloud_python_sdk.models.list_vat_types_response import ( - ListVatTypesResponse, -) -from fattureincloud_python_sdk.models.list_webhooks_subscriptions_response import ( - ListWebhooksSubscriptionsResponse, -) -from fattureincloud_python_sdk.models.modify_archive_document_request import ( - ModifyArchiveDocumentRequest, -) -from fattureincloud_python_sdk.models.modify_archive_document_response import ( - ModifyArchiveDocumentResponse, -) -from fattureincloud_python_sdk.models.modify_cashbook_entry_request import ( - ModifyCashbookEntryRequest, -) -from fattureincloud_python_sdk.models.modify_cashbook_entry_response import ( - ModifyCashbookEntryResponse, -) +from fattureincloud_python_sdk.models.list_receipts_response_page import ListReceiptsResponsePage +from fattureincloud_python_sdk.models.list_received_document_categories_response import ListReceivedDocumentCategoriesResponse +from fattureincloud_python_sdk.models.list_received_documents_response import ListReceivedDocumentsResponse +from fattureincloud_python_sdk.models.list_received_documents_response_page import ListReceivedDocumentsResponsePage +from fattureincloud_python_sdk.models.list_revenue_centers_response import ListRevenueCentersResponse +from fattureincloud_python_sdk.models.list_suppliers_response import ListSuppliersResponse +from fattureincloud_python_sdk.models.list_suppliers_response_page import ListSuppliersResponsePage +from fattureincloud_python_sdk.models.list_templates_response import ListTemplatesResponse +from fattureincloud_python_sdk.models.list_units_of_measure_response import ListUnitsOfMeasureResponse +from fattureincloud_python_sdk.models.list_user_companies_response import ListUserCompaniesResponse +from fattureincloud_python_sdk.models.list_user_companies_response_data import ListUserCompaniesResponseData +from fattureincloud_python_sdk.models.list_vat_types_response import ListVatTypesResponse +from fattureincloud_python_sdk.models.list_webhooks_subscriptions_response import ListWebhooksSubscriptionsResponse +from fattureincloud_python_sdk.models.modify_archive_document_request import ModifyArchiveDocumentRequest +from fattureincloud_python_sdk.models.modify_archive_document_response import ModifyArchiveDocumentResponse +from fattureincloud_python_sdk.models.modify_cashbook_entry_request import ModifyCashbookEntryRequest +from fattureincloud_python_sdk.models.modify_cashbook_entry_response import ModifyCashbookEntryResponse from fattureincloud_python_sdk.models.modify_client_request import ModifyClientRequest from fattureincloud_python_sdk.models.modify_client_response import ModifyClientResponse from fattureincloud_python_sdk.models.modify_f24_request import ModifyF24Request from fattureincloud_python_sdk.models.modify_f24_response import ModifyF24Response -from fattureincloud_python_sdk.models.modify_issued_document_request import ( - ModifyIssuedDocumentRequest, -) -from fattureincloud_python_sdk.models.modify_issued_document_response import ( - ModifyIssuedDocumentResponse, -) -from fattureincloud_python_sdk.models.modify_payment_account_request import ( - ModifyPaymentAccountRequest, -) -from fattureincloud_python_sdk.models.modify_payment_account_response import ( - ModifyPaymentAccountResponse, -) -from fattureincloud_python_sdk.models.modify_payment_method_request import ( - ModifyPaymentMethodRequest, -) -from fattureincloud_python_sdk.models.modify_payment_method_response import ( - ModifyPaymentMethodResponse, -) +from fattureincloud_python_sdk.models.modify_issued_document_request import ModifyIssuedDocumentRequest +from fattureincloud_python_sdk.models.modify_issued_document_response import ModifyIssuedDocumentResponse +from fattureincloud_python_sdk.models.modify_payment_account_request import ModifyPaymentAccountRequest +from fattureincloud_python_sdk.models.modify_payment_account_response import ModifyPaymentAccountResponse +from fattureincloud_python_sdk.models.modify_payment_method_request import ModifyPaymentMethodRequest +from fattureincloud_python_sdk.models.modify_payment_method_response import ModifyPaymentMethodResponse from fattureincloud_python_sdk.models.modify_product_request import ModifyProductRequest -from fattureincloud_python_sdk.models.modify_product_response import ( - ModifyProductResponse, -) +from fattureincloud_python_sdk.models.modify_product_response import ModifyProductResponse from fattureincloud_python_sdk.models.modify_receipt_request import ModifyReceiptRequest -from fattureincloud_python_sdk.models.modify_receipt_response import ( - ModifyReceiptResponse, -) -from fattureincloud_python_sdk.models.modify_received_document_request import ( - ModifyReceivedDocumentRequest, -) -from fattureincloud_python_sdk.models.modify_received_document_response import ( - ModifyReceivedDocumentResponse, -) -from fattureincloud_python_sdk.models.modify_supplier_request import ( - ModifySupplierRequest, -) -from fattureincloud_python_sdk.models.modify_supplier_response import ( - ModifySupplierResponse, -) -from fattureincloud_python_sdk.models.modify_vat_type_request import ( - ModifyVatTypeRequest, -) -from fattureincloud_python_sdk.models.modify_vat_type_response import ( - ModifyVatTypeResponse, -) -from fattureincloud_python_sdk.models.modify_webhooks_subscription_request import ( - ModifyWebhooksSubscriptionRequest, -) -from fattureincloud_python_sdk.models.modify_webhooks_subscription_response import ( - ModifyWebhooksSubscriptionResponse, -) +from fattureincloud_python_sdk.models.modify_receipt_response import ModifyReceiptResponse +from fattureincloud_python_sdk.models.modify_received_document_request import ModifyReceivedDocumentRequest +from fattureincloud_python_sdk.models.modify_received_document_response import ModifyReceivedDocumentResponse +from fattureincloud_python_sdk.models.modify_supplier_request import ModifySupplierRequest +from fattureincloud_python_sdk.models.modify_supplier_response import ModifySupplierResponse +from fattureincloud_python_sdk.models.modify_vat_type_request import ModifyVatTypeRequest +from fattureincloud_python_sdk.models.modify_vat_type_response import ModifyVatTypeResponse +from fattureincloud_python_sdk.models.modify_webhooks_subscription_request import ModifyWebhooksSubscriptionRequest +from fattureincloud_python_sdk.models.modify_webhooks_subscription_response import ModifyWebhooksSubscriptionResponse from fattureincloud_python_sdk.models.monthly_total import MonthlyTotal from fattureincloud_python_sdk.models.original_document_type import OriginalDocumentType from fattureincloud_python_sdk.models.pagination import Pagination @@ -465,113 +212,56 @@ from fattureincloud_python_sdk.models.payment_terms_type import PaymentTermsType from fattureincloud_python_sdk.models.permission_level import PermissionLevel from fattureincloud_python_sdk.models.permissions import Permissions -from fattureincloud_python_sdk.models.permissions_fic_issued_documents_detailed import ( - PermissionsFicIssuedDocumentsDetailed, -) +from fattureincloud_python_sdk.models.permissions_fic_issued_documents_detailed import PermissionsFicIssuedDocumentsDetailed from fattureincloud_python_sdk.models.price_list import PriceList from fattureincloud_python_sdk.models.price_list_item import PriceListItem from fattureincloud_python_sdk.models.price_list_prices_type import PriceListPricesType from fattureincloud_python_sdk.models.price_list_type import PriceListType from fattureincloud_python_sdk.models.product import Product from fattureincloud_python_sdk.models.receipt import Receipt -from fattureincloud_python_sdk.models.receipt_items_list_item import ( - ReceiptItemsListItem, -) -from fattureincloud_python_sdk.models.receipt_pre_create_info import ( - ReceiptPreCreateInfo, -) +from fattureincloud_python_sdk.models.receipt_items_list_item import ReceiptItemsListItem +from fattureincloud_python_sdk.models.receipt_pre_create_info import ReceiptPreCreateInfo from fattureincloud_python_sdk.models.receipt_type import ReceiptType from fattureincloud_python_sdk.models.received_document import ReceivedDocument from fattureincloud_python_sdk.models.received_document_info import ReceivedDocumentInfo -from fattureincloud_python_sdk.models.received_document_info_default_values import ( - ReceivedDocumentInfoDefaultValues, -) -from fattureincloud_python_sdk.models.received_document_info_items_default_values import ( - ReceivedDocumentInfoItemsDefaultValues, -) -from fattureincloud_python_sdk.models.received_document_items_list_item import ( - ReceivedDocumentItemsListItem, -) -from fattureincloud_python_sdk.models.received_document_payments_list_item import ( - ReceivedDocumentPaymentsListItem, -) -from fattureincloud_python_sdk.models.received_document_payments_list_item_payment_terms import ( - ReceivedDocumentPaymentsListItemPaymentTerms, -) -from fattureincloud_python_sdk.models.received_document_totals import ( - ReceivedDocumentTotals, -) +from fattureincloud_python_sdk.models.received_document_info_default_values import ReceivedDocumentInfoDefaultValues +from fattureincloud_python_sdk.models.received_document_info_items_default_values import ReceivedDocumentInfoItemsDefaultValues +from fattureincloud_python_sdk.models.received_document_items_list_item import ReceivedDocumentItemsListItem +from fattureincloud_python_sdk.models.received_document_payments_list_item import ReceivedDocumentPaymentsListItem +from fattureincloud_python_sdk.models.received_document_payments_list_item_payment_terms import ReceivedDocumentPaymentsListItemPaymentTerms +from fattureincloud_python_sdk.models.received_document_totals import ReceivedDocumentTotals from fattureincloud_python_sdk.models.received_document_type import ReceivedDocumentType from fattureincloud_python_sdk.models.schedule_email_request import ScheduleEmailRequest from fattureincloud_python_sdk.models.send_e_invoice_request import SendEInvoiceRequest -from fattureincloud_python_sdk.models.send_e_invoice_request_data import ( - SendEInvoiceRequestData, -) -from fattureincloud_python_sdk.models.send_e_invoice_request_options import ( - SendEInvoiceRequestOptions, -) -from fattureincloud_python_sdk.models.send_e_invoice_response import ( - SendEInvoiceResponse, -) -from fattureincloud_python_sdk.models.send_e_invoice_response_data import ( - SendEInvoiceResponseData, -) +from fattureincloud_python_sdk.models.send_e_invoice_request_data import SendEInvoiceRequestData +from fattureincloud_python_sdk.models.send_e_invoice_request_options import SendEInvoiceRequestOptions +from fattureincloud_python_sdk.models.send_e_invoice_response import SendEInvoiceResponse +from fattureincloud_python_sdk.models.send_e_invoice_response_data import SendEInvoiceResponseData from fattureincloud_python_sdk.models.sender_email import SenderEmail from fattureincloud_python_sdk.models.show_totals_mode import ShowTotalsMode from fattureincloud_python_sdk.models.supplier import Supplier from fattureincloud_python_sdk.models.supplier_type import SupplierType from fattureincloud_python_sdk.models.tax_profile import TaxProfile -from fattureincloud_python_sdk.models.transform_issued_document_response import ( - TransformIssuedDocumentResponse, -) -from fattureincloud_python_sdk.models.upload_archive_attachment_response import ( - UploadArchiveAttachmentResponse, -) -from fattureincloud_python_sdk.models.upload_f24_attachment_response import ( - UploadF24AttachmentResponse, -) -from fattureincloud_python_sdk.models.upload_issued_document_attachment_response import ( - UploadIssuedDocumentAttachmentResponse, -) -from fattureincloud_python_sdk.models.upload_received_document_attachment_response import ( - UploadReceivedDocumentAttachmentResponse, -) +from fattureincloud_python_sdk.models.transform_issued_document_response import TransformIssuedDocumentResponse +from fattureincloud_python_sdk.models.upload_archive_attachment_response import UploadArchiveAttachmentResponse +from fattureincloud_python_sdk.models.upload_f24_attachment_response import UploadF24AttachmentResponse +from fattureincloud_python_sdk.models.upload_issued_document_attachment_response import UploadIssuedDocumentAttachmentResponse +from fattureincloud_python_sdk.models.upload_received_document_attachment_response import UploadReceivedDocumentAttachmentResponse from fattureincloud_python_sdk.models.user import User from fattureincloud_python_sdk.models.user_company_role import UserCompanyRole from fattureincloud_python_sdk.models.vat_item import VatItem from fattureincloud_python_sdk.models.vat_kind import VatKind from fattureincloud_python_sdk.models.vat_type import VatType -from fattureincloud_python_sdk.models.verify_e_invoice_xml_error_response import ( - VerifyEInvoiceXmlErrorResponse, -) -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_error_validation_result import ( - VerifyEInvoiceXmlErrorResponseErrorValidationResult, -) -from fattureincloud_python_sdk.models.verify_e_invoice_xml_error_response_extra import ( - VerifyEInvoiceXmlErrorResponseExtra, -) -from fattureincloud_python_sdk.models.verify_e_invoice_xml_response import ( - VerifyEInvoiceXmlResponse, -) -from fattureincloud_python_sdk.models.verify_e_invoice_xml_response_data import ( - VerifyEInvoiceXmlResponseData, -) -from fattureincloud_python_sdk.models.verify_webhooks_subscription import ( - VerifyWebhooksSubscription, -) -from fattureincloud_python_sdk.models.verify_webhooks_subscription_request import ( - VerifyWebhooksSubscriptionRequest, -) +from fattureincloud_python_sdk.models.verify_e_invoice_xml_error_response import VerifyEInvoiceXmlErrorResponse +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_error_validation_result import VerifyEInvoiceXmlErrorResponseErrorValidationResult +from fattureincloud_python_sdk.models.verify_e_invoice_xml_error_response_extra import VerifyEInvoiceXmlErrorResponseExtra +from fattureincloud_python_sdk.models.verify_e_invoice_xml_response import VerifyEInvoiceXmlResponse +from fattureincloud_python_sdk.models.verify_e_invoice_xml_response_data import VerifyEInvoiceXmlResponseData +from fattureincloud_python_sdk.models.verify_webhooks_subscription import VerifyWebhooksSubscription +from fattureincloud_python_sdk.models.verify_webhooks_subscription_request import VerifyWebhooksSubscriptionRequest from fattureincloud_python_sdk.models.webhooks_subscription import WebhooksSubscription -from fattureincloud_python_sdk.models.webhooks_subscription_config import ( - WebhooksSubscriptionConfig, -) -from fattureincloud_python_sdk.models.webhooks_subscription_mapping import ( - WebhooksSubscriptionMapping, -) -from fattureincloud_python_sdk.models.webhooks_subscription_verification_method import ( - WebhooksSubscriptionVerificationMethod, -) +from fattureincloud_python_sdk.models.webhooks_subscription_config import WebhooksSubscriptionConfig +from fattureincloud_python_sdk.models.webhooks_subscription_mapping import WebhooksSubscriptionMapping +from fattureincloud_python_sdk.models.webhooks_subscription_verification_method import WebhooksSubscriptionVerificationMethod + diff --git a/fattureincloud_python_sdk/models/archive_document.py b/fattureincloud_python_sdk/models/archive_document.py index 86df057f..db3b99eb 100644 --- a/fattureincloud_python_sdk/models/archive_document.py +++ b/fattureincloud_python_sdk/models/archive_document.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,38 +24,17 @@ from typing import Optional, Set from typing_extensions import Self - class ArchiveDocument(BaseModel): """ ArchiveDocument - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictInt] = Field(default=None, description="Archive document id") - var_date: Optional[date] = Field( - default=None, description="Archive document date", alias="date" - ) - description: Optional[StrictStr] = Field( - default=None, description="Archive Document description" - ) - attachment_url: Optional[StrictStr] = Field( - default=None, - description="[Temporary] [Read Only] Archive Document url of the attached file", - ) - category: Optional[StrictStr] = Field( - default=None, description="Archive document category" - ) - attachment_token: Optional[StrictStr] = Field( - default=None, - description="[Write Only] [Required] Archive document attachment token returned by POST /archive/attachment", - ) - __properties: ClassVar[List[str]] = [ - "id", - "date", - "description", - "attachment_url", - "category", - "attachment_token", - ] + var_date: Optional[date] = Field(default=None, description="Archive document date", alias="date") + description: Optional[StrictStr] = Field(default=None, description="Archive Document description") + attachment_url: Optional[StrictStr] = Field(default=None, description="[Temporary] [Read Only] Archive Document url of the attached file") + category: Optional[StrictStr] = Field(default=None, description="Archive document category") + attachment_token: Optional[StrictStr] = Field(default=None, description="[Write Only] [Required] Archive document attachment token returned by POST /archive/attachment") + __properties: ClassVar[List[str]] = ["id", "date", "description", "attachment_url", "category", "attachment_token"] model_config = ConfigDict( populate_by_name=True, @@ -63,6 +42,7 @@ class ArchiveDocument(BaseModel): 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)) @@ -88,11 +68,9 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * OpenAPI `readOnly` fields are excluded. """ - excluded_fields: Set[str] = set( - [ - "attachment_url", - ] - ) + excluded_fields: Set[str] = set([ + "attachment_url", + ]) _dict = self.model_dump( by_alias=True, @@ -110,14 +88,14 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "date": obj.get("date"), - "description": obj.get("description"), - "attachment_url": obj.get("attachment_url"), - "category": obj.get("category"), - "attachment_token": obj.get("attachment_token"), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "date": obj.get("date"), + "description": obj.get("description"), + "attachment_url": obj.get("attachment_url"), + "category": obj.get("category"), + "attachment_token": obj.get("attachment_token") + }) return _obj + + diff --git a/fattureincloud_python_sdk/models/attachment_data.py b/fattureincloud_python_sdk/models/attachment_data.py index ddf10491..8166e017 100644 --- a/fattureincloud_python_sdk/models/attachment_data.py +++ b/fattureincloud_python_sdk/models/attachment_data.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -23,15 +23,11 @@ from typing import Optional, Set from typing_extensions import Self - class AttachmentData(BaseModel): """ AttachmentData - """ # noqa: E501 - - attachment_token: Optional[StrictStr] = Field( - default=None, description="Uploaded attachment token." - ) + """ # noqa: E501 + attachment_token: Optional[StrictStr] = Field(default=None, description="Uploaded attachment token.") __properties: ClassVar[List[str]] = ["attachment_token"] model_config = ConfigDict( @@ -40,6 +36,7 @@ class AttachmentData(BaseModel): 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)) @@ -64,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -82,5 +80,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"attachment_token": obj.get("attachment_token")}) + _obj = cls.model_validate({ + "attachment_token": obj.get("attachment_token") + }) return _obj + + diff --git a/fattureincloud_python_sdk/models/cashbook_entry.py b/fattureincloud_python_sdk/models/cashbook_entry.py index 4efb6a16..bc1fc37f 100644 --- a/fattureincloud_python_sdk/models/cashbook_entry.py +++ b/fattureincloud_python_sdk/models/cashbook_entry.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -21,57 +21,29 @@ from datetime import date from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union -from fattureincloud_python_sdk.models.cashbook_entry_document import ( - CashbookEntryDocument, -) +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 from typing import Optional, Set from typing_extensions import Self - class CashbookEntry(BaseModel): """ CashbookEntry - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictStr] = Field(default=None, description="Cashbook id") - var_date: Optional[date] = Field( - default=None, description="Cashbook date", alias="date" - ) - description: Optional[StrictStr] = Field( - default=None, description="Cashbook description" - ) + var_date: Optional[date] = Field(default=None, description="Cashbook date", alias="date") + description: Optional[StrictStr] = Field(default=None, description="Cashbook description") kind: Optional[CashbookEntryKind] = None type: Optional[CashbookEntryType] = None - entity_name: Optional[StrictStr] = Field( - default=None, description="Cashbook entity name" - ) + entity_name: Optional[StrictStr] = Field(default=None, description="Cashbook entity name") document: Optional[CashbookEntryDocument] = None - amount_in: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, - description="[Only for cashbook entry in] Cashbook total amount in", - ) + amount_in: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="[Only for cashbook entry in] Cashbook total amount in") payment_account_in: Optional[PaymentAccount] = None - amount_out: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, - description="[Only for cashbook entry out] Cashbook total amount out", - ) + amount_out: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="[Only for cashbook entry out] Cashbook total amount out") payment_account_out: Optional[PaymentAccount] = None - __properties: ClassVar[List[str]] = [ - "id", - "date", - "description", - "kind", - "type", - "entity_name", - "document", - "amount_in", - "payment_account_in", - "amount_out", - "payment_account_out", - ] + __properties: ClassVar[List[str]] = ["id", "date", "description", "kind", "type", "entity_name", "document", "amount_in", "payment_account_in", "amount_out", "payment_account_out"] model_config = ConfigDict( populate_by_name=True, @@ -79,6 +51,7 @@ class CashbookEntry(BaseModel): 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)) @@ -103,7 +76,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -112,13 +86,13 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of document if self.document: - _dict["document"] = self.document.to_dict() + _dict['document'] = self.document.to_dict() # override the default output from pydantic by calling `to_dict()` of payment_account_in if self.payment_account_in: - _dict["payment_account_in"] = self.payment_account_in.to_dict() + _dict['payment_account_in'] = self.payment_account_in.to_dict() # override the default output from pydantic by calling `to_dict()` of payment_account_out if self.payment_account_out: - _dict["payment_account_out"] = self.payment_account_out.to_dict() + _dict['payment_account_out'] = self.payment_account_out.to_dict() return _dict @classmethod @@ -130,31 +104,19 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "date": obj.get("date"), - "description": obj.get("description"), - "kind": obj.get("kind"), - "type": obj.get("type"), - "entity_name": obj.get("entity_name"), - "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["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["payment_account_out"]) - if obj.get("payment_account_out") is not None - else None - ), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "date": obj.get("date"), + "description": obj.get("description"), + "kind": obj.get("kind"), + "type": obj.get("type"), + "entity_name": obj.get("entity_name"), + "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["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["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 c544e7e2..1320b38c 100644 --- a/fattureincloud_python_sdk/models/cashbook_entry_document.py +++ b/fattureincloud_python_sdk/models/cashbook_entry_document.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -23,21 +23,13 @@ from typing import Optional, Set from typing_extensions import Self - class CashbookEntryDocument(BaseModel): """ CashbookEntryDocument - """ # noqa: E501 - - id: Optional[StrictInt] = Field( - default=None, description="Cashbook related document id" - ) - type: Optional[StrictStr] = Field( - default=None, description="Cashbook related document type" - ) - path: Optional[StrictStr] = Field( - default=None, description="Cashbook related document path" - ) + """ # noqa: E501 + id: Optional[StrictInt] = Field(default=None, description="Cashbook related document id") + type: Optional[StrictStr] = Field(default=None, description="Cashbook related document type") + path: Optional[StrictStr] = Field(default=None, description="Cashbook related document path") __properties: ClassVar[List[str]] = ["id", "type", "path"] model_config = ConfigDict( @@ -46,6 +38,7 @@ class CashbookEntryDocument(BaseModel): 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)) @@ -70,7 +63,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -88,7 +82,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - {"id": obj.get("id"), "type": obj.get("type"), "path": obj.get("path")} - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "type": obj.get("type"), + "path": obj.get("path") + }) return _obj + + diff --git a/fattureincloud_python_sdk/models/cashbook_entry_kind.py b/fattureincloud_python_sdk/models/cashbook_entry_kind.py index 3b001d49..df010207 100644 --- a/fattureincloud_python_sdk/models/cashbook_entry_kind.py +++ b/fattureincloud_python_sdk/models/cashbook_entry_kind.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -27,13 +27,15 @@ class CashbookEntryKind(str, Enum): """ allowed enum values """ - CASHBOOK = "cashbook" - ISSUED_DOCUMENT = "issued_document" - RECEIVED_DOCUMENT = "received_document" - TAX = "tax" - RECEIPT = "receipt" + CASHBOOK = 'cashbook' + ISSUED_DOCUMENT = 'issued_document' + RECEIVED_DOCUMENT = 'received_document' + TAX = 'tax' + RECEIPT = 'receipt' @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of CashbookEntryKind from a JSON string""" return cls(json.loads(json_str)) + + diff --git a/fattureincloud_python_sdk/models/cashbook_entry_type.py b/fattureincloud_python_sdk/models/cashbook_entry_type.py index 77732cbf..0cb18fec 100644 --- a/fattureincloud_python_sdk/models/cashbook_entry_type.py +++ b/fattureincloud_python_sdk/models/cashbook_entry_type.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -27,10 +27,12 @@ class CashbookEntryType(str, Enum): """ allowed enum values """ - IN = "in" - OUT = "out" + IN = 'in' + OUT = 'out' @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of CashbookEntryType from a JSON string""" return cls(json.loads(json_str)) + + diff --git a/fattureincloud_python_sdk/models/city.py b/fattureincloud_python_sdk/models/city.py index ca4cfa0e..5326b5fe 100644 --- a/fattureincloud_python_sdk/models/city.py +++ b/fattureincloud_python_sdk/models/city.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -23,15 +23,11 @@ from typing import Optional, Set from typing_extensions import Self - class City(BaseModel): """ City - """ # noqa: E501 - - postal_code: Optional[StrictStr] = Field( - default=None, description="City postal code" - ) + """ # noqa: E501 + postal_code: Optional[StrictStr] = Field(default=None, description="City postal code") city: Optional[StrictStr] = Field(default=None, description="City name") province: Optional[StrictStr] = Field(default=None, description="City province") __properties: ClassVar[List[str]] = ["postal_code", "city", "province"] @@ -42,6 +38,7 @@ class City(BaseModel): 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)) @@ -66,7 +63,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -84,11 +82,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "postal_code": obj.get("postal_code"), - "city": obj.get("city"), - "province": obj.get("province"), - } - ) + _obj = cls.model_validate({ + "postal_code": obj.get("postal_code"), + "city": obj.get("city"), + "province": obj.get("province") + }) return _obj + + diff --git a/fattureincloud_python_sdk/models/client.py b/fattureincloud_python_sdk/models/client.py index 2581c59a..d46a3315 100644 --- a/fattureincloud_python_sdk/models/client.py +++ b/fattureincloud_python_sdk/models/client.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,15 +19,7 @@ import json from datetime import date -from pydantic import ( - BaseModel, - ConfigDict, - Field, - StrictBool, - StrictFloat, - StrictInt, - StrictStr, -) +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union from fattureincloud_python_sdk.models.client_type import ClientType from fattureincloud_python_sdk.models.payment_method import PaymentMethod @@ -36,138 +28,50 @@ from typing import Optional, Set from typing_extensions import Self - class Client(BaseModel): """ Client - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictInt] = Field(default=None, description="Client id") code: Optional[StrictStr] = Field(default=None, description="Client code") name: Optional[StrictStr] = Field(default=None, description="Client name") type: Optional[ClientType] = None - first_name: Optional[StrictStr] = Field( - default=None, description="Client first name" - ) + first_name: Optional[StrictStr] = Field(default=None, description="Client first name") last_name: Optional[StrictStr] = Field(default=None, description="Client last name") - contact_person: Optional[StrictStr] = Field( - default=None, description="Client contact person" - ) - vat_number: Optional[StrictStr] = Field( - default=None, description="Client vat number" - ) + contact_person: Optional[StrictStr] = Field(default=None, description="Client contact person") + vat_number: Optional[StrictStr] = Field(default=None, description="Client vat number") tax_code: Optional[StrictStr] = Field(default=None, description="Client tax code") - address_street: Optional[StrictStr] = Field( - default=None, description="Client address street" - ) - address_postal_code: Optional[StrictStr] = Field( - default=None, description="Client address postal code" - ) - address_city: Optional[StrictStr] = Field( - default=None, description="Client address city" - ) - address_province: Optional[StrictStr] = Field( - default=None, description="Client address province" - ) - address_extra: Optional[StrictStr] = Field( - default=None, description="Client address extra info" - ) + address_street: Optional[StrictStr] = Field(default=None, description="Client address street") + address_postal_code: Optional[StrictStr] = Field(default=None, description="Client address postal code") + address_city: Optional[StrictStr] = Field(default=None, description="Client address city") + address_province: Optional[StrictStr] = Field(default=None, description="Client address province") + address_extra: Optional[StrictStr] = Field(default=None, description="Client address extra info") country: Optional[StrictStr] = Field(default=None, description="Client country") - country_iso: Optional[StrictStr] = Field( - default=None, description="Client country iso code" - ) + country_iso: Optional[StrictStr] = Field(default=None, description="Client country iso code") email: Optional[StrictStr] = Field(default=None, description="Client email") - certified_email: Optional[StrictStr] = Field( - default=None, description="Client certified email" - ) + certified_email: Optional[StrictStr] = Field(default=None, description="Client certified email") phone: Optional[StrictStr] = Field(default=None, description="Client phone") fax: Optional[StrictStr] = Field(default=None, description="Client fax") notes: Optional[StrictStr] = Field(default=None, description="Client extra") default_vat: Optional[VatType] = None - default_payment_terms: Optional[StrictInt] = Field( - default=None, description="Client default payment terms" - ) + default_payment_terms: Optional[StrictInt] = Field(default=None, description="Client default payment terms") default_payment_terms_type: Optional[PaymentTermsType] = PaymentTermsType.STANDARD default_payment_method: Optional[PaymentMethod] = None bank_name: Optional[StrictStr] = Field(default=None, description="Client bank name") bank_iban: Optional[StrictStr] = Field(default=None, description="Client bank iban") - bank_swift_code: Optional[StrictStr] = Field( - default=None, description="Client bank swift code" - ) - shipping_address: Optional[StrictStr] = Field( - default=None, description="Client shipping address" - ) - e_invoice: Optional[StrictBool] = Field( - default=None, description="Use e-invoices for this entity" - ) - discount_highlight: Optional[StrictBool] = Field( - default=None, description="Highlight Discount" - ) - ei_code: Optional[StrictStr] = Field( - default=None, description="Client e-invoice code " - ) - default_discount: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Client default discount" - ) - has_intent_declaration: Optional[StrictBool] = Field( - default=None, description="Client has intent declaration" - ) - intent_declaration_protocol_number: Optional[StrictStr] = Field( - default=None, description="Client intent declaration protocol number" - ) - intent_declaration_protocol_date: Optional[date] = Field( - default=None, description="Client intent declaration protocol date" - ) - price_list_id: Optional[StrictStr] = Field( - default=None, description="Price list id" - ) - created_at: Optional[StrictStr] = Field( - default=None, description="Client creation date" - ) - updated_at: Optional[StrictStr] = Field( - default=None, description="Client last update date" - ) - __properties: ClassVar[List[str]] = [ - "id", - "code", - "name", - "type", - "first_name", - "last_name", - "contact_person", - "vat_number", - "tax_code", - "address_street", - "address_postal_code", - "address_city", - "address_province", - "address_extra", - "country", - "country_iso", - "email", - "certified_email", - "phone", - "fax", - "notes", - "default_vat", - "default_payment_terms", - "default_payment_terms_type", - "default_payment_method", - "bank_name", - "bank_iban", - "bank_swift_code", - "shipping_address", - "e_invoice", - "discount_highlight", - "ei_code", - "default_discount", - "has_intent_declaration", - "intent_declaration_protocol_number", - "intent_declaration_protocol_date", - "price_list_id", - "created_at", - "updated_at", - ] + bank_swift_code: Optional[StrictStr] = Field(default=None, description="Client bank swift code") + shipping_address: Optional[StrictStr] = Field(default=None, description="Client shipping address") + e_invoice: Optional[StrictBool] = Field(default=None, description="Use e-invoices for this entity") + discount_highlight: Optional[StrictBool] = Field(default=None, description="Highlight Discount") + ei_code: Optional[StrictStr] = Field(default=None, description="Client e-invoice code ") + default_discount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Client default discount") + has_intent_declaration: Optional[StrictBool] = Field(default=None, description="Client has intent declaration") + intent_declaration_protocol_number: Optional[StrictStr] = Field(default=None, description="Client intent declaration protocol number") + intent_declaration_protocol_date: Optional[date] = Field(default=None, description="Client intent declaration protocol date") + price_list_id: Optional[StrictStr] = Field(default=None, description="Price list id") + created_at: Optional[StrictStr] = Field(default=None, description="Client creation date") + updated_at: Optional[StrictStr] = Field(default=None, description="Client last update date") + __properties: ClassVar[List[str]] = ["id", "code", "name", "type", "first_name", "last_name", "contact_person", "vat_number", "tax_code", "address_street", "address_postal_code", "address_city", "address_province", "address_extra", "country", "country_iso", "email", "certified_email", "phone", "fax", "notes", "default_vat", "default_payment_terms", "default_payment_terms_type", "default_payment_method", "bank_name", "bank_iban", "bank_swift_code", "shipping_address", "e_invoice", "discount_highlight", "ei_code", "default_discount", "has_intent_declaration", "intent_declaration_protocol_number", "intent_declaration_protocol_date", "price_list_id", "created_at", "updated_at"] model_config = ConfigDict( populate_by_name=True, @@ -175,6 +79,7 @@ class Client(BaseModel): 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)) @@ -199,7 +104,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -208,10 +114,10 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of default_vat if self.default_vat: - _dict["default_vat"] = self.default_vat.to_dict() + _dict['default_vat'] = self.default_vat.to_dict() # override the default output from pydantic by calling `to_dict()` of default_payment_method if self.default_payment_method: - _dict["default_payment_method"] = self.default_payment_method.to_dict() + _dict['default_payment_method'] = self.default_payment_method.to_dict() return _dict @classmethod @@ -223,63 +129,47 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "code": obj.get("code"), - "name": obj.get("name"), - "type": obj.get("type"), - "first_name": obj.get("first_name"), - "last_name": obj.get("last_name"), - "contact_person": obj.get("contact_person"), - "vat_number": obj.get("vat_number"), - "tax_code": obj.get("tax_code"), - "address_street": obj.get("address_street"), - "address_postal_code": obj.get("address_postal_code"), - "address_city": obj.get("address_city"), - "address_province": obj.get("address_province"), - "address_extra": obj.get("address_extra"), - "country": obj.get("country"), - "country_iso": obj.get("country_iso"), - "email": obj.get("email"), - "certified_email": obj.get("certified_email"), - "phone": obj.get("phone"), - "fax": obj.get("fax"), - "notes": obj.get("notes"), - "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") - if obj.get("default_payment_terms_type") is not None - else PaymentTermsType.STANDARD - ), - "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"), - "shipping_address": obj.get("shipping_address"), - "e_invoice": obj.get("e_invoice"), - "discount_highlight": obj.get("discount_highlight"), - "ei_code": obj.get("ei_code"), - "default_discount": obj.get("default_discount"), - "has_intent_declaration": obj.get("has_intent_declaration"), - "intent_declaration_protocol_number": obj.get( - "intent_declaration_protocol_number" - ), - "intent_declaration_protocol_date": obj.get( - "intent_declaration_protocol_date" - ), - "price_list_id": obj.get("price_list_id"), - "created_at": obj.get("created_at"), - "updated_at": obj.get("updated_at"), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "code": obj.get("code"), + "name": obj.get("name"), + "type": obj.get("type"), + "first_name": obj.get("first_name"), + "last_name": obj.get("last_name"), + "contact_person": obj.get("contact_person"), + "vat_number": obj.get("vat_number"), + "tax_code": obj.get("tax_code"), + "address_street": obj.get("address_street"), + "address_postal_code": obj.get("address_postal_code"), + "address_city": obj.get("address_city"), + "address_province": obj.get("address_province"), + "address_extra": obj.get("address_extra"), + "country": obj.get("country"), + "country_iso": obj.get("country_iso"), + "email": obj.get("email"), + "certified_email": obj.get("certified_email"), + "phone": obj.get("phone"), + "fax": obj.get("fax"), + "notes": obj.get("notes"), + "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") if obj.get("default_payment_terms_type") is not None else PaymentTermsType.STANDARD, + "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"), + "shipping_address": obj.get("shipping_address"), + "e_invoice": obj.get("e_invoice"), + "discount_highlight": obj.get("discount_highlight"), + "ei_code": obj.get("ei_code"), + "default_discount": obj.get("default_discount"), + "has_intent_declaration": obj.get("has_intent_declaration"), + "intent_declaration_protocol_number": obj.get("intent_declaration_protocol_number"), + "intent_declaration_protocol_date": obj.get("intent_declaration_protocol_date"), + "price_list_id": obj.get("price_list_id"), + "created_at": obj.get("created_at"), + "updated_at": obj.get("updated_at") + }) return _obj + + diff --git a/fattureincloud_python_sdk/models/client_type.py b/fattureincloud_python_sdk/models/client_type.py index a272912b..e303c5fb 100644 --- a/fattureincloud_python_sdk/models/client_type.py +++ b/fattureincloud_python_sdk/models/client_type.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -27,12 +27,14 @@ class ClientType(str, Enum): """ allowed enum values """ - COMPANY = "company" - PERSON = "person" - PA = "pa" - CONDO = "condo" + COMPANY = 'company' + PERSON = 'person' + PA = 'pa' + CONDO = 'condo' @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of ClientType from a JSON string""" return cls(json.loads(json_str)) + + diff --git a/fattureincloud_python_sdk/models/company.py b/fattureincloud_python_sdk/models/company.py index 1c6f67f6..d11684b5 100644 --- a/fattureincloud_python_sdk/models/company.py +++ b/fattureincloud_python_sdk/models/company.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -23,50 +23,25 @@ from typing import Any, ClassVar, Dict, List, Optional 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, -) +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): """ Company - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictInt] = Field(default=None, description="Company id") name: Optional[StrictStr] = Field(default=None, description="Company name") type: Optional[CompanyType] = None - access_token: Optional[StrictStr] = Field( - default=None, - description="Company authentication token for this company. [Only if type=company]", - ) - controlled_companies: Optional[List[ControlledCompany]] = Field( - default=None, - description="Company list of controlled companies [Only if type=accountant]", - ) + access_token: Optional[StrictStr] = Field(default=None, description="Company authentication token for this company. [Only if type=company]") + controlled_companies: Optional[List[ControlledCompany]] = Field(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" - ) + connection_id: Optional[StrictInt] = Field(default=None, description="Company connection id") tax_code: Optional[StrictStr] = Field(default=None, description="Company tax code") - vat_number: Optional[StrictStr] = Field( - default=None, description="Company vat number" - ) - __properties: ClassVar[List[str]] = [ - "id", - "name", - "type", - "access_token", - "controlled_companies", - "fic_license_expire", - "fic_plan", - "connection_id", - "tax_code", - "vat_number", - ] + vat_number: Optional[StrictStr] = Field(default=None, description="Company vat number") + __properties: ClassVar[List[str]] = ["id", "name", "type", "access_token", "controlled_companies", "fic_license_expire", "fic_plan", "connection_id", "tax_code", "vat_number"] model_config = ConfigDict( populate_by_name=True, @@ -74,6 +49,7 @@ class Company(BaseModel): 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)) @@ -98,7 +74,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -111,7 +88,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_controlled_companies in self.controlled_companies: if _item_controlled_companies: _items.append(_item_controlled_companies.to_dict()) - _dict["controlled_companies"] = _items + _dict['controlled_companies'] = _items return _dict @classmethod @@ -123,25 +100,18 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "name": obj.get("name"), - "type": obj.get("type"), - "access_token": obj.get("access_token"), - "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"), - "vat_number": obj.get("vat_number"), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name"), + "type": obj.get("type"), + "access_token": obj.get("access_token"), + "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"), + "vat_number": obj.get("vat_number") + }) return _obj + + diff --git a/fattureincloud_python_sdk/models/company_info.py b/fattureincloud_python_sdk/models/company_info.py index 8d43de58..059bfc67 100644 --- a/fattureincloud_python_sdk/models/company_info.py +++ b/fattureincloud_python_sdk/models/company_info.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -21,23 +21,17 @@ from datetime import date from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from fattureincloud_python_sdk.models.company_info_access_info import ( - CompanyInfoAccessInfo, -) +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 -from fattureincloud_python_sdk.models.fatture_in_cloud_plan_type import ( - FattureInCloudPlanType, -) +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): """ CompanyInfo - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictInt] = Field(default=None, description="Company id") name: Optional[StrictStr] = Field(default=None, description="Company name") email: Optional[StrictStr] = Field(default=None, description="Company email") @@ -46,24 +40,9 @@ class CompanyInfo(BaseModel): 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" - ) - is_accountant: Optional[StrictBool] = Field( - default=None, description="Is the logged account an accountant." - ) - __properties: ClassVar[List[str]] = [ - "id", - "name", - "email", - "type", - "access_info", - "fic_license_expire", - "fic_plan_name", - "plan_info", - "accountant_id", - "is_accountant", - ] + accountant_id: Optional[StrictInt] = Field(default=None, description="Company accountant id") + is_accountant: Optional[StrictBool] = Field(default=None, description="Is the logged account an accountant.") + __properties: ClassVar[List[str]] = ["id", "name", "email", "type", "access_info", "fic_license_expire", "fic_plan_name", "plan_info", "accountant_id", "is_accountant"] model_config = ConfigDict( populate_by_name=True, @@ -71,6 +50,7 @@ class CompanyInfo(BaseModel): 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)) @@ -95,7 +75,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -104,10 +85,10 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of access_info if self.access_info: - _dict["access_info"] = self.access_info.to_dict() + _dict['access_info'] = self.access_info.to_dict() # override the default output from pydantic by calling `to_dict()` of plan_info if self.plan_info: - _dict["plan_info"] = self.plan_info.to_dict() + _dict['plan_info'] = self.plan_info.to_dict() return _dict @classmethod @@ -119,26 +100,18 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "name": obj.get("name"), - "email": obj.get("email"), - "type": obj.get("type"), - "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"), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name"), + "email": obj.get("email"), + "type": obj.get("type"), + "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") + }) return _obj + + diff --git a/fattureincloud_python_sdk/models/company_info_access_info.py b/fattureincloud_python_sdk/models/company_info_access_info.py index f7802e94..2329d509 100644 --- a/fattureincloud_python_sdk/models/company_info_access_info.py +++ b/fattureincloud_python_sdk/models/company_info_access_info.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -25,17 +25,13 @@ from typing import Optional, Set from typing_extensions import Self - class CompanyInfoAccessInfo(BaseModel): """ CompanyInfoAccessInfo - """ # noqa: E501 - + """ # noqa: E501 role: Optional[UserCompanyRole] = None permissions: Optional[Permissions] = None - through_accountant: Optional[StrictBool] = Field( - default=None, description="Company activated through accountant" - ) + through_accountant: Optional[StrictBool] = Field(default=None, description="Company activated through accountant") __properties: ClassVar[List[str]] = ["role", "permissions", "through_accountant"] model_config = ConfigDict( @@ -44,6 +40,7 @@ class CompanyInfoAccessInfo(BaseModel): 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)) @@ -68,7 +65,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -77,7 +75,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of permissions if self.permissions: - _dict["permissions"] = self.permissions.to_dict() + _dict['permissions'] = self.permissions.to_dict() return _dict @classmethod @@ -89,15 +87,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "role": obj.get("role"), - "permissions": ( - Permissions.from_dict(obj["permissions"]) - if obj.get("permissions") is not None - else None - ), - "through_accountant": obj.get("through_accountant"), - } - ) + _obj = cls.model_validate({ + "role": obj.get("role"), + "permissions": Permissions.from_dict(obj["permissions"]) if obj.get("permissions") is not None else None, + "through_accountant": obj.get("through_accountant") + }) return _obj + + diff --git a/fattureincloud_python_sdk/models/company_info_plan_info.py b/fattureincloud_python_sdk/models/company_info_plan_info.py index 2724eef5..5252da2b 100644 --- a/fattureincloud_python_sdk/models/company_info_plan_info.py +++ b/fattureincloud_python_sdk/models/company_info_plan_info.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -20,24 +20,16 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from fattureincloud_python_sdk.models.company_info_plan_info_functions import ( - CompanyInfoPlanInfoFunctions, -) -from fattureincloud_python_sdk.models.company_info_plan_info_functions_status import ( - CompanyInfoPlanInfoFunctionsStatus, -) -from fattureincloud_python_sdk.models.company_info_plan_info_limits import ( - CompanyInfoPlanInfoLimits, -) +from fattureincloud_python_sdk.models.company_info_plan_info_functions import CompanyInfoPlanInfoFunctions +from fattureincloud_python_sdk.models.company_info_plan_info_functions_status import CompanyInfoPlanInfoFunctionsStatus +from fattureincloud_python_sdk.models.company_info_plan_info_limits import CompanyInfoPlanInfoLimits from typing import Optional, Set from typing_extensions import Self - class CompanyInfoPlanInfo(BaseModel): """ Company plan info - """ # noqa: E501 - + """ # noqa: E501 limits: Optional[CompanyInfoPlanInfoLimits] = None functions: Optional[CompanyInfoPlanInfoFunctions] = None functions_status: Optional[CompanyInfoPlanInfoFunctionsStatus] = None @@ -49,6 +41,7 @@ class CompanyInfoPlanInfo(BaseModel): 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)) @@ -73,7 +66,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -82,13 +76,13 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of limits if self.limits: - _dict["limits"] = self.limits.to_dict() + _dict['limits'] = self.limits.to_dict() # override the default output from pydantic by calling `to_dict()` of functions if self.functions: - _dict["functions"] = self.functions.to_dict() + _dict['functions'] = self.functions.to_dict() # override the default output from pydantic by calling `to_dict()` of functions_status if self.functions_status: - _dict["functions_status"] = self.functions_status.to_dict() + _dict['functions_status'] = self.functions_status.to_dict() return _dict @classmethod @@ -100,25 +94,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "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 - ), - } - ) + _obj = cls.model_validate({ + "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 f0796ce1..f25bcb7d 100644 --- a/fattureincloud_python_sdk/models/company_info_plan_info_functions.py +++ b/fattureincloud_python_sdk/models/company_info_plan_info_functions.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -23,12 +23,10 @@ from typing import Optional, Set from typing_extensions import Self - class CompanyInfoPlanInfoFunctions(BaseModel): """ Access to functions for this company. - """ # noqa: E501 - + """ # noqa: E501 archive: Optional[StrictBool] = None cerved: Optional[StrictBool] = None document_attachments: Optional[StrictBool] = None @@ -40,33 +38,13 @@ class CompanyInfoPlanInfoFunctions(BaseModel): receipts: Optional[StrictBool] = None recurring: Optional[StrictBool] = None smtp: Optional[StrictBool] = None - sofort: Optional[StrictBool] = None stock: Optional[StrictBool] = None subaccounts: Optional[StrictBool] = None tessera_sanitaria: Optional[StrictBool] = None ts_digital: Optional[StrictBool] = None ts_invoice_trading: Optional[StrictBool] = None ts_pay: Optional[StrictBool] = None - __properties: ClassVar[List[str]] = [ - "archive", - "cerved", - "document_attachments", - "e_invoice", - "genius", - "mail_tracking", - "payment_notifications", - "paypal", - "receipts", - "recurring", - "smtp", - "sofort", - "stock", - "subaccounts", - "tessera_sanitaria", - "ts_digital", - "ts_invoice_trading", - "ts_pay", - ] + __properties: ClassVar[List[str]] = ["archive", "cerved", "document_attachments", "e_invoice", "genius", "mail_tracking", "payment_notifications", "paypal", "receipts", "recurring", "smtp", "stock", "subaccounts", "tessera_sanitaria", "ts_digital", "ts_invoice_trading", "ts_pay"] model_config = ConfigDict( populate_by_name=True, @@ -74,6 +52,7 @@ class CompanyInfoPlanInfoFunctions(BaseModel): 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)) @@ -98,7 +77,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -116,26 +96,25 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "archive": obj.get("archive"), - "cerved": obj.get("cerved"), - "document_attachments": obj.get("document_attachments"), - "e_invoice": obj.get("e_invoice"), - "genius": obj.get("genius"), - "mail_tracking": obj.get("mail_tracking"), - "payment_notifications": obj.get("payment_notifications"), - "paypal": obj.get("paypal"), - "receipts": obj.get("receipts"), - "recurring": obj.get("recurring"), - "smtp": obj.get("smtp"), - "sofort": obj.get("sofort"), - "stock": obj.get("stock"), - "subaccounts": obj.get("subaccounts"), - "tessera_sanitaria": obj.get("tessera_sanitaria"), - "ts_digital": obj.get("ts_digital"), - "ts_invoice_trading": obj.get("ts_invoice_trading"), - "ts_pay": obj.get("ts_pay"), - } - ) + _obj = cls.model_validate({ + "archive": obj.get("archive"), + "cerved": obj.get("cerved"), + "document_attachments": obj.get("document_attachments"), + "e_invoice": obj.get("e_invoice"), + "genius": obj.get("genius"), + "mail_tracking": obj.get("mail_tracking"), + "payment_notifications": obj.get("payment_notifications"), + "paypal": obj.get("paypal"), + "receipts": obj.get("receipts"), + "recurring": obj.get("recurring"), + "smtp": obj.get("smtp"), + "stock": obj.get("stock"), + "subaccounts": obj.get("subaccounts"), + "tessera_sanitaria": obj.get("tessera_sanitaria"), + "ts_digital": obj.get("ts_digital"), + "ts_invoice_trading": obj.get("ts_invoice_trading"), + "ts_pay": obj.get("ts_pay") + }) return _obj + + 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 f730744c..5b46a625 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 @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class CompanyInfoPlanInfoFunctionsStatus(BaseModel): """ CompanyInfoPlanInfoFunctionsStatus - """ # noqa: E501 - + """ # noqa: E501 ts_digital: Optional[FunctionStatus] = None ts_pay: Optional[FunctionStatus] = None __properties: ClassVar[List[str]] = ["ts_digital", "ts_pay"] @@ -40,6 +38,7 @@ class CompanyInfoPlanInfoFunctionsStatus(BaseModel): 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)) @@ -64,7 +63,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -73,10 +73,10 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of ts_digital if self.ts_digital: - _dict["ts_digital"] = self.ts_digital.to_dict() + _dict['ts_digital'] = self.ts_digital.to_dict() # override the default output from pydantic by calling `to_dict()` of ts_pay if self.ts_pay: - _dict["ts_pay"] = self.ts_pay.to_dict() + _dict['ts_pay'] = self.ts_pay.to_dict() return _dict @classmethod @@ -88,18 +88,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "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 - ), - } - ) + _obj = cls.model_validate({ + "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 5a646c43..b566ab18 100644 --- a/fattureincloud_python_sdk/models/company_info_plan_info_limits.py +++ b/fattureincloud_python_sdk/models/company_info_plan_info_limits.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -23,30 +23,15 @@ from typing import Optional, Set from typing_extensions import Self - class CompanyInfoPlanInfoLimits(BaseModel): """ Company plan limits - """ # noqa: E501 - - clients: Optional[StrictInt] = Field( - default=None, description="Company plan clients limits" - ) - suppliers: Optional[StrictInt] = Field( - default=None, description="Company plan suppliers limits" - ) - products: Optional[StrictInt] = Field( - default=None, description="Company plan products limits" - ) - documents: Optional[StrictInt] = Field( - default=None, description="Company plan documents limits" - ) - __properties: ClassVar[List[str]] = [ - "clients", - "suppliers", - "products", - "documents", - ] + """ # noqa: E501 + clients: Optional[StrictInt] = Field(default=None, description="Company plan clients limits") + suppliers: Optional[StrictInt] = Field(default=None, description="Company plan suppliers limits") + products: Optional[StrictInt] = Field(default=None, description="Company plan products limits") + documents: Optional[StrictInt] = Field(default=None, description="Company plan documents limits") + __properties: ClassVar[List[str]] = ["clients", "suppliers", "products", "documents"] model_config = ConfigDict( populate_by_name=True, @@ -54,6 +39,7 @@ class CompanyInfoPlanInfoLimits(BaseModel): 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)) @@ -78,7 +64,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -96,12 +83,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "clients": obj.get("clients"), - "suppliers": obj.get("suppliers"), - "products": obj.get("products"), - "documents": obj.get("documents"), - } - ) + _obj = cls.model_validate({ + "clients": obj.get("clients"), + "suppliers": obj.get("suppliers"), + "products": obj.get("products"), + "documents": obj.get("documents") + }) return _obj + + diff --git a/fattureincloud_python_sdk/models/company_plan_usage.py b/fattureincloud_python_sdk/models/company_plan_usage.py index 9e3e3ba2..11d0957c 100644 --- a/fattureincloud_python_sdk/models/company_plan_usage.py +++ b/fattureincloud_python_sdk/models/company_plan_usage.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -23,18 +23,12 @@ 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" - ) + """ # 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 = ConfigDict( @@ -43,6 +37,7 @@ class CompanyPlanUsage(BaseModel): 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)) @@ -67,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -85,7 +81,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - {"limit": obj.get("limit"), "usage": obj.get("usage")} - ) + _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 0d1c4713..d592906a 100644 --- a/fattureincloud_python_sdk/models/company_type.py +++ b/fattureincloud_python_sdk/models/company_type.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -27,10 +27,12 @@ class CompanyType(str, Enum): """ allowed enum values """ - COMPANY = "company" - ACCOUNTANT = "accountant" + COMPANY = 'company' + ACCOUNTANT = 'accountant' @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of CompanyType from a JSON string""" return cls(json.loads(json_str)) + + diff --git a/fattureincloud_python_sdk/models/controlled_company.py b/fattureincloud_python_sdk/models/controlled_company.py index 182d64d5..8e897421 100644 --- a/fattureincloud_python_sdk/models/controlled_company.py +++ b/fattureincloud_python_sdk/models/controlled_company.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,43 +22,23 @@ from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union from fattureincloud_python_sdk.models.company_type import CompanyType -from fattureincloud_python_sdk.models.fatture_in_cloud_plan_type import ( - FattureInCloudPlanType, -) +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): """ ControlledCompany - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictInt] = Field(default=None, description="Controlled company id") name: Optional[StrictStr] = Field(default=None, description="Controlled company id") type: Optional[CompanyType] = None - access_token: Optional[StrictStr] = Field( - default=None, - description="Controlled company access token Only if type=company]", - ) + access_token: Optional[StrictStr] = Field(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" - ) - tax_code: Optional[StrictStr] = Field( - default=None, description="Controlled company tax code" - ) - __properties: ClassVar[List[str]] = [ - "id", - "name", - "type", - "access_token", - "fic_license_expire", - "fic_plan", - "connection_id", - "tax_code", - ] + connection_id: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Controlled company connection id") + tax_code: Optional[StrictStr] = Field(default=None, description="Controlled company tax code") + __properties: ClassVar[List[str]] = ["id", "name", "type", "access_token", "fic_license_expire", "fic_plan", "connection_id", "tax_code"] model_config = ConfigDict( populate_by_name=True, @@ -66,6 +46,7 @@ class ControlledCompany(BaseModel): 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)) @@ -90,7 +71,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -108,16 +90,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "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"), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "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") + }) return _obj + + diff --git a/fattureincloud_python_sdk/models/create_archive_document_request.py b/fattureincloud_python_sdk/models/create_archive_document_request.py index 3930ea42..45d2afbb 100644 --- a/fattureincloud_python_sdk/models/create_archive_document_request.py +++ b/fattureincloud_python_sdk/models/create_archive_document_request.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,10 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class CreateArchiveDocumentRequest(BaseModel): - """ """ # noqa: E501 - + """ + + """ # noqa: E501 data: Optional[ArchiveDocument] = None __properties: ClassVar[List[str]] = ["data"] @@ -37,6 +37,7 @@ class CreateArchiveDocumentRequest(BaseModel): 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)) @@ -61,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -70,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -82,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - ArchiveDocument.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 777e04a6..1e9896a9 100644 --- a/fattureincloud_python_sdk/models/create_archive_document_response.py +++ b/fattureincloud_python_sdk/models/create_archive_document_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,10 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class CreateArchiveDocumentResponse(BaseModel): - """ """ # noqa: E501 - + """ + + """ # noqa: E501 data: Optional[ArchiveDocument] = None __properties: ClassVar[List[str]] = ["data"] @@ -37,6 +37,7 @@ class CreateArchiveDocumentResponse(BaseModel): 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)) @@ -61,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -70,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -82,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - ArchiveDocument.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 e5e99ed7..d1438be9 100644 --- a/fattureincloud_python_sdk/models/create_cashbook_entry_request.py +++ b/fattureincloud_python_sdk/models/create_cashbook_entry_request.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,10 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class CreateCashbookEntryRequest(BaseModel): - """ """ # noqa: E501 - + """ + + """ # noqa: E501 data: Optional[CashbookEntry] = None __properties: ClassVar[List[str]] = ["data"] @@ -37,6 +37,7 @@ class CreateCashbookEntryRequest(BaseModel): 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)) @@ -61,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -70,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -82,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - CashbookEntry.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 b726c6cd..fd7a40c9 100644 --- a/fattureincloud_python_sdk/models/create_cashbook_entry_response.py +++ b/fattureincloud_python_sdk/models/create_cashbook_entry_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,10 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class CreateCashbookEntryResponse(BaseModel): - """ """ # noqa: E501 - + """ + + """ # noqa: E501 data: Optional[CashbookEntry] = None __properties: ClassVar[List[str]] = ["data"] @@ -37,6 +37,7 @@ class CreateCashbookEntryResponse(BaseModel): 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)) @@ -61,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -70,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -82,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - CashbookEntry.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 ee859e72..5d0d2815 100644 --- a/fattureincloud_python_sdk/models/create_client_request.py +++ b/fattureincloud_python_sdk/models/create_client_request.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class CreateClientRequest(BaseModel): """ CreateClientRequest - """ # noqa: E501 - + """ # noqa: E501 data: Optional[Client] = None __properties: ClassVar[List[str]] = ["data"] @@ -39,6 +37,7 @@ class CreateClientRequest(BaseModel): 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)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -72,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -84,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - Client.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 56319215..bc220f88 100644 --- a/fattureincloud_python_sdk/models/create_client_response.py +++ b/fattureincloud_python_sdk/models/create_client_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class CreateClientResponse(BaseModel): """ CreateClientResponse - """ # noqa: E501 - + """ # noqa: E501 data: Optional[Client] = None __properties: ClassVar[List[str]] = ["data"] @@ -39,6 +37,7 @@ class CreateClientResponse(BaseModel): 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)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -72,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -84,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - Client.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 9f9b6ba4..9c2f62cd 100644 --- a/fattureincloud_python_sdk/models/create_f24_request.py +++ b/fattureincloud_python_sdk/models/create_f24_request.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,10 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class CreateF24Request(BaseModel): - """ """ # noqa: E501 - + """ + + """ # noqa: E501 data: Optional[F24] = None __properties: ClassVar[List[str]] = ["data"] @@ -37,6 +37,7 @@ class CreateF24Request(BaseModel): 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)) @@ -61,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -70,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -82,11 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - F24.from_dict(obj["data"]) if obj.get("data") is not None else None - ) - } - ) + _obj = cls.model_validate({ + "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 31410e85..49403480 100644 --- a/fattureincloud_python_sdk/models/create_f24_response.py +++ b/fattureincloud_python_sdk/models/create_f24_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,10 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class CreateF24Response(BaseModel): - """ """ # noqa: E501 - + """ + + """ # noqa: E501 data: Optional[F24] = None __properties: ClassVar[List[str]] = ["data"] @@ -37,6 +37,7 @@ class CreateF24Response(BaseModel): 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)) @@ -61,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -70,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -82,11 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - F24.from_dict(obj["data"]) if obj.get("data") is not None else None - ) - } - ) + _obj = cls.model_validate({ + "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 3745b6fd..96b82d32 100644 --- a/fattureincloud_python_sdk/models/create_issued_document_request.py +++ b/fattureincloud_python_sdk/models/create_issued_document_request.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -21,18 +21,14 @@ from pydantic import BaseModel, ConfigDict 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, -) +from fattureincloud_python_sdk.models.issued_document_options import IssuedDocumentOptions from typing import Optional, Set from typing_extensions import Self - class CreateIssuedDocumentRequest(BaseModel): """ CreateIssuedDocumentRequest - """ # noqa: E501 - + """ # noqa: E501 data: Optional[IssuedDocument] = None options: Optional[IssuedDocumentOptions] = None __properties: ClassVar[List[str]] = ["data", "options"] @@ -43,6 +39,7 @@ class CreateIssuedDocumentRequest(BaseModel): 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)) @@ -67,7 +64,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -76,10 +74,10 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() # override the default output from pydantic by calling `to_dict()` of options if self.options: - _dict["options"] = self.options.to_dict() + _dict['options'] = self.options.to_dict() return _dict @classmethod @@ -91,18 +89,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "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 - ), - } - ) + _obj = cls.model_validate({ + "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 66f7d847..aa93369f 100644 --- a/fattureincloud_python_sdk/models/create_issued_document_response.py +++ b/fattureincloud_python_sdk/models/create_issued_document_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class CreateIssuedDocumentResponse(BaseModel): """ CreateIssuedDocumentResponse - """ # noqa: E501 - + """ # noqa: E501 data: Optional[IssuedDocument] = None __properties: ClassVar[List[str]] = ["data"] @@ -39,6 +37,7 @@ class CreateIssuedDocumentResponse(BaseModel): 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)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -72,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -84,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - IssuedDocument.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 40a87077..281790bd 100644 --- a/fattureincloud_python_sdk/models/create_payment_account_request.py +++ b/fattureincloud_python_sdk/models/create_payment_account_request.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class CreatePaymentAccountRequest(BaseModel): """ CreatePaymentAccountRequest - """ # noqa: E501 - + """ # noqa: E501 data: Optional[PaymentAccount] = None __properties: ClassVar[List[str]] = ["data"] @@ -39,6 +37,7 @@ class CreatePaymentAccountRequest(BaseModel): 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)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -72,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -84,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - PaymentAccount.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 3cfca73a..11d66a49 100644 --- a/fattureincloud_python_sdk/models/create_payment_account_response.py +++ b/fattureincloud_python_sdk/models/create_payment_account_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class CreatePaymentAccountResponse(BaseModel): """ CreatePaymentAccountResponse - """ # noqa: E501 - + """ # noqa: E501 data: Optional[PaymentAccount] = None __properties: ClassVar[List[str]] = ["data"] @@ -39,6 +37,7 @@ class CreatePaymentAccountResponse(BaseModel): 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)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -72,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -84,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - PaymentAccount.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 98e7cd1c..aea2ba5f 100644 --- a/fattureincloud_python_sdk/models/create_payment_method_request.py +++ b/fattureincloud_python_sdk/models/create_payment_method_request.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class CreatePaymentMethodRequest(BaseModel): """ CreatePaymentMethodRequest - """ # noqa: E501 - + """ # noqa: E501 data: Optional[PaymentMethod] = None __properties: ClassVar[List[str]] = ["data"] @@ -39,6 +37,7 @@ class CreatePaymentMethodRequest(BaseModel): 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)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -72,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -84,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - PaymentMethod.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 03ee6ab9..93af0201 100644 --- a/fattureincloud_python_sdk/models/create_payment_method_response.py +++ b/fattureincloud_python_sdk/models/create_payment_method_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class CreatePaymentMethodResponse(BaseModel): """ CreatePaymentMethodResponse - """ # noqa: E501 - + """ # noqa: E501 data: Optional[PaymentMethod] = None __properties: ClassVar[List[str]] = ["data"] @@ -39,6 +37,7 @@ class CreatePaymentMethodResponse(BaseModel): 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)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -72,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -84,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - PaymentMethod.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 aefec270..5a30b4d0 100644 --- a/fattureincloud_python_sdk/models/create_product_request.py +++ b/fattureincloud_python_sdk/models/create_product_request.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class CreateProductRequest(BaseModel): """ CreateProductRequest - """ # noqa: E501 - + """ # noqa: E501 data: Optional[Product] = None __properties: ClassVar[List[str]] = ["data"] @@ -39,6 +37,7 @@ class CreateProductRequest(BaseModel): 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)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -72,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -84,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - Product.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 179f3292..f7b2db75 100644 --- a/fattureincloud_python_sdk/models/create_product_response.py +++ b/fattureincloud_python_sdk/models/create_product_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class CreateProductResponse(BaseModel): """ CreateProductResponse - """ # noqa: E501 - + """ # noqa: E501 data: Optional[Product] = None __properties: ClassVar[List[str]] = ["data"] @@ -39,6 +37,7 @@ class CreateProductResponse(BaseModel): 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)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -72,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -84,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - Product.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 a31be8ce..3db01a31 100644 --- a/fattureincloud_python_sdk/models/create_receipt_request.py +++ b/fattureincloud_python_sdk/models/create_receipt_request.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,14 +24,12 @@ from typing import Optional, Set from typing_extensions import Self - class CreateReceiptRequest(BaseModel): - """ """ # noqa: E501 - + """ + + """ # noqa: E501 data: Optional[Receipt] = None - autocomplete_number: Optional[StrictBool] = Field( - default=None, description="If true, the number is autocompleted progressively." - ) + autocomplete_number: Optional[StrictBool] = Field(default=None, description="If true, the number is autocompleted progressively.") __properties: ClassVar[List[str]] = ["data", "autocomplete_number"] model_config = ConfigDict( @@ -40,6 +38,7 @@ class CreateReceiptRequest(BaseModel): 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)) @@ -64,7 +63,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -73,7 +73,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -85,14 +85,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - Receipt.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ), - "autocomplete_number": obj.get("autocomplete_number"), - } - ) + _obj = cls.model_validate({ + "data": Receipt.from_dict(obj["data"]) if obj.get("data") is not None else None, + "autocomplete_number": obj.get("autocomplete_number") + }) return _obj + + diff --git a/fattureincloud_python_sdk/models/create_receipt_response.py b/fattureincloud_python_sdk/models/create_receipt_response.py index 2b2e1490..edcef541 100644 --- a/fattureincloud_python_sdk/models/create_receipt_response.py +++ b/fattureincloud_python_sdk/models/create_receipt_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,10 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class CreateReceiptResponse(BaseModel): - """ """ # noqa: E501 - + """ + + """ # noqa: E501 data: Optional[Receipt] = None __properties: ClassVar[List[str]] = ["data"] @@ -37,6 +37,7 @@ class CreateReceiptResponse(BaseModel): 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)) @@ -61,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -70,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -82,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - Receipt.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 62d24ad7..b752920d 100644 --- a/fattureincloud_python_sdk/models/create_received_document_request.py +++ b/fattureincloud_python_sdk/models/create_received_document_request.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,14 +24,11 @@ from typing import Optional, Set from typing_extensions import Self - class CreateReceivedDocumentRequest(BaseModel): - """ """ # noqa: E501 - - pending_id: Optional[StrictInt] = Field( - default=None, - description="Pending received document id of the document from which the new document is created.", - ) + """ + + """ # noqa: E501 + pending_id: Optional[StrictInt] = Field(default=None, description="Pending received document id of the document from which the new document is created.") data: Optional[ReceivedDocument] = None __properties: ClassVar[List[str]] = ["pending_id", "data"] @@ -41,6 +38,7 @@ class CreateReceivedDocumentRequest(BaseModel): 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)) @@ -65,7 +63,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -74,7 +73,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -86,14 +85,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "pending_id": obj.get("pending_id"), - "data": ( - ReceivedDocument.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ), - } - ) + _obj = cls.model_validate({ + "pending_id": obj.get("pending_id"), + "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 b5bcefec..da33191a 100644 --- a/fattureincloud_python_sdk/models/create_received_document_response.py +++ b/fattureincloud_python_sdk/models/create_received_document_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,10 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class CreateReceivedDocumentResponse(BaseModel): - """ """ # noqa: E501 - + """ + + """ # noqa: E501 data: Optional[ReceivedDocument] = None __properties: ClassVar[List[str]] = ["data"] @@ -37,6 +37,7 @@ class CreateReceivedDocumentResponse(BaseModel): 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)) @@ -61,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -70,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -82,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - ReceivedDocument.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 850869fa..79c432c3 100644 --- a/fattureincloud_python_sdk/models/create_supplier_request.py +++ b/fattureincloud_python_sdk/models/create_supplier_request.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class CreateSupplierRequest(BaseModel): """ CreateSupplierRequest - """ # noqa: E501 - + """ # noqa: E501 data: Optional[Supplier] = None __properties: ClassVar[List[str]] = ["data"] @@ -39,6 +37,7 @@ class CreateSupplierRequest(BaseModel): 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)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -72,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -84,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - Supplier.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 aa74707e..f9dc6cd1 100644 --- a/fattureincloud_python_sdk/models/create_supplier_response.py +++ b/fattureincloud_python_sdk/models/create_supplier_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class CreateSupplierResponse(BaseModel): """ CreateSupplierResponse - """ # noqa: E501 - + """ # noqa: E501 data: Optional[Supplier] = None __properties: ClassVar[List[str]] = ["data"] @@ -39,6 +37,7 @@ class CreateSupplierResponse(BaseModel): 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)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -72,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -84,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - Supplier.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 ed5d14eb..cdb065bb 100644 --- a/fattureincloud_python_sdk/models/create_vat_type_request.py +++ b/fattureincloud_python_sdk/models/create_vat_type_request.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class CreateVatTypeRequest(BaseModel): """ CreateVatTypeRequest - """ # noqa: E501 - + """ # noqa: E501 data: Optional[VatType] = None __properties: ClassVar[List[str]] = ["data"] @@ -39,6 +37,7 @@ class CreateVatTypeRequest(BaseModel): 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)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -72,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -84,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - VatType.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 4940eaf6..ac61eb74 100644 --- a/fattureincloud_python_sdk/models/create_vat_type_response.py +++ b/fattureincloud_python_sdk/models/create_vat_type_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class CreateVatTypeResponse(BaseModel): """ CreateVatTypeResponse - """ # noqa: E501 - + """ # noqa: E501 data: Optional[VatType] = None __properties: ClassVar[List[str]] = ["data"] @@ -39,6 +37,7 @@ class CreateVatTypeResponse(BaseModel): 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)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -72,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -84,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - VatType.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 7505d353..dcb778cf 100644 --- a/fattureincloud_python_sdk/models/create_webhooks_subscription_request.py +++ b/fattureincloud_python_sdk/models/create_webhooks_subscription_request.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class CreateWebhooksSubscriptionRequest(BaseModel): """ CreateWebhooksSubscriptionRequest - """ # noqa: E501 - + """ # noqa: E501 data: Optional[WebhooksSubscription] = None __properties: ClassVar[List[str]] = ["data"] @@ -39,6 +37,7 @@ class CreateWebhooksSubscriptionRequest(BaseModel): 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)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -72,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -84,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - WebhooksSubscription.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 22bd26c7..b06aabe0 100644 --- a/fattureincloud_python_sdk/models/create_webhooks_subscription_response.py +++ b/fattureincloud_python_sdk/models/create_webhooks_subscription_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,16 +24,12 @@ from typing import Optional, Set from typing_extensions import Self - class CreateWebhooksSubscriptionResponse(BaseModel): """ CreateWebhooksSubscriptionResponse - """ # noqa: E501 - + """ # noqa: E501 data: Optional[WebhooksSubscription] = None - warnings: Optional[List[StrictStr]] = Field( - default=None, description="Webhooks registration warnings" - ) + warnings: Optional[List[StrictStr]] = Field(default=None, description="Webhooks registration warnings") __properties: ClassVar[List[str]] = ["data", "warnings"] model_config = ConfigDict( @@ -42,6 +38,7 @@ class CreateWebhooksSubscriptionResponse(BaseModel): 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)) @@ -66,7 +63,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -75,7 +73,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -87,14 +85,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - WebhooksSubscription.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ), - "warnings": obj.get("warnings"), - } - ) + _obj = cls.model_validate({ + "data": WebhooksSubscription.from_dict(obj["data"]) if obj.get("data") is not None else None, + "warnings": obj.get("warnings") + }) return _obj + + diff --git a/fattureincloud_python_sdk/models/currency.py b/fattureincloud_python_sdk/models/currency.py index d7f9c5ce..9a91f1d4 100644 --- a/fattureincloud_python_sdk/models/currency.py +++ b/fattureincloud_python_sdk/models/currency.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -23,20 +23,14 @@ from typing import Optional, Set from typing_extensions import Self - class Currency(BaseModel): """ Currency - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictStr] = Field(default=None, description="Currency code") symbol: Optional[StrictStr] = Field(default=None, description="Currency symbol") - exchange_rate: Optional[StrictStr] = Field( - default=None, description="Currency exchange rate (EUR to this)" - ) - html_symbol: Optional[StrictStr] = Field( - default=None, description="Currency html code" - ) + exchange_rate: Optional[StrictStr] = Field(default=None, description="Currency exchange rate (EUR to this)") + html_symbol: Optional[StrictStr] = Field(default=None, description="Currency html code") __properties: ClassVar[List[str]] = ["id", "symbol", "exchange_rate", "html_symbol"] model_config = ConfigDict( @@ -45,6 +39,7 @@ class Currency(BaseModel): 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)) @@ -69,7 +64,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -87,12 +83,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "symbol": obj.get("symbol"), - "exchange_rate": obj.get("exchange_rate"), - "html_symbol": obj.get("html_symbol"), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "symbol": obj.get("symbol"), + "exchange_rate": obj.get("exchange_rate"), + "html_symbol": obj.get("html_symbol") + }) return _obj + + diff --git a/fattureincloud_python_sdk/models/detailed_country.py b/fattureincloud_python_sdk/models/detailed_country.py index e28f9679..acffa6fc 100644 --- a/fattureincloud_python_sdk/models/detailed_country.py +++ b/fattureincloud_python_sdk/models/detailed_country.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -23,28 +23,16 @@ from typing import Optional, Set from typing_extensions import Self - class DetailedCountry(BaseModel): """ DetailedCountry - """ # noqa: E501 - + """ # noqa: E501 name: Optional[StrictStr] = Field(default=None, description="Country name") - settings_name: Optional[StrictStr] = Field( - default=None, description="Country settings name" - ) + settings_name: Optional[StrictStr] = Field(default=None, description="Country settings name") iso: Optional[StrictStr] = Field(default=None, description="Country iso code") - fiscal_iso: Optional[StrictStr] = Field( - default=None, description="Country fiscal iso code" - ) + fiscal_iso: Optional[StrictStr] = Field(default=None, description="Country fiscal iso code") uic: Optional[StrictStr] = Field(default=None, description="Country uic") - __properties: ClassVar[List[str]] = [ - "name", - "settings_name", - "iso", - "fiscal_iso", - "uic", - ] + __properties: ClassVar[List[str]] = ["name", "settings_name", "iso", "fiscal_iso", "uic"] model_config = ConfigDict( populate_by_name=True, @@ -52,6 +40,7 @@ class DetailedCountry(BaseModel): 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)) @@ -76,7 +65,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -94,13 +84,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "name": obj.get("name"), - "settings_name": obj.get("settings_name"), - "iso": obj.get("iso"), - "fiscal_iso": obj.get("fiscal_iso"), - "uic": obj.get("uic"), - } - ) + _obj = cls.model_validate({ + "name": obj.get("name"), + "settings_name": obj.get("settings_name"), + "iso": obj.get("iso"), + "fiscal_iso": obj.get("fiscal_iso"), + "uic": obj.get("uic") + }) return _obj + + diff --git a/fattureincloud_python_sdk/models/document_template.py b/fattureincloud_python_sdk/models/document_template.py index 58b7580c..e4f3c199 100644 --- a/fattureincloud_python_sdk/models/document_template.py +++ b/fattureincloud_python_sdk/models/document_template.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -23,12 +23,10 @@ from typing import Optional, Set from typing_extensions import Self - class DocumentTemplate(BaseModel): """ DocumentTemplate - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictInt] = Field(default=None, description="Template id") name: Optional[StrictStr] = Field(default=None, description="Template name") type: Optional[StrictStr] = Field(default=None, description="Template type") @@ -40,6 +38,7 @@ class DocumentTemplate(BaseModel): 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)) @@ -64,7 +63,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -82,7 +82,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - {"id": obj.get("id"), "name": obj.get("name"), "type": obj.get("type")} - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name"), + "type": obj.get("type") + }) return _obj + + diff --git a/fattureincloud_python_sdk/models/e_invoice_rejection_reason.py b/fattureincloud_python_sdk/models/e_invoice_rejection_reason.py index 30030beb..18f436c8 100644 --- a/fattureincloud_python_sdk/models/e_invoice_rejection_reason.py +++ b/fattureincloud_python_sdk/models/e_invoice_rejection_reason.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,30 +24,16 @@ from typing import Optional, Set from typing_extensions import Self - class EInvoiceRejectionReason(BaseModel): """ EInvoiceRejectionReason - """ # noqa: E501 - - reason: Optional[StrictStr] = Field( - default=None, description="E-invoice rejection reason" - ) + """ # noqa: E501 + reason: Optional[StrictStr] = Field(default=None, description="E-invoice rejection reason") ei_status: Optional[StrictStr] = Field(default=None, description="E-invoice status") solution: Optional[StrictStr] = Field(default=None, description="Error solution.") - code: Optional[StrictStr] = Field( - default=None, description="E-invoice rejection error code" - ) - var_date: Optional[datetime] = Field( - default=None, description="E-invoice rejection date", alias="date" - ) - __properties: ClassVar[List[str]] = [ - "reason", - "ei_status", - "solution", - "code", - "date", - ] + code: Optional[StrictStr] = Field(default=None, description="E-invoice rejection error code") + var_date: Optional[datetime] = Field(default=None, description="E-invoice rejection date", alias="date") + __properties: ClassVar[List[str]] = ["reason", "ei_status", "solution", "code", "date"] model_config = ConfigDict( populate_by_name=True, @@ -55,6 +41,7 @@ class EInvoiceRejectionReason(BaseModel): 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)) @@ -79,7 +66,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -97,13 +85,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "reason": obj.get("reason"), - "ei_status": obj.get("ei_status"), - "solution": obj.get("solution"), - "code": obj.get("code"), - "date": obj.get("date"), - } - ) + _obj = cls.model_validate({ + "reason": obj.get("reason"), + "ei_status": obj.get("ei_status"), + "solution": obj.get("solution"), + "code": obj.get("code"), + "date": obj.get("date") + }) return _obj + + diff --git a/fattureincloud_python_sdk/models/email.py b/fattureincloud_python_sdk/models/email.py index 80d7e0d8..f23d22ad 100644 --- a/fattureincloud_python_sdk/models/email.py +++ b/fattureincloud_python_sdk/models/email.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -27,60 +27,27 @@ from typing import Optional, Set from typing_extensions import Self - class Email(BaseModel): """ Email - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictInt] = Field(default=None, description="Email id") status: Optional[EmailStatus] = None sent_date: Optional[StrictStr] = Field(default=None, description="Email sent date") - errors_count: Optional[StrictInt] = Field( - default=None, description="Email errors count" - ) + errors_count: Optional[StrictInt] = Field(default=None, description="Email errors count") error_log: Optional[StrictStr] = Field(default=None, description="Email errors log") - from_email: Optional[StrictStr] = Field( - default=None, description="Email sender email" - ) - from_name: Optional[StrictStr] = Field( - default=None, description="Email sender name" - ) - to_email: Optional[StrictStr] = Field( - default=None, description="Email recipient email" - ) - to_name: Optional[StrictStr] = Field( - default=None, description="Email receipient name" - ) + from_email: Optional[StrictStr] = Field(default=None, description="Email sender email") + from_name: Optional[StrictStr] = Field(default=None, description="Email sender name") + to_email: Optional[StrictStr] = Field(default=None, description="Email recipient email") + to_name: Optional[StrictStr] = Field(default=None, description="Email receipient name") subject: Optional[StrictStr] = Field(default=None, description="Email subject") content: Optional[StrictStr] = Field(default=None, description="Email content") copy_to: Optional[StrictStr] = Field(default=None, description="Email cc") recipient_status: Optional[EmailRecipientStatus] = None - recipient_date: Optional[datetime] = Field( - default=None, description="Email recipient date" - ) + recipient_date: Optional[datetime] = Field(default=None, description="Email recipient date") kind: Optional[StrictStr] = Field(default=None, description="Email kind") - attachments: Optional[List[EmailAttachment]] = Field( - default=None, description="Email attachments" - ) - __properties: ClassVar[List[str]] = [ - "id", - "status", - "sent_date", - "errors_count", - "error_log", - "from_email", - "from_name", - "to_email", - "to_name", - "subject", - "content", - "copy_to", - "recipient_status", - "recipient_date", - "kind", - "attachments", - ] + attachments: Optional[List[EmailAttachment]] = Field(default=None, description="Email attachments") + __properties: ClassVar[List[str]] = ["id", "status", "sent_date", "errors_count", "error_log", "from_email", "from_name", "to_email", "to_name", "subject", "content", "copy_to", "recipient_status", "recipient_date", "kind", "attachments"] model_config = ConfigDict( populate_by_name=True, @@ -88,6 +55,7 @@ class Email(BaseModel): 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)) @@ -112,7 +80,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -125,7 +94,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_attachments in self.attachments: if _item_attachments: _items.append(_item_attachments.to_dict()) - _dict["attachments"] = _items + _dict['attachments'] = _items return _dict @classmethod @@ -137,28 +106,24 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "status": obj.get("status"), - "sent_date": obj.get("sent_date"), - "errors_count": obj.get("errors_count"), - "error_log": obj.get("error_log"), - "from_email": obj.get("from_email"), - "from_name": obj.get("from_name"), - "to_email": obj.get("to_email"), - "to_name": obj.get("to_name"), - "subject": obj.get("subject"), - "content": obj.get("content"), - "copy_to": obj.get("copy_to"), - "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["attachments"]] - if obj.get("attachments") is not None - else None - ), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "status": obj.get("status"), + "sent_date": obj.get("sent_date"), + "errors_count": obj.get("errors_count"), + "error_log": obj.get("error_log"), + "from_email": obj.get("from_email"), + "from_name": obj.get("from_name"), + "to_email": obj.get("to_email"), + "to_name": obj.get("to_name"), + "subject": obj.get("subject"), + "content": obj.get("content"), + "copy_to": obj.get("copy_to"), + "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["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 0e68ed2f..c49f697f 100644 --- a/fattureincloud_python_sdk/models/email_attachment.py +++ b/fattureincloud_python_sdk/models/email_attachment.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -23,15 +23,11 @@ from typing import Optional, Set from typing_extensions import Self - class EmailAttachment(BaseModel): """ EmailAttachment - """ # noqa: E501 - - filename: Optional[StrictStr] = Field( - default=None, description="Email attachment filename" - ) + """ # noqa: E501 + filename: Optional[StrictStr] = Field(default=None, description="Email attachment filename") url: Optional[StrictStr] = Field(default=None, description="Email attachment url") __properties: ClassVar[List[str]] = ["filename", "url"] @@ -41,6 +37,7 @@ class EmailAttachment(BaseModel): 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)) @@ -65,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -83,7 +81,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - {"filename": obj.get("filename"), "url": obj.get("url")} - ) + _obj = cls.model_validate({ + "filename": obj.get("filename"), + "url": obj.get("url") + }) return _obj + + diff --git a/fattureincloud_python_sdk/models/email_data.py b/fattureincloud_python_sdk/models/email_data.py index 6a08ae68..dfeb8087 100644 --- a/fattureincloud_python_sdk/models/email_data.py +++ b/fattureincloud_python_sdk/models/email_data.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -20,60 +20,27 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from fattureincloud_python_sdk.models.email_data_default_sender_email import ( - EmailDataDefaultSenderEmail, -) +from fattureincloud_python_sdk.models.email_data_default_sender_email import EmailDataDefaultSenderEmail from fattureincloud_python_sdk.models.sender_email import SenderEmail from typing import Optional, Set from typing_extensions import Self - class EmailData(BaseModel): """ EmailData - """ # noqa: E501 - - recipient_email: Optional[StrictStr] = Field( - default=None, description="Email recipient" - ) + """ # noqa: E501 + recipient_email: Optional[StrictStr] = Field(default=None, description="Email recipient") default_sender_email: Optional[EmailDataDefaultSenderEmail] = None - sender_emails_list: Optional[List[SenderEmail]] = Field( - default=None, - description="List of all emails from which the document can be sent", - ) - cc_email: Optional[StrictStr] = Field( - default=None, description="Email cc [by default is the logged company email]" - ) + sender_emails_list: Optional[List[SenderEmail]] = Field(default=None, description="List of all emails from which the document can be sent") + cc_email: Optional[StrictStr] = Field(default=None, description="Email cc [by default is the logged company email]") subject: Optional[StrictStr] = Field(default=None, description="Email subject") body: Optional[StrictStr] = Field(default=None, description="Email body") - document_exists: Optional[StrictBool] = Field( - default=None, description="Document exists if it is not a delivery note" - ) - delivery_note_exists: Optional[StrictBool] = Field( - default=None, description="Document is a delivery note" - ) - attachment_exists: Optional[StrictBool] = Field( - default=None, description="Document has attachment" - ) - accompanying_invoice_exists: Optional[StrictBool] = Field( - default=None, description="Document has accompanying invoice" - ) - default_attach_pdf: Optional[StrictBool] = Field( - default=None, description="Attach document pdf" - ) - __properties: ClassVar[List[str]] = [ - "recipient_email", - "default_sender_email", - "sender_emails_list", - "cc_email", - "subject", - "body", - "document_exists", - "delivery_note_exists", - "attachment_exists", - "accompanying_invoice_exists", - "default_attach_pdf", - ] + document_exists: Optional[StrictBool] = Field(default=None, description="Document exists if it is not a delivery note") + delivery_note_exists: Optional[StrictBool] = Field(default=None, description="Document is a delivery note") + attachment_exists: Optional[StrictBool] = Field(default=None, description="Document has attachment") + accompanying_invoice_exists: Optional[StrictBool] = Field(default=None, description="Document has accompanying invoice") + default_attach_pdf: Optional[StrictBool] = Field(default=None, description="Attach document pdf") + __properties: ClassVar[List[str]] = ["recipient_email", "default_sender_email", "sender_emails_list", "cc_email", "subject", "body", "document_exists", "delivery_note_exists", "attachment_exists", "accompanying_invoice_exists", "default_attach_pdf"] model_config = ConfigDict( populate_by_name=True, @@ -81,6 +48,7 @@ class EmailData(BaseModel): 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)) @@ -105,7 +73,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -114,14 +83,14 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of default_sender_email if self.default_sender_email: - _dict["default_sender_email"] = self.default_sender_email.to_dict() + _dict['default_sender_email'] = self.default_sender_email.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in sender_emails_list (list) _items = [] if self.sender_emails_list: for _item_sender_emails_list in self.sender_emails_list: if _item_sender_emails_list: _items.append(_item_sender_emails_list.to_dict()) - _dict["sender_emails_list"] = _items + _dict['sender_emails_list'] = _items return _dict @classmethod @@ -133,30 +102,19 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "recipient_email": obj.get("recipient_email"), - "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"), - "document_exists": obj.get("document_exists"), - "delivery_note_exists": obj.get("delivery_note_exists"), - "attachment_exists": obj.get("attachment_exists"), - "accompanying_invoice_exists": obj.get("accompanying_invoice_exists"), - "default_attach_pdf": obj.get("default_attach_pdf"), - } - ) + _obj = cls.model_validate({ + "recipient_email": obj.get("recipient_email"), + "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"), + "document_exists": obj.get("document_exists"), + "delivery_note_exists": obj.get("delivery_note_exists"), + "attachment_exists": obj.get("attachment_exists"), + "accompanying_invoice_exists": obj.get("accompanying_invoice_exists"), + "default_attach_pdf": obj.get("default_attach_pdf") + }) return _obj + + 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 a99b7203..522de32e 100644 --- a/fattureincloud_python_sdk/models/email_data_default_sender_email.py +++ b/fattureincloud_python_sdk/models/email_data_default_sender_email.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -23,16 +23,12 @@ from typing import Optional, Set from typing_extensions import Self - class EmailDataDefaultSenderEmail(BaseModel): """ Default sender email. (Other emails can be found in **sender_emails_list**) - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictInt] = Field(default=None, description="Default sender email id") - email: Optional[StrictStr] = Field( - default=None, description="Default sender email address" - ) + email: Optional[StrictStr] = Field(default=None, description="Default sender email address") __properties: ClassVar[List[str]] = ["id", "email"] model_config = ConfigDict( @@ -41,6 +37,7 @@ class EmailDataDefaultSenderEmail(BaseModel): 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)) @@ -65,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -83,5 +81,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"id": obj.get("id"), "email": obj.get("email")}) + _obj = cls.model_validate({ + "id": obj.get("id"), + "email": obj.get("email") + }) return _obj + + diff --git a/fattureincloud_python_sdk/models/email_recipient_status.py b/fattureincloud_python_sdk/models/email_recipient_status.py index c4a0daf5..2464c427 100644 --- a/fattureincloud_python_sdk/models/email_recipient_status.py +++ b/fattureincloud_python_sdk/models/email_recipient_status.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -27,11 +27,13 @@ class EmailRecipientStatus(str, Enum): """ allowed enum values """ - UNKNOWN = "unknown" - DOCUMENT_OPENED = "document_opened" - EMAIL_OPENED = "email_opened" + UNKNOWN = 'unknown' + DOCUMENT_OPENED = 'document_opened' + EMAIL_OPENED = 'email_opened' @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of EmailRecipientStatus from a JSON string""" return cls(json.loads(json_str)) + + diff --git a/fattureincloud_python_sdk/models/email_schedule.py b/fattureincloud_python_sdk/models/email_schedule.py index a2900f2a..abd63e67 100644 --- a/fattureincloud_python_sdk/models/email_schedule.py +++ b/fattureincloud_python_sdk/models/email_schedule.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,45 +24,19 @@ from typing import Optional, Set from typing_extensions import Self - class EmailSchedule(BaseModel): """ EmailSchedule - """ # noqa: E501 - - sender_id: Optional[StrictInt] = Field( - default=None, - description="Email sender id [required if **sender_email** is not specified]", - ) - sender_email: Optional[StrictStr] = Field( - default=None, - description="Email sender address [required if **sender_id** is not specified]", - ) - recipient_email: Optional[StrictStr] = Field( - default=None, description="Email recipient emails [comma separated]" - ) + """ # noqa: E501 + sender_id: Optional[StrictInt] = Field(default=None, description="Email sender id [required if **sender_email** is not specified]") + sender_email: Optional[StrictStr] = Field(default=None, description="Email sender address [required if **sender_id** is not specified]") + recipient_email: Optional[StrictStr] = Field(default=None, description="Email recipient emails [comma separated]") subject: Optional[StrictStr] = Field(default=None, description="Email subject") - body: Optional[StrictStr] = Field( - default=None, description="Email body [HTML Escaped] [max size 50KiB]" - ) + body: Optional[StrictStr] = Field(default=None, description="Email body [HTML Escaped] [max size 50KiB]") include: Optional[EmailScheduleInclude] = None - attach_pdf: Optional[StrictBool] = Field( - default=None, description="Attach the pdf of the document" - ) - send_copy: Optional[StrictBool] = Field( - default=None, - description="Send a copy of the email to the **cc_email** specified by **Get email data**", - ) - __properties: ClassVar[List[str]] = [ - "sender_id", - "sender_email", - "recipient_email", - "subject", - "body", - "include", - "attach_pdf", - "send_copy", - ] + attach_pdf: Optional[StrictBool] = Field(default=None, description="Attach the pdf of the document") + send_copy: Optional[StrictBool] = Field(default=None, description="Send a copy of the email to the **cc_email** specified by **Get email data**") + __properties: ClassVar[List[str]] = ["sender_id", "sender_email", "recipient_email", "subject", "body", "include", "attach_pdf", "send_copy"] model_config = ConfigDict( populate_by_name=True, @@ -70,6 +44,7 @@ class EmailSchedule(BaseModel): 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)) @@ -94,7 +69,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -103,7 +79,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of include if self.include: - _dict["include"] = self.include.to_dict() + _dict['include'] = self.include.to_dict() return _dict @classmethod @@ -115,20 +91,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "sender_id": obj.get("sender_id"), - "sender_email": obj.get("sender_email"), - "recipient_email": obj.get("recipient_email"), - "subject": obj.get("subject"), - "body": obj.get("body"), - "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"), - } - ) + _obj = cls.model_validate({ + "sender_id": obj.get("sender_id"), + "sender_email": obj.get("sender_email"), + "recipient_email": obj.get("recipient_email"), + "subject": obj.get("subject"), + "body": obj.get("body"), + "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") + }) return _obj + + diff --git a/fattureincloud_python_sdk/models/email_schedule_include.py b/fattureincloud_python_sdk/models/email_schedule_include.py index 7b49dc9d..ead8dbcc 100644 --- a/fattureincloud_python_sdk/models/email_schedule_include.py +++ b/fattureincloud_python_sdk/models/email_schedule_include.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -23,30 +23,15 @@ from typing import Optional, Set from typing_extensions import Self - class EmailScheduleInclude(BaseModel): """ EmailScheduleInclude - """ # noqa: E501 - - document: Optional[StrictBool] = Field( - default=None, description="Include a button to view the document" - ) - delivery_note: Optional[StrictBool] = Field( - default=None, description="Include a button to view the delivery note" - ) - attachment: Optional[StrictBool] = Field( - default=None, description="Include a button to view the attachment" - ) - accompanying_invoice: Optional[StrictBool] = Field( - default=None, description="Include a button to view the accompanying invoice" - ) - __properties: ClassVar[List[str]] = [ - "document", - "delivery_note", - "attachment", - "accompanying_invoice", - ] + """ # noqa: E501 + document: Optional[StrictBool] = Field(default=None, description="Include a button to view the document") + delivery_note: Optional[StrictBool] = Field(default=None, description="Include a button to view the delivery note") + attachment: Optional[StrictBool] = Field(default=None, description="Include a button to view the attachment") + accompanying_invoice: Optional[StrictBool] = Field(default=None, description="Include a button to view the accompanying invoice") + __properties: ClassVar[List[str]] = ["document", "delivery_note", "attachment", "accompanying_invoice"] model_config = ConfigDict( populate_by_name=True, @@ -54,6 +39,7 @@ class EmailScheduleInclude(BaseModel): 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)) @@ -78,7 +64,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -96,12 +83,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "document": obj.get("document"), - "delivery_note": obj.get("delivery_note"), - "attachment": obj.get("attachment"), - "accompanying_invoice": obj.get("accompanying_invoice"), - } - ) + _obj = cls.model_validate({ + "document": obj.get("document"), + "delivery_note": obj.get("delivery_note"), + "attachment": obj.get("attachment"), + "accompanying_invoice": obj.get("accompanying_invoice") + }) return _obj + + diff --git a/fattureincloud_python_sdk/models/email_status.py b/fattureincloud_python_sdk/models/email_status.py index c599e88e..3ac166a0 100644 --- a/fattureincloud_python_sdk/models/email_status.py +++ b/fattureincloud_python_sdk/models/email_status.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -27,11 +27,13 @@ class EmailStatus(str, Enum): """ allowed enum values """ - SENDING = "sending" - PENDING = "pending" - SENT = "sent" + SENDING = 'sending' + PENDING = 'pending' + SENT = 'sent' @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of EmailStatus from a JSON string""" return cls(json.loads(json_str)) + + diff --git a/fattureincloud_python_sdk/models/entity.py b/fattureincloud_python_sdk/models/entity.py index 7fdfba99..1d7ac173 100644 --- a/fattureincloud_python_sdk/models/entity.py +++ b/fattureincloud_python_sdk/models/entity.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -28,132 +28,47 @@ from typing import Optional, Set from typing_extensions import Self - class Entity(BaseModel): """ Entity - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictInt] = Field(default=None, description="Entity id") code: Optional[StrictStr] = Field(default=None, description="Entity code") name: Optional[StrictStr] = Field(default=None, description="Entity name") type: Optional[EntityType] = None - first_name: Optional[StrictStr] = Field( - default=None, description="Entity first name" - ) + first_name: Optional[StrictStr] = Field(default=None, description="Entity first name") last_name: Optional[StrictStr] = Field(default=None, description="Entity last name") - contact_person: Optional[StrictStr] = Field( - default=None, description="Entity contact person" - ) - vat_number: Optional[StrictStr] = Field( - default=None, description="Entity vat number" - ) + contact_person: Optional[StrictStr] = Field(default=None, description="Entity contact person") + vat_number: Optional[StrictStr] = Field(default=None, description="Entity vat number") tax_code: Optional[StrictStr] = Field(default=None, description="Entity tax code") - address_street: Optional[StrictStr] = Field( - default=None, description="Entitity address street" - ) - address_postal_code: Optional[StrictStr] = Field( - default=None, description="Entity address postal code" - ) - address_city: Optional[StrictStr] = Field( - default=None, description="Entity address city" - ) - address_province: Optional[StrictStr] = Field( - default=None, description="Entity address province" - ) - address_extra: Optional[StrictStr] = Field( - default=None, description="Entity address extra info" - ) + address_street: Optional[StrictStr] = Field(default=None, description="Entitity address street") + address_postal_code: Optional[StrictStr] = Field(default=None, description="Entity address postal code") + address_city: Optional[StrictStr] = Field(default=None, description="Entity address city") + address_province: Optional[StrictStr] = Field(default=None, description="Entity address province") + address_extra: Optional[StrictStr] = Field(default=None, description="Entity address extra info") country: Optional[StrictStr] = Field(default=None, description="Entity country") - country_iso: Optional[StrictStr] = Field( - default=None, description="Entity country iso code" - ) + country_iso: Optional[StrictStr] = Field(default=None, description="Entity country iso code") email: Optional[StrictStr] = Field(default=None, description="Entity email") - certified_email: Optional[StrictStr] = Field( - default=None, description="Entity certified email" - ) + certified_email: Optional[StrictStr] = Field(default=None, description="Entity certified email") phone: Optional[StrictStr] = Field(default=None, description="Entity phone") fax: Optional[StrictStr] = Field(default=None, description="Entity fax") notes: Optional[StrictStr] = Field(default=None, description="Entity extra") - default_payment_terms: Optional[StrictInt] = Field( - default=None, description="[Only for client] Client default payment terms" - ) + default_payment_terms: Optional[StrictInt] = Field(default=None, description="[Only for client] Client default payment terms") default_vat: Optional[VatType] = None default_payment_terms_type: Optional[PaymentTermsType] = PaymentTermsType.STANDARD default_payment_method: Optional[PaymentMethod] = None - bank_name: Optional[StrictStr] = Field( - default=None, description="[Only for client] Client bank name" - ) - bank_iban: Optional[StrictStr] = Field( - default=None, description="[Only for client] Client bank iban" - ) - bank_swift_code: Optional[StrictStr] = Field( - default=None, description="[Only for client] Client bank swift code" - ) - shipping_address: Optional[StrictStr] = Field( - default=None, description="[Only for client] Client Shipping address" - ) - e_invoice: Optional[StrictBool] = Field( - default=None, description="[Only for client] Use e-invoices." - ) - ei_code: Optional[StrictStr] = Field( - default=None, description="[Only for client] E-invoices code." - ) - has_intent_declaration: Optional[StrictBool] = Field( - default=None, description="[Only for client] Has intent declaration." - ) - intent_declaration_protocol_number: Optional[StrictStr] = Field( - default=None, - description="[Only for client] Client intent declaration protocol number", - ) - intent_declaration_protocol_date: Optional[date] = Field( - default=None, - description="[Only for client] Client intent declaration protocol date", - ) - created_at: Optional[StrictStr] = Field( - default=None, description="Entity creation date" - ) - updated_at: Optional[StrictStr] = Field( - default=None, description="Entity last update date" - ) - __properties: ClassVar[List[str]] = [ - "id", - "code", - "name", - "type", - "first_name", - "last_name", - "contact_person", - "vat_number", - "tax_code", - "address_street", - "address_postal_code", - "address_city", - "address_province", - "address_extra", - "country", - "country_iso", - "email", - "certified_email", - "phone", - "fax", - "notes", - "default_payment_terms", - "default_vat", - "default_payment_terms_type", - "default_payment_method", - "bank_name", - "bank_iban", - "bank_swift_code", - "shipping_address", - "e_invoice", - "ei_code", - "has_intent_declaration", - "intent_declaration_protocol_number", - "intent_declaration_protocol_date", - "created_at", - "updated_at", - ] + bank_name: Optional[StrictStr] = Field(default=None, description="[Only for client] Client bank name") + bank_iban: Optional[StrictStr] = Field(default=None, description="[Only for client] Client bank iban") + bank_swift_code: Optional[StrictStr] = Field(default=None, description="[Only for client] Client bank swift code") + shipping_address: Optional[StrictStr] = Field(default=None, description="[Only for client] Client Shipping address") + e_invoice: Optional[StrictBool] = Field(default=None, description="[Only for client] Use e-invoices.") + ei_code: Optional[StrictStr] = Field(default=None, description="[Only for client] E-invoices code.") + has_intent_declaration: Optional[StrictBool] = Field(default=None, description="[Only for client] Has intent declaration.") + intent_declaration_protocol_number: Optional[StrictStr] = Field(default=None, description="[Only for client] Client intent declaration protocol number") + intent_declaration_protocol_date: Optional[date] = Field(default=None, description="[Only for client] Client intent declaration protocol date") + created_at: Optional[StrictStr] = Field(default=None, description="Entity creation date") + updated_at: Optional[StrictStr] = Field(default=None, description="Entity last update date") + __properties: ClassVar[List[str]] = ["id", "code", "name", "type", "first_name", "last_name", "contact_person", "vat_number", "tax_code", "address_street", "address_postal_code", "address_city", "address_province", "address_extra", "country", "country_iso", "email", "certified_email", "phone", "fax", "notes", "default_payment_terms", "default_vat", "default_payment_terms_type", "default_payment_method", "bank_name", "bank_iban", "bank_swift_code", "shipping_address", "e_invoice", "ei_code", "has_intent_declaration", "intent_declaration_protocol_number", "intent_declaration_protocol_date", "created_at", "updated_at"] model_config = ConfigDict( populate_by_name=True, @@ -161,6 +76,7 @@ class Entity(BaseModel): 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)) @@ -185,7 +101,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -194,10 +111,10 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of default_vat if self.default_vat: - _dict["default_vat"] = self.default_vat.to_dict() + _dict['default_vat'] = self.default_vat.to_dict() # override the default output from pydantic by calling `to_dict()` of default_payment_method if self.default_payment_method: - _dict["default_payment_method"] = self.default_payment_method.to_dict() + _dict['default_payment_method'] = self.default_payment_method.to_dict() return _dict @classmethod @@ -209,60 +126,44 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "code": obj.get("code"), - "name": obj.get("name"), - "type": obj.get("type"), - "first_name": obj.get("first_name"), - "last_name": obj.get("last_name"), - "contact_person": obj.get("contact_person"), - "vat_number": obj.get("vat_number"), - "tax_code": obj.get("tax_code"), - "address_street": obj.get("address_street"), - "address_postal_code": obj.get("address_postal_code"), - "address_city": obj.get("address_city"), - "address_province": obj.get("address_province"), - "address_extra": obj.get("address_extra"), - "country": obj.get("country"), - "country_iso": obj.get("country_iso"), - "email": obj.get("email"), - "certified_email": obj.get("certified_email"), - "phone": obj.get("phone"), - "fax": obj.get("fax"), - "notes": obj.get("notes"), - "default_payment_terms": obj.get("default_payment_terms"), - "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") - if obj.get("default_payment_terms_type") is not None - else PaymentTermsType.STANDARD - ), - "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"), - "shipping_address": obj.get("shipping_address"), - "e_invoice": obj.get("e_invoice"), - "ei_code": obj.get("ei_code"), - "has_intent_declaration": obj.get("has_intent_declaration"), - "intent_declaration_protocol_number": obj.get( - "intent_declaration_protocol_number" - ), - "intent_declaration_protocol_date": obj.get( - "intent_declaration_protocol_date" - ), - "created_at": obj.get("created_at"), - "updated_at": obj.get("updated_at"), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "code": obj.get("code"), + "name": obj.get("name"), + "type": obj.get("type"), + "first_name": obj.get("first_name"), + "last_name": obj.get("last_name"), + "contact_person": obj.get("contact_person"), + "vat_number": obj.get("vat_number"), + "tax_code": obj.get("tax_code"), + "address_street": obj.get("address_street"), + "address_postal_code": obj.get("address_postal_code"), + "address_city": obj.get("address_city"), + "address_province": obj.get("address_province"), + "address_extra": obj.get("address_extra"), + "country": obj.get("country"), + "country_iso": obj.get("country_iso"), + "email": obj.get("email"), + "certified_email": obj.get("certified_email"), + "phone": obj.get("phone"), + "fax": obj.get("fax"), + "notes": obj.get("notes"), + "default_payment_terms": obj.get("default_payment_terms"), + "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") if obj.get("default_payment_terms_type") is not None else PaymentTermsType.STANDARD, + "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"), + "shipping_address": obj.get("shipping_address"), + "e_invoice": obj.get("e_invoice"), + "ei_code": obj.get("ei_code"), + "has_intent_declaration": obj.get("has_intent_declaration"), + "intent_declaration_protocol_number": obj.get("intent_declaration_protocol_number"), + "intent_declaration_protocol_date": obj.get("intent_declaration_protocol_date"), + "created_at": obj.get("created_at"), + "updated_at": obj.get("updated_at") + }) return _obj + + diff --git a/fattureincloud_python_sdk/models/entity_client_pre_create_info.py b/fattureincloud_python_sdk/models/entity_client_pre_create_info.py index 6a393780..f7176d2b 100644 --- a/fattureincloud_python_sdk/models/entity_client_pre_create_info.py +++ b/fattureincloud_python_sdk/models/entity_client_pre_create_info.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -27,42 +27,18 @@ from typing import Optional, Set from typing_extensions import Self - class EntityClientPreCreateInfo(BaseModel): """ EntityClientPreCreateInfo - """ # noqa: E501 - - countries_list: Optional[List[StrictStr]] = Field( - default=None, description="Countries list" - ) - payment_methods_list: Optional[List[PaymentMethod]] = Field( - default=None, description="Entity payment methods list" - ) - payment_accounts_list: Optional[List[Optional[PaymentAccount]]] = Field( - default=None, description="Entity payment accounts list" - ) - vat_types_list: Optional[List[Optional[VatType]]] = Field( - default=None, description="Vat types list" - ) - price_lists: Optional[List[PriceList]] = Field( - default=None, description="Entity price lists" - ) - limit: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Entity limit" - ) - usage: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Entity usage" - ) - __properties: ClassVar[List[str]] = [ - "countries_list", - "payment_methods_list", - "payment_accounts_list", - "vat_types_list", - "price_lists", - "limit", - "usage", - ] + """ # noqa: E501 + countries_list: Optional[List[StrictStr]] = Field(default=None, description="Countries list") + payment_methods_list: Optional[List[PaymentMethod]] = Field(default=None, description="Entity payment methods list") + payment_accounts_list: Optional[List[Optional[PaymentAccount]]] = Field(default=None, description="Entity payment accounts list") + vat_types_list: Optional[List[Optional[VatType]]] = Field(default=None, description="Vat types list") + price_lists: Optional[List[PriceList]] = Field(default=None, description="Entity price lists") + limit: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Entity limit") + usage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Entity usage") + __properties: ClassVar[List[str]] = ["countries_list", "payment_methods_list", "payment_accounts_list", "vat_types_list", "price_lists", "limit", "usage"] model_config = ConfigDict( populate_by_name=True, @@ -70,6 +46,7 @@ class EntityClientPreCreateInfo(BaseModel): 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)) @@ -94,7 +71,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -107,28 +85,28 @@ def to_dict(self) -> Dict[str, Any]: for _item_payment_methods_list in self.payment_methods_list: if _item_payment_methods_list: _items.append(_item_payment_methods_list.to_dict()) - _dict["payment_methods_list"] = _items + _dict['payment_methods_list'] = _items # override the default output from pydantic by calling `to_dict()` of each item in payment_accounts_list (list) _items = [] if self.payment_accounts_list: for _item_payment_accounts_list in self.payment_accounts_list: if _item_payment_accounts_list: _items.append(_item_payment_accounts_list.to_dict()) - _dict["payment_accounts_list"] = _items + _dict['payment_accounts_list'] = _items # override the default output from pydantic by calling `to_dict()` of each item in vat_types_list (list) _items = [] if self.vat_types_list: for _item_vat_types_list in self.vat_types_list: if _item_vat_types_list: _items.append(_item_vat_types_list.to_dict()) - _dict["vat_types_list"] = _items + _dict['vat_types_list'] = _items # override the default output from pydantic by calling `to_dict()` of each item in price_lists (list) _items = [] if self.price_lists: for _item_price_lists in self.price_lists: if _item_price_lists: _items.append(_item_price_lists.to_dict()) - _dict["price_lists"] = _items + _dict['price_lists'] = _items return _dict @classmethod @@ -140,37 +118,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "countries_list": obj.get("countries_list"), - "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 - ), - "price_lists": ( - [PriceList.from_dict(_item) for _item in obj["price_lists"]] - if obj.get("price_lists") is not None - else None - ), - "limit": obj.get("limit"), - "usage": obj.get("usage"), - } - ) + _obj = cls.model_validate({ + "countries_list": obj.get("countries_list"), + "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, + "price_lists": [PriceList.from_dict(_item) for _item in obj["price_lists"]] if obj.get("price_lists") is not None else None, + "limit": obj.get("limit"), + "usage": obj.get("usage") + }) return _obj + + diff --git a/fattureincloud_python_sdk/models/entity_type.py b/fattureincloud_python_sdk/models/entity_type.py index 3debded7..3b91e190 100644 --- a/fattureincloud_python_sdk/models/entity_type.py +++ b/fattureincloud_python_sdk/models/entity_type.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -27,12 +27,14 @@ class EntityType(str, Enum): """ allowed enum values """ - COMPANY = "company" - PERSON = "person" - PA = "pa" - CONDO = "condo" + COMPANY = 'company' + PERSON = 'person' + PA = 'pa' + CONDO = 'condo' @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of EntityType from a JSON string""" return cls(json.loads(json_str)) + + diff --git a/fattureincloud_python_sdk/models/event_type.py b/fattureincloud_python_sdk/models/event_type.py index b446c8d5..c9aa2f6c 100644 --- a/fattureincloud_python_sdk/models/event_type.py +++ b/fattureincloud_python_sdk/models/event_type.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -27,230 +27,84 @@ class EventType(str, Enum): """ allowed enum values """ - ISSUED_DOCUMENTS_INVOICES_CREATE = ( - "it.fattureincloud.webhooks.issued_documents.invoices.create" - ) - ISSUED_DOCUMENTS_INVOICES_UPDATE = ( - "it.fattureincloud.webhooks.issued_documents.invoices.update" - ) - ISSUED_DOCUMENTS_INVOICES_DELETE = ( - "it.fattureincloud.webhooks.issued_documents.invoices.delete" - ) - ISSUED_DOCUMENTS_QUOTES_CREATE = ( - "it.fattureincloud.webhooks.issued_documents.quotes.create" - ) - ISSUED_DOCUMENTS_QUOTES_UPDATE = ( - "it.fattureincloud.webhooks.issued_documents.quotes.update" - ) - ISSUED_DOCUMENTS_QUOTES_DELETE = ( - "it.fattureincloud.webhooks.issued_documents.quotes.delete" - ) - ISSUED_DOCUMENTS_PROFORMAS_CREATE = ( - "it.fattureincloud.webhooks.issued_documents.proformas.create" - ) - ISSUED_DOCUMENTS_PROFORMAS_UPDATE = ( - "it.fattureincloud.webhooks.issued_documents.proformas.update" - ) - ISSUED_DOCUMENTS_PROFORMAS_DELETE = ( - "it.fattureincloud.webhooks.issued_documents.proformas.delete" - ) - ISSUED_DOCUMENTS_RECEIPTS_CREATE = ( - "it.fattureincloud.webhooks.issued_documents.receipts.create" - ) - ISSUED_DOCUMENTS_RECEIPTS_UPDATE = ( - "it.fattureincloud.webhooks.issued_documents.receipts.update" - ) - ISSUED_DOCUMENTS_RECEIPTS_DELETE = ( - "it.fattureincloud.webhooks.issued_documents.receipts.delete" - ) - ISSUED_DOCUMENTS_DELIVERY_NOTES_CREATE = ( - "it.fattureincloud.webhooks.issued_documents.delivery_notes.create" - ) - ISSUED_DOCUMENTS_DELIVERY_NOTES_UPDATE = ( - "it.fattureincloud.webhooks.issued_documents.delivery_notes.update" - ) - ISSUED_DOCUMENTS_DELIVERY_NOTES_DELETE = ( - "it.fattureincloud.webhooks.issued_documents.delivery_notes.delete" - ) - ISSUED_DOCUMENTS_CREDIT_NOTES_CREATE = ( - "it.fattureincloud.webhooks.issued_documents.credit_notes.create" - ) - ISSUED_DOCUMENTS_CREDIT_NOTES_UPDATE = ( - "it.fattureincloud.webhooks.issued_documents.credit_notes.update" - ) - ISSUED_DOCUMENTS_CREDIT_NOTES_DELETE = ( - "it.fattureincloud.webhooks.issued_documents.credit_notes.delete" - ) - ISSUED_DOCUMENTS_ORDERS_CREATE = ( - "it.fattureincloud.webhooks.issued_documents.orders.create" - ) - ISSUED_DOCUMENTS_ORDERS_UPDATE = ( - "it.fattureincloud.webhooks.issued_documents.orders.update" - ) - ISSUED_DOCUMENTS_ORDERS_DELETE = ( - "it.fattureincloud.webhooks.issued_documents.orders.delete" - ) - ISSUED_DOCUMENTS_WORK_REPORTS_CREATE = ( - "it.fattureincloud.webhooks.issued_documents.work_reports.create" - ) - ISSUED_DOCUMENTS_WORK_REPORTS_UPDATE = ( - "it.fattureincloud.webhooks.issued_documents.work_reports.update" - ) - ISSUED_DOCUMENTS_WORK_REPORTS_DELETE = ( - "it.fattureincloud.webhooks.issued_documents.work_reports.delete" - ) - ISSUED_DOCUMENTS_SUPPLIER_ORDERS_CREATE = ( - "it.fattureincloud.webhooks.issued_documents.supplier_orders.create" - ) - ISSUED_DOCUMENTS_SUPPLIER_ORDERS_UPDATE = ( - "it.fattureincloud.webhooks.issued_documents.supplier_orders.update" - ) - ISSUED_DOCUMENTS_SUPPLIER_ORDERS_DELETE = ( - "it.fattureincloud.webhooks.issued_documents.supplier_orders.delete" - ) - ISSUED_DOCUMENTS_SELF_INVOICES_CREATE = ( - "it.fattureincloud.webhooks.issued_documents.self_invoices.create" - ) - ISSUED_DOCUMENTS_SELF_INVOICES_UPDATE = ( - "it.fattureincloud.webhooks.issued_documents.self_invoices.update" - ) - ISSUED_DOCUMENTS_SELF_INVOICES_DELETE = ( - "it.fattureincloud.webhooks.issued_documents.self_invoices.delete" - ) - ISSUED_DOCUMENTS_ALL_CREATE = ( - "it.fattureincloud.webhooks.issued_documents.all.create" - ) - ISSUED_DOCUMENTS_ALL_UPDATE = ( - "it.fattureincloud.webhooks.issued_documents.all.update" - ) - ISSUED_DOCUMENTS_ALL_DELETE = ( - "it.fattureincloud.webhooks.issued_documents.all.delete" - ) - RECEIVED_DOCUMENTS_CREATE = ( - "it.fattureincloud.webhooks.received_documents.create" - ) - RECEIVED_DOCUMENTS_UPDATE = ( - "it.fattureincloud.webhooks.received_documents.update" - ) - RECEIVED_DOCUMENTS_DELETE = ( - "it.fattureincloud.webhooks.received_documents.delete" - ) - RECEIPTS_CREATE = ( - "it.fattureincloud.webhooks.receipts.create" - ) - RECEIPTS_UPDATE = ( - "it.fattureincloud.webhooks.receipts.update" - ) - RECEIPTS_DELETE = ( - "it.fattureincloud.webhooks.receipts.delete" - ) - TAXES_CREATE = ( - "it.fattureincloud.webhooks.taxes.create" - ) - TAXES_UPDATE = ( - "it.fattureincloud.webhooks.taxes.update" - ) - 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" - ) - CASHBOOK_UPDATE = ( - "it.fattureincloud.webhooks.cashbook.update" - ) - CASHBOOK_DELETE = ( - "it.fattureincloud.webhooks.cashbook.delete" - ) - PRODUCTS_CREATE = ( - "it.fattureincloud.webhooks.products.create" - ) - PRODUCTS_UPDATE = ( - "it.fattureincloud.webhooks.products.update" - ) - PRODUCTS_DELETE = ( - "it.fattureincloud.webhooks.products.delete" - ) - PRODUCTS_STOCK_UPDATE = ( - "it.fattureincloud.webhooks.products.stock_update" - ) - ENTITIES_CLIENTS_CREATE = ( - "it.fattureincloud.webhooks.entities.clients.create" - ) - ENTITIES_CLIENTS_UPDATE = ( - "it.fattureincloud.webhooks.entities.clients.update" - ) - ENTITIES_CLIENTS_DELETE = ( - "it.fattureincloud.webhooks.entities.clients.delete" - ) - ENTITIES_SUPPLIERS_CREATE = ( - "it.fattureincloud.webhooks.entities.suppliers.create" - ) - ENTITIES_SUPPLIERS_UPDATE = ( - "it.fattureincloud.webhooks.entities.suppliers.update" - ) - ENTITIES_SUPPLIERS_DELETE = ( - "it.fattureincloud.webhooks.entities.suppliers.delete" - ) - ENTITIES_ALL_CREATE = ( - "it.fattureincloud.webhooks.entities.all.create" - ) - ENTITIES_ALL_UPDATE = ( - "it.fattureincloud.webhooks.entities.all.update" - ) - ENTITIES_ALL_DELETE = ( - "it.fattureincloud.webhooks.entities.all.delete" - ) - ISSUED_DOCUMENTS_E_INVOICES_STATUS_UPDATE = ( - "it.fattureincloud.webhooks.issued_documents.e_invoices.status_update" - ) - RECEIVED_DOCUMENTS_E_INVOICES_RECEIVE = ( - "it.fattureincloud.webhooks.received_documents.e_invoices.receive" - ) - ISSUED_DOCUMENTS_INVOICES_EMAIL_SENT = ( - "it.fattureincloud.webhooks.issued_documents.invoices.email_sent" - ) - ISSUED_DOCUMENTS_QUOTES_EMAIL_SENT = ( - "it.fattureincloud.webhooks.issued_documents.quotes.email_sent" - ) - ISSUED_DOCUMENTS_PROFORMAS_EMAIL_SENT = ( - "it.fattureincloud.webhooks.issued_documents.proformas.email_sent" - ) - ISSUED_DOCUMENTS_RECEIPTS_EMAIL_SENT = ( - "it.fattureincloud.webhooks.issued_documents.receipts.email_sent" - ) - ISSUED_DOCUMENTS_DELIVERY_NOTES_EMAIL_SENT = ( - "it.fattureincloud.webhooks.issued_documents.delivery_notes.email_sent" - ) - ISSUED_DOCUMENTS_CREDIT_NOTES_EMAIL_SENT = ( - "it.fattureincloud.webhooks.issued_documents.credit_notes.email_sent" - ) - ISSUED_DOCUMENTS_ORDERS_EMAIL_SENT = ( - "it.fattureincloud.webhooks.issued_documents.orders.email_sent" - ) - ISSUED_DOCUMENTS_WORK_REPORTS_EMAIL_SENT = ( - "it.fattureincloud.webhooks.issued_documents.work_reports.email_sent" - ) - ISSUED_DOCUMENTS_SUPPLIER_ORDERS_EMAIL_SENT = ( - "it.fattureincloud.webhooks.issued_documents.supplier_orders.email_sent" - ) - ISSUED_DOCUMENTS_SELF_INVOICES_EMAIL_SENT = ( - "it.fattureincloud.webhooks.issued_documents.self_invoices.email_sent" - ) - ISSUED_DOCUMENTS_ALL_EMAIL_SENT = ( - "it.fattureincloud.webhooks.issued_documents.all.email_sent" - ) + ISSUED_DOCUMENTS_INVOICES_CREATE = 'it.fattureincloud.webhooks.issued_documents.invoices.create' + ISSUED_DOCUMENTS_INVOICES_UPDATE = 'it.fattureincloud.webhooks.issued_documents.invoices.update' + ISSUED_DOCUMENTS_INVOICES_DELETE = 'it.fattureincloud.webhooks.issued_documents.invoices.delete' + ISSUED_DOCUMENTS_QUOTES_CREATE = 'it.fattureincloud.webhooks.issued_documents.quotes.create' + ISSUED_DOCUMENTS_QUOTES_UPDATE = 'it.fattureincloud.webhooks.issued_documents.quotes.update' + ISSUED_DOCUMENTS_QUOTES_DELETE = 'it.fattureincloud.webhooks.issued_documents.quotes.delete' + ISSUED_DOCUMENTS_PROFORMAS_CREATE = 'it.fattureincloud.webhooks.issued_documents.proformas.create' + ISSUED_DOCUMENTS_PROFORMAS_UPDATE = 'it.fattureincloud.webhooks.issued_documents.proformas.update' + ISSUED_DOCUMENTS_PROFORMAS_DELETE = 'it.fattureincloud.webhooks.issued_documents.proformas.delete' + ISSUED_DOCUMENTS_RECEIPTS_CREATE = 'it.fattureincloud.webhooks.issued_documents.receipts.create' + ISSUED_DOCUMENTS_RECEIPTS_UPDATE = 'it.fattureincloud.webhooks.issued_documents.receipts.update' + ISSUED_DOCUMENTS_RECEIPTS_DELETE = 'it.fattureincloud.webhooks.issued_documents.receipts.delete' + ISSUED_DOCUMENTS_DELIVERY_NOTES_CREATE = 'it.fattureincloud.webhooks.issued_documents.delivery_notes.create' + ISSUED_DOCUMENTS_DELIVERY_NOTES_UPDATE = 'it.fattureincloud.webhooks.issued_documents.delivery_notes.update' + ISSUED_DOCUMENTS_DELIVERY_NOTES_DELETE = 'it.fattureincloud.webhooks.issued_documents.delivery_notes.delete' + ISSUED_DOCUMENTS_CREDIT_NOTES_CREATE = 'it.fattureincloud.webhooks.issued_documents.credit_notes.create' + ISSUED_DOCUMENTS_CREDIT_NOTES_UPDATE = 'it.fattureincloud.webhooks.issued_documents.credit_notes.update' + ISSUED_DOCUMENTS_CREDIT_NOTES_DELETE = 'it.fattureincloud.webhooks.issued_documents.credit_notes.delete' + ISSUED_DOCUMENTS_ORDERS_CREATE = 'it.fattureincloud.webhooks.issued_documents.orders.create' + ISSUED_DOCUMENTS_ORDERS_UPDATE = 'it.fattureincloud.webhooks.issued_documents.orders.update' + ISSUED_DOCUMENTS_ORDERS_DELETE = 'it.fattureincloud.webhooks.issued_documents.orders.delete' + ISSUED_DOCUMENTS_WORK_REPORTS_CREATE = 'it.fattureincloud.webhooks.issued_documents.work_reports.create' + ISSUED_DOCUMENTS_WORK_REPORTS_UPDATE = 'it.fattureincloud.webhooks.issued_documents.work_reports.update' + ISSUED_DOCUMENTS_WORK_REPORTS_DELETE = 'it.fattureincloud.webhooks.issued_documents.work_reports.delete' + ISSUED_DOCUMENTS_SUPPLIER_ORDERS_CREATE = 'it.fattureincloud.webhooks.issued_documents.supplier_orders.create' + ISSUED_DOCUMENTS_SUPPLIER_ORDERS_UPDATE = 'it.fattureincloud.webhooks.issued_documents.supplier_orders.update' + ISSUED_DOCUMENTS_SUPPLIER_ORDERS_DELETE = 'it.fattureincloud.webhooks.issued_documents.supplier_orders.delete' + ISSUED_DOCUMENTS_SELF_INVOICES_CREATE = 'it.fattureincloud.webhooks.issued_documents.self_invoices.create' + ISSUED_DOCUMENTS_SELF_INVOICES_UPDATE = 'it.fattureincloud.webhooks.issued_documents.self_invoices.update' + ISSUED_DOCUMENTS_SELF_INVOICES_DELETE = 'it.fattureincloud.webhooks.issued_documents.self_invoices.delete' + ISSUED_DOCUMENTS_ALL_CREATE = 'it.fattureincloud.webhooks.issued_documents.all.create' + ISSUED_DOCUMENTS_ALL_UPDATE = 'it.fattureincloud.webhooks.issued_documents.all.update' + ISSUED_DOCUMENTS_ALL_DELETE = 'it.fattureincloud.webhooks.issued_documents.all.delete' + RECEIVED_DOCUMENTS_CREATE = 'it.fattureincloud.webhooks.received_documents.create' + RECEIVED_DOCUMENTS_UPDATE = 'it.fattureincloud.webhooks.received_documents.update' + RECEIVED_DOCUMENTS_DELETE = 'it.fattureincloud.webhooks.received_documents.delete' + RECEIPTS_CREATE = 'it.fattureincloud.webhooks.receipts.create' + RECEIPTS_UPDATE = 'it.fattureincloud.webhooks.receipts.update' + RECEIPTS_DELETE = 'it.fattureincloud.webhooks.receipts.delete' + TAXES_CREATE = 'it.fattureincloud.webhooks.taxes.create' + TAXES_UPDATE = 'it.fattureincloud.webhooks.taxes.update' + 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' + CASHBOOK_UPDATE = 'it.fattureincloud.webhooks.cashbook.update' + CASHBOOK_DELETE = 'it.fattureincloud.webhooks.cashbook.delete' + PRODUCTS_CREATE = 'it.fattureincloud.webhooks.products.create' + PRODUCTS_UPDATE = 'it.fattureincloud.webhooks.products.update' + PRODUCTS_DELETE = 'it.fattureincloud.webhooks.products.delete' + PRODUCTS_STOCK_UPDATE = 'it.fattureincloud.webhooks.products.stock_update' + ENTITIES_CLIENTS_CREATE = 'it.fattureincloud.webhooks.entities.clients.create' + ENTITIES_CLIENTS_UPDATE = 'it.fattureincloud.webhooks.entities.clients.update' + ENTITIES_CLIENTS_DELETE = 'it.fattureincloud.webhooks.entities.clients.delete' + ENTITIES_SUPPLIERS_CREATE = 'it.fattureincloud.webhooks.entities.suppliers.create' + ENTITIES_SUPPLIERS_UPDATE = 'it.fattureincloud.webhooks.entities.suppliers.update' + ENTITIES_SUPPLIERS_DELETE = 'it.fattureincloud.webhooks.entities.suppliers.delete' + ENTITIES_ALL_CREATE = 'it.fattureincloud.webhooks.entities.all.create' + ENTITIES_ALL_UPDATE = 'it.fattureincloud.webhooks.entities.all.update' + ENTITIES_ALL_DELETE = 'it.fattureincloud.webhooks.entities.all.delete' + ISSUED_DOCUMENTS_E_INVOICES_STATUS_UPDATE = 'it.fattureincloud.webhooks.issued_documents.e_invoices.status_update' + RECEIVED_DOCUMENTS_E_INVOICES_RECEIVE = 'it.fattureincloud.webhooks.received_documents.e_invoices.receive' + ISSUED_DOCUMENTS_INVOICES_EMAIL_SENT = 'it.fattureincloud.webhooks.issued_documents.invoices.email_sent' + ISSUED_DOCUMENTS_QUOTES_EMAIL_SENT = 'it.fattureincloud.webhooks.issued_documents.quotes.email_sent' + ISSUED_DOCUMENTS_PROFORMAS_EMAIL_SENT = 'it.fattureincloud.webhooks.issued_documents.proformas.email_sent' + ISSUED_DOCUMENTS_RECEIPTS_EMAIL_SENT = 'it.fattureincloud.webhooks.issued_documents.receipts.email_sent' + ISSUED_DOCUMENTS_DELIVERY_NOTES_EMAIL_SENT = 'it.fattureincloud.webhooks.issued_documents.delivery_notes.email_sent' + ISSUED_DOCUMENTS_CREDIT_NOTES_EMAIL_SENT = 'it.fattureincloud.webhooks.issued_documents.credit_notes.email_sent' + ISSUED_DOCUMENTS_ORDERS_EMAIL_SENT = 'it.fattureincloud.webhooks.issued_documents.orders.email_sent' + ISSUED_DOCUMENTS_WORK_REPORTS_EMAIL_SENT = 'it.fattureincloud.webhooks.issued_documents.work_reports.email_sent' + ISSUED_DOCUMENTS_SUPPLIER_ORDERS_EMAIL_SENT = 'it.fattureincloud.webhooks.issued_documents.supplier_orders.email_sent' + ISSUED_DOCUMENTS_SELF_INVOICES_EMAIL_SENT = 'it.fattureincloud.webhooks.issued_documents.self_invoices.email_sent' + ISSUED_DOCUMENTS_ALL_EMAIL_SENT = 'it.fattureincloud.webhooks.issued_documents.all.email_sent' @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of EventType from a JSON string""" return cls(json.loads(json_str)) + + diff --git a/fattureincloud_python_sdk/models/f24.py b/fattureincloud_python_sdk/models/f24.py index cd5c03cc..ec5d0169 100644 --- a/fattureincloud_python_sdk/models/f24.py +++ b/fattureincloud_python_sdk/models/f24.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -26,39 +26,19 @@ from typing import Optional, Set from typing_extensions import Self - class F24(BaseModel): """ F24 - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictInt] = Field(default=None, description="F24 id") due_date: Optional[date] = Field(default=None, description="F24 due date") status: Optional[F24Status] = None payment_account: Optional[PaymentAccount] = None - amount: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="F24 amount" - ) - attachment_url: Optional[StrictStr] = Field( - default=None, description="[Temporary] [Read Only] F24 url of the attached file" - ) - attachment_token: Optional[StrictStr] = Field( - default=None, - description="[Write Only] F24 attachment token returned by POST /taxes/attachment", - ) - description: Optional[StrictStr] = Field( - default=None, description="F24 description" - ) - __properties: ClassVar[List[str]] = [ - "id", - "due_date", - "status", - "payment_account", - "amount", - "attachment_url", - "attachment_token", - "description", - ] + amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="F24 amount") + attachment_url: Optional[StrictStr] = Field(default=None, description="[Temporary] [Read Only] F24 url of the attached file") + attachment_token: Optional[StrictStr] = Field(default=None, description="[Write Only] F24 attachment token returned by POST /taxes/attachment") + description: Optional[StrictStr] = Field(default=None, description="F24 description") + __properties: ClassVar[List[str]] = ["id", "due_date", "status", "payment_account", "amount", "attachment_url", "attachment_token", "description"] model_config = ConfigDict( populate_by_name=True, @@ -66,6 +46,7 @@ class F24(BaseModel): 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)) @@ -91,11 +72,9 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * OpenAPI `readOnly` fields are excluded. """ - excluded_fields: Set[str] = set( - [ - "attachment_url", - ] - ) + excluded_fields: Set[str] = set([ + "attachment_url", + ]) _dict = self.model_dump( by_alias=True, @@ -104,7 +83,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of payment_account if self.payment_account: - _dict["payment_account"] = self.payment_account.to_dict() + _dict['payment_account'] = self.payment_account.to_dict() return _dict @classmethod @@ -116,20 +95,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "due_date": obj.get("due_date"), - "status": obj.get("status"), - "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"), - "description": obj.get("description"), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "due_date": obj.get("due_date"), + "status": obj.get("status"), + "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"), + "description": obj.get("description") + }) return _obj + + diff --git a/fattureincloud_python_sdk/models/f24_status.py b/fattureincloud_python_sdk/models/f24_status.py index 10115814..eddf2a16 100644 --- a/fattureincloud_python_sdk/models/f24_status.py +++ b/fattureincloud_python_sdk/models/f24_status.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -27,11 +27,13 @@ class F24Status(str, Enum): """ allowed enum values """ - PAID = "paid" - NOT_PAID = "not_paid" - REVERSED = "reversed" + PAID = 'paid' + NOT_PAID = 'not_paid' + REVERSED = 'reversed' @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of F24Status from a JSON string""" return cls(json.loads(json_str)) + + diff --git a/fattureincloud_python_sdk/models/fatture_in_cloud_plan_type.py b/fattureincloud_python_sdk/models/fatture_in_cloud_plan_type.py index 3735216b..3ec2369f 100644 --- a/fattureincloud_python_sdk/models/fatture_in_cloud_plan_type.py +++ b/fattureincloud_python_sdk/models/fatture_in_cloud_plan_type.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -27,13 +27,15 @@ class FattureInCloudPlanType(str, Enum): """ allowed enum values """ - TRIAL = "trial" - STANDARD = "standard" - PREMIUM = "premium" - PREMIUM_PLUS = "premium_plus" - COMPLETE = "complete" + 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 8641b748..556fedc1 100644 --- a/fattureincloud_python_sdk/models/function_status.py +++ b/fattureincloud_python_sdk/models/function_status.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -23,12 +23,10 @@ from typing import Optional, Set from typing_extensions import Self - class FunctionStatus(BaseModel): """ FunctionStatus - """ # noqa: E501 - + """ # noqa: E501 active: Optional[StrictBool] = None __properties: ClassVar[List[str]] = ["active"] @@ -38,6 +36,7 @@ class FunctionStatus(BaseModel): 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)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -80,5 +80,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"active": obj.get("active")}) + _obj = cls.model_validate({ + "active": obj.get("active") + }) return _obj + + diff --git a/fattureincloud_python_sdk/models/get_archive_document_response.py b/fattureincloud_python_sdk/models/get_archive_document_response.py index 2ec2b618..af46b98f 100644 --- a/fattureincloud_python_sdk/models/get_archive_document_response.py +++ b/fattureincloud_python_sdk/models/get_archive_document_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,10 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class GetArchiveDocumentResponse(BaseModel): - """ """ # noqa: E501 - + """ + + """ # noqa: E501 data: Optional[ArchiveDocument] = None __properties: ClassVar[List[str]] = ["data"] @@ -37,6 +37,7 @@ class GetArchiveDocumentResponse(BaseModel): 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)) @@ -61,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -70,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -82,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - ArchiveDocument.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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_bin_issued_document_response.py b/fattureincloud_python_sdk/models/get_bin_issued_document_response.py index 00628d25..bf539262 100644 --- a/fattureincloud_python_sdk/models/get_bin_issued_document_response.py +++ b/fattureincloud_python_sdk/models/get_bin_issued_document_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class GetBinIssuedDocumentResponse(BaseModel): """ GetBinIssuedDocumentResponse - """ # noqa: E501 - + """ # noqa: E501 data: Optional[IssuedDocument] = None __properties: ClassVar[List[str]] = ["data"] @@ -39,6 +37,7 @@ class GetBinIssuedDocumentResponse(BaseModel): 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)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -72,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -84,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - IssuedDocument.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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_bin_received_document_response.py b/fattureincloud_python_sdk/models/get_bin_received_document_response.py index 576f09e0..1d29f883 100644 --- a/fattureincloud_python_sdk/models/get_bin_received_document_response.py +++ b/fattureincloud_python_sdk/models/get_bin_received_document_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class GetBinReceivedDocumentResponse(BaseModel): """ GetBinReceivedDocumentResponse - """ # noqa: E501 - + """ # noqa: E501 data: Optional[ReceivedDocument] = None __properties: ClassVar[List[str]] = ["data"] @@ -39,6 +37,7 @@ class GetBinReceivedDocumentResponse(BaseModel): 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)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -72,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -84,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - ReceivedDocument.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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_cashbook_entry_response.py b/fattureincloud_python_sdk/models/get_cashbook_entry_response.py index 5bdb2a5e..1bd19762 100644 --- a/fattureincloud_python_sdk/models/get_cashbook_entry_response.py +++ b/fattureincloud_python_sdk/models/get_cashbook_entry_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,10 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class GetCashbookEntryResponse(BaseModel): - """ """ # noqa: E501 - + """ + + """ # noqa: E501 data: Optional[CashbookEntry] = None __properties: ClassVar[List[str]] = ["data"] @@ -37,6 +37,7 @@ class GetCashbookEntryResponse(BaseModel): 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)) @@ -61,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -70,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -82,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - CashbookEntry.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 7afa4760..c1e8b9e4 100644 --- a/fattureincloud_python_sdk/models/get_client_response.py +++ b/fattureincloud_python_sdk/models/get_client_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class GetClientResponse(BaseModel): """ GetClientResponse - """ # noqa: E501 - + """ # noqa: E501 data: Optional[Client] = None __properties: ClassVar[List[str]] = ["data"] @@ -39,6 +37,7 @@ class GetClientResponse(BaseModel): 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)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -72,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -84,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - Client.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 bc4ff790..401118c0 100644 --- a/fattureincloud_python_sdk/models/get_company_info_response.py +++ b/fattureincloud_python_sdk/models/get_company_info_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,10 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class GetCompanyInfoResponse(BaseModel): - """ """ # noqa: E501 - + """ + + """ # noqa: E501 data: Optional[CompanyInfo] = None __properties: ClassVar[List[str]] = ["data"] @@ -37,6 +37,7 @@ class GetCompanyInfoResponse(BaseModel): 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)) @@ -61,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -70,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -82,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - CompanyInfo.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 index b7753657..538745bf 100644 --- a/fattureincloud_python_sdk/models/get_company_plan_usage_response.py +++ b/fattureincloud_python_sdk/models/get_company_plan_usage_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,10 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class GetCompanyPlanUsageResponse(BaseModel): - """ """ # noqa: E501 - + """ + + """ # noqa: E501 data: Optional[CompanyPlanUsage] = None __properties: ClassVar[List[str]] = ["data"] @@ -37,6 +37,7 @@ class GetCompanyPlanUsageResponse(BaseModel): 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)) @@ -61,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -70,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -82,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: 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 - ) - } - ) + _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 481cb196..33371752 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 @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -20,18 +20,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from fattureincloud_python_sdk.models.e_invoice_rejection_reason import ( - EInvoiceRejectionReason, -) +from fattureincloud_python_sdk.models.e_invoice_rejection_reason import EInvoiceRejectionReason from typing import Optional, Set from typing_extensions import Self - class GetEInvoiceRejectionReasonResponse(BaseModel): """ GetEInvoiceRejectionReasonResponse - """ # noqa: E501 - + """ # noqa: E501 data: Optional[EInvoiceRejectionReason] = None __properties: ClassVar[List[str]] = ["data"] @@ -41,6 +37,7 @@ class GetEInvoiceRejectionReasonResponse(BaseModel): 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)) @@ -65,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -74,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -86,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - EInvoiceRejectionReason.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 e1b817f6..5108aa4c 100644 --- a/fattureincloud_python_sdk/models/get_email_data_response.py +++ b/fattureincloud_python_sdk/models/get_email_data_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class GetEmailDataResponse(BaseModel): """ GetEmailDataResponse - """ # noqa: E501 - + """ # noqa: E501 data: Optional[EmailData] = None __properties: ClassVar[List[str]] = ["data"] @@ -39,6 +37,7 @@ class GetEmailDataResponse(BaseModel): 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)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -72,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -84,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - EmailData.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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_entity_client_pre_create_info_response.py b/fattureincloud_python_sdk/models/get_entity_client_pre_create_info_response.py index 21ef3c2b..84cec8c3 100644 --- a/fattureincloud_python_sdk/models/get_entity_client_pre_create_info_response.py +++ b/fattureincloud_python_sdk/models/get_entity_client_pre_create_info_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -20,18 +20,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from fattureincloud_python_sdk.models.entity_client_pre_create_info import ( - EntityClientPreCreateInfo, -) +from fattureincloud_python_sdk.models.entity_client_pre_create_info import EntityClientPreCreateInfo from typing import Optional, Set from typing_extensions import Self - class GetEntityClientPreCreateInfoResponse(BaseModel): """ GetEntityClientPreCreateInfoResponse - """ # noqa: E501 - + """ # noqa: E501 data: Optional[EntityClientPreCreateInfo] = None __properties: ClassVar[List[str]] = ["data"] @@ -41,6 +37,7 @@ class GetEntityClientPreCreateInfoResponse(BaseModel): 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)) @@ -65,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -74,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -86,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - EntityClientPreCreateInfo.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "data": EntityClientPreCreateInfo.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 82b46c37..e7102f70 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 @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class GetExistingIssuedDocumentTotalsRequest(BaseModel): """ GetExistingIssuedDocumentTotalsRequest - """ # noqa: E501 - + """ # noqa: E501 data: Optional[IssuedDocument] = None __properties: ClassVar[List[str]] = ["data"] @@ -39,6 +37,7 @@ class GetExistingIssuedDocumentTotalsRequest(BaseModel): 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)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -72,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -84,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - IssuedDocument.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 b1119d5b..4e41c3b6 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 @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,10 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class GetExistingIssuedDocumentTotalsResponse(BaseModel): - """ """ # noqa: E501 - + """ + + """ # noqa: E501 data: Optional[IssuedDocumentTotals] = None __properties: ClassVar[List[str]] = ["data"] @@ -37,6 +37,7 @@ class GetExistingIssuedDocumentTotalsResponse(BaseModel): 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)) @@ -61,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -70,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -82,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - IssuedDocumentTotals.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 63e4902e..fd5d969c 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 @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,10 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class GetExistingReceivedDocumentTotalsRequest(BaseModel): - """ """ # noqa: E501 - + """ + + """ # noqa: E501 data: Optional[ReceivedDocument] = None __properties: ClassVar[List[str]] = ["data"] @@ -37,6 +37,7 @@ class GetExistingReceivedDocumentTotalsRequest(BaseModel): 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)) @@ -61,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -70,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -82,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - ReceivedDocument.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 c05b2f1f..69ff97a5 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 @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -20,16 +20,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from fattureincloud_python_sdk.models.received_document_totals import ( - ReceivedDocumentTotals, -) +from fattureincloud_python_sdk.models.received_document_totals import ReceivedDocumentTotals from typing import Optional, Set from typing_extensions import Self - class GetExistingReceivedDocumentTotalsResponse(BaseModel): - """ """ # noqa: E501 - + """ + + """ # noqa: E501 data: Optional[ReceivedDocumentTotals] = None __properties: ClassVar[List[str]] = ["data"] @@ -39,6 +37,7 @@ class GetExistingReceivedDocumentTotalsResponse(BaseModel): 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)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -72,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -84,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - ReceivedDocumentTotals.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 a2e12b6d..05dc18f9 100644 --- a/fattureincloud_python_sdk/models/get_f24_response.py +++ b/fattureincloud_python_sdk/models/get_f24_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class GetF24Response(BaseModel): """ GetF24Response - """ # noqa: E501 - + """ # noqa: E501 data: Optional[F24] = None __properties: ClassVar[List[str]] = ["data"] @@ -39,6 +37,7 @@ class GetF24Response(BaseModel): 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)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -72,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -84,11 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - F24.from_dict(obj["data"]) if obj.get("data") is not None else None - ) - } - ) + _obj = cls.model_validate({ + "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 af07a50b..aad91d38 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 @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -20,18 +20,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from fattureincloud_python_sdk.models.issued_document_pre_create_info import ( - IssuedDocumentPreCreateInfo, -) +from fattureincloud_python_sdk.models.issued_document_pre_create_info import IssuedDocumentPreCreateInfo from typing import Optional, Set from typing_extensions import Self - class GetIssuedDocumentPreCreateInfoResponse(BaseModel): """ GetIssuedDocumentPreCreateInfoResponse - """ # noqa: E501 - + """ # noqa: E501 data: Optional[IssuedDocumentPreCreateInfo] = None __properties: ClassVar[List[str]] = ["data"] @@ -41,6 +37,7 @@ class GetIssuedDocumentPreCreateInfoResponse(BaseModel): 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)) @@ -65,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -74,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -86,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - IssuedDocumentPreCreateInfo.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 67da2017..45cef1c2 100644 --- a/fattureincloud_python_sdk/models/get_issued_document_response.py +++ b/fattureincloud_python_sdk/models/get_issued_document_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class GetIssuedDocumentResponse(BaseModel): """ GetIssuedDocumentResponse - """ # noqa: E501 - + """ # noqa: E501 data: Optional[IssuedDocument] = None __properties: ClassVar[List[str]] = ["data"] @@ -39,6 +37,7 @@ class GetIssuedDocumentResponse(BaseModel): 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)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -72,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -84,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - IssuedDocument.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 23cef821..e153d1af 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 @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class GetNewIssuedDocumentTotalsRequest(BaseModel): """ GetNewIssuedDocumentTotalsRequest - """ # noqa: E501 - + """ # noqa: E501 data: Optional[IssuedDocument] = None __properties: ClassVar[List[str]] = ["data"] @@ -39,6 +37,7 @@ class GetNewIssuedDocumentTotalsRequest(BaseModel): 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)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -72,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -84,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - IssuedDocument.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 3611e635..d451e95a 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 @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,10 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class GetNewIssuedDocumentTotalsResponse(BaseModel): - """ """ # noqa: E501 - + """ + + """ # noqa: E501 data: Optional[IssuedDocumentTotals] = None __properties: ClassVar[List[str]] = ["data"] @@ -37,6 +37,7 @@ class GetNewIssuedDocumentTotalsResponse(BaseModel): 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)) @@ -61,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -70,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -82,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - IssuedDocumentTotals.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 9ec50694..7a3d69b0 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 @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,10 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class GetNewReceivedDocumentTotalsRequest(BaseModel): - """ """ # noqa: E501 - + """ + + """ # noqa: E501 data: Optional[ReceivedDocument] = None __properties: ClassVar[List[str]] = ["data"] @@ -37,6 +37,7 @@ class GetNewReceivedDocumentTotalsRequest(BaseModel): 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)) @@ -61,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -70,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -82,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - ReceivedDocument.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 0273ec99..b62e7938 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 @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -20,16 +20,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from fattureincloud_python_sdk.models.received_document_totals import ( - ReceivedDocumentTotals, -) +from fattureincloud_python_sdk.models.received_document_totals import ReceivedDocumentTotals from typing import Optional, Set from typing_extensions import Self - class GetNewReceivedDocumentTotalsResponse(BaseModel): - """ """ # noqa: E501 - + """ + + """ # noqa: E501 data: Optional[ReceivedDocumentTotals] = None __properties: ClassVar[List[str]] = ["data"] @@ -39,6 +37,7 @@ class GetNewReceivedDocumentTotalsResponse(BaseModel): 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)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -72,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -84,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - ReceivedDocumentTotals.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 966fa722..328f8109 100644 --- a/fattureincloud_python_sdk/models/get_payment_account_response.py +++ b/fattureincloud_python_sdk/models/get_payment_account_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class GetPaymentAccountResponse(BaseModel): """ GetPaymentAccountResponse - """ # noqa: E501 - + """ # noqa: E501 data: Optional[PaymentAccount] = None __properties: ClassVar[List[str]] = ["data"] @@ -39,6 +37,7 @@ class GetPaymentAccountResponse(BaseModel): 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)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -72,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -84,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - PaymentAccount.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 afe69f0a..6553a80e 100644 --- a/fattureincloud_python_sdk/models/get_payment_method_response.py +++ b/fattureincloud_python_sdk/models/get_payment_method_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class GetPaymentMethodResponse(BaseModel): """ GetPaymentMethodResponse - """ # noqa: E501 - + """ # noqa: E501 data: Optional[PaymentMethod] = None __properties: ClassVar[List[str]] = ["data"] @@ -39,6 +37,7 @@ class GetPaymentMethodResponse(BaseModel): 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)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -72,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -84,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - PaymentMethod.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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_price_list_items_response.py b/fattureincloud_python_sdk/models/get_price_list_items_response.py index 05c97cb0..ea654c59 100644 --- a/fattureincloud_python_sdk/models/get_price_list_items_response.py +++ b/fattureincloud_python_sdk/models/get_price_list_items_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -23,12 +23,10 @@ from typing import Optional, Set from typing_extensions import Self - class GetPriceListItemsResponse(BaseModel): """ GetPriceListItemsResponse - """ # noqa: E501 - + """ # noqa: E501 data: Optional[Dict[str, Dict[str, Any]]] = None __properties: ClassVar[List[str]] = ["data"] @@ -38,6 +36,7 @@ class GetPriceListItemsResponse(BaseModel): 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)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -75,7 +75,7 @@ def to_dict(self) -> Dict[str, Any]: for _key_data in self.data: if self.data[_key_data]: _field_dict[_key_data] = self.data[_key_data].to_dict() - _dict["data"] = _field_dict + _dict['data'] = _field_dict return _dict @classmethod @@ -87,16 +87,14 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - dict( - (_k, PriceListItem.from_dict(_v)) - for _k, _v in obj["data"].items() - ) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "data": dict( + (_k, PriceListItem.from_dict(_v)) + for _k, _v in obj["data"].items() + ) + 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 314f7dd1..4e6fa50a 100644 --- a/fattureincloud_python_sdk/models/get_product_response.py +++ b/fattureincloud_python_sdk/models/get_product_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class GetProductResponse(BaseModel): """ GetProductResponse - """ # noqa: E501 - + """ # noqa: E501 data: Optional[Product] = None __properties: ClassVar[List[str]] = ["data"] @@ -39,6 +37,7 @@ class GetProductResponse(BaseModel): 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)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -72,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -84,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - Product.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 f2a5c5ca..8e2f09de 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 @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -20,16 +20,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from fattureincloud_python_sdk.models.receipt_pre_create_info import ( - ReceiptPreCreateInfo, -) +from fattureincloud_python_sdk.models.receipt_pre_create_info import ReceiptPreCreateInfo from typing import Optional, Set from typing_extensions import Self - class GetReceiptPreCreateInfoResponse(BaseModel): - """ """ # noqa: E501 - + """ + + """ # noqa: E501 data: Optional[ReceiptPreCreateInfo] = None __properties: ClassVar[List[str]] = ["data"] @@ -39,6 +37,7 @@ class GetReceiptPreCreateInfoResponse(BaseModel): 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)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -72,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -84,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - ReceiptPreCreateInfo.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 0fc8feea..eab27d32 100644 --- a/fattureincloud_python_sdk/models/get_receipt_response.py +++ b/fattureincloud_python_sdk/models/get_receipt_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,10 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class GetReceiptResponse(BaseModel): - """ """ # noqa: E501 - + """ + + """ # noqa: E501 data: Optional[Receipt] = None __properties: ClassVar[List[str]] = ["data"] @@ -37,6 +37,7 @@ class GetReceiptResponse(BaseModel): 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)) @@ -61,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -70,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -82,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - Receipt.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 922755e0..fd9068cb 100644 --- a/fattureincloud_python_sdk/models/get_receipts_monthly_totals_response.py +++ b/fattureincloud_python_sdk/models/get_receipts_monthly_totals_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,10 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class GetReceiptsMonthlyTotalsResponse(BaseModel): - """ """ # noqa: E501 - + """ + + """ # noqa: E501 data: Optional[List[MonthlyTotal]] = None __properties: ClassVar[List[str]] = ["data"] @@ -37,6 +37,7 @@ class GetReceiptsMonthlyTotalsResponse(BaseModel): 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)) @@ -61,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -74,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_data in self.data: if _item_data: _items.append(_item_data.to_dict()) - _dict["data"] = _items + _dict['data'] = _items return _dict @classmethod @@ -86,13 +88,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - [MonthlyTotal.from_dict(_item) for _item in obj["data"]] - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 d8d02bd5..88d95778 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 @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,10 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class GetReceivedDocumentPreCreateInfoResponse(BaseModel): - """ """ # noqa: E501 - + """ + + """ # noqa: E501 data: Optional[ReceivedDocumentInfo] = None __properties: ClassVar[List[str]] = ["data"] @@ -37,6 +37,7 @@ class GetReceivedDocumentPreCreateInfoResponse(BaseModel): 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)) @@ -61,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -70,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -82,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - ReceivedDocumentInfo.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 2c7eff04..3828d21d 100644 --- a/fattureincloud_python_sdk/models/get_received_document_response.py +++ b/fattureincloud_python_sdk/models/get_received_document_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,10 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class GetReceivedDocumentResponse(BaseModel): - """ """ # noqa: E501 - + """ + + """ # noqa: E501 data: Optional[ReceivedDocument] = None __properties: ClassVar[List[str]] = ["data"] @@ -37,6 +37,7 @@ class GetReceivedDocumentResponse(BaseModel): 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)) @@ -61,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -70,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -82,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - ReceivedDocument.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 80c6c18f..896bf956 100644 --- a/fattureincloud_python_sdk/models/get_supplier_response.py +++ b/fattureincloud_python_sdk/models/get_supplier_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class GetSupplierResponse(BaseModel): """ GetSupplierResponse - """ # noqa: E501 - + """ # noqa: E501 data: Optional[Supplier] = None __properties: ClassVar[List[str]] = ["data"] @@ -39,6 +37,7 @@ class GetSupplierResponse(BaseModel): 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)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -72,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -84,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - Supplier.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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_tax_profile_response.py b/fattureincloud_python_sdk/models/get_tax_profile_response.py index 87483c39..1ceac1fe 100644 --- a/fattureincloud_python_sdk/models/get_tax_profile_response.py +++ b/fattureincloud_python_sdk/models/get_tax_profile_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class GetTaxProfileResponse(BaseModel): """ GetTaxProfileResponse - """ # noqa: E501 - + """ # noqa: E501 data: Optional[TaxProfile] = None __properties: ClassVar[List[str]] = ["data"] @@ -39,6 +37,7 @@ class GetTaxProfileResponse(BaseModel): 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)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -72,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -84,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - TaxProfile.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "data": TaxProfile.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 7dbf9167..2512f679 100644 --- a/fattureincloud_python_sdk/models/get_user_info_response.py +++ b/fattureincloud_python_sdk/models/get_user_info_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -20,20 +20,16 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from fattureincloud_python_sdk.models.get_user_info_response_email_confirmation_state import ( - GetUserInfoResponseEmailConfirmationState, -) -from fattureincloud_python_sdk.models.get_user_info_response_info import ( - GetUserInfoResponseInfo, -) +from fattureincloud_python_sdk.models.get_user_info_response_email_confirmation_state import GetUserInfoResponseEmailConfirmationState +from fattureincloud_python_sdk.models.get_user_info_response_info import GetUserInfoResponseInfo from fattureincloud_python_sdk.models.user import User from typing import Optional, Set from typing_extensions import Self - class GetUserInfoResponse(BaseModel): - """ """ # noqa: E501 - + """ + + """ # noqa: E501 data: Optional[User] = None info: Optional[GetUserInfoResponseInfo] = None email_confirmation_state: Optional[GetUserInfoResponseEmailConfirmationState] = None @@ -45,6 +41,7 @@ class GetUserInfoResponse(BaseModel): 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)) @@ -69,7 +66,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -78,13 +76,13 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() # override the default output from pydantic by calling `to_dict()` of info if self.info: - _dict["info"] = self.info.to_dict() + _dict['info'] = self.info.to_dict() # override the default output from pydantic by calling `to_dict()` of email_confirmation_state if self.email_confirmation_state: - _dict["email_confirmation_state"] = self.email_confirmation_state.to_dict() + _dict['email_confirmation_state'] = self.email_confirmation_state.to_dict() return _dict @classmethod @@ -96,23 +94,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "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 - ), - } - ) + _obj = cls.model_validate({ + "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 ba03e0f5..1f10de02 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 @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -23,12 +23,10 @@ from typing import Optional, Set from typing_extensions import Self - class GetUserInfoResponseEmailConfirmationState(BaseModel): """ GetUserInfoResponseEmailConfirmationState - """ # noqa: E501 - + """ # noqa: E501 need_confirmation: Optional[StrictBool] = None __properties: ClassVar[List[str]] = ["need_confirmation"] @@ -38,6 +36,7 @@ class GetUserInfoResponseEmailConfirmationState(BaseModel): 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)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -80,5 +80,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"need_confirmation": obj.get("need_confirmation")}) + _obj = cls.model_validate({ + "need_confirmation": obj.get("need_confirmation") + }) return _obj + + 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 393688bd..29a2d2ab 100644 --- a/fattureincloud_python_sdk/models/get_user_info_response_info.py +++ b/fattureincloud_python_sdk/models/get_user_info_response_info.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -23,20 +23,14 @@ from typing import Optional, Set from typing_extensions import Self - class GetUserInfoResponseInfo(BaseModel): """ GetUserInfoResponseInfo - """ # noqa: E501 - + """ # noqa: E501 need_marketing_consents_confirmation: Optional[StrictBool] = None need_password_change: Optional[StrictBool] = None need_terms_of_service_confirmation: Optional[StrictBool] = None - __properties: ClassVar[List[str]] = [ - "need_marketing_consents_confirmation", - "need_password_change", - "need_terms_of_service_confirmation", - ] + __properties: ClassVar[List[str]] = ["need_marketing_consents_confirmation", "need_password_change", "need_terms_of_service_confirmation"] model_config = ConfigDict( populate_by_name=True, @@ -44,6 +38,7 @@ class GetUserInfoResponseInfo(BaseModel): 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)) @@ -68,7 +63,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -86,15 +82,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "need_marketing_consents_confirmation": obj.get( - "need_marketing_consents_confirmation" - ), - "need_password_change": obj.get("need_password_change"), - "need_terms_of_service_confirmation": obj.get( - "need_terms_of_service_confirmation" - ), - } - ) + _obj = cls.model_validate({ + "need_marketing_consents_confirmation": obj.get("need_marketing_consents_confirmation"), + "need_password_change": obj.get("need_password_change"), + "need_terms_of_service_confirmation": obj.get("need_terms_of_service_confirmation") + }) return _obj + + diff --git a/fattureincloud_python_sdk/models/get_vat_type_response.py b/fattureincloud_python_sdk/models/get_vat_type_response.py index 770a64ab..8abe752f 100644 --- a/fattureincloud_python_sdk/models/get_vat_type_response.py +++ b/fattureincloud_python_sdk/models/get_vat_type_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class GetVatTypeResponse(BaseModel): """ GetVatTypeResponse - """ # noqa: E501 - + """ # noqa: E501 data: Optional[VatType] = None __properties: ClassVar[List[str]] = ["data"] @@ -39,6 +37,7 @@ class GetVatTypeResponse(BaseModel): 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)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -72,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -84,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - VatType.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 a628a606..ced02946 100644 --- a/fattureincloud_python_sdk/models/get_webhooks_subscription_response.py +++ b/fattureincloud_python_sdk/models/get_webhooks_subscription_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class GetWebhooksSubscriptionResponse(BaseModel): """ GetWebhooksSubscriptionResponse - """ # noqa: E501 - + """ # noqa: E501 data: Optional[WebhooksSubscription] = None __properties: ClassVar[List[str]] = ["data"] @@ -39,6 +37,7 @@ class GetWebhooksSubscriptionResponse(BaseModel): 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)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -72,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -84,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - WebhooksSubscription.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 a10be627..7ca79e57 100644 --- a/fattureincloud_python_sdk/models/issued_document.py +++ b/fattureincloud_python_sdk/models/issued_document.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,32 +19,15 @@ import json from datetime import date -from pydantic import ( - BaseModel, - ConfigDict, - Field, - StrictBool, - StrictFloat, - StrictInt, - StrictStr, - field_validator, -) +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator 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 -from fattureincloud_python_sdk.models.issued_document_ei_data import ( - IssuedDocumentEiData, -) -from fattureincloud_python_sdk.models.issued_document_extra_data import ( - IssuedDocumentExtraData, -) -from fattureincloud_python_sdk.models.issued_document_items_list_item import ( - IssuedDocumentItemsListItem, -) -from fattureincloud_python_sdk.models.issued_document_payments_list_item import ( - IssuedDocumentPaymentsListItem, -) +from fattureincloud_python_sdk.models.issued_document_ei_data import IssuedDocumentEiData +from fattureincloud_python_sdk.models.issued_document_extra_data import IssuedDocumentExtraData +from fattureincloud_python_sdk.models.issued_document_items_list_item import IssuedDocumentItemsListItem +from fattureincloud_python_sdk.models.issued_document_payments_list_item import IssuedDocumentPaymentsListItem from fattureincloud_python_sdk.models.issued_document_type import IssuedDocumentType from fattureincloud_python_sdk.models.language import Language from fattureincloud_python_sdk.models.payment_method import PaymentMethod @@ -52,384 +35,106 @@ from typing import Optional, Set from typing_extensions import Self - class IssuedDocument(BaseModel): """ IssuedDocument - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictInt] = Field(default=None, description="Issued document id") entity: Optional[Entity] = None type: Optional[IssuedDocumentType] = IssuedDocumentType.INVOICE - number: Optional[StrictInt] = Field( - default=None, - description="Issued document number [If not specified, next number is used]", - ) - numeration: Optional[StrictStr] = Field( - default=None, - description="Issued document numeration [Not available if type=delivery_note]", - ) - var_date: Optional[date] = Field( - default=None, - description="Issued document date [defaults to today's date]", - alias="date", - ) + number: Optional[StrictInt] = Field(default=None, description="Issued document number [If not specified, next number is used]") + numeration: Optional[StrictStr] = Field(default=None, description="Issued document numeration [Not available if type=delivery_note]") + var_date: Optional[date] = Field(default=None, description="Issued document date [defaults to today's date]", alias="date") year: Optional[StrictInt] = Field(default=None, description="Issued document year") currency: Optional[Currency] = None language: Optional[Language] = None - subject: Optional[StrictStr] = Field( - default=None, description="Issued document subject [not shown on the PDF]" - ) - visible_subject: Optional[StrictStr] = Field( - default=None, description="Issued document visible subject" - ) - rc_center: Optional[StrictStr] = Field( - default=None, - description="Issued document revenue center [or cost center if type=supplier_order].", - ) - notes: Optional[StrictStr] = Field( - default=None, description="Issued document extra notes" - ) - rivalsa: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description='Issued document "Rivalsa INPS" percentual value' - ) - cassa: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, - description='Issued document "Cassa previdenziale" percentual value', - ) - amount_cassa: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="[Read Only] Issued document cassa amount." - ) - cassa_taxable: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Issued document cassa taxable percentage" - ) - amount_cassa_taxable: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, - description="[Can be set only if cassa_taxable is NULL] Issued document cassa taxable amount", - ) - cassa2: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, - description='Issued document "Cassa previdenziale 2" percentual value', - ) - amount_cassa2: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="[Read Only] Issued document cassa2 amount" - ) - cassa2_taxable: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Issued document cassa2 taxable percentage" - ) - amount_cassa2_taxable: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, - description="[Can be set only if cassa2_taxable is NULL] Issued document cassa2 taxable amount", - ) - global_cassa_taxable: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Issued document global cassa taxable percentage" - ) - amount_global_cassa_taxable: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, - description="[Can be set only if global_cassa_taxable is NULL] Issued document global cassa taxable amount", - ) - withholding_tax: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, - description="Issued document withholding tax (ritenuta d'acconto) percentual value", - ) - withholding_tax_taxable: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, - description="Issued document withholding tax taxable (imponibile) percentual value", - ) - other_withholding_tax: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, - description="Issued document other withholding tax (altra ritenuta) percentual value", - ) - stamp_duty: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Issued document stamp duty value [0 if not present]" - ) + subject: Optional[StrictStr] = Field(default=None, description="Issued document subject [not shown on the PDF]") + visible_subject: Optional[StrictStr] = Field(default=None, description="Issued document visible subject") + rc_center: Optional[StrictStr] = Field(default=None, description="Issued document revenue center [or cost center if type=supplier_order].") + notes: Optional[StrictStr] = Field(default=None, description="Issued document extra notes") + rivalsa: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Issued document \"Rivalsa INPS\" percentual value") + cassa: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Issued document \"Cassa previdenziale\" percentual value") + amount_cassa: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="[Read Only] Issued document cassa amount.") + cassa_taxable: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Issued document cassa taxable percentage") + amount_cassa_taxable: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="[Can be set only if cassa_taxable is NULL] Issued document cassa taxable amount") + cassa2: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Issued document \"Cassa previdenziale 2\" percentual value") + amount_cassa2: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="[Read Only] Issued document cassa2 amount") + cassa2_taxable: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Issued document cassa2 taxable percentage") + amount_cassa2_taxable: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="[Can be set only if cassa2_taxable is NULL] Issued document cassa2 taxable amount") + global_cassa_taxable: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Issued document global cassa taxable percentage") + amount_global_cassa_taxable: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="[Can be set only if global_cassa_taxable is NULL] Issued document global cassa taxable amount") + withholding_tax: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Issued document withholding tax (ritenuta d'acconto) percentual value") + withholding_tax_taxable: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Issued document withholding tax taxable (imponibile) percentual value") + other_withholding_tax: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Issued document other withholding tax (altra ritenuta) percentual value") + stamp_duty: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Issued document stamp duty value [0 if not present]") payment_method: Optional[PaymentMethod] = None - use_split_payment: Optional[StrictBool] = Field( - default=None, description="Issued document uses split payment" - ) - use_gross_prices: Optional[StrictBool] = Field( - default=None, description="Issued document uses gross prices" - ) - e_invoice: Optional[StrictBool] = Field( - default=None, description="Issued document is an e-invoice." - ) + use_split_payment: Optional[StrictBool] = Field(default=None, description="Issued document uses split payment") + use_gross_prices: Optional[StrictBool] = Field(default=None, description="Issued document uses gross prices") + e_invoice: Optional[StrictBool] = Field(default=None, description="Issued document is an e-invoice.") ei_data: Optional[IssuedDocumentEiData] = None - ei_cassa_type: Optional[StrictStr] = Field( - default=None, description="E-invoice cassa type" - ) - ei_cassa2_type: Optional[StrictStr] = Field( - default=None, description="E-invoice cassa2 type" - ) - ei_withholding_tax_causal: Optional[StrictStr] = Field( - default=None, description="E-invoice withholding tax causal" - ) - ei_other_withholding_tax_type: Optional[StrictStr] = Field( - default=None, description="E-invoice other withholding tax type" - ) - ei_other_withholding_tax_causal: Optional[StrictStr] = Field( - default=None, description="E-invoice other withholding tax causal" - ) + ei_cassa_type: Optional[StrictStr] = Field(default=None, description="E-invoice cassa type") + ei_cassa2_type: Optional[StrictStr] = Field(default=None, description="E-invoice cassa2 type") + ei_withholding_tax_causal: Optional[StrictStr] = Field(default=None, description="E-invoice withholding tax causal") + ei_other_withholding_tax_type: Optional[StrictStr] = Field(default=None, description="E-invoice other withholding tax type") + ei_other_withholding_tax_causal: Optional[StrictStr] = Field(default=None, description="E-invoice other withholding tax causal") items_list: Optional[List[IssuedDocumentItemsListItem]] = None payments_list: Optional[List[IssuedDocumentPaymentsListItem]] = None template: Optional[DocumentTemplate] = None delivery_note_template: Optional[DocumentTemplate] = None acc_inv_template: Optional[DocumentTemplate] = None - h_margins: Optional[StrictInt] = Field( - default=None, description="Issued document PDF horizontal margins" - ) - v_margins: Optional[StrictInt] = Field( - default=None, description="Issued document PDF vertical margins" - ) - show_payments: Optional[StrictBool] = Field( - default=None, - description="Show the expiration dates of the payments on the document", - ) - show_payment_method: Optional[StrictBool] = Field( - default=None, description="Show the payment method details on the document" - ) + h_margins: Optional[StrictInt] = Field(default=None, description="Issued document PDF horizontal margins") + v_margins: Optional[StrictInt] = Field(default=None, description="Issued document PDF vertical margins") + show_payments: Optional[StrictBool] = Field(default=None, description="Show the expiration dates of the payments on the document") + show_payment_method: Optional[StrictBool] = Field(default=None, description="Show the payment method details on the document") show_totals: Optional[ShowTotalsMode] = ShowTotalsMode.ALL - show_notification_button: Optional[StrictBool] = Field( - default=None, description="Show notification button in the PDF" - ) - show_tspay_button: Optional[StrictBool] = Field( - default=None, description="Show ts pay button in the PDF" - ) - delivery_note: Optional[StrictBool] = Field( - default=None, description="Issued document has delivery note" - ) - accompanying_invoice: Optional[StrictBool] = Field( - default=None, description="Issued document has an accompanying invoice" - ) - dn_number: Optional[StrictInt] = Field( - default=None, description="Issued document attached delivery note number" - ) - dn_date: Optional[date] = Field( - default=None, description="Issued document attached delivery note date" - ) - dn_ai_packages_number: Optional[StrictStr] = Field( - default=None, - description="Issued document attached delivery note number of packages", - ) - dn_ai_weight: Optional[StrictStr] = Field( - default=None, - description="Issued document attached delivery note package weight", - ) - dn_ai_causal: Optional[StrictStr] = Field( - default=None, description="Issued document attached delivery note causal" - ) - dn_ai_destination: Optional[StrictStr] = Field( - default=None, description="Issued document attached delivery note destination" - ) - dn_ai_transporter: Optional[StrictStr] = Field( - default=None, description="Issued document attached delivery note transporter" - ) - dn_ai_notes: Optional[StrictStr] = Field( - default=None, description="Issued document attached delivery note notes" - ) - is_marked: Optional[StrictBool] = Field( - default=None, description="Issued document is marked" - ) - amount_net: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="[Read only] Issued document total net amount" - ) - amount_vat: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="[Read Only] Issued document total vat amount" - ) - amount_gross: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="[Read Only] Issued document total gross amount" - ) - amount_due_discount: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Issued document amount due discount" - ) - amount_rivalsa: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="[Read Only] Issued document rivalsa amount" - ) - amount_rivalsa_taxable: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Issued document taxable rivalsa amount" - ) - amount_withholding_tax: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, - description="[Read Only] Issued document withholding tax amount (ritenuta d'acconto).", - ) - amount_withholding_tax_taxable: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Issued document taxable withholding tax amount" - ) - amount_other_withholding_tax: Optional[Union[StrictFloat, StrictInt]] = Field( - 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_enasarco_taxable: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Issued document taxable enasarco amount" - ) + show_notification_button: Optional[StrictBool] = Field(default=None, description="Show notification button in the PDF") + show_tspay_button: Optional[StrictBool] = Field(default=None, description="Show ts pay button in the PDF") + delivery_note: Optional[StrictBool] = Field(default=None, description="Issued document has delivery note") + accompanying_invoice: Optional[StrictBool] = Field(default=None, description="Issued document has an accompanying invoice") + dn_number: Optional[StrictInt] = Field(default=None, description="Issued document attached delivery note number") + dn_date: Optional[date] = Field(default=None, description="Issued document attached delivery note date") + dn_ai_packages_number: Optional[StrictStr] = Field(default=None, description="Issued document attached delivery note number of packages") + dn_ai_weight: Optional[StrictStr] = Field(default=None, description="Issued document attached delivery note package weight") + dn_ai_causal: Optional[StrictStr] = Field(default=None, description="Issued document attached delivery note causal") + dn_ai_destination: Optional[StrictStr] = Field(default=None, description="Issued document attached delivery note destination") + dn_ai_transporter: Optional[StrictStr] = Field(default=None, description="Issued document attached delivery note transporter") + dn_ai_notes: Optional[StrictStr] = Field(default=None, description="Issued document attached delivery note notes") + is_marked: Optional[StrictBool] = Field(default=None, description="Issued document is marked") + amount_net: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="[Read only] Issued document total net amount") + amount_vat: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="[Read Only] Issued document total vat amount") + amount_gross: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="[Read Only] Issued document total gross amount") + amount_due_discount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Issued document amount due discount") + amount_rivalsa: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="[Read Only] Issued document rivalsa amount") + amount_rivalsa_taxable: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Issued document taxable rivalsa amount") + amount_withholding_tax: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="[Read Only] Issued document withholding tax amount (ritenuta d'acconto).") + amount_withholding_tax_taxable: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Issued document taxable withholding tax amount") + amount_other_withholding_tax: Optional[Union[StrictFloat, StrictInt]] = Field(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_enasarco_taxable: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Issued document taxable enasarco amount") extra_data: Optional[IssuedDocumentExtraData] = None - seen_date: Optional[date] = Field( - default=None, description="Issued document seen date" - ) - next_due_date: Optional[date] = Field( - default=None, description="Issued document date of the next not paid payment" - ) - url: Optional[StrictStr] = Field( - default=None, - description="[Temporary] [Read Only] Issued document url of the document PDF file", - ) - dn_url: Optional[StrictStr] = Field( - default=None, - description="[Temporary] [Read Only] Issued document url of the attached delivery note PDF file", - ) - ai_url: Optional[StrictStr] = Field( - default=None, - description="[Temporary] [Read Only] Issued document url of the accompanying invoice PDF file", - ) - attachment_url: Optional[StrictStr] = Field( - default=None, - description="[Temporary] [Read Only] Issued document url of the attached file", - ) - attachment_token: Optional[StrictStr] = Field( - default=None, - description="[Write Only] Issued document attachment token returned by POST /issued_documents/attachment", - ) - ei_raw: Optional[Dict[str, Any]] = Field( - default=None, - description="Issued document advanced raw attributes for e-invoices", - ) - ei_status: Optional[StrictStr] = Field( - default=None, - description="[Read only] Status of the e-invoice. * **attempt** - We are trying to send the invoice, please wait up to 2 hours * **missing** - The invoice is missing * **not_sent** - The invoice has yet to be sent * **sent** - The invoice was sent * **pending** - The checks for the digital signature and sending are in progress * **processing** - The SDI is delivering the invoice to the customer * **error** - An error occurred while handling the invoice, please try to resend it or contact support * **discarded** - The invoice has been rejected by the SDI, so it must be corrected and re-sent * **not_delivered** - The SDI was unable to deliver the invoice * **accepted** - The customer accepted the invoice * **rejected** - The customer rejected the invoice, so it must be corrected * **no_response** - A response has not yet been received whithin the deadline, contact the customer to ascertain the status of the invoice * **manual_accepted** - The customer accepted the invoice * **manual_rejected** - The customer rejected the invoice ", - ) - price_list_id: Optional[StrictStr] = Field( - default=None, description="Price list id" - ) - locked: Optional[StrictBool] = Field( - default=None, description="Issued Document can't be edited" - ) - created_at: Optional[StrictStr] = Field( - default=None, description="Issued document creation date" - ) - updated_at: Optional[StrictStr] = Field( - default=None, description="Issued document last update date" - ) - __properties: ClassVar[List[str]] = [ - "id", - "entity", - "type", - "number", - "numeration", - "date", - "year", - "currency", - "language", - "subject", - "visible_subject", - "rc_center", - "notes", - "rivalsa", - "cassa", - "amount_cassa", - "cassa_taxable", - "amount_cassa_taxable", - "cassa2", - "amount_cassa2", - "cassa2_taxable", - "amount_cassa2_taxable", - "global_cassa_taxable", - "amount_global_cassa_taxable", - "withholding_tax", - "withholding_tax_taxable", - "other_withholding_tax", - "stamp_duty", - "payment_method", - "use_split_payment", - "use_gross_prices", - "e_invoice", - "ei_data", - "ei_cassa_type", - "ei_cassa2_type", - "ei_withholding_tax_causal", - "ei_other_withholding_tax_type", - "ei_other_withholding_tax_causal", - "items_list", - "payments_list", - "template", - "delivery_note_template", - "acc_inv_template", - "h_margins", - "v_margins", - "show_payments", - "show_payment_method", - "show_totals", - "show_notification_button", - "show_tspay_button", - "delivery_note", - "accompanying_invoice", - "dn_number", - "dn_date", - "dn_ai_packages_number", - "dn_ai_weight", - "dn_ai_causal", - "dn_ai_destination", - "dn_ai_transporter", - "dn_ai_notes", - "is_marked", - "amount_net", - "amount_vat", - "amount_gross", - "amount_due_discount", - "amount_rivalsa", - "amount_rivalsa_taxable", - "amount_withholding_tax", - "amount_withholding_tax_taxable", - "amount_other_withholding_tax", - "amount_other_withholding_tax_taxable", - "amount_enasarco_taxable", - "extra_data", - "seen_date", - "next_due_date", - "url", - "dn_url", - "ai_url", - "attachment_url", - "attachment_token", - "ei_raw", - "ei_status", - "price_list_id", - "locked", - "created_at", - "updated_at", - ] + seen_date: Optional[date] = Field(default=None, description="Issued document seen date") + next_due_date: Optional[date] = Field(default=None, description="Issued document date of the next not paid payment") + url: Optional[StrictStr] = Field(default=None, description="[Temporary] [Read Only] Issued document url of the document PDF file") + dn_url: Optional[StrictStr] = Field(default=None, description="[Temporary] [Read Only] Issued document url of the attached delivery note PDF file") + ai_url: Optional[StrictStr] = Field(default=None, description="[Temporary] [Read Only] Issued document url of the accompanying invoice PDF file") + attachment_url: Optional[StrictStr] = Field(default=None, description="[Temporary] [Read Only] Issued document url of the attached file") + attachment_token: Optional[StrictStr] = Field(default=None, description="[Write Only] Issued document attachment token returned by POST /issued_documents/attachment") + ei_raw: Optional[Dict[str, Any]] = Field(default=None, description="Issued document advanced raw attributes for e-invoices") + ei_status: Optional[StrictStr] = Field(default=None, description="[Read only] Status of the e-invoice. * **attempt** - We are trying to send the invoice, please wait up to 2 hours * **missing** - The invoice is missing * **not_sent** - The invoice has yet to be sent * **sent** - The invoice was sent * **pending** - The checks for the digital signature and sending are in progress * **processing** - The SDI is delivering the invoice to the customer * **error** - An error occurred while handling the invoice, please try to resend it or contact support * **discarded** - The invoice has been rejected by the SDI, so it must be corrected and re-sent * **not_delivered** - The SDI was unable to deliver the invoice * **accepted** - The customer accepted the invoice * **rejected** - The customer rejected the invoice, so it must be corrected * **no_response** - A response has not yet been received whithin the deadline, contact the customer to ascertain the status of the invoice * **manual_accepted** - The customer accepted the invoice * **manual_rejected** - The customer rejected the invoice ") + price_list_id: Optional[StrictStr] = Field(default=None, description="Price list id") + locked: Optional[StrictBool] = Field(default=None, description="Issued Document can't be edited") + created_at: Optional[StrictStr] = Field(default=None, description="Issued document creation date") + updated_at: Optional[StrictStr] = Field(default=None, description="Issued document last update date") + __properties: ClassVar[List[str]] = ["id", "entity", "type", "number", "numeration", "date", "year", "currency", "language", "subject", "visible_subject", "rc_center", "notes", "rivalsa", "cassa", "amount_cassa", "cassa_taxable", "amount_cassa_taxable", "cassa2", "amount_cassa2", "cassa2_taxable", "amount_cassa2_taxable", "global_cassa_taxable", "amount_global_cassa_taxable", "withholding_tax", "withholding_tax_taxable", "other_withholding_tax", "stamp_duty", "payment_method", "use_split_payment", "use_gross_prices", "e_invoice", "ei_data", "ei_cassa_type", "ei_cassa2_type", "ei_withholding_tax_causal", "ei_other_withholding_tax_type", "ei_other_withholding_tax_causal", "items_list", "payments_list", "template", "delivery_note_template", "acc_inv_template", "h_margins", "v_margins", "show_payments", "show_payment_method", "show_totals", "show_notification_button", "show_tspay_button", "delivery_note", "accompanying_invoice", "dn_number", "dn_date", "dn_ai_packages_number", "dn_ai_weight", "dn_ai_causal", "dn_ai_destination", "dn_ai_transporter", "dn_ai_notes", "is_marked", "amount_net", "amount_vat", "amount_gross", "amount_due_discount", "amount_rivalsa", "amount_rivalsa_taxable", "amount_withholding_tax", "amount_withholding_tax_taxable", "amount_other_withholding_tax", "amount_other_withholding_tax_taxable", "amount_enasarco_taxable", "extra_data", "seen_date", "next_due_date", "url", "dn_url", "ai_url", "attachment_url", "attachment_token", "ei_raw", "ei_status", "price_list_id", "locked", "created_at", "updated_at"] - @field_validator("ei_status") + @field_validator('ei_status') def ei_status_validate_enum(cls, value): """Validates the enum""" if value is None: return value - 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')" - ) + 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 = ConfigDict( @@ -438,6 +143,7 @@ def ei_status_validate_enum(cls, value): 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)) @@ -471,19 +177,17 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. """ - excluded_fields: Set[str] = set( - [ - "amount_cassa", - "amount_cassa2", - "amount_net", - "amount_vat", - "amount_gross", - "amount_rivalsa", - "amount_withholding_tax", - "amount_other_withholding_tax", - "attachment_url", - ] - ) + excluded_fields: Set[str] = set([ + "amount_cassa", + "amount_cassa2", + "amount_net", + "amount_vat", + "amount_gross", + "amount_rivalsa", + "amount_withholding_tax", + "amount_other_withholding_tax", + "attachment_url", + ]) _dict = self.model_dump( by_alias=True, @@ -492,45 +196,45 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of entity if self.entity: - _dict["entity"] = self.entity.to_dict() + _dict['entity'] = self.entity.to_dict() # override the default output from pydantic by calling `to_dict()` of currency if self.currency: - _dict["currency"] = self.currency.to_dict() + _dict['currency'] = self.currency.to_dict() # override the default output from pydantic by calling `to_dict()` of language if self.language: - _dict["language"] = self.language.to_dict() + _dict['language'] = self.language.to_dict() # override the default output from pydantic by calling `to_dict()` of payment_method if self.payment_method: - _dict["payment_method"] = self.payment_method.to_dict() + _dict['payment_method'] = self.payment_method.to_dict() # override the default output from pydantic by calling `to_dict()` of ei_data if self.ei_data: - _dict["ei_data"] = self.ei_data.to_dict() + _dict['ei_data'] = self.ei_data.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in items_list (list) _items = [] if self.items_list: for _item_items_list in self.items_list: if _item_items_list: _items.append(_item_items_list.to_dict()) - _dict["items_list"] = _items + _dict['items_list'] = _items # override the default output from pydantic by calling `to_dict()` of each item in payments_list (list) _items = [] if self.payments_list: for _item_payments_list in self.payments_list: if _item_payments_list: _items.append(_item_payments_list.to_dict()) - _dict["payments_list"] = _items + _dict['payments_list'] = _items # override the default output from pydantic by calling `to_dict()` of template if self.template: - _dict["template"] = self.template.to_dict() + _dict['template'] = self.template.to_dict() # override the default output from pydantic by calling `to_dict()` of delivery_note_template if self.delivery_note_template: - _dict["delivery_note_template"] = self.delivery_note_template.to_dict() + _dict['delivery_note_template'] = self.delivery_note_template.to_dict() # override the default output from pydantic by calling `to_dict()` of acc_inv_template if self.acc_inv_template: - _dict["acc_inv_template"] = self.acc_inv_template.to_dict() + _dict['acc_inv_template'] = self.acc_inv_template.to_dict() # override the default output from pydantic by calling `to_dict()` of extra_data if self.extra_data: - _dict["extra_data"] = self.extra_data.to_dict() + _dict['extra_data'] = self.extra_data.to_dict() return _dict @classmethod @@ -542,160 +246,94 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "entity": ( - Entity.from_dict(obj["entity"]) - if obj.get("entity") is not None - else None - ), - "type": ( - obj.get("type") - if obj.get("type") is not None - else IssuedDocumentType.INVOICE - ), - "number": obj.get("number"), - "numeration": obj.get("numeration"), - "date": obj.get("date"), - "year": obj.get("year"), - "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"), - "notes": obj.get("notes"), - "rivalsa": obj.get("rivalsa"), - "cassa": obj.get("cassa"), - "amount_cassa": obj.get("amount_cassa"), - "cassa_taxable": obj.get("cassa_taxable"), - "amount_cassa_taxable": obj.get("amount_cassa_taxable"), - "cassa2": obj.get("cassa2"), - "amount_cassa2": obj.get("amount_cassa2"), - "cassa2_taxable": obj.get("cassa2_taxable"), - "amount_cassa2_taxable": obj.get("amount_cassa2_taxable"), - "global_cassa_taxable": obj.get("global_cassa_taxable"), - "amount_global_cassa_taxable": obj.get("amount_global_cassa_taxable"), - "withholding_tax": obj.get("withholding_tax"), - "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["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["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"), - "ei_other_withholding_tax_type": obj.get( - "ei_other_withholding_tax_type" - ), - "ei_other_withholding_tax_causal": obj.get( - "ei_other_withholding_tax_causal" - ), - "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"), - "show_payment_method": obj.get("show_payment_method"), - "show_totals": ( - obj.get("show_totals") - if obj.get("show_totals") is not None - else ShowTotalsMode.ALL - ), - "show_notification_button": obj.get("show_notification_button"), - "show_tspay_button": obj.get("show_tspay_button"), - "delivery_note": obj.get("delivery_note"), - "accompanying_invoice": obj.get("accompanying_invoice"), - "dn_number": obj.get("dn_number"), - "dn_date": obj.get("dn_date"), - "dn_ai_packages_number": obj.get("dn_ai_packages_number"), - "dn_ai_weight": obj.get("dn_ai_weight"), - "dn_ai_causal": obj.get("dn_ai_causal"), - "dn_ai_destination": obj.get("dn_ai_destination"), - "dn_ai_transporter": obj.get("dn_ai_transporter"), - "dn_ai_notes": obj.get("dn_ai_notes"), - "is_marked": obj.get("is_marked"), - "amount_net": obj.get("amount_net"), - "amount_vat": obj.get("amount_vat"), - "amount_gross": obj.get("amount_gross"), - "amount_due_discount": obj.get("amount_due_discount"), - "amount_rivalsa": obj.get("amount_rivalsa"), - "amount_rivalsa_taxable": obj.get("amount_rivalsa_taxable"), - "amount_withholding_tax": obj.get("amount_withholding_tax"), - "amount_withholding_tax_taxable": obj.get( - "amount_withholding_tax_taxable" - ), - "amount_other_withholding_tax": obj.get("amount_other_withholding_tax"), - "amount_other_withholding_tax_taxable": obj.get( - "amount_other_withholding_tax_taxable" - ), - "amount_enasarco_taxable": obj.get("amount_enasarco_taxable"), - "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"), - "dn_url": obj.get("dn_url"), - "ai_url": obj.get("ai_url"), - "attachment_url": obj.get("attachment_url"), - "attachment_token": obj.get("attachment_token"), - "ei_raw": obj.get("ei_raw"), - "ei_status": obj.get("ei_status"), - "price_list_id": obj.get("price_list_id"), - "locked": obj.get("locked"), - "created_at": obj.get("created_at"), - "updated_at": obj.get("updated_at"), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "entity": Entity.from_dict(obj["entity"]) if obj.get("entity") is not None else None, + "type": obj.get("type") if obj.get("type") is not None else IssuedDocumentType.INVOICE, + "number": obj.get("number"), + "numeration": obj.get("numeration"), + "date": obj.get("date"), + "year": obj.get("year"), + "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"), + "notes": obj.get("notes"), + "rivalsa": obj.get("rivalsa"), + "cassa": obj.get("cassa"), + "amount_cassa": obj.get("amount_cassa"), + "cassa_taxable": obj.get("cassa_taxable"), + "amount_cassa_taxable": obj.get("amount_cassa_taxable"), + "cassa2": obj.get("cassa2"), + "amount_cassa2": obj.get("amount_cassa2"), + "cassa2_taxable": obj.get("cassa2_taxable"), + "amount_cassa2_taxable": obj.get("amount_cassa2_taxable"), + "global_cassa_taxable": obj.get("global_cassa_taxable"), + "amount_global_cassa_taxable": obj.get("amount_global_cassa_taxable"), + "withholding_tax": obj.get("withholding_tax"), + "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["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["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"), + "ei_other_withholding_tax_type": obj.get("ei_other_withholding_tax_type"), + "ei_other_withholding_tax_causal": obj.get("ei_other_withholding_tax_causal"), + "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"), + "show_payment_method": obj.get("show_payment_method"), + "show_totals": obj.get("show_totals") if obj.get("show_totals") is not None else ShowTotalsMode.ALL, + "show_notification_button": obj.get("show_notification_button"), + "show_tspay_button": obj.get("show_tspay_button"), + "delivery_note": obj.get("delivery_note"), + "accompanying_invoice": obj.get("accompanying_invoice"), + "dn_number": obj.get("dn_number"), + "dn_date": obj.get("dn_date"), + "dn_ai_packages_number": obj.get("dn_ai_packages_number"), + "dn_ai_weight": obj.get("dn_ai_weight"), + "dn_ai_causal": obj.get("dn_ai_causal"), + "dn_ai_destination": obj.get("dn_ai_destination"), + "dn_ai_transporter": obj.get("dn_ai_transporter"), + "dn_ai_notes": obj.get("dn_ai_notes"), + "is_marked": obj.get("is_marked"), + "amount_net": obj.get("amount_net"), + "amount_vat": obj.get("amount_vat"), + "amount_gross": obj.get("amount_gross"), + "amount_due_discount": obj.get("amount_due_discount"), + "amount_rivalsa": obj.get("amount_rivalsa"), + "amount_rivalsa_taxable": obj.get("amount_rivalsa_taxable"), + "amount_withholding_tax": obj.get("amount_withholding_tax"), + "amount_withholding_tax_taxable": obj.get("amount_withholding_tax_taxable"), + "amount_other_withholding_tax": obj.get("amount_other_withholding_tax"), + "amount_other_withholding_tax_taxable": obj.get("amount_other_withholding_tax_taxable"), + "amount_enasarco_taxable": obj.get("amount_enasarco_taxable"), + "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"), + "dn_url": obj.get("dn_url"), + "ai_url": obj.get("ai_url"), + "attachment_url": obj.get("attachment_url"), + "attachment_token": obj.get("attachment_token"), + "ei_raw": obj.get("ei_raw"), + "ei_status": obj.get("ei_status"), + "price_list_id": obj.get("price_list_id"), + "locked": obj.get("locked"), + "created_at": obj.get("created_at"), + "updated_at": obj.get("updated_at") + }) return _obj + + diff --git a/fattureincloud_python_sdk/models/issued_document_ei_data.py b/fattureincloud_python_sdk/models/issued_document_ei_data.py index 011c6a59..0fa20e4a 100644 --- a/fattureincloud_python_sdk/models/issued_document_ei_data.py +++ b/fattureincloud_python_sdk/models/issued_document_ei_data.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -26,55 +26,23 @@ from typing import Optional, Set from typing_extensions import Self - class IssuedDocumentEiData(BaseModel): """ Issued document e-invoice data [Only if e_invoice=true] - """ # noqa: E501 - + """ # noqa: E501 vat_kind: Optional[VatKind] = None original_document_type: Optional[OriginalDocumentType] = None - od_number: Optional[StrictStr] = Field( - default=None, description="E-invoice original document number" - ) - od_date: Optional[date] = Field( - default=None, description="E-invoice original document date" - ) + od_number: Optional[StrictStr] = Field(default=None, description="E-invoice original document number") + od_date: Optional[date] = Field(default=None, description="E-invoice original document date") cig: Optional[StrictStr] = Field(default=None, description="E-invoice CIG") cup: Optional[StrictStr] = Field(default=None, description="E-invoice CUP") - payment_method: Optional[StrictStr] = Field( - default=None, - description="E-invoice payment method [required for e-invoices] (see [here](https://www.fatturapa.gov.it/export/documenti/fatturapa/v1.2.2/Rappresentazione_Tabellare_FattOrdinaria_V1.2.2.pdf) for the accepted values of ModalitaPagamento)", - ) - bank_name: Optional[StrictStr] = Field( - default=None, description="E-invoice bank name" - ) - bank_iban: Optional[StrictStr] = Field( - default=None, description="E-invoice bank IBAN" - ) - bank_beneficiary: Optional[StrictStr] = Field( - default=None, description="E-invoice bank beneficiary" - ) - invoice_number: Optional[StrictStr] = Field( - default=None, description="E-invoice invoice number" - ) - invoice_date: Optional[date] = Field( - default=None, description="E-invoice invoice date" - ) - __properties: ClassVar[List[str]] = [ - "vat_kind", - "original_document_type", - "od_number", - "od_date", - "cig", - "cup", - "payment_method", - "bank_name", - "bank_iban", - "bank_beneficiary", - "invoice_number", - "invoice_date", - ] + payment_method: Optional[StrictStr] = Field(default=None, description="E-invoice payment method [required for e-invoices] (see [here](https://www.fatturapa.gov.it/export/documenti/fatturapa/v1.2.2/Rappresentazione_Tabellare_FattOrdinaria_V1.2.2.pdf) for the accepted values of ModalitaPagamento)") + bank_name: Optional[StrictStr] = Field(default=None, description="E-invoice bank name") + bank_iban: Optional[StrictStr] = Field(default=None, description="E-invoice bank IBAN") + bank_beneficiary: Optional[StrictStr] = Field(default=None, description="E-invoice bank beneficiary") + invoice_number: Optional[StrictStr] = Field(default=None, description="E-invoice invoice number") + invoice_date: Optional[date] = Field(default=None, description="E-invoice invoice date") + __properties: ClassVar[List[str]] = ["vat_kind", "original_document_type", "od_number", "od_date", "cig", "cup", "payment_method", "bank_name", "bank_iban", "bank_beneficiary", "invoice_number", "invoice_date"] model_config = ConfigDict( populate_by_name=True, @@ -82,6 +50,7 @@ class IssuedDocumentEiData(BaseModel): 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)) @@ -106,7 +75,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -124,20 +94,20 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "vat_kind": obj.get("vat_kind"), - "original_document_type": obj.get("original_document_type"), - "od_number": obj.get("od_number"), - "od_date": obj.get("od_date"), - "cig": obj.get("cig"), - "cup": obj.get("cup"), - "payment_method": obj.get("payment_method"), - "bank_name": obj.get("bank_name"), - "bank_iban": obj.get("bank_iban"), - "bank_beneficiary": obj.get("bank_beneficiary"), - "invoice_number": obj.get("invoice_number"), - "invoice_date": obj.get("invoice_date"), - } - ) + _obj = cls.model_validate({ + "vat_kind": obj.get("vat_kind"), + "original_document_type": obj.get("original_document_type"), + "od_number": obj.get("od_number"), + "od_date": obj.get("od_date"), + "cig": obj.get("cig"), + "cup": obj.get("cup"), + "payment_method": obj.get("payment_method"), + "bank_name": obj.get("bank_name"), + "bank_iban": obj.get("bank_iban"), + "bank_beneficiary": obj.get("bank_beneficiary"), + "invoice_number": obj.get("invoice_number"), + "invoice_date": obj.get("invoice_date") + }) return _obj + + diff --git a/fattureincloud_python_sdk/models/issued_document_extra_data.py b/fattureincloud_python_sdk/models/issued_document_extra_data.py index 13dccf8a..480f1210 100644 --- a/fattureincloud_python_sdk/models/issued_document_extra_data.py +++ b/fattureincloud_python_sdk/models/issued_document_extra_data.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,71 +19,27 @@ import json from datetime import date -from pydantic import ( - BaseModel, - ConfigDict, - Field, - StrictBool, - StrictFloat, - StrictInt, - StrictStr, -) +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union from typing import Optional, Set from typing_extensions import Self - class IssuedDocumentExtraData(BaseModel): """ Issued document extra data [TS fields follow the technical specifications provided by \"Sistema Tessera Sanitaria\"] - """ # noqa: E501 - + """ # noqa: E501 multifatture_sent: Optional[StrictInt] = None - ts_communication: Optional[StrictBool] = Field( - default=None, description='Send issued document to "Sistema Tessera Sanitaria"' - ) - ts_flag_tipo_spesa: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, - description='Issued document ts "tipo spesa" [TK, FC, FV, SV,SP, AD, AS, ECG, SR]', - ) - ts_pagamento_tracciato: Optional[StrictBool] = Field( - default=None, description="Issued document ts traced payment" - ) - ts_tipo_spesa: Optional[StrictStr] = Field( - default=None, - description="Can be [ 'TK', 'FC', 'FV', 'SV', 'SP', 'AD', 'AS', 'SR', 'CT', 'PI', 'IC', 'AA' ]. Refer to the technical specifications to learn more.", - ) - ts_opposizione: Optional[StrictBool] = Field( - default=None, description='Issued document ts "opposizione"' - ) - ts_status: Optional[StrictInt] = Field( - default=None, description="Issued document ts status" - ) - ts_file_id: Optional[StrictStr] = Field( - default=None, description="Issued document ts file id" - ) - ts_sent_date: Optional[date] = Field( - default=None, description="Issued document ts sent date" - ) - ts_full_amount: Optional[StrictBool] = Field( - default=None, description="Issued document ts total amount" - ) - imported_by: Optional[StrictStr] = Field( - default=None, description="Issued document imported by software" - ) - __properties: ClassVar[List[str]] = [ - "multifatture_sent", - "ts_communication", - "ts_flag_tipo_spesa", - "ts_pagamento_tracciato", - "ts_tipo_spesa", - "ts_opposizione", - "ts_status", - "ts_file_id", - "ts_sent_date", - "ts_full_amount", - "imported_by", - ] + ts_communication: Optional[StrictBool] = Field(default=None, description="Send issued document to \"Sistema Tessera Sanitaria\"") + ts_flag_tipo_spesa: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Issued document ts \"tipo spesa\" [TK, FC, FV, SV,SP, AD, AS, ECG, SR]") + ts_pagamento_tracciato: Optional[StrictBool] = Field(default=None, description="Issued document ts traced payment") + ts_tipo_spesa: Optional[StrictStr] = Field(default=None, description="Can be [ 'TK', 'FC', 'FV', 'SV', 'SP', 'AD', 'AS', 'SR', 'CT', 'PI', 'IC', 'AA' ]. Refer to the technical specifications to learn more.") + ts_opposizione: Optional[StrictBool] = Field(default=None, description="Issued document ts \"opposizione\"") + ts_status: Optional[StrictInt] = Field(default=None, description="Issued document ts status") + ts_file_id: Optional[StrictStr] = Field(default=None, description="Issued document ts file id") + ts_sent_date: Optional[date] = Field(default=None, description="Issued document ts sent date") + ts_full_amount: Optional[StrictBool] = Field(default=None, description="Issued document ts total amount") + imported_by: Optional[StrictStr] = Field(default=None, description="Issued document imported by software") + __properties: ClassVar[List[str]] = ["multifatture_sent", "ts_communication", "ts_flag_tipo_spesa", "ts_pagamento_tracciato", "ts_tipo_spesa", "ts_opposizione", "ts_status", "ts_file_id", "ts_sent_date", "ts_full_amount", "imported_by"] model_config = ConfigDict( populate_by_name=True, @@ -91,6 +47,7 @@ class IssuedDocumentExtraData(BaseModel): 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)) @@ -115,7 +72,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -133,19 +91,19 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "multifatture_sent": obj.get("multifatture_sent"), - "ts_communication": obj.get("ts_communication"), - "ts_flag_tipo_spesa": obj.get("ts_flag_tipo_spesa"), - "ts_pagamento_tracciato": obj.get("ts_pagamento_tracciato"), - "ts_tipo_spesa": obj.get("ts_tipo_spesa"), - "ts_opposizione": obj.get("ts_opposizione"), - "ts_status": obj.get("ts_status"), - "ts_file_id": obj.get("ts_file_id"), - "ts_sent_date": obj.get("ts_sent_date"), - "ts_full_amount": obj.get("ts_full_amount"), - "imported_by": obj.get("imported_by"), - } - ) + _obj = cls.model_validate({ + "multifatture_sent": obj.get("multifatture_sent"), + "ts_communication": obj.get("ts_communication"), + "ts_flag_tipo_spesa": obj.get("ts_flag_tipo_spesa"), + "ts_pagamento_tracciato": obj.get("ts_pagamento_tracciato"), + "ts_tipo_spesa": obj.get("ts_tipo_spesa"), + "ts_opposizione": obj.get("ts_opposizione"), + "ts_status": obj.get("ts_status"), + "ts_file_id": obj.get("ts_file_id"), + "ts_sent_date": obj.get("ts_sent_date"), + "ts_full_amount": obj.get("ts_full_amount"), + "imported_by": obj.get("imported_by") + }) return _obj + + 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 22c303ee..39cea7d5 100644 --- a/fattureincloud_python_sdk/models/issued_document_items_list_item.py +++ b/fattureincloud_python_sdk/models/issued_document_items_list_item.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -18,98 +18,35 @@ import re # noqa: F401 import json -from pydantic import ( - BaseModel, - ConfigDict, - Field, - StrictBool, - StrictFloat, - StrictInt, - StrictStr, -) +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union from fattureincloud_python_sdk.models.vat_type import VatType from typing import Optional, Set from typing_extensions import Self - class IssuedDocumentItemsListItem(BaseModel): """ IssuedDocumentItemsListItem - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictInt] = Field(default=None, description="Issued document item id") - product_id: Optional[StrictInt] = Field( - default=None, description="Issued document item product id" - ) - code: Optional[StrictStr] = Field( - default=None, description="Issued document item product code" - ) - name: Optional[StrictStr] = Field( - default=None, description="Issued document item product name" - ) - category: Optional[StrictStr] = Field( - default=None, description="Issued document item product category" - ) - description: Optional[StrictStr] = Field( - default=None, description="Issued document product description" - ) - qty: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Issued document item quantity" - ) - measure: Optional[StrictStr] = Field( - default=None, description="Issued document item measure" - ) - net_price: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Issued document item net price" - ) - gross_price: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Issued document item gross price" - ) + product_id: Optional[StrictInt] = Field(default=None, description="Issued document item product id") + code: Optional[StrictStr] = Field(default=None, description="Issued document item product code") + name: Optional[StrictStr] = Field(default=None, description="Issued document item product name") + category: Optional[StrictStr] = Field(default=None, description="Issued document item product category") + description: Optional[StrictStr] = Field(default=None, description="Issued document product description") + qty: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Issued document item quantity") + measure: Optional[StrictStr] = Field(default=None, description="Issued document item measure") + net_price: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Issued document item net price") + gross_price: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Issued document item gross price") vat: Optional[VatType] = None - not_taxable: Optional[StrictBool] = Field( - default=None, description="Issued document item is not taxable" - ) - apply_withholding_taxes: Optional[StrictBool] = Field( - default=None, - description="Issued document item apply withholding taxes, rivalsa and cassa", - ) - discount: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Issued document item discount percentual value" - ) - discount_highlight: Optional[StrictBool] = Field( - default=None, description="Issued document item highlight discount" - ) - in_dn: Optional[StrictBool] = Field( - default=None, description="Issued document item add in delivery note" - ) - stock: Optional[StrictBool] = Field( - default=None, description="Issued document item move stock" - ) - ei_raw: Optional[Dict[str, Any]] = Field( - default=None, - description="Issued document advanced raw attributes for e-invoices", - ) - __properties: ClassVar[List[str]] = [ - "id", - "product_id", - "code", - "name", - "category", - "description", - "qty", - "measure", - "net_price", - "gross_price", - "vat", - "not_taxable", - "apply_withholding_taxes", - "discount", - "discount_highlight", - "in_dn", - "stock", - "ei_raw", - ] + not_taxable: Optional[StrictBool] = Field(default=None, description="Issued document item is not taxable") + apply_withholding_taxes: Optional[StrictBool] = Field(default=None, description="Issued document item apply withholding taxes, rivalsa and cassa") + discount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Issued document item discount percentual value") + discount_highlight: Optional[StrictBool] = Field(default=None, description="Issued document item highlight discount") + in_dn: Optional[StrictBool] = Field(default=None, description="Issued document item add in delivery note") + stock: Optional[StrictBool] = Field(default=None, description="Issued document item move stock") + ei_raw: Optional[Dict[str, Any]] = Field(default=None, description="Issued document advanced raw attributes for e-invoices") + __properties: ClassVar[List[str]] = ["id", "product_id", "code", "name", "category", "description", "qty", "measure", "net_price", "gross_price", "vat", "not_taxable", "apply_withholding_taxes", "discount", "discount_highlight", "in_dn", "stock", "ei_raw"] model_config = ConfigDict( populate_by_name=True, @@ -117,6 +54,7 @@ class IssuedDocumentItemsListItem(BaseModel): 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)) @@ -141,7 +79,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -150,7 +89,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of vat if self.vat: - _dict["vat"] = self.vat.to_dict() + _dict['vat'] = self.vat.to_dict() return _dict @classmethod @@ -162,30 +101,26 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "product_id": obj.get("product_id"), - "code": obj.get("code"), - "name": obj.get("name"), - "category": obj.get("category"), - "description": obj.get("description"), - "qty": obj.get("qty"), - "measure": obj.get("measure"), - "net_price": obj.get("net_price"), - "gross_price": obj.get("gross_price"), - "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"), - "discount_highlight": obj.get("discount_highlight"), - "in_dn": obj.get("in_dn"), - "stock": obj.get("stock"), - "ei_raw": obj.get("ei_raw"), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "product_id": obj.get("product_id"), + "code": obj.get("code"), + "name": obj.get("name"), + "category": obj.get("category"), + "description": obj.get("description"), + "qty": obj.get("qty"), + "measure": obj.get("measure"), + "net_price": obj.get("net_price"), + "gross_price": obj.get("gross_price"), + "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"), + "discount_highlight": obj.get("discount_highlight"), + "in_dn": obj.get("in_dn"), + "stock": obj.get("stock"), + "ei_raw": obj.get("ei_raw") + }) return _obj + + diff --git a/fattureincloud_python_sdk/models/issued_document_options.py b/fattureincloud_python_sdk/models/issued_document_options.py index b6a41c8f..e158efd0 100644 --- a/fattureincloud_python_sdk/models/issued_document_options.py +++ b/fattureincloud_python_sdk/models/issued_document_options.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -23,35 +23,16 @@ from typing import Optional, Set from typing_extensions import Self - class IssuedDocumentOptions(BaseModel): """ IssuedDocumentOptions - """ # noqa: E501 - - fix_payments: Optional[StrictBool] = Field( - default=None, - description="Fixes your last payment amount to match your document total", - ) - create_from: Optional[List[StrictStr]] = Field( - default=None, description="Original documents ids [only for join/transform]" - ) - transform: Optional[StrictBool] = Field( - default=None, description="Tranform a document [only for transform]" - ) - keep_copy: Optional[StrictBool] = Field( - default=None, description="Keep original document [only for transform]" - ) - join_type: Optional[StrictStr] = Field( - default=None, description="Join type [only for join]" - ) - __properties: ClassVar[List[str]] = [ - "fix_payments", - "create_from", - "transform", - "keep_copy", - "join_type", - ] + """ # noqa: E501 + fix_payments: Optional[StrictBool] = Field(default=None, description="Fixes your last payment amount to match your document total") + create_from: Optional[List[StrictStr]] = Field(default=None, description="Original documents ids [only for join/transform]") + transform: Optional[StrictBool] = Field(default=None, description="Tranform a document [only for transform]") + keep_copy: Optional[StrictBool] = Field(default=None, description="Keep original document [only for transform]") + join_type: Optional[StrictStr] = Field(default=None, description="Join type [only for join]") + __properties: ClassVar[List[str]] = ["fix_payments", "create_from", "transform", "keep_copy", "join_type"] model_config = ConfigDict( populate_by_name=True, @@ -59,6 +40,7 @@ class IssuedDocumentOptions(BaseModel): 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)) @@ -83,7 +65,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -101,13 +84,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "fix_payments": obj.get("fix_payments"), - "create_from": obj.get("create_from"), - "transform": obj.get("transform"), - "keep_copy": obj.get("keep_copy"), - "join_type": obj.get("join_type"), - } - ) + _obj = cls.model_validate({ + "fix_payments": obj.get("fix_payments"), + "create_from": obj.get("create_from"), + "transform": obj.get("transform"), + "keep_copy": obj.get("keep_copy"), + "join_type": obj.get("join_type") + }) return _obj + + 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 e96cd04a..413cd7b0 100644 --- a/fattureincloud_python_sdk/models/issued_document_payments_list_item.py +++ b/fattureincloud_python_sdk/models/issued_document_payments_list_item.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -21,50 +21,25 @@ from datetime import date from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt from typing import Any, ClassVar, Dict, List, Optional, Union -from fattureincloud_python_sdk.models.issued_document_payments_list_item_payment_terms import ( - IssuedDocumentPaymentsListItemPaymentTerms, -) +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 from typing import Optional, Set from typing_extensions import Self - class IssuedDocumentPaymentsListItem(BaseModel): """ IssuedDocumentPaymentsListItem - """ # noqa: E501 - - id: Optional[StrictInt] = Field( - default=None, description="Issued document payment item id" - ) - due_date: Optional[date] = Field( - default=None, description="Issued document payment due date" - ) - amount: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Issued document payment amount" - ) + """ # noqa: E501 + id: Optional[StrictInt] = Field(default=None, description="Issued document payment item id") + due_date: Optional[date] = Field(default=None, description="Issued document payment due date") + amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Issued document payment amount") status: Optional[IssuedDocumentStatus] = IssuedDocumentStatus.NOT_PAID payment_account: Optional[PaymentAccount] = None - paid_date: Optional[date] = Field( - default=None, - description="Issued document payment date [Only if status is paid]", - ) - ei_raw: Optional[Dict[str, Any]] = Field( - default=None, - description="Issued document payment advanced raw attributes for e-invoices", - ) + paid_date: Optional[date] = Field(default=None, description="Issued document payment date [Only if status is paid]") + ei_raw: Optional[Dict[str, Any]] = Field(default=None, description="Issued document payment advanced raw attributes for e-invoices") payment_terms: Optional[IssuedDocumentPaymentsListItemPaymentTerms] = None - __properties: ClassVar[List[str]] = [ - "id", - "due_date", - "amount", - "status", - "payment_account", - "paid_date", - "ei_raw", - "payment_terms", - ] + __properties: ClassVar[List[str]] = ["id", "due_date", "amount", "status", "payment_account", "paid_date", "ei_raw", "payment_terms"] model_config = ConfigDict( populate_by_name=True, @@ -72,6 +47,7 @@ class IssuedDocumentPaymentsListItem(BaseModel): 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)) @@ -96,7 +72,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -105,10 +82,10 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of payment_account if self.payment_account: - _dict["payment_account"] = self.payment_account.to_dict() + _dict['payment_account'] = self.payment_account.to_dict() # override the default output from pydantic by calling `to_dict()` of payment_terms if self.payment_terms: - _dict["payment_terms"] = self.payment_terms.to_dict() + _dict['payment_terms'] = self.payment_terms.to_dict() return _dict @classmethod @@ -120,30 +97,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "due_date": obj.get("due_date"), - "amount": obj.get("amount"), - "status": ( - obj.get("status") - if obj.get("status") is not None - else IssuedDocumentStatus.NOT_PAID - ), - "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["payment_terms"] - ) - if obj.get("payment_terms") is not None - else None - ), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "due_date": obj.get("due_date"), + "amount": obj.get("amount"), + "status": obj.get("status") if obj.get("status") is not None else IssuedDocumentStatus.NOT_PAID, + "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["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 de16c9b5..9d415665 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 @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,16 +24,11 @@ from typing import Optional, Set from typing_extensions import Self - class IssuedDocumentPaymentsListItemPaymentTerms(BaseModel): """ IssuedDocumentPaymentsListItemPaymentTerms - """ # noqa: E501 - - days: Optional[StrictInt] = Field( - default=None, - description="Issued document payment number of days by which the payment must be made", - ) + """ # noqa: E501 + days: Optional[StrictInt] = Field(default=None, description="Issued document payment number of days by which the payment must be made") type: Optional[PaymentTermsType] = PaymentTermsType.STANDARD __properties: ClassVar[List[str]] = ["days", "type"] @@ -43,6 +38,7 @@ class IssuedDocumentPaymentsListItemPaymentTerms(BaseModel): 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)) @@ -67,7 +63,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -85,14 +82,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "days": obj.get("days"), - "type": ( - obj.get("type") - if obj.get("type") is not None - else PaymentTermsType.STANDARD - ), - } - ) + _obj = cls.model_validate({ + "days": obj.get("days"), + "type": obj.get("type") if obj.get("type") is not None else PaymentTermsType.STANDARD + }) return _obj + + 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 5ea577db..b353484d 100644 --- a/fattureincloud_python_sdk/models/issued_document_pre_create_info.py +++ b/fattureincloud_python_sdk/models/issued_document_pre_create_info.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,15 +22,9 @@ from typing import Any, ClassVar, Dict, List, Optional 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 ( - IssuedDocumentPreCreateInfoDefaultValues, -) -from fattureincloud_python_sdk.models.issued_document_pre_create_info_extra_data_default_values import ( - IssuedDocumentPreCreateInfoExtraDataDefaultValues, -) -from fattureincloud_python_sdk.models.issued_document_pre_create_info_items_default_values import ( - IssuedDocumentPreCreateInfoItemsDefaultValues, -) +from fattureincloud_python_sdk.models.issued_document_pre_create_info_default_values import IssuedDocumentPreCreateInfoDefaultValues +from fattureincloud_python_sdk.models.issued_document_pre_create_info_extra_data_default_values import IssuedDocumentPreCreateInfoExtraDataDefaultValues +from fattureincloud_python_sdk.models.issued_document_pre_create_info_items_default_values import IssuedDocumentPreCreateInfoItemsDefaultValues from fattureincloud_python_sdk.models.language import Language from fattureincloud_python_sdk.models.payment_account import PaymentAccount from fattureincloud_python_sdk.models.payment_method import PaymentMethod @@ -39,66 +33,26 @@ from typing import Optional, Set from typing_extensions import Self - class IssuedDocumentPreCreateInfo(BaseModel): """ IssuedDocumentPreCreateInfo - """ # noqa: E501 - + """ # noqa: E501 numerations: Optional[Dict[str, Dict[str, StrictInt]]] = None dn_numerations: Optional[Dict[str, Dict[str, StrictInt]]] = None default_values: Optional[IssuedDocumentPreCreateInfoDefaultValues] = None - extra_data_default_values: Optional[ - IssuedDocumentPreCreateInfoExtraDataDefaultValues - ] = None + extra_data_default_values: Optional[IssuedDocumentPreCreateInfoExtraDataDefaultValues] = None items_default_values: Optional[IssuedDocumentPreCreateInfoItemsDefaultValues] = None - countries_list: Optional[List[StrictStr]] = Field( - default=None, description="Countries list" - ) - currencies_list: Optional[List[Currency]] = Field( - default=None, description="Currencies list" - ) - templates_list: Optional[List[DocumentTemplate]] = Field( - default=None, description="Document templates list" - ) - dn_templates_list: Optional[List[DocumentTemplate]] = Field( - default=None, description="Delivery note templates list" - ) - ai_templates_list: Optional[List[DocumentTemplate]] = Field( - default=None, description="Accompanying invoice templates list" - ) - payment_methods_list: Optional[List[PaymentMethod]] = Field( - default=None, description="Payment methods list" - ) - payment_accounts_list: Optional[List[Optional[PaymentAccount]]] = Field( - default=None, description="Payment accounts list" - ) - vat_types_list: Optional[List[Optional[VatType]]] = Field( - default=None, description="Vat types list" - ) - languages_list: Optional[List[Language]] = Field( - default=None, description="Languages list" - ) - price_lists: Optional[List[PriceList]] = Field( - default=None, description="Price lists" - ) - __properties: ClassVar[List[str]] = [ - "numerations", - "dn_numerations", - "default_values", - "extra_data_default_values", - "items_default_values", - "countries_list", - "currencies_list", - "templates_list", - "dn_templates_list", - "ai_templates_list", - "payment_methods_list", - "payment_accounts_list", - "vat_types_list", - "languages_list", - "price_lists", - ] + countries_list: Optional[List[StrictStr]] = Field(default=None, description="Countries list") + currencies_list: Optional[List[Currency]] = Field(default=None, description="Currencies list") + templates_list: Optional[List[DocumentTemplate]] = Field(default=None, description="Document templates list") + dn_templates_list: Optional[List[DocumentTemplate]] = Field(default=None, description="Delivery note templates list") + ai_templates_list: Optional[List[DocumentTemplate]] = Field(default=None, description="Accompanying invoice templates list") + payment_methods_list: Optional[List[PaymentMethod]] = Field(default=None, description="Payment methods list") + payment_accounts_list: Optional[List[Optional[PaymentAccount]]] = Field(default=None, description="Payment accounts list") + vat_types_list: Optional[List[Optional[VatType]]] = Field(default=None, description="Vat types list") + languages_list: Optional[List[Language]] = Field(default=None, description="Languages list") + price_lists: Optional[List[PriceList]] = Field(default=None, description="Price lists") + __properties: ClassVar[List[str]] = ["numerations", "dn_numerations", "default_values", "extra_data_default_values", "items_default_values", "countries_list", "currencies_list", "templates_list", "dn_templates_list", "ai_templates_list", "payment_methods_list", "payment_accounts_list", "vat_types_list", "languages_list", "price_lists"] model_config = ConfigDict( populate_by_name=True, @@ -106,6 +60,7 @@ class IssuedDocumentPreCreateInfo(BaseModel): 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)) @@ -130,7 +85,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -139,78 +95,76 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of default_values if self.default_values: - _dict["default_values"] = self.default_values.to_dict() + _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() + _dict['items_default_values'] = self.items_default_values.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in currencies_list (list) _items = [] if self.currencies_list: for _item_currencies_list in self.currencies_list: if _item_currencies_list: _items.append(_item_currencies_list.to_dict()) - _dict["currencies_list"] = _items + _dict['currencies_list'] = _items # override the default output from pydantic by calling `to_dict()` of each item in templates_list (list) _items = [] if self.templates_list: for _item_templates_list in self.templates_list: if _item_templates_list: _items.append(_item_templates_list.to_dict()) - _dict["templates_list"] = _items + _dict['templates_list'] = _items # override the default output from pydantic by calling `to_dict()` of each item in dn_templates_list (list) _items = [] if self.dn_templates_list: for _item_dn_templates_list in self.dn_templates_list: if _item_dn_templates_list: _items.append(_item_dn_templates_list.to_dict()) - _dict["dn_templates_list"] = _items + _dict['dn_templates_list'] = _items # override the default output from pydantic by calling `to_dict()` of each item in ai_templates_list (list) _items = [] if self.ai_templates_list: for _item_ai_templates_list in self.ai_templates_list: if _item_ai_templates_list: _items.append(_item_ai_templates_list.to_dict()) - _dict["ai_templates_list"] = _items + _dict['ai_templates_list'] = _items # override the default output from pydantic by calling `to_dict()` of each item in payment_methods_list (list) _items = [] if self.payment_methods_list: for _item_payment_methods_list in self.payment_methods_list: if _item_payment_methods_list: _items.append(_item_payment_methods_list.to_dict()) - _dict["payment_methods_list"] = _items + _dict['payment_methods_list'] = _items # override the default output from pydantic by calling `to_dict()` of each item in payment_accounts_list (list) _items = [] if self.payment_accounts_list: for _item_payment_accounts_list in self.payment_accounts_list: if _item_payment_accounts_list: _items.append(_item_payment_accounts_list.to_dict()) - _dict["payment_accounts_list"] = _items + _dict['payment_accounts_list'] = _items # override the default output from pydantic by calling `to_dict()` of each item in vat_types_list (list) _items = [] if self.vat_types_list: for _item_vat_types_list in self.vat_types_list: if _item_vat_types_list: _items.append(_item_vat_types_list.to_dict()) - _dict["vat_types_list"] = _items + _dict['vat_types_list'] = _items # override the default output from pydantic by calling `to_dict()` of each item in languages_list (list) _items = [] if self.languages_list: for _item_languages_list in self.languages_list: if _item_languages_list: _items.append(_item_languages_list.to_dict()) - _dict["languages_list"] = _items + _dict['languages_list'] = _items # override the default output from pydantic by calling `to_dict()` of each item in price_lists (list) _items = [] if self.price_lists: for _item_price_lists in self.price_lists: if _item_price_lists: _items.append(_item_price_lists.to_dict()) - _dict["price_lists"] = _items + _dict['price_lists'] = _items return _dict @classmethod @@ -222,92 +176,23 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "numerations": obj.get("numerations"), - "dn_numerations": obj.get("dn_numerations"), - "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["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 - ), - "price_lists": ( - [PriceList.from_dict(_item) for _item in obj["price_lists"]] - if obj.get("price_lists") is not None - else None - ), - } - ) + _obj = cls.model_validate({ + "numerations": obj.get("numerations"), + "dn_numerations": obj.get("dn_numerations"), + "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["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, + "price_lists": [PriceList.from_dict(_item) for _item in obj["price_lists"]] if obj.get("price_lists") 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 9a3dc170..bdf370d4 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 @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -18,63 +18,29 @@ import re # noqa: F401 import json -from pydantic import ( - BaseModel, - ConfigDict, - Field, - StrictBool, - StrictFloat, - StrictInt, - StrictStr, -) +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union from fattureincloud_python_sdk.models.document_template import DocumentTemplate from fattureincloud_python_sdk.models.payment_method import PaymentMethod from typing import Optional, Set from typing_extensions import Self - class IssuedDocumentPreCreateInfoDefaultValues(BaseModel): """ Issued document default values - """ # noqa: E501 - + """ # noqa: E501 default_template: Optional[DocumentTemplate] = None dn_template: Optional[DocumentTemplate] = None ai_template: Optional[DocumentTemplate] = None notes: Optional[StrictStr] = Field(default=None, description="Default notes.") - rivalsa: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Default rivalsa percentage." - ) - cassa: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Default cassa percentage." - ) - withholding_tax: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Default withholding tax percentage." - ) - withholding_tax_taxable: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Default withholding tax taxable percentage." - ) - other_withholding_tax: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Default other withholding tax percentage." - ) - use_gross_prices: Optional[StrictBool] = Field( - default=None, description="Use gross price by default." - ) + rivalsa: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Default rivalsa percentage.") + cassa: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Default cassa percentage.") + withholding_tax: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Default withholding tax percentage.") + withholding_tax_taxable: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Default withholding tax taxable percentage.") + other_withholding_tax: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Default other withholding tax percentage.") + use_gross_prices: Optional[StrictBool] = Field(default=None, description="Use gross price by default.") payment_method: Optional[PaymentMethod] = None - __properties: ClassVar[List[str]] = [ - "default_template", - "dn_template", - "ai_template", - "notes", - "rivalsa", - "cassa", - "withholding_tax", - "withholding_tax_taxable", - "other_withholding_tax", - "use_gross_prices", - "payment_method", - ] + __properties: ClassVar[List[str]] = ["default_template", "dn_template", "ai_template", "notes", "rivalsa", "cassa", "withholding_tax", "withholding_tax_taxable", "other_withholding_tax", "use_gross_prices", "payment_method"] model_config = ConfigDict( populate_by_name=True, @@ -82,6 +48,7 @@ class IssuedDocumentPreCreateInfoDefaultValues(BaseModel): 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)) @@ -106,7 +73,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -115,16 +83,16 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of default_template if self.default_template: - _dict["default_template"] = self.default_template.to_dict() + _dict['default_template'] = self.default_template.to_dict() # override the default output from pydantic by calling `to_dict()` of dn_template if self.dn_template: - _dict["dn_template"] = self.dn_template.to_dict() + _dict['dn_template'] = self.dn_template.to_dict() # override the default output from pydantic by calling `to_dict()` of ai_template if self.ai_template: - _dict["ai_template"] = self.ai_template.to_dict() + _dict['ai_template'] = self.ai_template.to_dict() # override the default output from pydantic by calling `to_dict()` of payment_method if self.payment_method: - _dict["payment_method"] = self.payment_method.to_dict() + _dict['payment_method'] = self.payment_method.to_dict() return _dict @classmethod @@ -136,35 +104,19 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "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"), - "withholding_tax": obj.get("withholding_tax"), - "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["payment_method"]) - if obj.get("payment_method") is not None - else None - ), - } - ) + _obj = cls.model_validate({ + "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"), + "withholding_tax": obj.get("withholding_tax"), + "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["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 cc142d61..1de2dc6b 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 @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -23,22 +23,15 @@ from typing import Optional, Set from typing_extensions import Self - class IssuedDocumentPreCreateInfoExtraDataDefaultValues(BaseModel): """ Issued document extra data default values - """ # noqa: E501 - + """ # noqa: E501 ts_communication: Optional[StrictBool] = None ts_tipo_spesa: Optional[StrictStr] = None ts_flag_tipo_spesa: Optional[StrictInt] = None ts_pagamento_tracciato: Optional[StrictBool] = None - __properties: ClassVar[List[str]] = [ - "ts_communication", - "ts_tipo_spesa", - "ts_flag_tipo_spesa", - "ts_pagamento_tracciato", - ] + __properties: ClassVar[List[str]] = ["ts_communication", "ts_tipo_spesa", "ts_flag_tipo_spesa", "ts_pagamento_tracciato"] model_config = ConfigDict( populate_by_name=True, @@ -46,6 +39,7 @@ class IssuedDocumentPreCreateInfoExtraDataDefaultValues(BaseModel): 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)) @@ -70,7 +64,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -88,12 +83,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "ts_communication": obj.get("ts_communication"), - "ts_tipo_spesa": obj.get("ts_tipo_spesa"), - "ts_flag_tipo_spesa": obj.get("ts_flag_tipo_spesa"), - "ts_pagamento_tracciato": obj.get("ts_pagamento_tracciato"), - } - ) + _obj = cls.model_validate({ + "ts_communication": obj.get("ts_communication"), + "ts_tipo_spesa": obj.get("ts_tipo_spesa"), + "ts_flag_tipo_spesa": obj.get("ts_flag_tipo_spesa"), + "ts_pagamento_tracciato": obj.get("ts_pagamento_tracciato") + }) return _obj + + 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 59e22b3c..81e8bd4d 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 @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class IssuedDocumentPreCreateInfoItemsDefaultValues(BaseModel): """ Issued document items default values - """ # noqa: E501 - + """ # noqa: E501 vat: Optional[VatType] = None __properties: ClassVar[List[str]] = ["vat"] @@ -39,6 +37,7 @@ class IssuedDocumentPreCreateInfoItemsDefaultValues(BaseModel): 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)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -72,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of vat if self.vat: - _dict["vat"] = self.vat.to_dict() + _dict['vat'] = self.vat.to_dict() return _dict @classmethod @@ -84,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "vat": ( - VatType.from_dict(obj["vat"]) - if obj.get("vat") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 ad91e00f..78396b4e 100644 --- a/fattureincloud_python_sdk/models/issued_document_status.py +++ b/fattureincloud_python_sdk/models/issued_document_status.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -27,11 +27,13 @@ class IssuedDocumentStatus(str, Enum): """ allowed enum values """ - NOT_PAID = "not_paid" - PAID = "paid" - REVERSED = "reversed" + NOT_PAID = 'not_paid' + PAID = 'paid' + REVERSED = 'reversed' @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of IssuedDocumentStatus from a JSON string""" return cls(json.loads(json_str)) + + diff --git a/fattureincloud_python_sdk/models/issued_document_totals.py b/fattureincloud_python_sdk/models/issued_document_totals.py index 264babb1..ff919533 100644 --- a/fattureincloud_python_sdk/models/issued_document_totals.py +++ b/fattureincloud_python_sdk/models/issued_document_totals.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -23,85 +23,28 @@ from typing import Optional, Set from typing_extensions import Self -from fattureincloud_python_sdk.models.vat_item import VatItem - - class IssuedDocumentTotals(BaseModel): """ IssuedDocumentTotals - """ # noqa: E501 - - amount_net: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Issued document total net amount" - ) - amount_rivalsa: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Issued document rivalsa amount" - ) - amount_net_with_rivalsa: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Issued document net amount with rivalsa" - ) - amount_cassa: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Issued document cassa amount" - ) - taxable_amount: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Issued document taxable amount" - ) - not_taxable_amount: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Issued document not taxable amount" - ) - amount_vat: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Issued document total vat amount" - ) - amount_gross: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Issued document total gross amount" - ) - taxable_amount_withholding_tax: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Issued document Taxable withholding tax amount" - ) - 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", - ) - ) - amount_other_withholding_tax: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Issued document other withholding tax amount" - ) - stamp_duty: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Issued document stamp duty value [0 if not present]." - ) - amount_due: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Issued document total amount due" - ) - is_enasarco_maximal_exceeded: Optional[StrictBool] = Field( - default=None, description="Is enasarco maximal excedeed" - ) - payments_sum: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Issued document payments sum" - ) + """ # noqa: E501 + amount_net: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Issued document total net amount") + amount_rivalsa: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Issued document rivalsa amount") + amount_net_with_rivalsa: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Issued document net amount with rivalsa") + amount_cassa: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Issued document cassa amount") + taxable_amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Issued document taxable amount") + not_taxable_amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Issued document not taxable amount") + amount_vat: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Issued document total vat amount") + amount_gross: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Issued document total gross amount") + taxable_amount_withholding_tax: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Issued document Taxable withholding tax amount") + 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") + amount_other_withholding_tax: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Issued document other withholding tax amount") + stamp_duty: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Issued document stamp duty value [0 if not present].") + amount_due: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Issued document total amount due") + is_enasarco_maximal_exceeded: Optional[StrictBool] = Field(default=None, description="Is enasarco maximal excedeed") + payments_sum: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Issued document payments sum") vat_list: Optional[Dict[str, Dict[str, Any]]] = None - __properties: ClassVar[List[str]] = [ - "amount_net", - "amount_rivalsa", - "amount_net_with_rivalsa", - "amount_cassa", - "taxable_amount", - "not_taxable_amount", - "amount_vat", - "amount_gross", - "taxable_amount_withholding_tax", - "amount_withholding_tax", - "taxable_amount_other_withholding_tax", - "amount_other_withholding_tax", - "stamp_duty", - "amount_due", - "is_enasarco_maximal_exceeded", - "payments_sum", - "vat_list", - ] + __properties: ClassVar[List[str]] = ["amount_net", "amount_rivalsa", "amount_net_with_rivalsa", "amount_cassa", "taxable_amount", "not_taxable_amount", "amount_vat", "amount_gross", "taxable_amount_withholding_tax", "amount_withholding_tax", "taxable_amount_other_withholding_tax", "amount_other_withholding_tax", "stamp_duty", "amount_due", "is_enasarco_maximal_exceeded", "payments_sum", "vat_list"] model_config = ConfigDict( populate_by_name=True, @@ -109,6 +52,7 @@ class IssuedDocumentTotals(BaseModel): 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)) @@ -133,7 +77,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -146,7 +91,7 @@ def to_dict(self) -> Dict[str, Any]: for _key_vat_list in self.vat_list: if self.vat_list[_key_vat_list]: _field_dict[_key_vat_list] = self.vat_list[_key_vat_list].to_dict() - _dict["vat_list"] = _field_dict + _dict['vat_list'] = _field_dict return _dict @classmethod @@ -158,36 +103,30 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "amount_net": obj.get("amount_net"), - "amount_rivalsa": obj.get("amount_rivalsa"), - "amount_net_with_rivalsa": obj.get("amount_net_with_rivalsa"), - "amount_cassa": obj.get("amount_cassa"), - "taxable_amount": obj.get("taxable_amount"), - "not_taxable_amount": obj.get("not_taxable_amount"), - "amount_vat": obj.get("amount_vat"), - "amount_gross": obj.get("amount_gross"), - "taxable_amount_withholding_tax": obj.get( - "taxable_amount_withholding_tax" - ), - "amount_withholding_tax": obj.get("amount_withholding_tax"), - "taxable_amount_other_withholding_tax": obj.get( - "taxable_amount_other_withholding_tax" - ), - "amount_other_withholding_tax": obj.get("amount_other_withholding_tax"), - "stamp_duty": obj.get("stamp_duty"), - "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["vat_list"].items() - ) - if obj.get("vat_list") is not None - else None - ), - } - ) + _obj = cls.model_validate({ + "amount_net": obj.get("amount_net"), + "amount_rivalsa": obj.get("amount_rivalsa"), + "amount_net_with_rivalsa": obj.get("amount_net_with_rivalsa"), + "amount_cassa": obj.get("amount_cassa"), + "taxable_amount": obj.get("taxable_amount"), + "not_taxable_amount": obj.get("not_taxable_amount"), + "amount_vat": obj.get("amount_vat"), + "amount_gross": obj.get("amount_gross"), + "taxable_amount_withholding_tax": obj.get("taxable_amount_withholding_tax"), + "amount_withholding_tax": obj.get("amount_withholding_tax"), + "taxable_amount_other_withholding_tax": obj.get("taxable_amount_other_withholding_tax"), + "amount_other_withholding_tax": obj.get("amount_other_withholding_tax"), + "stamp_duty": obj.get("stamp_duty"), + "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["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 cc37c1f7..165c7837 100644 --- a/fattureincloud_python_sdk/models/issued_document_type.py +++ b/fattureincloud_python_sdk/models/issued_document_type.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -27,19 +27,21 @@ class IssuedDocumentType(str, Enum): """ allowed enum values """ - INVOICE = "invoice" - QUOTE = "quote" - PROFORMA = "proforma" - RECEIPT = "receipt" - DELIVERY_NOTE = "delivery_note" - CREDIT_NOTE = "credit_note" - ORDER = "order" - WORK_REPORT = "work_report" - SUPPLIER_ORDER = "supplier_order" - SELF_OWN_INVOICE = "self_own_invoice" - SELF_SUPPLIER_INVOICE = "self_supplier_invoice" + INVOICE = 'invoice' + QUOTE = 'quote' + PROFORMA = 'proforma' + RECEIPT = 'receipt' + DELIVERY_NOTE = 'delivery_note' + CREDIT_NOTE = 'credit_note' + ORDER = 'order' + WORK_REPORT = 'work_report' + SUPPLIER_ORDER = 'supplier_order' + SELF_OWN_INVOICE = 'self_own_invoice' + SELF_SUPPLIER_INVOICE = 'self_supplier_invoice' @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of IssuedDocumentType from a JSON string""" return cls(json.loads(json_str)) + + diff --git a/fattureincloud_python_sdk/models/join_issued_documents_response.py b/fattureincloud_python_sdk/models/join_issued_documents_response.py index d26ccd58..cf340dde 100644 --- a/fattureincloud_python_sdk/models/join_issued_documents_response.py +++ b/fattureincloud_python_sdk/models/join_issued_documents_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -21,18 +21,14 @@ from pydantic import BaseModel, ConfigDict 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, -) +from fattureincloud_python_sdk.models.issued_document_options import IssuedDocumentOptions from typing import Optional, Set from typing_extensions import Self - class JoinIssuedDocumentsResponse(BaseModel): """ JoinIssuedDocumentsResponse - """ # noqa: E501 - + """ # noqa: E501 data: Optional[IssuedDocument] = None options: Optional[IssuedDocumentOptions] = None __properties: ClassVar[List[str]] = ["data", "options"] @@ -43,6 +39,7 @@ class JoinIssuedDocumentsResponse(BaseModel): 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)) @@ -67,7 +64,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -76,10 +74,10 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() # override the default output from pydantic by calling `to_dict()` of options if self.options: - _dict["options"] = self.options.to_dict() + _dict['options'] = self.options.to_dict() return _dict @classmethod @@ -91,18 +89,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "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 - ), - } - ) + _obj = cls.model_validate({ + "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 e4bdbf63..a57b1860 100644 --- a/fattureincloud_python_sdk/models/language.py +++ b/fattureincloud_python_sdk/models/language.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -23,16 +23,12 @@ from typing import Optional, Set from typing_extensions import Self - class Language(BaseModel): """ Language - """ # noqa: E501 - + """ # noqa: E501 code: Optional[StrictStr] = Field(default=None, description="Language code") - name: Optional[StrictStr] = Field( - default=None, description="Language extended name" - ) + name: Optional[StrictStr] = Field(default=None, description="Language extended name") __properties: ClassVar[List[str]] = ["code", "name"] model_config = ConfigDict( @@ -41,6 +37,7 @@ class Language(BaseModel): 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)) @@ -65,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -83,5 +81,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"code": obj.get("code"), "name": obj.get("name")}) + _obj = cls.model_validate({ + "code": obj.get("code"), + "name": obj.get("name") + }) return _obj + + diff --git a/fattureincloud_python_sdk/models/list_archive_categories_response.py b/fattureincloud_python_sdk/models/list_archive_categories_response.py index c786739c..94948776 100644 --- a/fattureincloud_python_sdk/models/list_archive_categories_response.py +++ b/fattureincloud_python_sdk/models/list_archive_categories_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -23,12 +23,10 @@ from typing import Optional, Set from typing_extensions import Self - class ListArchiveCategoriesResponse(BaseModel): """ ListArchiveCategoriesResponse - """ # noqa: E501 - + """ # noqa: E501 data: Optional[List[StrictStr]] = None __properties: ClassVar[List[str]] = ["data"] @@ -38,6 +36,7 @@ class ListArchiveCategoriesResponse(BaseModel): 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)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -80,5 +80,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"data": obj.get("data")}) + _obj = cls.model_validate({ + "data": obj.get("data") + }) return _obj + + diff --git a/fattureincloud_python_sdk/models/list_archive_documents_response.py b/fattureincloud_python_sdk/models/list_archive_documents_response.py index 26986296..0f408b44 100644 --- a/fattureincloud_python_sdk/models/list_archive_documents_response.py +++ b/fattureincloud_python_sdk/models/list_archive_documents_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,56 +24,23 @@ from typing import Optional, Set from typing_extensions import Self - class ListArchiveDocumentsResponse(BaseModel): - """ """ # noqa: E501 - - current_page: Optional[StrictInt] = Field( - default=None, description="Current page number." - ) - first_page_url: Optional[StrictStr] = Field( - default=None, description="First page url." - ) - var_from: Optional[StrictInt] = Field( - default=None, description="First result of the page.", alias="from" - ) - last_page: Optional[StrictInt] = Field( - default=None, description="Last page number." - ) - last_page_url: Optional[StrictStr] = Field( - default=None, description="Last page url." - ) - next_page_url: Optional[StrictStr] = Field( - default=None, description="Next page url" - ) + """ + + """ # noqa: E501 + current_page: Optional[StrictInt] = Field(default=None, description="Current page number.") + first_page_url: Optional[StrictStr] = Field(default=None, description="First page url.") + var_from: Optional[StrictInt] = Field(default=None, description="First result of the page.", alias="from") + last_page: Optional[StrictInt] = Field(default=None, description="Last page number.") + last_page_url: Optional[StrictStr] = Field(default=None, description="Last page url.") + next_page_url: Optional[StrictStr] = Field(default=None, description="Next page url") path: Optional[StrictStr] = Field(default=None, description="Request path.") - per_page: Optional[StrictInt] = Field( - default=None, description="Number of result per page." - ) - prev_page_url: Optional[StrictStr] = Field( - default=None, description="Previous page url." - ) - to: Optional[StrictInt] = Field( - default=None, description="Last result of the page." - ) - total: Optional[StrictInt] = Field( - default=None, description="Total number of results" - ) + per_page: Optional[StrictInt] = Field(default=None, description="Number of result per page.") + prev_page_url: Optional[StrictStr] = Field(default=None, description="Previous page url.") + to: Optional[StrictInt] = Field(default=None, description="Last result of the page.") + total: Optional[StrictInt] = Field(default=None, description="Total number of results") data: Optional[List[ArchiveDocument]] = None - __properties: ClassVar[List[str]] = [ - "current_page", - "first_page_url", - "from", - "last_page", - "last_page_url", - "next_page_url", - "path", - "per_page", - "prev_page_url", - "to", - "total", - "data", - ] + __properties: ClassVar[List[str]] = ["current_page", "first_page_url", "from", "last_page", "last_page_url", "next_page_url", "path", "per_page", "prev_page_url", "to", "total", "data"] model_config = ConfigDict( populate_by_name=True, @@ -81,6 +48,7 @@ class ListArchiveDocumentsResponse(BaseModel): 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)) @@ -105,7 +73,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -118,7 +87,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_data in self.data: if _item_data: _items.append(_item_data.to_dict()) - _dict["data"] = _items + _dict['data'] = _items return _dict @classmethod @@ -130,24 +99,20 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "current_page": obj.get("current_page"), - "first_page_url": obj.get("first_page_url"), - "from": obj.get("from"), - "last_page": obj.get("last_page"), - "last_page_url": obj.get("last_page_url"), - "next_page_url": obj.get("next_page_url"), - "path": obj.get("path"), - "per_page": obj.get("per_page"), - "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["data"]] - if obj.get("data") is not None - else None - ), - } - ) + _obj = cls.model_validate({ + "current_page": obj.get("current_page"), + "first_page_url": obj.get("first_page_url"), + "from": obj.get("from"), + "last_page": obj.get("last_page"), + "last_page_url": obj.get("last_page_url"), + "next_page_url": obj.get("next_page_url"), + "path": obj.get("path"), + "per_page": obj.get("per_page"), + "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["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 796debf2..2d9c14a7 100644 --- a/fattureincloud_python_sdk/models/list_archive_documents_response_page.py +++ b/fattureincloud_python_sdk/models/list_archive_documents_response_page.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class ListArchiveDocumentsResponsePage(BaseModel): """ ListArchiveDocumentsResponsePage - """ # noqa: E501 - + """ # noqa: E501 data: Optional[List[ArchiveDocument]] = None __properties: ClassVar[List[str]] = ["data"] @@ -39,6 +37,7 @@ class ListArchiveDocumentsResponsePage(BaseModel): 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)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -76,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_data in self.data: if _item_data: _items.append(_item_data.to_dict()) - _dict["data"] = _items + _dict['data'] = _items return _dict @classmethod @@ -88,13 +88,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - [ArchiveDocument.from_dict(_item) for _item in obj["data"]] - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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_bin_issued_documents.py b/fattureincloud_python_sdk/models/list_bin_issued_documents.py index 41f10188..cf590ebe 100644 --- a/fattureincloud_python_sdk/models/list_bin_issued_documents.py +++ b/fattureincloud_python_sdk/models/list_bin_issued_documents.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class ListBinIssuedDocuments(BaseModel): """ ListBinIssuedDocuments - """ # noqa: E501 - + """ # noqa: E501 data: Optional[List[IssuedDocument]] = None __properties: ClassVar[List[str]] = ["data"] @@ -39,6 +37,7 @@ class ListBinIssuedDocuments(BaseModel): 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)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -76,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_data in self.data: if _item_data: _items.append(_item_data.to_dict()) - _dict["data"] = _items + _dict['data'] = _items return _dict @classmethod @@ -88,13 +88,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - [IssuedDocument.from_dict(_item) for _item in obj["data"]] - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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_bin_received_documents.py b/fattureincloud_python_sdk/models/list_bin_received_documents.py index af1645ec..ba625272 100644 --- a/fattureincloud_python_sdk/models/list_bin_received_documents.py +++ b/fattureincloud_python_sdk/models/list_bin_received_documents.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class ListBinReceivedDocuments(BaseModel): """ ListBinReceivedDocuments - """ # noqa: E501 - + """ # noqa: E501 data: Optional[List[ReceivedDocument]] = None __properties: ClassVar[List[str]] = ["data"] @@ -39,6 +37,7 @@ class ListBinReceivedDocuments(BaseModel): 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)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -76,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_data in self.data: if _item_data: _items.append(_item_data.to_dict()) - _dict["data"] = _items + _dict['data'] = _items return _dict @classmethod @@ -88,13 +88,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - [ReceivedDocument.from_dict(_item) for _item in obj["data"]] - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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_cashbook_entries_response.py b/fattureincloud_python_sdk/models/list_cashbook_entries_response.py index 64caa675..c30385d6 100644 --- a/fattureincloud_python_sdk/models/list_cashbook_entries_response.py +++ b/fattureincloud_python_sdk/models/list_cashbook_entries_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,10 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class ListCashbookEntriesResponse(BaseModel): - """ """ # noqa: E501 - + """ + + """ # noqa: E501 data: Optional[List[CashbookEntry]] = None __properties: ClassVar[List[str]] = ["data"] @@ -37,6 +37,7 @@ class ListCashbookEntriesResponse(BaseModel): 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)) @@ -61,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -74,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_data in self.data: if _item_data: _items.append(_item_data.to_dict()) - _dict["data"] = _items + _dict['data'] = _items return _dict @classmethod @@ -86,13 +88,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - [CashbookEntry.from_dict(_item) for _item in obj["data"]] - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 42f0b42b..1966b758 100644 --- a/fattureincloud_python_sdk/models/list_cities_response.py +++ b/fattureincloud_python_sdk/models/list_cities_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,10 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class ListCitiesResponse(BaseModel): - """ """ # noqa: E501 - + """ + + """ # noqa: E501 data: Optional[List[City]] = None __properties: ClassVar[List[str]] = ["data"] @@ -37,6 +37,7 @@ class ListCitiesResponse(BaseModel): 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)) @@ -61,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -74,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_data in self.data: if _item_data: _items.append(_item_data.to_dict()) - _dict["data"] = _items + _dict['data'] = _items return _dict @classmethod @@ -86,13 +88,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - [City.from_dict(_item) for _item in obj["data"]] - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 c9020e87..d7944ca5 100644 --- a/fattureincloud_python_sdk/models/list_clients_response.py +++ b/fattureincloud_python_sdk/models/list_clients_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,58 +24,23 @@ from typing import Optional, Set from typing_extensions import Self - class ListClientsResponse(BaseModel): """ ListClientsResponse - """ # noqa: E501 - - current_page: Optional[StrictInt] = Field( - default=None, description="Current page number." - ) - first_page_url: Optional[StrictStr] = Field( - default=None, description="First page url." - ) - var_from: Optional[StrictInt] = Field( - default=None, description="First result of the page.", alias="from" - ) - last_page: Optional[StrictInt] = Field( - default=None, description="Last page number." - ) - last_page_url: Optional[StrictStr] = Field( - default=None, description="Last page url." - ) - next_page_url: Optional[StrictStr] = Field( - default=None, description="Next page url" - ) + """ # noqa: E501 + current_page: Optional[StrictInt] = Field(default=None, description="Current page number.") + first_page_url: Optional[StrictStr] = Field(default=None, description="First page url.") + var_from: Optional[StrictInt] = Field(default=None, description="First result of the page.", alias="from") + last_page: Optional[StrictInt] = Field(default=None, description="Last page number.") + last_page_url: Optional[StrictStr] = Field(default=None, description="Last page url.") + next_page_url: Optional[StrictStr] = Field(default=None, description="Next page url") path: Optional[StrictStr] = Field(default=None, description="Request path.") - per_page: Optional[StrictInt] = Field( - default=None, description="Number of result per page." - ) - prev_page_url: Optional[StrictStr] = Field( - default=None, description="Previous page url." - ) - to: Optional[StrictInt] = Field( - default=None, description="Last result of the page." - ) - total: Optional[StrictInt] = Field( - default=None, description="Total number of results" - ) + per_page: Optional[StrictInt] = Field(default=None, description="Number of result per page.") + prev_page_url: Optional[StrictStr] = Field(default=None, description="Previous page url.") + to: Optional[StrictInt] = Field(default=None, description="Last result of the page.") + total: Optional[StrictInt] = Field(default=None, description="Total number of results") data: Optional[List[Client]] = None - __properties: ClassVar[List[str]] = [ - "current_page", - "first_page_url", - "from", - "last_page", - "last_page_url", - "next_page_url", - "path", - "per_page", - "prev_page_url", - "to", - "total", - "data", - ] + __properties: ClassVar[List[str]] = ["current_page", "first_page_url", "from", "last_page", "last_page_url", "next_page_url", "path", "per_page", "prev_page_url", "to", "total", "data"] model_config = ConfigDict( populate_by_name=True, @@ -83,6 +48,7 @@ class ListClientsResponse(BaseModel): 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)) @@ -107,7 +73,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -120,7 +87,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_data in self.data: if _item_data: _items.append(_item_data.to_dict()) - _dict["data"] = _items + _dict['data'] = _items return _dict @classmethod @@ -132,24 +99,20 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "current_page": obj.get("current_page"), - "first_page_url": obj.get("first_page_url"), - "from": obj.get("from"), - "last_page": obj.get("last_page"), - "last_page_url": obj.get("last_page_url"), - "next_page_url": obj.get("next_page_url"), - "path": obj.get("path"), - "per_page": obj.get("per_page"), - "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["data"]] - if obj.get("data") is not None - else None - ), - } - ) + _obj = cls.model_validate({ + "current_page": obj.get("current_page"), + "first_page_url": obj.get("first_page_url"), + "from": obj.get("from"), + "last_page": obj.get("last_page"), + "last_page_url": obj.get("last_page_url"), + "next_page_url": obj.get("next_page_url"), + "path": obj.get("path"), + "per_page": obj.get("per_page"), + "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["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 60c4d0d6..d0f98e01 100644 --- a/fattureincloud_python_sdk/models/list_clients_response_page.py +++ b/fattureincloud_python_sdk/models/list_clients_response_page.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class ListClientsResponsePage(BaseModel): """ ListClientsResponsePage - """ # noqa: E501 - + """ # noqa: E501 data: Optional[List[Client]] = None __properties: ClassVar[List[str]] = ["data"] @@ -39,6 +37,7 @@ class ListClientsResponsePage(BaseModel): 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)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -76,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_data in self.data: if _item_data: _items.append(_item_data.to_dict()) - _dict["data"] = _items + _dict['data'] = _items return _dict @classmethod @@ -88,13 +88,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - [Client.from_dict(_item) for _item in obj["data"]] - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 2945113d..bdc95f47 100644 --- a/fattureincloud_python_sdk/models/list_cost_centers_response.py +++ b/fattureincloud_python_sdk/models/list_cost_centers_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -23,12 +23,10 @@ from typing import Optional, Set from typing_extensions import Self - class ListCostCentersResponse(BaseModel): """ ListCostCentersResponse - """ # noqa: E501 - + """ # noqa: E501 data: Optional[List[StrictStr]] = None __properties: ClassVar[List[str]] = ["data"] @@ -38,6 +36,7 @@ class ListCostCentersResponse(BaseModel): 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)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -80,5 +80,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"data": obj.get("data")}) + _obj = cls.model_validate({ + "data": obj.get("data") + }) return _obj + + diff --git a/fattureincloud_python_sdk/models/list_countries_response.py b/fattureincloud_python_sdk/models/list_countries_response.py index 62ec64b7..e4e48bd2 100644 --- a/fattureincloud_python_sdk/models/list_countries_response.py +++ b/fattureincloud_python_sdk/models/list_countries_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -23,10 +23,10 @@ from typing import Optional, Set from typing_extensions import Self - class ListCountriesResponse(BaseModel): - """ """ # noqa: E501 - + """ + + """ # noqa: E501 data: Optional[List[StrictStr]] = None __properties: ClassVar[List[str]] = ["data"] @@ -36,6 +36,7 @@ class ListCountriesResponse(BaseModel): 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)) @@ -60,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -78,5 +80,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"data": obj.get("data")}) + _obj = cls.model_validate({ + "data": obj.get("data") + }) return _obj + + diff --git a/fattureincloud_python_sdk/models/list_currencies_response.py b/fattureincloud_python_sdk/models/list_currencies_response.py index 5136cc29..38b4b408 100644 --- a/fattureincloud_python_sdk/models/list_currencies_response.py +++ b/fattureincloud_python_sdk/models/list_currencies_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,10 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class ListCurrenciesResponse(BaseModel): - """ """ # noqa: E501 - + """ + + """ # noqa: E501 data: Optional[List[Currency]] = None __properties: ClassVar[List[str]] = ["data"] @@ -37,6 +37,7 @@ class ListCurrenciesResponse(BaseModel): 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)) @@ -61,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -74,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_data in self.data: if _item_data: _items.append(_item_data.to_dict()) - _dict["data"] = _items + _dict['data'] = _items return _dict @classmethod @@ -86,13 +88,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - [Currency.from_dict(_item) for _item in obj["data"]] - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 36e980e3..cd379a2a 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 @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -23,10 +23,10 @@ from typing import Optional, Set from typing_extensions import Self - class ListDeliveryNotesDefaultCausalsResponse(BaseModel): - """ """ # noqa: E501 - + """ + + """ # noqa: E501 data: Optional[List[StrictStr]] = None __properties: ClassVar[List[str]] = ["data"] @@ -36,6 +36,7 @@ class ListDeliveryNotesDefaultCausalsResponse(BaseModel): 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)) @@ -60,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -78,5 +80,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"data": obj.get("data")}) + _obj = cls.model_validate({ + "data": obj.get("data") + }) return _obj + + diff --git a/fattureincloud_python_sdk/models/list_detailed_countries_response.py b/fattureincloud_python_sdk/models/list_detailed_countries_response.py index c55524b7..3fbf4f5a 100644 --- a/fattureincloud_python_sdk/models/list_detailed_countries_response.py +++ b/fattureincloud_python_sdk/models/list_detailed_countries_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class ListDetailedCountriesResponse(BaseModel): """ ListDetailedCountriesResponse - """ # noqa: E501 - + """ # noqa: E501 data: Optional[List[DetailedCountry]] = None __properties: ClassVar[List[str]] = ["data"] @@ -39,6 +37,7 @@ class ListDetailedCountriesResponse(BaseModel): 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)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -76,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_data in self.data: if _item_data: _items.append(_item_data.to_dict()) - _dict["data"] = _items + _dict['data'] = _items return _dict @classmethod @@ -88,13 +88,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - [DetailedCountry.from_dict(_item) for _item in obj["data"]] - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 ca243aa1..3508d53e 100644 --- a/fattureincloud_python_sdk/models/list_emails_response.py +++ b/fattureincloud_python_sdk/models/list_emails_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,58 +24,23 @@ from typing import Optional, Set from typing_extensions import Self - class ListEmailsResponse(BaseModel): """ ListEmailsResponse - """ # noqa: E501 - - current_page: Optional[StrictInt] = Field( - default=None, description="Current page number." - ) - first_page_url: Optional[StrictStr] = Field( - default=None, description="First page url." - ) - var_from: Optional[StrictInt] = Field( - default=None, description="First result of the page.", alias="from" - ) - last_page: Optional[StrictInt] = Field( - default=None, description="Last page number." - ) - last_page_url: Optional[StrictStr] = Field( - default=None, description="Last page url." - ) - next_page_url: Optional[StrictStr] = Field( - default=None, description="Next page url" - ) + """ # noqa: E501 + current_page: Optional[StrictInt] = Field(default=None, description="Current page number.") + first_page_url: Optional[StrictStr] = Field(default=None, description="First page url.") + var_from: Optional[StrictInt] = Field(default=None, description="First result of the page.", alias="from") + last_page: Optional[StrictInt] = Field(default=None, description="Last page number.") + last_page_url: Optional[StrictStr] = Field(default=None, description="Last page url.") + next_page_url: Optional[StrictStr] = Field(default=None, description="Next page url") path: Optional[StrictStr] = Field(default=None, description="Request path.") - per_page: Optional[StrictInt] = Field( - default=None, description="Number of result per page." - ) - prev_page_url: Optional[StrictStr] = Field( - default=None, description="Previous page url." - ) - to: Optional[StrictInt] = Field( - default=None, description="Last result of the page." - ) - total: Optional[StrictInt] = Field( - default=None, description="Total number of results" - ) + per_page: Optional[StrictInt] = Field(default=None, description="Number of result per page.") + prev_page_url: Optional[StrictStr] = Field(default=None, description="Previous page url.") + to: Optional[StrictInt] = Field(default=None, description="Last result of the page.") + total: Optional[StrictInt] = Field(default=None, description="Total number of results") data: Optional[List[Email]] = None - __properties: ClassVar[List[str]] = [ - "current_page", - "first_page_url", - "from", - "last_page", - "last_page_url", - "next_page_url", - "path", - "per_page", - "prev_page_url", - "to", - "total", - "data", - ] + __properties: ClassVar[List[str]] = ["current_page", "first_page_url", "from", "last_page", "last_page_url", "next_page_url", "path", "per_page", "prev_page_url", "to", "total", "data"] model_config = ConfigDict( populate_by_name=True, @@ -83,6 +48,7 @@ class ListEmailsResponse(BaseModel): 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)) @@ -107,7 +73,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -120,7 +87,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_data in self.data: if _item_data: _items.append(_item_data.to_dict()) - _dict["data"] = _items + _dict['data'] = _items return _dict @classmethod @@ -132,24 +99,20 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "current_page": obj.get("current_page"), - "first_page_url": obj.get("first_page_url"), - "from": obj.get("from"), - "last_page": obj.get("last_page"), - "last_page_url": obj.get("last_page_url"), - "next_page_url": obj.get("next_page_url"), - "path": obj.get("path"), - "per_page": obj.get("per_page"), - "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["data"]] - if obj.get("data") is not None - else None - ), - } - ) + _obj = cls.model_validate({ + "current_page": obj.get("current_page"), + "first_page_url": obj.get("first_page_url"), + "from": obj.get("from"), + "last_page": obj.get("last_page"), + "last_page_url": obj.get("last_page_url"), + "next_page_url": obj.get("next_page_url"), + "path": obj.get("path"), + "per_page": obj.get("per_page"), + "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["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 28a9c547..f26afc6a 100644 --- a/fattureincloud_python_sdk/models/list_emails_response_page.py +++ b/fattureincloud_python_sdk/models/list_emails_response_page.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class ListEmailsResponsePage(BaseModel): """ ListEmailsResponsePage - """ # noqa: E501 - + """ # noqa: E501 data: Optional[List[Email]] = None __properties: ClassVar[List[str]] = ["data"] @@ -39,6 +37,7 @@ class ListEmailsResponsePage(BaseModel): 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)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -76,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_data in self.data: if _item_data: _items.append(_item_data.to_dict()) - _dict["data"] = _items + _dict['data'] = _items return _dict @classmethod @@ -88,13 +88,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - [Email.from_dict(_item) for _item in obj["data"]] - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 c2530676..1f416a98 100644 --- a/fattureincloud_python_sdk/models/list_f24_response.py +++ b/fattureincloud_python_sdk/models/list_f24_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -21,64 +21,28 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.f24 import F24 -from fattureincloud_python_sdk.models.list_f24_response_aggregated_data import ( - ListF24ResponseAggregatedData, -) +from fattureincloud_python_sdk.models.list_f24_response_aggregated_data import ListF24ResponseAggregatedData from typing import Optional, Set from typing_extensions import Self - class ListF24Response(BaseModel): - """ """ # noqa: E501 - - current_page: Optional[StrictInt] = Field( - default=None, description="Current page number." - ) - first_page_url: Optional[StrictStr] = Field( - default=None, description="First page url." - ) - var_from: Optional[StrictInt] = Field( - default=None, description="First result of the page.", alias="from" - ) - last_page: Optional[StrictInt] = Field( - default=None, description="Last page number." - ) - last_page_url: Optional[StrictStr] = Field( - default=None, description="Last page url." - ) - next_page_url: Optional[StrictStr] = Field( - default=None, description="Next page url" - ) + """ + + """ # noqa: E501 + current_page: Optional[StrictInt] = Field(default=None, description="Current page number.") + first_page_url: Optional[StrictStr] = Field(default=None, description="First page url.") + var_from: Optional[StrictInt] = Field(default=None, description="First result of the page.", alias="from") + last_page: Optional[StrictInt] = Field(default=None, description="Last page number.") + last_page_url: Optional[StrictStr] = Field(default=None, description="Last page url.") + next_page_url: Optional[StrictStr] = Field(default=None, description="Next page url") path: Optional[StrictStr] = Field(default=None, description="Request path.") - per_page: Optional[StrictInt] = Field( - default=None, description="Number of result per page." - ) - prev_page_url: Optional[StrictStr] = Field( - default=None, description="Previous page url." - ) - to: Optional[StrictInt] = Field( - default=None, description="Last result of the page." - ) - total: Optional[StrictInt] = Field( - default=None, description="Total number of results" - ) + per_page: Optional[StrictInt] = Field(default=None, description="Number of result per page.") + prev_page_url: Optional[StrictStr] = Field(default=None, description="Previous page url.") + to: Optional[StrictInt] = Field(default=None, description="Last result of the page.") + total: Optional[StrictInt] = Field(default=None, description="Total number of results") data: Optional[List[F24]] = None aggregated_data: Optional[ListF24ResponseAggregatedData] = None - __properties: ClassVar[List[str]] = [ - "current_page", - "first_page_url", - "from", - "last_page", - "last_page_url", - "next_page_url", - "path", - "per_page", - "prev_page_url", - "to", - "total", - "data", - "aggregated_data", - ] + __properties: ClassVar[List[str]] = ["current_page", "first_page_url", "from", "last_page", "last_page_url", "next_page_url", "path", "per_page", "prev_page_url", "to", "total", "data", "aggregated_data"] model_config = ConfigDict( populate_by_name=True, @@ -86,6 +50,7 @@ class ListF24Response(BaseModel): 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)) @@ -110,7 +75,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -123,10 +89,10 @@ def to_dict(self) -> Dict[str, Any]: for _item_data in self.data: if _item_data: _items.append(_item_data.to_dict()) - _dict["data"] = _items + _dict['data'] = _items # override the default output from pydantic by calling `to_dict()` of aggregated_data if self.aggregated_data: - _dict["aggregated_data"] = self.aggregated_data.to_dict() + _dict['aggregated_data'] = self.aggregated_data.to_dict() return _dict @classmethod @@ -138,29 +104,21 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "current_page": obj.get("current_page"), - "first_page_url": obj.get("first_page_url"), - "from": obj.get("from"), - "last_page": obj.get("last_page"), - "last_page_url": obj.get("last_page_url"), - "next_page_url": obj.get("next_page_url"), - "path": obj.get("path"), - "per_page": obj.get("per_page"), - "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["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 - ), - } - ) + _obj = cls.model_validate({ + "current_page": obj.get("current_page"), + "first_page_url": obj.get("first_page_url"), + "from": obj.get("from"), + "last_page": obj.get("last_page"), + "last_page_url": obj.get("last_page_url"), + "next_page_url": obj.get("next_page_url"), + "path": obj.get("path"), + "per_page": obj.get("per_page"), + "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["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 5e95742f..7557a2db 100644 --- a/fattureincloud_python_sdk/models/list_f24_response_aggregated_data.py +++ b/fattureincloud_python_sdk/models/list_f24_response_aggregated_data.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -23,15 +23,11 @@ from typing import Optional, Set from typing_extensions import Self - class ListF24ResponseAggregatedData(BaseModel): """ ListF24ResponseAggregatedData - """ # noqa: E501 - - amount: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Total amount." - ) + """ # noqa: E501 + amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Total amount.") __properties: ClassVar[List[str]] = ["amount"] model_config = ConfigDict( @@ -40,6 +36,7 @@ class ListF24ResponseAggregatedData(BaseModel): 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)) @@ -64,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -82,5 +80,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"amount": obj.get("amount")}) + _obj = cls.model_validate({ + "amount": obj.get("amount") + }) return _obj + + diff --git a/fattureincloud_python_sdk/models/list_f24_response_aggregation.py b/fattureincloud_python_sdk/models/list_f24_response_aggregation.py index 484c13d6..a4c9a299 100644 --- a/fattureincloud_python_sdk/models/list_f24_response_aggregation.py +++ b/fattureincloud_python_sdk/models/list_f24_response_aggregation.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -20,18 +20,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from fattureincloud_python_sdk.models.list_f24_response_aggregated_data import ( - ListF24ResponseAggregatedData, -) +from fattureincloud_python_sdk.models.list_f24_response_aggregated_data import ListF24ResponseAggregatedData from typing import Optional, Set from typing_extensions import Self - class ListF24ResponseAggregation(BaseModel): """ ListF24ResponseAggregation - """ # noqa: E501 - + """ # noqa: E501 aggregated_data: Optional[ListF24ResponseAggregatedData] = None __properties: ClassVar[List[str]] = ["aggregated_data"] @@ -41,6 +37,7 @@ class ListF24ResponseAggregation(BaseModel): 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)) @@ -65,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -74,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of aggregated_data if self.aggregated_data: - _dict["aggregated_data"] = self.aggregated_data.to_dict() + _dict['aggregated_data'] = self.aggregated_data.to_dict() return _dict @classmethod @@ -86,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "aggregated_data": ( - ListF24ResponseAggregatedData.from_dict(obj["aggregated_data"]) - if obj.get("aggregated_data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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_page.py b/fattureincloud_python_sdk/models/list_f24_response_page.py index d6ac2ae9..2db4e3ee 100644 --- a/fattureincloud_python_sdk/models/list_f24_response_page.py +++ b/fattureincloud_python_sdk/models/list_f24_response_page.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class ListF24ResponsePage(BaseModel): """ ListF24ResponsePage - """ # noqa: E501 - + """ # noqa: E501 data: Optional[List[F24]] = None __properties: ClassVar[List[str]] = ["data"] @@ -39,6 +37,7 @@ class ListF24ResponsePage(BaseModel): 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)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -76,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_data in self.data: if _item_data: _items.append(_item_data.to_dict()) - _dict["data"] = _items + _dict['data'] = _items return _dict @classmethod @@ -88,13 +88,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - [F24.from_dict(_item) for _item in obj["data"]] - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 c1900e3f..46ac5166 100644 --- a/fattureincloud_python_sdk/models/list_issued_documents_response.py +++ b/fattureincloud_python_sdk/models/list_issued_documents_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,58 +24,23 @@ from typing import Optional, Set from typing_extensions import Self - class ListIssuedDocumentsResponse(BaseModel): """ ListIssuedDocumentsResponse - """ # noqa: E501 - - current_page: Optional[StrictInt] = Field( - default=None, description="Current page number." - ) - first_page_url: Optional[StrictStr] = Field( - default=None, description="First page url." - ) - var_from: Optional[StrictInt] = Field( - default=None, description="First result of the page.", alias="from" - ) - last_page: Optional[StrictInt] = Field( - default=None, description="Last page number." - ) - last_page_url: Optional[StrictStr] = Field( - default=None, description="Last page url." - ) - next_page_url: Optional[StrictStr] = Field( - default=None, description="Next page url" - ) + """ # noqa: E501 + current_page: Optional[StrictInt] = Field(default=None, description="Current page number.") + first_page_url: Optional[StrictStr] = Field(default=None, description="First page url.") + var_from: Optional[StrictInt] = Field(default=None, description="First result of the page.", alias="from") + last_page: Optional[StrictInt] = Field(default=None, description="Last page number.") + last_page_url: Optional[StrictStr] = Field(default=None, description="Last page url.") + next_page_url: Optional[StrictStr] = Field(default=None, description="Next page url") path: Optional[StrictStr] = Field(default=None, description="Request path.") - per_page: Optional[StrictInt] = Field( - default=None, description="Number of result per page." - ) - prev_page_url: Optional[StrictStr] = Field( - default=None, description="Previous page url." - ) - to: Optional[StrictInt] = Field( - default=None, description="Last result of the page." - ) - total: Optional[StrictInt] = Field( - default=None, description="Total number of results" - ) + per_page: Optional[StrictInt] = Field(default=None, description="Number of result per page.") + prev_page_url: Optional[StrictStr] = Field(default=None, description="Previous page url.") + to: Optional[StrictInt] = Field(default=None, description="Last result of the page.") + total: Optional[StrictInt] = Field(default=None, description="Total number of results") data: Optional[List[IssuedDocument]] = None - __properties: ClassVar[List[str]] = [ - "current_page", - "first_page_url", - "from", - "last_page", - "last_page_url", - "next_page_url", - "path", - "per_page", - "prev_page_url", - "to", - "total", - "data", - ] + __properties: ClassVar[List[str]] = ["current_page", "first_page_url", "from", "last_page", "last_page_url", "next_page_url", "path", "per_page", "prev_page_url", "to", "total", "data"] model_config = ConfigDict( populate_by_name=True, @@ -83,6 +48,7 @@ class ListIssuedDocumentsResponse(BaseModel): 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)) @@ -107,7 +73,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -120,7 +87,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_data in self.data: if _item_data: _items.append(_item_data.to_dict()) - _dict["data"] = _items + _dict['data'] = _items return _dict @classmethod @@ -132,24 +99,20 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "current_page": obj.get("current_page"), - "first_page_url": obj.get("first_page_url"), - "from": obj.get("from"), - "last_page": obj.get("last_page"), - "last_page_url": obj.get("last_page_url"), - "next_page_url": obj.get("next_page_url"), - "path": obj.get("path"), - "per_page": obj.get("per_page"), - "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["data"]] - if obj.get("data") is not None - else None - ), - } - ) + _obj = cls.model_validate({ + "current_page": obj.get("current_page"), + "first_page_url": obj.get("first_page_url"), + "from": obj.get("from"), + "last_page": obj.get("last_page"), + "last_page_url": obj.get("last_page_url"), + "next_page_url": obj.get("next_page_url"), + "path": obj.get("path"), + "per_page": obj.get("per_page"), + "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["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 31892367..b37c670b 100644 --- a/fattureincloud_python_sdk/models/list_issued_documents_response_page.py +++ b/fattureincloud_python_sdk/models/list_issued_documents_response_page.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class ListIssuedDocumentsResponsePage(BaseModel): """ ListIssuedDocumentsResponsePage - """ # noqa: E501 - + """ # noqa: E501 data: Optional[List[IssuedDocument]] = None __properties: ClassVar[List[str]] = ["data"] @@ -39,6 +37,7 @@ class ListIssuedDocumentsResponsePage(BaseModel): 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)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -76,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_data in self.data: if _item_data: _items.append(_item_data.to_dict()) - _dict["data"] = _items + _dict['data'] = _items return _dict @classmethod @@ -88,13 +88,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - [IssuedDocument.from_dict(_item) for _item in obj["data"]] - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 9bcdaaeb..6563e7a7 100644 --- a/fattureincloud_python_sdk/models/list_languages_response.py +++ b/fattureincloud_python_sdk/models/list_languages_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,10 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class ListLanguagesResponse(BaseModel): - """ """ # noqa: E501 - + """ + + """ # noqa: E501 data: Optional[List[Language]] = None __properties: ClassVar[List[str]] = ["data"] @@ -37,6 +37,7 @@ class ListLanguagesResponse(BaseModel): 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)) @@ -61,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -74,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_data in self.data: if _item_data: _items.append(_item_data.to_dict()) - _dict["data"] = _items + _dict['data'] = _items return _dict @classmethod @@ -86,13 +88,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - [Language.from_dict(_item) for _item in obj["data"]] - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 6af7e4a8..d4b726e4 100644 --- a/fattureincloud_python_sdk/models/list_payment_accounts_response.py +++ b/fattureincloud_python_sdk/models/list_payment_accounts_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,10 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class ListPaymentAccountsResponse(BaseModel): - """ """ # noqa: E501 - + """ + + """ # noqa: E501 data: Optional[List[Optional[PaymentAccount]]] = None __properties: ClassVar[List[str]] = ["data"] @@ -37,6 +37,7 @@ class ListPaymentAccountsResponse(BaseModel): 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)) @@ -61,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -74,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_data in self.data: if _item_data: _items.append(_item_data.to_dict()) - _dict["data"] = _items + _dict['data'] = _items return _dict @classmethod @@ -86,13 +88,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - [PaymentAccount.from_dict(_item) for _item in obj["data"]] - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 75c665bb..930ccfea 100644 --- a/fattureincloud_python_sdk/models/list_payment_methods_response.py +++ b/fattureincloud_python_sdk/models/list_payment_methods_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,10 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class ListPaymentMethodsResponse(BaseModel): - """ """ # noqa: E501 - + """ + + """ # noqa: E501 data: Optional[List[PaymentMethod]] = None __properties: ClassVar[List[str]] = ["data"] @@ -37,6 +37,7 @@ class ListPaymentMethodsResponse(BaseModel): 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)) @@ -61,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -74,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_data in self.data: if _item_data: _items.append(_item_data.to_dict()) - _dict["data"] = _items + _dict['data'] = _items return _dict @classmethod @@ -86,13 +88,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - [PaymentMethod.from_dict(_item) for _item in obj["data"]] - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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_price_lists_response.py b/fattureincloud_python_sdk/models/list_price_lists_response.py index 1e98ee0f..70419768 100644 --- a/fattureincloud_python_sdk/models/list_price_lists_response.py +++ b/fattureincloud_python_sdk/models/list_price_lists_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class ListPriceListsResponse(BaseModel): """ ListPriceListsResponse - """ # noqa: E501 - + """ # noqa: E501 data: Optional[List[PriceList]] = None __properties: ClassVar[List[str]] = ["data"] @@ -39,6 +37,7 @@ class ListPriceListsResponse(BaseModel): 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)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -76,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_data in self.data: if _item_data: _items.append(_item_data.to_dict()) - _dict["data"] = _items + _dict['data'] = _items return _dict @classmethod @@ -88,13 +88,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - [PriceList.from_dict(_item) for _item in obj["data"]] - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "data": [PriceList.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 65e3cfee..de4ff2a2 100644 --- a/fattureincloud_python_sdk/models/list_product_categories_response.py +++ b/fattureincloud_python_sdk/models/list_product_categories_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -23,10 +23,10 @@ from typing import Optional, Set from typing_extensions import Self - class ListProductCategoriesResponse(BaseModel): - """ """ # noqa: E501 - + """ + + """ # noqa: E501 data: Optional[List[StrictStr]] = None __properties: ClassVar[List[str]] = ["data"] @@ -36,6 +36,7 @@ class ListProductCategoriesResponse(BaseModel): 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)) @@ -60,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -78,5 +80,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"data": obj.get("data")}) + _obj = cls.model_validate({ + "data": obj.get("data") + }) return _obj + + diff --git a/fattureincloud_python_sdk/models/list_products_response.py b/fattureincloud_python_sdk/models/list_products_response.py index 2c2d4cb0..5ca3e28d 100644 --- a/fattureincloud_python_sdk/models/list_products_response.py +++ b/fattureincloud_python_sdk/models/list_products_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,58 +24,23 @@ from typing import Optional, Set from typing_extensions import Self - class ListProductsResponse(BaseModel): """ ListProductsResponse - """ # noqa: E501 - - current_page: Optional[StrictInt] = Field( - default=None, description="Current page number." - ) - first_page_url: Optional[StrictStr] = Field( - default=None, description="First page url." - ) - var_from: Optional[StrictInt] = Field( - default=None, description="First result of the page.", alias="from" - ) - last_page: Optional[StrictInt] = Field( - default=None, description="Last page number." - ) - last_page_url: Optional[StrictStr] = Field( - default=None, description="Last page url." - ) - next_page_url: Optional[StrictStr] = Field( - default=None, description="Next page url" - ) + """ # noqa: E501 + current_page: Optional[StrictInt] = Field(default=None, description="Current page number.") + first_page_url: Optional[StrictStr] = Field(default=None, description="First page url.") + var_from: Optional[StrictInt] = Field(default=None, description="First result of the page.", alias="from") + last_page: Optional[StrictInt] = Field(default=None, description="Last page number.") + last_page_url: Optional[StrictStr] = Field(default=None, description="Last page url.") + next_page_url: Optional[StrictStr] = Field(default=None, description="Next page url") path: Optional[StrictStr] = Field(default=None, description="Request path.") - per_page: Optional[StrictInt] = Field( - default=None, description="Number of result per page." - ) - prev_page_url: Optional[StrictStr] = Field( - default=None, description="Previous page url." - ) - to: Optional[StrictInt] = Field( - default=None, description="Last result of the page." - ) - total: Optional[StrictInt] = Field( - default=None, description="Total number of results" - ) + per_page: Optional[StrictInt] = Field(default=None, description="Number of result per page.") + prev_page_url: Optional[StrictStr] = Field(default=None, description="Previous page url.") + to: Optional[StrictInt] = Field(default=None, description="Last result of the page.") + total: Optional[StrictInt] = Field(default=None, description="Total number of results") data: Optional[List[Product]] = None - __properties: ClassVar[List[str]] = [ - "current_page", - "first_page_url", - "from", - "last_page", - "last_page_url", - "next_page_url", - "path", - "per_page", - "prev_page_url", - "to", - "total", - "data", - ] + __properties: ClassVar[List[str]] = ["current_page", "first_page_url", "from", "last_page", "last_page_url", "next_page_url", "path", "per_page", "prev_page_url", "to", "total", "data"] model_config = ConfigDict( populate_by_name=True, @@ -83,6 +48,7 @@ class ListProductsResponse(BaseModel): 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)) @@ -107,7 +73,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -120,7 +87,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_data in self.data: if _item_data: _items.append(_item_data.to_dict()) - _dict["data"] = _items + _dict['data'] = _items return _dict @classmethod @@ -132,24 +99,20 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "current_page": obj.get("current_page"), - "first_page_url": obj.get("first_page_url"), - "from": obj.get("from"), - "last_page": obj.get("last_page"), - "last_page_url": obj.get("last_page_url"), - "next_page_url": obj.get("next_page_url"), - "path": obj.get("path"), - "per_page": obj.get("per_page"), - "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["data"]] - if obj.get("data") is not None - else None - ), - } - ) + _obj = cls.model_validate({ + "current_page": obj.get("current_page"), + "first_page_url": obj.get("first_page_url"), + "from": obj.get("from"), + "last_page": obj.get("last_page"), + "last_page_url": obj.get("last_page_url"), + "next_page_url": obj.get("next_page_url"), + "path": obj.get("path"), + "per_page": obj.get("per_page"), + "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["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 8bde66b6..29797093 100644 --- a/fattureincloud_python_sdk/models/list_products_response_page.py +++ b/fattureincloud_python_sdk/models/list_products_response_page.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class ListProductsResponsePage(BaseModel): """ ListProductsResponsePage - """ # noqa: E501 - + """ # noqa: E501 data: Optional[List[Product]] = None __properties: ClassVar[List[str]] = ["data"] @@ -39,6 +37,7 @@ class ListProductsResponsePage(BaseModel): 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)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -76,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_data in self.data: if _item_data: _items.append(_item_data.to_dict()) - _dict["data"] = _items + _dict['data'] = _items return _dict @classmethod @@ -88,13 +88,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - [Product.from_dict(_item) for _item in obj["data"]] - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 70e1e85d..1d037c3c 100644 --- a/fattureincloud_python_sdk/models/list_receipts_response.py +++ b/fattureincloud_python_sdk/models/list_receipts_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,56 +24,23 @@ from typing import Optional, Set from typing_extensions import Self - class ListReceiptsResponse(BaseModel): - """ """ # noqa: E501 - - current_page: Optional[StrictInt] = Field( - default=None, description="Current page number." - ) - first_page_url: Optional[StrictStr] = Field( - default=None, description="First page url." - ) - var_from: Optional[StrictInt] = Field( - default=None, description="First result of the page.", alias="from" - ) - last_page: Optional[StrictInt] = Field( - default=None, description="Last page number." - ) - last_page_url: Optional[StrictStr] = Field( - default=None, description="Last page url." - ) - next_page_url: Optional[StrictStr] = Field( - default=None, description="Next page url" - ) + """ + + """ # noqa: E501 + current_page: Optional[StrictInt] = Field(default=None, description="Current page number.") + first_page_url: Optional[StrictStr] = Field(default=None, description="First page url.") + var_from: Optional[StrictInt] = Field(default=None, description="First result of the page.", alias="from") + last_page: Optional[StrictInt] = Field(default=None, description="Last page number.") + last_page_url: Optional[StrictStr] = Field(default=None, description="Last page url.") + next_page_url: Optional[StrictStr] = Field(default=None, description="Next page url") path: Optional[StrictStr] = Field(default=None, description="Request path.") - per_page: Optional[StrictInt] = Field( - default=None, description="Number of result per page." - ) - prev_page_url: Optional[StrictStr] = Field( - default=None, description="Previous page url." - ) - to: Optional[StrictInt] = Field( - default=None, description="Last result of the page." - ) - total: Optional[StrictInt] = Field( - default=None, description="Total number of results" - ) + per_page: Optional[StrictInt] = Field(default=None, description="Number of result per page.") + prev_page_url: Optional[StrictStr] = Field(default=None, description="Previous page url.") + to: Optional[StrictInt] = Field(default=None, description="Last result of the page.") + total: Optional[StrictInt] = Field(default=None, description="Total number of results") data: Optional[List[Receipt]] = None - __properties: ClassVar[List[str]] = [ - "current_page", - "first_page_url", - "from", - "last_page", - "last_page_url", - "next_page_url", - "path", - "per_page", - "prev_page_url", - "to", - "total", - "data", - ] + __properties: ClassVar[List[str]] = ["current_page", "first_page_url", "from", "last_page", "last_page_url", "next_page_url", "path", "per_page", "prev_page_url", "to", "total", "data"] model_config = ConfigDict( populate_by_name=True, @@ -81,6 +48,7 @@ class ListReceiptsResponse(BaseModel): 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)) @@ -105,7 +73,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -118,7 +87,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_data in self.data: if _item_data: _items.append(_item_data.to_dict()) - _dict["data"] = _items + _dict['data'] = _items return _dict @classmethod @@ -130,24 +99,20 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "current_page": obj.get("current_page"), - "first_page_url": obj.get("first_page_url"), - "from": obj.get("from"), - "last_page": obj.get("last_page"), - "last_page_url": obj.get("last_page_url"), - "next_page_url": obj.get("next_page_url"), - "path": obj.get("path"), - "per_page": obj.get("per_page"), - "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["data"]] - if obj.get("data") is not None - else None - ), - } - ) + _obj = cls.model_validate({ + "current_page": obj.get("current_page"), + "first_page_url": obj.get("first_page_url"), + "from": obj.get("from"), + "last_page": obj.get("last_page"), + "last_page_url": obj.get("last_page_url"), + "next_page_url": obj.get("next_page_url"), + "path": obj.get("path"), + "per_page": obj.get("per_page"), + "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["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 4fbd5de4..5aa7690c 100644 --- a/fattureincloud_python_sdk/models/list_receipts_response_page.py +++ b/fattureincloud_python_sdk/models/list_receipts_response_page.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class ListReceiptsResponsePage(BaseModel): """ ListReceiptsResponsePage - """ # noqa: E501 - + """ # noqa: E501 data: Optional[List[Receipt]] = None __properties: ClassVar[List[str]] = ["data"] @@ -39,6 +37,7 @@ class ListReceiptsResponsePage(BaseModel): 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)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -76,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_data in self.data: if _item_data: _items.append(_item_data.to_dict()) - _dict["data"] = _items + _dict['data'] = _items return _dict @classmethod @@ -88,13 +88,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - [Receipt.from_dict(_item) for _item in obj["data"]] - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 20cc7061..0877ee54 100644 --- a/fattureincloud_python_sdk/models/list_received_document_categories_response.py +++ b/fattureincloud_python_sdk/models/list_received_document_categories_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -23,10 +23,10 @@ from typing import Optional, Set from typing_extensions import Self - class ListReceivedDocumentCategoriesResponse(BaseModel): - """ """ # noqa: E501 - + """ + + """ # noqa: E501 data: Optional[List[StrictStr]] = None __properties: ClassVar[List[str]] = ["data"] @@ -36,6 +36,7 @@ class ListReceivedDocumentCategoriesResponse(BaseModel): 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)) @@ -60,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -78,5 +80,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"data": obj.get("data")}) + _obj = cls.model_validate({ + "data": obj.get("data") + }) return _obj + + diff --git a/fattureincloud_python_sdk/models/list_received_documents_response.py b/fattureincloud_python_sdk/models/list_received_documents_response.py index 19b33a49..727e212e 100644 --- a/fattureincloud_python_sdk/models/list_received_documents_response.py +++ b/fattureincloud_python_sdk/models/list_received_documents_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,56 +24,23 @@ from typing import Optional, Set from typing_extensions import Self - class ListReceivedDocumentsResponse(BaseModel): - """ """ # noqa: E501 - - current_page: Optional[StrictInt] = Field( - default=None, description="Current page number." - ) - first_page_url: Optional[StrictStr] = Field( - default=None, description="First page url." - ) - var_from: Optional[StrictInt] = Field( - default=None, description="First result of the page.", alias="from" - ) - last_page: Optional[StrictInt] = Field( - default=None, description="Last page number." - ) - last_page_url: Optional[StrictStr] = Field( - default=None, description="Last page url." - ) - next_page_url: Optional[StrictStr] = Field( - default=None, description="Next page url" - ) + """ + + """ # noqa: E501 + current_page: Optional[StrictInt] = Field(default=None, description="Current page number.") + first_page_url: Optional[StrictStr] = Field(default=None, description="First page url.") + var_from: Optional[StrictInt] = Field(default=None, description="First result of the page.", alias="from") + last_page: Optional[StrictInt] = Field(default=None, description="Last page number.") + last_page_url: Optional[StrictStr] = Field(default=None, description="Last page url.") + next_page_url: Optional[StrictStr] = Field(default=None, description="Next page url") path: Optional[StrictStr] = Field(default=None, description="Request path.") - per_page: Optional[StrictInt] = Field( - default=None, description="Number of result per page." - ) - prev_page_url: Optional[StrictStr] = Field( - default=None, description="Previous page url." - ) - to: Optional[StrictInt] = Field( - default=None, description="Last result of the page." - ) - total: Optional[StrictInt] = Field( - default=None, description="Total number of results" - ) + per_page: Optional[StrictInt] = Field(default=None, description="Number of result per page.") + prev_page_url: Optional[StrictStr] = Field(default=None, description="Previous page url.") + to: Optional[StrictInt] = Field(default=None, description="Last result of the page.") + total: Optional[StrictInt] = Field(default=None, description="Total number of results") data: Optional[List[ReceivedDocument]] = None - __properties: ClassVar[List[str]] = [ - "current_page", - "first_page_url", - "from", - "last_page", - "last_page_url", - "next_page_url", - "path", - "per_page", - "prev_page_url", - "to", - "total", - "data", - ] + __properties: ClassVar[List[str]] = ["current_page", "first_page_url", "from", "last_page", "last_page_url", "next_page_url", "path", "per_page", "prev_page_url", "to", "total", "data"] model_config = ConfigDict( populate_by_name=True, @@ -81,6 +48,7 @@ class ListReceivedDocumentsResponse(BaseModel): 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)) @@ -105,7 +73,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -118,7 +87,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_data in self.data: if _item_data: _items.append(_item_data.to_dict()) - _dict["data"] = _items + _dict['data'] = _items return _dict @classmethod @@ -130,24 +99,20 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "current_page": obj.get("current_page"), - "first_page_url": obj.get("first_page_url"), - "from": obj.get("from"), - "last_page": obj.get("last_page"), - "last_page_url": obj.get("last_page_url"), - "next_page_url": obj.get("next_page_url"), - "path": obj.get("path"), - "per_page": obj.get("per_page"), - "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["data"]] - if obj.get("data") is not None - else None - ), - } - ) + _obj = cls.model_validate({ + "current_page": obj.get("current_page"), + "first_page_url": obj.get("first_page_url"), + "from": obj.get("from"), + "last_page": obj.get("last_page"), + "last_page_url": obj.get("last_page_url"), + "next_page_url": obj.get("next_page_url"), + "path": obj.get("path"), + "per_page": obj.get("per_page"), + "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["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 5acfa713..87523af6 100644 --- a/fattureincloud_python_sdk/models/list_received_documents_response_page.py +++ b/fattureincloud_python_sdk/models/list_received_documents_response_page.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class ListReceivedDocumentsResponsePage(BaseModel): """ ListReceivedDocumentsResponsePage - """ # noqa: E501 - + """ # noqa: E501 data: Optional[List[ReceivedDocument]] = None __properties: ClassVar[List[str]] = ["data"] @@ -39,6 +37,7 @@ class ListReceivedDocumentsResponsePage(BaseModel): 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)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -76,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_data in self.data: if _item_data: _items.append(_item_data.to_dict()) - _dict["data"] = _items + _dict['data'] = _items return _dict @classmethod @@ -88,13 +88,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - [ReceivedDocument.from_dict(_item) for _item in obj["data"]] - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 0b0e487d..a029ef3f 100644 --- a/fattureincloud_python_sdk/models/list_revenue_centers_response.py +++ b/fattureincloud_python_sdk/models/list_revenue_centers_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -23,10 +23,10 @@ from typing import Optional, Set from typing_extensions import Self - class ListRevenueCentersResponse(BaseModel): - """ """ # noqa: E501 - + """ + + """ # noqa: E501 data: Optional[List[StrictStr]] = None __properties: ClassVar[List[str]] = ["data"] @@ -36,6 +36,7 @@ class ListRevenueCentersResponse(BaseModel): 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)) @@ -60,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -78,5 +80,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"data": obj.get("data")}) + _obj = cls.model_validate({ + "data": obj.get("data") + }) return _obj + + diff --git a/fattureincloud_python_sdk/models/list_suppliers_response.py b/fattureincloud_python_sdk/models/list_suppliers_response.py index 023f463b..611b9f8d 100644 --- a/fattureincloud_python_sdk/models/list_suppliers_response.py +++ b/fattureincloud_python_sdk/models/list_suppliers_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,58 +24,23 @@ from typing import Optional, Set from typing_extensions import Self - class ListSuppliersResponse(BaseModel): """ ListSuppliersResponse - """ # noqa: E501 - - current_page: Optional[StrictInt] = Field( - default=None, description="Current page number." - ) - first_page_url: Optional[StrictStr] = Field( - default=None, description="First page url." - ) - var_from: Optional[StrictInt] = Field( - default=None, description="First result of the page.", alias="from" - ) - last_page: Optional[StrictInt] = Field( - default=None, description="Last page number." - ) - last_page_url: Optional[StrictStr] = Field( - default=None, description="Last page url." - ) - next_page_url: Optional[StrictStr] = Field( - default=None, description="Next page url" - ) + """ # noqa: E501 + current_page: Optional[StrictInt] = Field(default=None, description="Current page number.") + first_page_url: Optional[StrictStr] = Field(default=None, description="First page url.") + var_from: Optional[StrictInt] = Field(default=None, description="First result of the page.", alias="from") + last_page: Optional[StrictInt] = Field(default=None, description="Last page number.") + last_page_url: Optional[StrictStr] = Field(default=None, description="Last page url.") + next_page_url: Optional[StrictStr] = Field(default=None, description="Next page url") path: Optional[StrictStr] = Field(default=None, description="Request path.") - per_page: Optional[StrictInt] = Field( - default=None, description="Number of result per page." - ) - prev_page_url: Optional[StrictStr] = Field( - default=None, description="Previous page url." - ) - to: Optional[StrictInt] = Field( - default=None, description="Last result of the page." - ) - total: Optional[StrictInt] = Field( - default=None, description="Total number of results" - ) + per_page: Optional[StrictInt] = Field(default=None, description="Number of result per page.") + prev_page_url: Optional[StrictStr] = Field(default=None, description="Previous page url.") + to: Optional[StrictInt] = Field(default=None, description="Last result of the page.") + total: Optional[StrictInt] = Field(default=None, description="Total number of results") data: Optional[List[Supplier]] = None - __properties: ClassVar[List[str]] = [ - "current_page", - "first_page_url", - "from", - "last_page", - "last_page_url", - "next_page_url", - "path", - "per_page", - "prev_page_url", - "to", - "total", - "data", - ] + __properties: ClassVar[List[str]] = ["current_page", "first_page_url", "from", "last_page", "last_page_url", "next_page_url", "path", "per_page", "prev_page_url", "to", "total", "data"] model_config = ConfigDict( populate_by_name=True, @@ -83,6 +48,7 @@ class ListSuppliersResponse(BaseModel): 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)) @@ -107,7 +73,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -120,7 +87,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_data in self.data: if _item_data: _items.append(_item_data.to_dict()) - _dict["data"] = _items + _dict['data'] = _items return _dict @classmethod @@ -132,24 +99,20 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "current_page": obj.get("current_page"), - "first_page_url": obj.get("first_page_url"), - "from": obj.get("from"), - "last_page": obj.get("last_page"), - "last_page_url": obj.get("last_page_url"), - "next_page_url": obj.get("next_page_url"), - "path": obj.get("path"), - "per_page": obj.get("per_page"), - "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["data"]] - if obj.get("data") is not None - else None - ), - } - ) + _obj = cls.model_validate({ + "current_page": obj.get("current_page"), + "first_page_url": obj.get("first_page_url"), + "from": obj.get("from"), + "last_page": obj.get("last_page"), + "last_page_url": obj.get("last_page_url"), + "next_page_url": obj.get("next_page_url"), + "path": obj.get("path"), + "per_page": obj.get("per_page"), + "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["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 442b748a..08a317e1 100644 --- a/fattureincloud_python_sdk/models/list_suppliers_response_page.py +++ b/fattureincloud_python_sdk/models/list_suppliers_response_page.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class ListSuppliersResponsePage(BaseModel): """ ListSuppliersResponsePage - """ # noqa: E501 - + """ # noqa: E501 data: Optional[List[Supplier]] = None __properties: ClassVar[List[str]] = ["data"] @@ -39,6 +37,7 @@ class ListSuppliersResponsePage(BaseModel): 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)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -76,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_data in self.data: if _item_data: _items.append(_item_data.to_dict()) - _dict["data"] = _items + _dict['data'] = _items return _dict @classmethod @@ -88,13 +88,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - [Supplier.from_dict(_item) for _item in obj["data"]] - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 2d0fd544..cf47242a 100644 --- a/fattureincloud_python_sdk/models/list_templates_response.py +++ b/fattureincloud_python_sdk/models/list_templates_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,10 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class ListTemplatesResponse(BaseModel): - """ """ # noqa: E501 - + """ + + """ # noqa: E501 data: Optional[List[DocumentTemplate]] = None __properties: ClassVar[List[str]] = ["data"] @@ -37,6 +37,7 @@ class ListTemplatesResponse(BaseModel): 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)) @@ -61,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -74,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_data in self.data: if _item_data: _items.append(_item_data.to_dict()) - _dict["data"] = _items + _dict['data'] = _items return _dict @classmethod @@ -86,13 +88,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - [DocumentTemplate.from_dict(_item) for _item in obj["data"]] - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 a1571258..1def2b95 100644 --- a/fattureincloud_python_sdk/models/list_units_of_measure_response.py +++ b/fattureincloud_python_sdk/models/list_units_of_measure_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -23,10 +23,10 @@ from typing import Optional, Set from typing_extensions import Self - class ListUnitsOfMeasureResponse(BaseModel): - """ """ # noqa: E501 - + """ + + """ # noqa: E501 data: Optional[List[StrictStr]] = None __properties: ClassVar[List[str]] = ["data"] @@ -36,6 +36,7 @@ class ListUnitsOfMeasureResponse(BaseModel): 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)) @@ -60,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -78,5 +80,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"data": obj.get("data")}) + _obj = cls.model_validate({ + "data": obj.get("data") + }) return _obj + + diff --git a/fattureincloud_python_sdk/models/list_user_companies_response.py b/fattureincloud_python_sdk/models/list_user_companies_response.py index e36dcb70..bbb76eee 100644 --- a/fattureincloud_python_sdk/models/list_user_companies_response.py +++ b/fattureincloud_python_sdk/models/list_user_companies_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -20,16 +20,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from fattureincloud_python_sdk.models.list_user_companies_response_data import ( - ListUserCompaniesResponseData, -) +from fattureincloud_python_sdk.models.list_user_companies_response_data import ListUserCompaniesResponseData from typing import Optional, Set from typing_extensions import Self - class ListUserCompaniesResponse(BaseModel): - """ """ # noqa: E501 - + """ + + """ # noqa: E501 data: Optional[ListUserCompaniesResponseData] = None __properties: ClassVar[List[str]] = ["data"] @@ -39,6 +37,7 @@ class ListUserCompaniesResponse(BaseModel): 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)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -72,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -84,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - ListUserCompaniesResponseData.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 a891d56e..29675c6d 100644 --- a/fattureincloud_python_sdk/models/list_user_companies_response_data.py +++ b/fattureincloud_python_sdk/models/list_user_companies_response_data.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class ListUserCompaniesResponseData(BaseModel): """ ListUserCompaniesResponseData - """ # noqa: E501 - + """ # noqa: E501 companies: Optional[List[Company]] = None __properties: ClassVar[List[str]] = ["companies"] @@ -39,6 +37,7 @@ class ListUserCompaniesResponseData(BaseModel): 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)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -76,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_companies in self.companies: if _item_companies: _items.append(_item_companies.to_dict()) - _dict["companies"] = _items + _dict['companies'] = _items return _dict @classmethod @@ -88,13 +88,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "companies": ( - [Company.from_dict(_item) for _item in obj["companies"]] - if obj.get("companies") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 3932c319..7e8d63be 100644 --- a/fattureincloud_python_sdk/models/list_vat_types_response.py +++ b/fattureincloud_python_sdk/models/list_vat_types_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,10 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class ListVatTypesResponse(BaseModel): - """ """ # noqa: E501 - + """ + + """ # noqa: E501 data: Optional[List[Optional[VatType]]] = None __properties: ClassVar[List[str]] = ["data"] @@ -37,6 +37,7 @@ class ListVatTypesResponse(BaseModel): 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)) @@ -61,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -74,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_data in self.data: if _item_data: _items.append(_item_data.to_dict()) - _dict["data"] = _items + _dict['data'] = _items return _dict @classmethod @@ -86,13 +88,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - [VatType.from_dict(_item) for _item in obj["data"]] - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 c66bb66b..b0539537 100644 --- a/fattureincloud_python_sdk/models/list_webhooks_subscriptions_response.py +++ b/fattureincloud_python_sdk/models/list_webhooks_subscriptions_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class ListWebhooksSubscriptionsResponse(BaseModel): """ ListWebhooksSubscriptionsResponse - """ # noqa: E501 - + """ # noqa: E501 data: Optional[List[WebhooksSubscription]] = None __properties: ClassVar[List[str]] = ["data"] @@ -39,6 +37,7 @@ class ListWebhooksSubscriptionsResponse(BaseModel): 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)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -76,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_data in self.data: if _item_data: _items.append(_item_data.to_dict()) - _dict["data"] = _items + _dict['data'] = _items return _dict @classmethod @@ -88,13 +88,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - [WebhooksSubscription.from_dict(_item) for _item in obj["data"]] - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 14a50ef2..06215358 100644 --- a/fattureincloud_python_sdk/models/modify_archive_document_request.py +++ b/fattureincloud_python_sdk/models/modify_archive_document_request.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,10 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class ModifyArchiveDocumentRequest(BaseModel): - """ """ # noqa: E501 - + """ + + """ # noqa: E501 data: Optional[ArchiveDocument] = None __properties: ClassVar[List[str]] = ["data"] @@ -37,6 +37,7 @@ class ModifyArchiveDocumentRequest(BaseModel): 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)) @@ -61,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -70,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -82,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - ArchiveDocument.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 2999979a..53a26270 100644 --- a/fattureincloud_python_sdk/models/modify_archive_document_response.py +++ b/fattureincloud_python_sdk/models/modify_archive_document_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,10 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class ModifyArchiveDocumentResponse(BaseModel): - """ """ # noqa: E501 - + """ + + """ # noqa: E501 data: Optional[ArchiveDocument] = None __properties: ClassVar[List[str]] = ["data"] @@ -37,6 +37,7 @@ class ModifyArchiveDocumentResponse(BaseModel): 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)) @@ -61,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -70,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -82,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - ArchiveDocument.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 980d60d7..16d0b483 100644 --- a/fattureincloud_python_sdk/models/modify_cashbook_entry_request.py +++ b/fattureincloud_python_sdk/models/modify_cashbook_entry_request.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,10 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class ModifyCashbookEntryRequest(BaseModel): - """ """ # noqa: E501 - + """ + + """ # noqa: E501 data: Optional[CashbookEntry] = None __properties: ClassVar[List[str]] = ["data"] @@ -37,6 +37,7 @@ class ModifyCashbookEntryRequest(BaseModel): 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)) @@ -61,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -70,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -82,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - CashbookEntry.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 cf72dd83..75adf960 100644 --- a/fattureincloud_python_sdk/models/modify_cashbook_entry_response.py +++ b/fattureincloud_python_sdk/models/modify_cashbook_entry_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,10 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class ModifyCashbookEntryResponse(BaseModel): - """ """ # noqa: E501 - + """ + + """ # noqa: E501 data: Optional[CashbookEntry] = None __properties: ClassVar[List[str]] = ["data"] @@ -37,6 +37,7 @@ class ModifyCashbookEntryResponse(BaseModel): 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)) @@ -61,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -70,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -82,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - CashbookEntry.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 efd809ba..9f797167 100644 --- a/fattureincloud_python_sdk/models/modify_client_request.py +++ b/fattureincloud_python_sdk/models/modify_client_request.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,10 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class ModifyClientRequest(BaseModel): - """ """ # noqa: E501 - + """ + + """ # noqa: E501 data: Optional[Client] = None __properties: ClassVar[List[str]] = ["data"] @@ -37,6 +37,7 @@ class ModifyClientRequest(BaseModel): 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)) @@ -61,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -70,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -82,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - Client.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 6ba5d169..8a9ac347 100644 --- a/fattureincloud_python_sdk/models/modify_client_response.py +++ b/fattureincloud_python_sdk/models/modify_client_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class ModifyClientResponse(BaseModel): """ ModifyClientResponse - """ # noqa: E501 - + """ # noqa: E501 data: Optional[Client] = None __properties: ClassVar[List[str]] = ["data"] @@ -39,6 +37,7 @@ class ModifyClientResponse(BaseModel): 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)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -72,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -84,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - Client.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 cf7bc81e..733345c2 100644 --- a/fattureincloud_python_sdk/models/modify_f24_request.py +++ b/fattureincloud_python_sdk/models/modify_f24_request.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,10 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class ModifyF24Request(BaseModel): - """ """ # noqa: E501 - + """ + + """ # noqa: E501 data: Optional[F24] = None __properties: ClassVar[List[str]] = ["data"] @@ -37,6 +37,7 @@ class ModifyF24Request(BaseModel): 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)) @@ -61,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -70,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -82,11 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - F24.from_dict(obj["data"]) if obj.get("data") is not None else None - ) - } - ) + _obj = cls.model_validate({ + "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 8ee3ca05..c6f8621c 100644 --- a/fattureincloud_python_sdk/models/modify_f24_response.py +++ b/fattureincloud_python_sdk/models/modify_f24_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,10 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class ModifyF24Response(BaseModel): - """ """ # noqa: E501 - + """ + + """ # noqa: E501 data: Optional[F24] = None __properties: ClassVar[List[str]] = ["data"] @@ -37,6 +37,7 @@ class ModifyF24Response(BaseModel): 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)) @@ -61,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -70,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -82,11 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - F24.from_dict(obj["data"]) if obj.get("data") is not None else None - ) - } - ) + _obj = cls.model_validate({ + "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 8c3253ce..2cf70740 100644 --- a/fattureincloud_python_sdk/models/modify_issued_document_request.py +++ b/fattureincloud_python_sdk/models/modify_issued_document_request.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -21,16 +21,14 @@ from pydantic import BaseModel, ConfigDict 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, -) +from fattureincloud_python_sdk.models.issued_document_options import IssuedDocumentOptions from typing import Optional, Set from typing_extensions import Self - class ModifyIssuedDocumentRequest(BaseModel): - """ """ # noqa: E501 - + """ + + """ # noqa: E501 data: Optional[IssuedDocument] = None options: Optional[IssuedDocumentOptions] = None __properties: ClassVar[List[str]] = ["data", "options"] @@ -41,6 +39,7 @@ class ModifyIssuedDocumentRequest(BaseModel): 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)) @@ -65,7 +64,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -74,10 +74,10 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() # override the default output from pydantic by calling `to_dict()` of options if self.options: - _dict["options"] = self.options.to_dict() + _dict['options'] = self.options.to_dict() return _dict @classmethod @@ -89,18 +89,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "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 - ), - } - ) + _obj = cls.model_validate({ + "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 d3f812cc..7551d5e9 100644 --- a/fattureincloud_python_sdk/models/modify_issued_document_response.py +++ b/fattureincloud_python_sdk/models/modify_issued_document_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class ModifyIssuedDocumentResponse(BaseModel): """ ModifyIssuedDocumentResponse - """ # noqa: E501 - + """ # noqa: E501 data: Optional[IssuedDocument] = None __properties: ClassVar[List[str]] = ["data"] @@ -39,6 +37,7 @@ class ModifyIssuedDocumentResponse(BaseModel): 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)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -72,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -84,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - IssuedDocument.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 f2ff7aca..6122c0e9 100644 --- a/fattureincloud_python_sdk/models/modify_payment_account_request.py +++ b/fattureincloud_python_sdk/models/modify_payment_account_request.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class ModifyPaymentAccountRequest(BaseModel): """ ModifyPaymentAccountRequest - """ # noqa: E501 - + """ # noqa: E501 data: Optional[PaymentAccount] = None __properties: ClassVar[List[str]] = ["data"] @@ -39,6 +37,7 @@ class ModifyPaymentAccountRequest(BaseModel): 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)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -72,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -84,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - PaymentAccount.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 fe10692c..ef89f76c 100644 --- a/fattureincloud_python_sdk/models/modify_payment_account_response.py +++ b/fattureincloud_python_sdk/models/modify_payment_account_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class ModifyPaymentAccountResponse(BaseModel): """ ModifyPaymentAccountResponse - """ # noqa: E501 - + """ # noqa: E501 data: Optional[PaymentAccount] = None __properties: ClassVar[List[str]] = ["data"] @@ -39,6 +37,7 @@ class ModifyPaymentAccountResponse(BaseModel): 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)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -72,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -84,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - PaymentAccount.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 6cfd925c..2445a2b3 100644 --- a/fattureincloud_python_sdk/models/modify_payment_method_request.py +++ b/fattureincloud_python_sdk/models/modify_payment_method_request.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class ModifyPaymentMethodRequest(BaseModel): """ ModifyPaymentMethodRequest - """ # noqa: E501 - + """ # noqa: E501 data: Optional[PaymentMethod] = None __properties: ClassVar[List[str]] = ["data"] @@ -39,6 +37,7 @@ class ModifyPaymentMethodRequest(BaseModel): 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)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -72,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -84,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - PaymentMethod.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 be4192eb..a193e3b8 100644 --- a/fattureincloud_python_sdk/models/modify_payment_method_response.py +++ b/fattureincloud_python_sdk/models/modify_payment_method_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class ModifyPaymentMethodResponse(BaseModel): """ ModifyPaymentMethodResponse - """ # noqa: E501 - + """ # noqa: E501 data: Optional[PaymentMethod] = None __properties: ClassVar[List[str]] = ["data"] @@ -39,6 +37,7 @@ class ModifyPaymentMethodResponse(BaseModel): 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)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -72,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -84,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - PaymentMethod.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 f652c8cc..1284df92 100644 --- a/fattureincloud_python_sdk/models/modify_product_request.py +++ b/fattureincloud_python_sdk/models/modify_product_request.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class ModifyProductRequest(BaseModel): """ ModifyProductRequest - """ # noqa: E501 - + """ # noqa: E501 data: Optional[Product] = None __properties: ClassVar[List[str]] = ["data"] @@ -39,6 +37,7 @@ class ModifyProductRequest(BaseModel): 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)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -72,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -84,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - Product.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 fa41ed92..bdaf57ea 100644 --- a/fattureincloud_python_sdk/models/modify_product_response.py +++ b/fattureincloud_python_sdk/models/modify_product_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class ModifyProductResponse(BaseModel): """ ModifyProductResponse - """ # noqa: E501 - + """ # noqa: E501 data: Optional[Product] = None __properties: ClassVar[List[str]] = ["data"] @@ -39,6 +37,7 @@ class ModifyProductResponse(BaseModel): 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)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -72,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -84,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - Product.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 73fb3d79..d397b266 100644 --- a/fattureincloud_python_sdk/models/modify_receipt_request.py +++ b/fattureincloud_python_sdk/models/modify_receipt_request.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,10 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class ModifyReceiptRequest(BaseModel): - """ """ # noqa: E501 - + """ + + """ # noqa: E501 data: Optional[Receipt] = None __properties: ClassVar[List[str]] = ["data"] @@ -37,6 +37,7 @@ class ModifyReceiptRequest(BaseModel): 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)) @@ -61,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -70,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -82,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - Receipt.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 cfd773d7..12aebf1d 100644 --- a/fattureincloud_python_sdk/models/modify_receipt_response.py +++ b/fattureincloud_python_sdk/models/modify_receipt_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,10 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class ModifyReceiptResponse(BaseModel): - """ """ # noqa: E501 - + """ + + """ # noqa: E501 data: Optional[Receipt] = None __properties: ClassVar[List[str]] = ["data"] @@ -37,6 +37,7 @@ class ModifyReceiptResponse(BaseModel): 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)) @@ -61,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -70,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -82,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - Receipt.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 aca7fe48..45d4d501 100644 --- a/fattureincloud_python_sdk/models/modify_received_document_request.py +++ b/fattureincloud_python_sdk/models/modify_received_document_request.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,10 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class ModifyReceivedDocumentRequest(BaseModel): - """ """ # noqa: E501 - + """ + + """ # noqa: E501 data: Optional[ReceivedDocument] = None __properties: ClassVar[List[str]] = ["data"] @@ -37,6 +37,7 @@ class ModifyReceivedDocumentRequest(BaseModel): 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)) @@ -61,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -70,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -82,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - ReceivedDocument.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 6a1f2c1e..afa78519 100644 --- a/fattureincloud_python_sdk/models/modify_received_document_response.py +++ b/fattureincloud_python_sdk/models/modify_received_document_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,10 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class ModifyReceivedDocumentResponse(BaseModel): - """ """ # noqa: E501 - + """ + + """ # noqa: E501 data: Optional[ReceivedDocument] = None __properties: ClassVar[List[str]] = ["data"] @@ -37,6 +37,7 @@ class ModifyReceivedDocumentResponse(BaseModel): 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)) @@ -61,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -70,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -82,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - ReceivedDocument.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 aae13a2c..9cd4eaa2 100644 --- a/fattureincloud_python_sdk/models/modify_supplier_request.py +++ b/fattureincloud_python_sdk/models/modify_supplier_request.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class ModifySupplierRequest(BaseModel): """ ModifySupplierRequest - """ # noqa: E501 - + """ # noqa: E501 data: Optional[Supplier] = None __properties: ClassVar[List[str]] = ["data"] @@ -39,6 +37,7 @@ class ModifySupplierRequest(BaseModel): 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)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -72,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -84,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - Supplier.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 f24c422d..a33739cd 100644 --- a/fattureincloud_python_sdk/models/modify_supplier_response.py +++ b/fattureincloud_python_sdk/models/modify_supplier_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class ModifySupplierResponse(BaseModel): """ ModifySupplierResponse - """ # noqa: E501 - + """ # noqa: E501 data: Optional[Supplier] = None __properties: ClassVar[List[str]] = ["data"] @@ -39,6 +37,7 @@ class ModifySupplierResponse(BaseModel): 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)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -72,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -84,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - Supplier.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 3adf2d63..d0daa0c3 100644 --- a/fattureincloud_python_sdk/models/modify_vat_type_request.py +++ b/fattureincloud_python_sdk/models/modify_vat_type_request.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class ModifyVatTypeRequest(BaseModel): """ ModifyVatTypeRequest - """ # noqa: E501 - + """ # noqa: E501 data: Optional[VatType] = None __properties: ClassVar[List[str]] = ["data"] @@ -39,6 +37,7 @@ class ModifyVatTypeRequest(BaseModel): 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)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -72,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -84,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - VatType.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 7ee9f264..2210f833 100644 --- a/fattureincloud_python_sdk/models/modify_vat_type_response.py +++ b/fattureincloud_python_sdk/models/modify_vat_type_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class ModifyVatTypeResponse(BaseModel): """ ModifyVatTypeResponse - """ # noqa: E501 - + """ # noqa: E501 data: Optional[VatType] = None __properties: ClassVar[List[str]] = ["data"] @@ -39,6 +37,7 @@ class ModifyVatTypeResponse(BaseModel): 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)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -72,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -84,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - VatType.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 def84759..1c0a6817 100644 --- a/fattureincloud_python_sdk/models/modify_webhooks_subscription_request.py +++ b/fattureincloud_python_sdk/models/modify_webhooks_subscription_request.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class ModifyWebhooksSubscriptionRequest(BaseModel): """ ModifyWebhooksSubscriptionRequest - """ # noqa: E501 - + """ # noqa: E501 data: Optional[WebhooksSubscription] = None __properties: ClassVar[List[str]] = ["data"] @@ -39,6 +37,7 @@ class ModifyWebhooksSubscriptionRequest(BaseModel): 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)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -72,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -84,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - WebhooksSubscription.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 49a3e67c..353d2d0d 100644 --- a/fattureincloud_python_sdk/models/modify_webhooks_subscription_response.py +++ b/fattureincloud_python_sdk/models/modify_webhooks_subscription_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,16 +24,12 @@ from typing import Optional, Set from typing_extensions import Self - class ModifyWebhooksSubscriptionResponse(BaseModel): """ ModifyWebhooksSubscriptionResponse - """ # noqa: E501 - + """ # noqa: E501 data: Optional[WebhooksSubscription] = None - warnings: Optional[List[StrictStr]] = Field( - default=None, description="Webhooks registration warnings" - ) + warnings: Optional[List[StrictStr]] = Field(default=None, description="Webhooks registration warnings") __properties: ClassVar[List[str]] = ["data", "warnings"] model_config = ConfigDict( @@ -42,6 +38,7 @@ class ModifyWebhooksSubscriptionResponse(BaseModel): 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)) @@ -66,7 +63,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -75,7 +73,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -87,14 +85,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - WebhooksSubscription.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ), - "warnings": obj.get("warnings"), - } - ) + _obj = cls.model_validate({ + "data": WebhooksSubscription.from_dict(obj["data"]) if obj.get("data") is not None else None, + "warnings": obj.get("warnings") + }) return _obj + + diff --git a/fattureincloud_python_sdk/models/monthly_total.py b/fattureincloud_python_sdk/models/monthly_total.py index 36da3955..032ef60d 100644 --- a/fattureincloud_python_sdk/models/monthly_total.py +++ b/fattureincloud_python_sdk/models/monthly_total.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -23,21 +23,13 @@ from typing import Optional, Set from typing_extensions import Self - class MonthlyTotal(BaseModel): """ MonthlyTotal - """ # noqa: E501 - - net: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Monthly total net amount" - ) - gross: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Monthly total gross amount" - ) - count: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Monthly total receipt number" - ) + """ # noqa: E501 + net: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Monthly total net amount") + gross: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Monthly total gross amount") + count: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Monthly total receipt number") __properties: ClassVar[List[str]] = ["net", "gross", "count"] model_config = ConfigDict( @@ -46,6 +38,7 @@ class MonthlyTotal(BaseModel): 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)) @@ -70,7 +63,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -88,11 +82,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "net": obj.get("net"), - "gross": obj.get("gross"), - "count": obj.get("count"), - } - ) + _obj = cls.model_validate({ + "net": obj.get("net"), + "gross": obj.get("gross"), + "count": obj.get("count") + }) return _obj + + diff --git a/fattureincloud_python_sdk/models/original_document_type.py b/fattureincloud_python_sdk/models/original_document_type.py index 74e09adf..abcb660c 100644 --- a/fattureincloud_python_sdk/models/original_document_type.py +++ b/fattureincloud_python_sdk/models/original_document_type.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -27,11 +27,13 @@ class OriginalDocumentType(str, Enum): """ allowed enum values """ - ORDINE = "ordine" - CONTRATTO = "contratto" - CONVENZIONE = "convenzione" + ORDINE = 'ordine' + CONTRATTO = 'contratto' + CONVENZIONE = 'convenzione' @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of OriginalDocumentType from a JSON string""" return cls(json.loads(json_str)) + + diff --git a/fattureincloud_python_sdk/models/pagination.py b/fattureincloud_python_sdk/models/pagination.py index ab33ca14..b056589a 100644 --- a/fattureincloud_python_sdk/models/pagination.py +++ b/fattureincloud_python_sdk/models/pagination.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -23,54 +23,22 @@ from typing import Optional, Set from typing_extensions import Self - class Pagination(BaseModel): - """ """ # noqa: E501 - - current_page: Optional[StrictInt] = Field( - default=None, description="Current page number." - ) - first_page_url: Optional[StrictStr] = Field( - default=None, description="First page url." - ) - var_from: Optional[StrictInt] = Field( - default=None, description="First result of the page.", alias="from" - ) - last_page: Optional[StrictInt] = Field( - default=None, description="Last page number." - ) - last_page_url: Optional[StrictStr] = Field( - default=None, description="Last page url." - ) - next_page_url: Optional[StrictStr] = Field( - default=None, description="Next page url" - ) + """ + + """ # noqa: E501 + current_page: Optional[StrictInt] = Field(default=None, description="Current page number.") + first_page_url: Optional[StrictStr] = Field(default=None, description="First page url.") + var_from: Optional[StrictInt] = Field(default=None, description="First result of the page.", alias="from") + last_page: Optional[StrictInt] = Field(default=None, description="Last page number.") + last_page_url: Optional[StrictStr] = Field(default=None, description="Last page url.") + next_page_url: Optional[StrictStr] = Field(default=None, description="Next page url") path: Optional[StrictStr] = Field(default=None, description="Request path.") - per_page: Optional[StrictInt] = Field( - default=None, description="Number of result per page." - ) - prev_page_url: Optional[StrictStr] = Field( - default=None, description="Previous page url." - ) - to: Optional[StrictInt] = Field( - default=None, description="Last result of the page." - ) - total: Optional[StrictInt] = Field( - default=None, description="Total number of results" - ) - __properties: ClassVar[List[str]] = [ - "current_page", - "first_page_url", - "from", - "last_page", - "last_page_url", - "next_page_url", - "path", - "per_page", - "prev_page_url", - "to", - "total", - ] + per_page: Optional[StrictInt] = Field(default=None, description="Number of result per page.") + prev_page_url: Optional[StrictStr] = Field(default=None, description="Previous page url.") + to: Optional[StrictInt] = Field(default=None, description="Last result of the page.") + total: Optional[StrictInt] = Field(default=None, description="Total number of results") + __properties: ClassVar[List[str]] = ["current_page", "first_page_url", "from", "last_page", "last_page_url", "next_page_url", "path", "per_page", "prev_page_url", "to", "total"] model_config = ConfigDict( populate_by_name=True, @@ -78,6 +46,7 @@ class Pagination(BaseModel): 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)) @@ -102,7 +71,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -120,19 +90,19 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "current_page": obj.get("current_page"), - "first_page_url": obj.get("first_page_url"), - "from": obj.get("from"), - "last_page": obj.get("last_page"), - "last_page_url": obj.get("last_page_url"), - "next_page_url": obj.get("next_page_url"), - "path": obj.get("path"), - "per_page": obj.get("per_page"), - "prev_page_url": obj.get("prev_page_url"), - "to": obj.get("to"), - "total": obj.get("total"), - } - ) + _obj = cls.model_validate({ + "current_page": obj.get("current_page"), + "first_page_url": obj.get("first_page_url"), + "from": obj.get("from"), + "last_page": obj.get("last_page"), + "last_page_url": obj.get("last_page_url"), + "next_page_url": obj.get("next_page_url"), + "path": obj.get("path"), + "per_page": obj.get("per_page"), + "prev_page_url": obj.get("prev_page_url"), + "to": obj.get("to"), + "total": obj.get("total") + }) return _obj + + diff --git a/fattureincloud_python_sdk/models/payment_account.py b/fattureincloud_python_sdk/models/payment_account.py index fc7234ee..8e1e485c 100644 --- a/fattureincloud_python_sdk/models/payment_account.py +++ b/fattureincloud_python_sdk/models/payment_account.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,30 +24,18 @@ from typing import Optional, Set from typing_extensions import Self - class PaymentAccount(BaseModel): """ PaymentAccount - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictInt] = Field(default=None, description="Payment account id") name: Optional[StrictStr] = Field(default=None, description="Payment account name") type: Optional[PaymentAccountType] = PaymentAccountType.STANDARD iban: Optional[StrictStr] = Field(default=None, description="Payment account iban") sia: Optional[StrictStr] = Field(default=None, description="Payment account sia") cuc: Optional[StrictStr] = Field(default=None, description="Payment account cuc") - virtual: Optional[StrictBool] = Field( - default=None, description="Payment method is virtual" - ) - __properties: ClassVar[List[str]] = [ - "id", - "name", - "type", - "iban", - "sia", - "cuc", - "virtual", - ] + virtual: Optional[StrictBool] = Field(default=None, description="Payment method is virtual") + __properties: ClassVar[List[str]] = ["id", "name", "type", "iban", "sia", "cuc", "virtual"] model_config = ConfigDict( populate_by_name=True, @@ -55,6 +43,7 @@ class PaymentAccount(BaseModel): 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)) @@ -79,7 +68,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -97,19 +87,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "name": obj.get("name"), - "type": ( - obj.get("type") - if obj.get("type") is not None - else PaymentAccountType.STANDARD - ), - "iban": obj.get("iban"), - "sia": obj.get("sia"), - "cuc": obj.get("cuc"), - "virtual": obj.get("virtual"), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name"), + "type": obj.get("type") if obj.get("type") is not None else PaymentAccountType.STANDARD, + "iban": obj.get("iban"), + "sia": obj.get("sia"), + "cuc": obj.get("cuc"), + "virtual": obj.get("virtual") + }) return _obj + + diff --git a/fattureincloud_python_sdk/models/payment_account_type.py b/fattureincloud_python_sdk/models/payment_account_type.py index d110b265..dce0f5e4 100644 --- a/fattureincloud_python_sdk/models/payment_account_type.py +++ b/fattureincloud_python_sdk/models/payment_account_type.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -27,10 +27,12 @@ class PaymentAccountType(str, Enum): """ allowed enum values """ - STANDARD = "standard" - BANK = "bank" + STANDARD = 'standard' + BANK = 'bank' @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of PaymentAccountType from a JSON string""" return cls(json.loads(json_str)) + + diff --git a/fattureincloud_python_sdk/models/payment_method.py b/fattureincloud_python_sdk/models/payment_method.py index 54e541b2..4ca4559a 100644 --- a/fattureincloud_python_sdk/models/payment_method.py +++ b/fattureincloud_python_sdk/models/payment_method.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -27,44 +27,21 @@ from typing import Optional, Set from typing_extensions import Self - class PaymentMethod(BaseModel): - """ """ # noqa: E501 - + """ + + """ # noqa: E501 id: Optional[StrictInt] = Field(default=None, description="Payment method id") name: Optional[StrictStr] = Field(default=None, description="Payment method name") type: Optional[PaymentMethodType] = PaymentMethodType.STANDARD - is_default: Optional[StrictBool] = Field( - default=None, description="Payment method is default" - ) + is_default: Optional[StrictBool] = Field(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") - ) - bank_iban: Optional[StrictStr] = Field( - default=None, description="Payment method bank iban" - ) - bank_name: Optional[StrictStr] = Field( - default=None, description="Payment method bank name" - ) - bank_beneficiary: Optional[StrictStr] = Field( - default=None, description="Payment method bank beneficiary" - ) - ei_payment_method: Optional[StrictStr] = Field( - default=None, description="E-invoice payment method" - ) - __properties: ClassVar[List[str]] = [ - "id", - "name", - "type", - "is_default", - "default_payment_account", - "details", - "bank_iban", - "bank_name", - "bank_beneficiary", - "ei_payment_method", - ] + 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") + bank_name: Optional[StrictStr] = Field(default=None, description="Payment method bank name") + bank_beneficiary: Optional[StrictStr] = Field(default=None, description="Payment method bank beneficiary") + ei_payment_method: Optional[StrictStr] = Field(default=None, description="E-invoice payment method") + __properties: ClassVar[List[str]] = ["id", "name", "type", "is_default", "default_payment_account", "details", "bank_iban", "bank_name", "bank_beneficiary", "ei_payment_method"] model_config = ConfigDict( populate_by_name=True, @@ -72,6 +49,7 @@ class PaymentMethod(BaseModel): 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)) @@ -96,7 +74,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -105,14 +84,14 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of default_payment_account if self.default_payment_account: - _dict["default_payment_account"] = self.default_payment_account.to_dict() + _dict['default_payment_account'] = self.default_payment_account.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in details (list) _items = [] if self.details: for _item_details in self.details: if _item_details: _items.append(_item_details.to_dict()) - _dict["details"] = _items + _dict['details'] = _items return _dict @classmethod @@ -124,30 +103,18 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "name": obj.get("name"), - "type": ( - obj.get("type") - if obj.get("type") is not None - else PaymentMethodType.STANDARD - ), - "is_default": obj.get("is_default"), - "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"), - "ei_payment_method": obj.get("ei_payment_method"), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name"), + "type": obj.get("type") if obj.get("type") is not None else PaymentMethodType.STANDARD, + "is_default": obj.get("is_default"), + "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"), + "ei_payment_method": obj.get("ei_payment_method") + }) return _obj + + diff --git a/fattureincloud_python_sdk/models/payment_method_details.py b/fattureincloud_python_sdk/models/payment_method_details.py index 1f0b44c7..068e0032 100644 --- a/fattureincloud_python_sdk/models/payment_method_details.py +++ b/fattureincloud_python_sdk/models/payment_method_details.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -23,18 +23,12 @@ from typing import Optional, Set from typing_extensions import Self - class PaymentMethodDetails(BaseModel): """ PaymentMethodDetails - """ # noqa: E501 - - title: Optional[StrictStr] = Field( - default=None, description="Payment method details title" - ) - description: Optional[StrictStr] = Field( - default=None, description="Payment method details description" - ) + """ # noqa: E501 + title: Optional[StrictStr] = Field(default=None, description="Payment method details title") + description: Optional[StrictStr] = Field(default=None, description="Payment method details description") __properties: ClassVar[List[str]] = ["title", "description"] model_config = ConfigDict( @@ -43,6 +37,7 @@ class PaymentMethodDetails(BaseModel): 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)) @@ -67,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -85,7 +81,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - {"title": obj.get("title"), "description": obj.get("description")} - ) + _obj = cls.model_validate({ + "title": obj.get("title"), + "description": obj.get("description") + }) return _obj + + diff --git a/fattureincloud_python_sdk/models/payment_method_type.py b/fattureincloud_python_sdk/models/payment_method_type.py index 1a26bebc..e5aa1280 100644 --- a/fattureincloud_python_sdk/models/payment_method_type.py +++ b/fattureincloud_python_sdk/models/payment_method_type.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -27,10 +27,12 @@ class PaymentMethodType(str, Enum): """ allowed enum values """ - STANDARD = "standard" - RIBA = "riba" + STANDARD = 'standard' + RIBA = 'riba' @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of PaymentMethodType from a JSON string""" return cls(json.loads(json_str)) + + diff --git a/fattureincloud_python_sdk/models/payment_terms_type.py b/fattureincloud_python_sdk/models/payment_terms_type.py index 40c3928b..735cf8cd 100644 --- a/fattureincloud_python_sdk/models/payment_terms_type.py +++ b/fattureincloud_python_sdk/models/payment_terms_type.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -27,10 +27,12 @@ class PaymentTermsType(str, Enum): """ allowed enum values """ - STANDARD = "standard" - END_OF_MONTH = "end_of_month" + STANDARD = 'standard' + END_OF_MONTH = 'end_of_month' @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of PaymentTermsType from a JSON string""" return cls(json.loads(json_str)) + + diff --git a/fattureincloud_python_sdk/models/permission_level.py b/fattureincloud_python_sdk/models/permission_level.py index 0edd87b9..481fd026 100644 --- a/fattureincloud_python_sdk/models/permission_level.py +++ b/fattureincloud_python_sdk/models/permission_level.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -27,12 +27,14 @@ class PermissionLevel(str, Enum): """ allowed enum values """ - NONE = "none" - READ = "read" - WRITE = "write" - DETAILED = "detailed" + NONE = 'none' + READ = 'read' + WRITE = 'write' + DETAILED = 'detailed' @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of PermissionLevel from a JSON string""" return cls(json.loads(json_str)) + + diff --git a/fattureincloud_python_sdk/models/permissions.py b/fattureincloud_python_sdk/models/permissions.py index 589c494a..faf64528 100644 --- a/fattureincloud_python_sdk/models/permissions.py +++ b/fattureincloud_python_sdk/models/permissions.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -21,16 +21,14 @@ from pydantic import BaseModel, ConfigDict 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, -) +from fattureincloud_python_sdk.models.permissions_fic_issued_documents_detailed import PermissionsFicIssuedDocumentsDetailed from typing import Optional, Set from typing_extensions import Self - class Permissions(BaseModel): - """ """ # noqa: E501 - + """ + + """ # noqa: E501 fic_situation: Optional[PermissionLevel] = None fic_clients: Optional[PermissionLevel] = None fic_suppliers: Optional[PermissionLevel] = None @@ -55,36 +53,8 @@ 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 - ) - __properties: ClassVar[List[str]] = [ - "fic_situation", - "fic_clients", - "fic_suppliers", - "fic_products", - "fic_issued_documents", - "fic_received_documents", - "fic_receipts", - "fic_calendar", - "fic_archive", - "fic_taxes", - "fic_stock", - "fic_cashbook", - "fic_settings", - "fic_emails", - "fic_export", - "fic_import_bankstatements", - "fic_import_clients_suppliers", - "fic_import_issued_documents", - "fic_import_products", - "fic_recurring", - "fic_riba", - "dic_employees", - "dic_settings", - "dic_timesheet", - "fic_issued_documents_detailed", - ] + fic_issued_documents_detailed: Optional[PermissionsFicIssuedDocumentsDetailed] = None + __properties: ClassVar[List[str]] = ["fic_situation", "fic_clients", "fic_suppliers", "fic_products", "fic_issued_documents", "fic_received_documents", "fic_receipts", "fic_calendar", "fic_archive", "fic_taxes", "fic_stock", "fic_cashbook", "fic_settings", "fic_emails", "fic_export", "fic_import_bankstatements", "fic_import_clients_suppliers", "fic_import_issued_documents", "fic_import_products", "fic_recurring", "fic_riba", "dic_employees", "dic_settings", "dic_timesheet", "fic_issued_documents_detailed"] model_config = ConfigDict( populate_by_name=True, @@ -92,6 +62,7 @@ class Permissions(BaseModel): 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)) @@ -116,7 +87,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -125,9 +97,7 @@ def to_dict(self) -> Dict[str, Any]: ) # 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 @@ -139,39 +109,33 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "fic_situation": obj.get("fic_situation"), - "fic_clients": obj.get("fic_clients"), - "fic_suppliers": obj.get("fic_suppliers"), - "fic_products": obj.get("fic_products"), - "fic_issued_documents": obj.get("fic_issued_documents"), - "fic_received_documents": obj.get("fic_received_documents"), - "fic_receipts": obj.get("fic_receipts"), - "fic_calendar": obj.get("fic_calendar"), - "fic_archive": obj.get("fic_archive"), - "fic_taxes": obj.get("fic_taxes"), - "fic_stock": obj.get("fic_stock"), - "fic_cashbook": obj.get("fic_cashbook"), - "fic_settings": obj.get("fic_settings"), - "fic_emails": obj.get("fic_emails"), - "fic_export": obj.get("fic_export"), - "fic_import_bankstatements": obj.get("fic_import_bankstatements"), - "fic_import_clients_suppliers": obj.get("fic_import_clients_suppliers"), - "fic_import_issued_documents": obj.get("fic_import_issued_documents"), - "fic_import_products": obj.get("fic_import_products"), - "fic_recurring": obj.get("fic_recurring"), - "fic_riba": obj.get("fic_riba"), - "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["fic_issued_documents_detailed"] - ) - if obj.get("fic_issued_documents_detailed") is not None - else None - ), - } - ) + _obj = cls.model_validate({ + "fic_situation": obj.get("fic_situation"), + "fic_clients": obj.get("fic_clients"), + "fic_suppliers": obj.get("fic_suppliers"), + "fic_products": obj.get("fic_products"), + "fic_issued_documents": obj.get("fic_issued_documents"), + "fic_received_documents": obj.get("fic_received_documents"), + "fic_receipts": obj.get("fic_receipts"), + "fic_calendar": obj.get("fic_calendar"), + "fic_archive": obj.get("fic_archive"), + "fic_taxes": obj.get("fic_taxes"), + "fic_stock": obj.get("fic_stock"), + "fic_cashbook": obj.get("fic_cashbook"), + "fic_settings": obj.get("fic_settings"), + "fic_emails": obj.get("fic_emails"), + "fic_export": obj.get("fic_export"), + "fic_import_bankstatements": obj.get("fic_import_bankstatements"), + "fic_import_clients_suppliers": obj.get("fic_import_clients_suppliers"), + "fic_import_issued_documents": obj.get("fic_import_issued_documents"), + "fic_import_products": obj.get("fic_import_products"), + "fic_recurring": obj.get("fic_recurring"), + "fic_riba": obj.get("fic_riba"), + "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["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 f304848d..785336f8 100644 --- a/fattureincloud_python_sdk/models/permissions_fic_issued_documents_detailed.py +++ b/fattureincloud_python_sdk/models/permissions_fic_issued_documents_detailed.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class PermissionsFicIssuedDocumentsDetailed(BaseModel): """ PermissionsFicIssuedDocumentsDetailed - """ # noqa: E501 - + """ # noqa: E501 quotes: Optional[PermissionLevel] = None proformas: Optional[PermissionLevel] = None invoices: Optional[PermissionLevel] = None @@ -40,18 +38,7 @@ class PermissionsFicIssuedDocumentsDetailed(BaseModel): work_reports: Optional[PermissionLevel] = None supplier_orders: Optional[PermissionLevel] = None self_invoices: Optional[PermissionLevel] = None - __properties: ClassVar[List[str]] = [ - "quotes", - "proformas", - "invoices", - "receipts", - "delivery_notes", - "credit_notes", - "orders", - "work_reports", - "supplier_orders", - "self_invoices", - ] + __properties: ClassVar[List[str]] = ["quotes", "proformas", "invoices", "receipts", "delivery_notes", "credit_notes", "orders", "work_reports", "supplier_orders", "self_invoices"] model_config = ConfigDict( populate_by_name=True, @@ -59,6 +46,7 @@ class PermissionsFicIssuedDocumentsDetailed(BaseModel): 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)) @@ -83,7 +71,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -101,18 +90,18 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "quotes": obj.get("quotes"), - "proformas": obj.get("proformas"), - "invoices": obj.get("invoices"), - "receipts": obj.get("receipts"), - "delivery_notes": obj.get("delivery_notes"), - "credit_notes": obj.get("credit_notes"), - "orders": obj.get("orders"), - "work_reports": obj.get("work_reports"), - "supplier_orders": obj.get("supplier_orders"), - "self_invoices": obj.get("self_invoices"), - } - ) + _obj = cls.model_validate({ + "quotes": obj.get("quotes"), + "proformas": obj.get("proformas"), + "invoices": obj.get("invoices"), + "receipts": obj.get("receipts"), + "delivery_notes": obj.get("delivery_notes"), + "credit_notes": obj.get("credit_notes"), + "orders": obj.get("orders"), + "work_reports": obj.get("work_reports"), + "supplier_orders": obj.get("supplier_orders"), + "self_invoices": obj.get("self_invoices") + }) return _obj + + diff --git a/fattureincloud_python_sdk/models/price_list.py b/fattureincloud_python_sdk/models/price_list.py index 129d6354..f7c27f96 100644 --- a/fattureincloud_python_sdk/models/price_list.py +++ b/fattureincloud_python_sdk/models/price_list.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -25,34 +25,18 @@ from typing import Optional, Set from typing_extensions import Self - class PriceList(BaseModel): """ PriceList - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictStr] = Field(default=None, description="Price list id") name: Optional[StrictStr] = Field(default=None, description="Price list name") prices_type: Optional[PriceListPricesType] = None - is_default: Optional[StrictBool] = Field( - default=None, description="This entity is default" - ) - valid_from: Optional[StrictStr] = Field( - default=None, description="Price list validity start date" - ) - valid_to: Optional[StrictStr] = Field( - default=None, description="Price list validity end date" - ) + is_default: Optional[StrictBool] = Field(default=None, description="This entity is default") + valid_from: Optional[StrictStr] = Field(default=None, description="Price list validity start date") + valid_to: Optional[StrictStr] = Field(default=None, description="Price list validity end date") type: Optional[PriceListType] = None - __properties: ClassVar[List[str]] = [ - "id", - "name", - "prices_type", - "is_default", - "valid_from", - "valid_to", - "type", - ] + __properties: ClassVar[List[str]] = ["id", "name", "prices_type", "is_default", "valid_from", "valid_to", "type"] model_config = ConfigDict( populate_by_name=True, @@ -60,6 +44,7 @@ class PriceList(BaseModel): 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)) @@ -84,7 +69,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -102,15 +88,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "name": obj.get("name"), - "prices_type": obj.get("prices_type"), - "is_default": obj.get("is_default"), - "valid_from": obj.get("valid_from"), - "valid_to": obj.get("valid_to"), - "type": obj.get("type"), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name"), + "prices_type": obj.get("prices_type"), + "is_default": obj.get("is_default"), + "valid_from": obj.get("valid_from"), + "valid_to": obj.get("valid_to"), + "type": obj.get("type") + }) return _obj + + diff --git a/fattureincloud_python_sdk/models/price_list_item.py b/fattureincloud_python_sdk/models/price_list_item.py index 90700772..dfa6456e 100644 --- a/fattureincloud_python_sdk/models/price_list_item.py +++ b/fattureincloud_python_sdk/models/price_list_item.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -23,12 +23,10 @@ from typing import Optional, Set from typing_extensions import Self - class PriceListItem(BaseModel): """ PriceListItem - """ # noqa: E501 - + """ # noqa: E501 price: Optional[Union[StrictFloat, StrictInt]] = None __properties: ClassVar[List[str]] = ["price"] @@ -38,6 +36,7 @@ class PriceListItem(BaseModel): 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)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -80,5 +80,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"price": obj.get("price")}) + _obj = cls.model_validate({ + "price": obj.get("price") + }) return _obj + + diff --git a/fattureincloud_python_sdk/models/price_list_prices_type.py b/fattureincloud_python_sdk/models/price_list_prices_type.py index 5d07f9c4..62e30669 100644 --- a/fattureincloud_python_sdk/models/price_list_prices_type.py +++ b/fattureincloud_python_sdk/models/price_list_prices_type.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -27,10 +27,12 @@ class PriceListPricesType(str, Enum): """ allowed enum values """ - NET = "net" - GROSS = "gross" + NET = 'net' + GROSS = 'gross' @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of PriceListPricesType from a JSON string""" return cls(json.loads(json_str)) + + diff --git a/fattureincloud_python_sdk/models/price_list_type.py b/fattureincloud_python_sdk/models/price_list_type.py index f9fe58ef..64d89244 100644 --- a/fattureincloud_python_sdk/models/price_list_type.py +++ b/fattureincloud_python_sdk/models/price_list_type.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -27,10 +27,12 @@ class PriceListType(str, Enum): """ allowed enum values """ - SELL = "sell" - PURCHASE = "purchase" + SELL = 'sell' + PURCHASE = 'purchase' @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of PriceListType from a JSON string""" return cls(json.loads(json_str)) + + diff --git a/fattureincloud_python_sdk/models/product.py b/fattureincloud_python_sdk/models/product.py index 0e664697..49017ff3 100644 --- a/fattureincloud_python_sdk/models/product.py +++ b/fattureincloud_python_sdk/models/product.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -18,90 +18,36 @@ import re # noqa: F401 import json -from pydantic import ( - BaseModel, - ConfigDict, - Field, - StrictBool, - StrictFloat, - StrictInt, - StrictStr, -) +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union from fattureincloud_python_sdk.models.vat_type import VatType from typing import Optional, Set from typing_extensions import Self - class Product(BaseModel): """ Product - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictInt] = Field(default=None, description="Product id") name: Optional[StrictStr] = Field(default=None, description="Product name") code: Optional[StrictStr] = Field(default=None, description="Product code") - net_price: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Product net price" - ) - gross_price: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Product gross price" - ) - use_gross_price: Optional[StrictBool] = Field( - default=None, description="Product uses gross prices" - ) + net_price: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Product net price") + gross_price: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Product gross price") + use_gross_price: Optional[StrictBool] = Field(default=None, description="Product uses gross prices") default_vat: Optional[VatType] = None - net_cost: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Product net cost" - ) + net_cost: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Product net cost") measure: Optional[StrictStr] = Field(default=None, description="Product measure") - description: Optional[StrictStr] = Field( - default=None, description="Product description" - ) + description: Optional[StrictStr] = Field(default=None, description="Product description") category: Optional[StrictStr] = Field(default=None, description="Product category") notes: Optional[StrictStr] = Field(default=None, description="Product extra notes") - in_stock: Optional[StrictBool] = Field( - default=None, description="Product has stock" - ) - stock_initial: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Product initial stock" - ) - stock_current: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="[Read Only] Product current stock" - ) - average_cost: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Product average cost" - ) - average_price: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Product average price" - ) - created_at: Optional[StrictStr] = Field( - default=None, description="Product creation date" - ) - updated_at: Optional[StrictStr] = Field( - default=None, description="Product last update date" - ) - __properties: ClassVar[List[str]] = [ - "id", - "name", - "code", - "net_price", - "gross_price", - "use_gross_price", - "default_vat", - "net_cost", - "measure", - "description", - "category", - "notes", - "in_stock", - "stock_initial", - "stock_current", - "average_cost", - "average_price", - "created_at", - "updated_at", - ] + in_stock: Optional[StrictBool] = Field(default=None, description="Product has stock") + stock_initial: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Product initial stock") + stock_current: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="[Read Only] Product current stock") + average_cost: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Product average cost") + average_price: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Product average price") + created_at: Optional[StrictStr] = Field(default=None, description="Product creation date") + updated_at: Optional[StrictStr] = Field(default=None, description="Product last update date") + __properties: ClassVar[List[str]] = ["id", "name", "code", "net_price", "gross_price", "use_gross_price", "default_vat", "net_cost", "measure", "description", "category", "notes", "in_stock", "stock_initial", "stock_current", "average_cost", "average_price", "created_at", "updated_at"] model_config = ConfigDict( populate_by_name=True, @@ -109,6 +55,7 @@ class Product(BaseModel): 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)) @@ -134,11 +81,9 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * OpenAPI `readOnly` fields are excluded. """ - excluded_fields: Set[str] = set( - [ - "stock_current", - ] - ) + excluded_fields: Set[str] = set([ + "stock_current", + ]) _dict = self.model_dump( by_alias=True, @@ -147,7 +92,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of default_vat if self.default_vat: - _dict["default_vat"] = self.default_vat.to_dict() + _dict['default_vat'] = self.default_vat.to_dict() return _dict @classmethod @@ -159,31 +104,27 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "name": obj.get("name"), - "code": obj.get("code"), - "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["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"), - "category": obj.get("category"), - "notes": obj.get("notes"), - "in_stock": obj.get("in_stock"), - "stock_initial": obj.get("stock_initial"), - "stock_current": obj.get("stock_current"), - "average_cost": obj.get("average_cost"), - "average_price": obj.get("average_price"), - "created_at": obj.get("created_at"), - "updated_at": obj.get("updated_at"), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name"), + "code": obj.get("code"), + "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["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"), + "category": obj.get("category"), + "notes": obj.get("notes"), + "in_stock": obj.get("in_stock"), + "stock_initial": obj.get("stock_initial"), + "stock_current": obj.get("stock_current"), + "average_cost": obj.get("average_cost"), + "average_price": obj.get("average_price"), + "created_at": obj.get("created_at"), + "updated_at": obj.get("updated_at") + }) return _obj + + diff --git a/fattureincloud_python_sdk/models/receipt.py b/fattureincloud_python_sdk/models/receipt.py index 88a45d56..89c42d0c 100644 --- a/fattureincloud_python_sdk/models/receipt.py +++ b/fattureincloud_python_sdk/models/receipt.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,84 +19,34 @@ import json from datetime import date -from pydantic import ( - BaseModel, - ConfigDict, - Field, - StrictBool, - StrictFloat, - StrictInt, - StrictStr, -) +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union 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_items_list_item import ReceiptItemsListItem from fattureincloud_python_sdk.models.receipt_type import ReceiptType from typing import Optional, Set from typing_extensions import Self - class Receipt(BaseModel): """ Receipt - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictInt] = Field(default=None, description="Receipt id") - var_date: Optional[date] = Field( - default=None, description="Receipt date", alias="date" - ) - number: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Receipt number" - ) - numeration: Optional[StrictStr] = Field( - default=None, description="Receipt numeration" - ) - amount_net: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Receipt total net amount" - ) - amount_vat: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Receipt total vat amount" - ) - amount_gross: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Receipt total gross amount" - ) - use_gross_prices: Optional[StrictBool] = Field( - default=None, description="Receipt uses gross prices" - ) + var_date: Optional[date] = Field(default=None, description="Receipt date", alias="date") + number: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Receipt number") + numeration: Optional[StrictStr] = Field(default=None, description="Receipt numeration") + amount_net: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Receipt total net amount") + amount_vat: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Receipt total vat amount") + amount_gross: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Receipt total gross amount") + use_gross_prices: Optional[StrictBool] = Field(default=None, description="Receipt uses gross prices") type: Optional[ReceiptType] = None - description: Optional[StrictStr] = Field( - default=None, description="Receipt description" - ) - rc_center: Optional[StrictStr] = Field( - default=None, description="Receipt revenue center" - ) - created_at: Optional[StrictStr] = Field( - default=None, description="Receipt creation date" - ) - updated_at: Optional[StrictStr] = Field( - default=None, description="Receipt last update date" - ) + description: Optional[StrictStr] = Field(default=None, description="Receipt description") + rc_center: Optional[StrictStr] = Field(default=None, description="Receipt revenue center") + created_at: Optional[StrictStr] = Field(default=None, description="Receipt creation date") + updated_at: Optional[StrictStr] = Field(default=None, description="Receipt last update date") payment_account: Optional[PaymentAccount] = None items_list: Optional[List[ReceiptItemsListItem]] = None - __properties: ClassVar[List[str]] = [ - "id", - "date", - "number", - "numeration", - "amount_net", - "amount_vat", - "amount_gross", - "use_gross_prices", - "type", - "description", - "rc_center", - "created_at", - "updated_at", - "payment_account", - "items_list", - ] + __properties: ClassVar[List[str]] = ["id", "date", "number", "numeration", "amount_net", "amount_vat", "amount_gross", "use_gross_prices", "type", "description", "rc_center", "created_at", "updated_at", "payment_account", "items_list"] model_config = ConfigDict( populate_by_name=True, @@ -104,6 +54,7 @@ class Receipt(BaseModel): 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)) @@ -128,7 +79,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -137,14 +89,14 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of payment_account if self.payment_account: - _dict["payment_account"] = self.payment_account.to_dict() + _dict['payment_account'] = self.payment_account.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in items_list (list) _items = [] if self.items_list: for _item_items_list in self.items_list: if _item_items_list: _items.append(_item_items_list.to_dict()) - _dict["items_list"] = _items + _dict['items_list'] = _items return _dict @classmethod @@ -156,34 +108,23 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "date": obj.get("date"), - "number": obj.get("number"), - "numeration": obj.get("numeration"), - "amount_net": obj.get("amount_net"), - "amount_vat": obj.get("amount_vat"), - "amount_gross": obj.get("amount_gross"), - "use_gross_prices": obj.get("use_gross_prices"), - "type": obj.get("type"), - "description": obj.get("description"), - "rc_center": obj.get("rc_center"), - "created_at": obj.get("created_at"), - "updated_at": obj.get("updated_at"), - "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 - ), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "date": obj.get("date"), + "number": obj.get("number"), + "numeration": obj.get("numeration"), + "amount_net": obj.get("amount_net"), + "amount_vat": obj.get("amount_vat"), + "amount_gross": obj.get("amount_gross"), + "use_gross_prices": obj.get("use_gross_prices"), + "type": obj.get("type"), + "description": obj.get("description"), + "rc_center": obj.get("rc_center"), + "created_at": obj.get("created_at"), + "updated_at": obj.get("updated_at"), + "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 ad332017..3d3c5601 100644 --- a/fattureincloud_python_sdk/models/receipt_items_list_item.py +++ b/fattureincloud_python_sdk/models/receipt_items_list_item.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,30 +24,16 @@ from typing import Optional, Set from typing_extensions import Self - class ReceiptItemsListItem(BaseModel): """ ReceiptItemsListItem - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictInt] = Field(default=None, description="Receipt item id") - amount_net: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Receipt item total net amount" - ) - amount_gross: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Receipt item total gross amount" - ) - category: Optional[StrictStr] = Field( - default=None, description="Receipt item category" - ) + amount_net: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Receipt item total net amount") + amount_gross: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Receipt item total gross amount") + category: Optional[StrictStr] = Field(default=None, description="Receipt item category") vat: Optional[VatType] = None - __properties: ClassVar[List[str]] = [ - "id", - "amount_net", - "amount_gross", - "category", - "vat", - ] + __properties: ClassVar[List[str]] = ["id", "amount_net", "amount_gross", "category", "vat"] model_config = ConfigDict( populate_by_name=True, @@ -55,6 +41,7 @@ class ReceiptItemsListItem(BaseModel): 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)) @@ -79,7 +66,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -88,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of vat if self.vat: - _dict["vat"] = self.vat.to_dict() + _dict['vat'] = self.vat.to_dict() return _dict @classmethod @@ -100,17 +88,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "amount_net": obj.get("amount_net"), - "amount_gross": obj.get("amount_gross"), - "category": obj.get("category"), - "vat": ( - VatType.from_dict(obj["vat"]) - if obj.get("vat") is not None - else None - ), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "amount_net": obj.get("amount_net"), + "amount_gross": obj.get("amount_gross"), + "category": obj.get("category"), + "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 7a1ad7ed..804384ea 100644 --- a/fattureincloud_python_sdk/models/receipt_pre_create_info.py +++ b/fattureincloud_python_sdk/models/receipt_pre_create_info.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -25,36 +25,17 @@ from typing import Optional, Set from typing_extensions import Self - class ReceiptPreCreateInfo(BaseModel): """ ReceiptPreCreateInfo - """ # noqa: E501 - + """ # noqa: E501 numerations: Optional[Dict[str, Dict[str, StrictInt]]] = None - numerations_list: Optional[List[StrictStr]] = Field( - default=None, description="Receipt used numerations list" - ) - rc_centers_list: Optional[List[StrictStr]] = Field( - default=None, description="Receipt used revenue centers list" - ) - 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[Optional[VatType]]] = Field( - default=None, description="Vat types list" - ) - __properties: ClassVar[List[str]] = [ - "numerations", - "numerations_list", - "rc_centers_list", - "payment_accounts_list", - "categories_list", - "vat_types_list", - ] + numerations_list: Optional[List[StrictStr]] = Field(default=None, description="Receipt used numerations list") + rc_centers_list: Optional[List[StrictStr]] = Field(default=None, description="Receipt used revenue centers list") + 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[Optional[VatType]]] = Field(default=None, description="Vat types list") + __properties: ClassVar[List[str]] = ["numerations", "numerations_list", "rc_centers_list", "payment_accounts_list", "categories_list", "vat_types_list"] model_config = ConfigDict( populate_by_name=True, @@ -62,6 +43,7 @@ class ReceiptPreCreateInfo(BaseModel): 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)) @@ -86,7 +68,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -99,14 +82,14 @@ def to_dict(self) -> Dict[str, Any]: for _item_payment_accounts_list in self.payment_accounts_list: if _item_payment_accounts_list: _items.append(_item_payment_accounts_list.to_dict()) - _dict["payment_accounts_list"] = _items + _dict['payment_accounts_list'] = _items # override the default output from pydantic by calling `to_dict()` of each item in vat_types_list (list) _items = [] if self.vat_types_list: for _item_vat_types_list in self.vat_types_list: if _item_vat_types_list: _items.append(_item_vat_types_list.to_dict()) - _dict["vat_types_list"] = _items + _dict['vat_types_list'] = _items return _dict @classmethod @@ -118,25 +101,14 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "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["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["vat_types_list"]] - if obj.get("vat_types_list") is not None - else None - ), - } - ) + _obj = cls.model_validate({ + "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["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["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 4bb3a984..a2ba958c 100644 --- a/fattureincloud_python_sdk/models/receipt_type.py +++ b/fattureincloud_python_sdk/models/receipt_type.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -27,10 +27,12 @@ class ReceiptType(str, Enum): """ allowed enum values """ - TILL_RECEIPT = "till_receipt" - SALES_RECEIPT = "sales_receipt" + TILL_RECEIPT = 'till_receipt' + SALES_RECEIPT = 'sales_receipt' @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of ReceiptType from a JSON string""" return cls(json.loads(json_str)) + + diff --git a/fattureincloud_python_sdk/models/received_document.py b/fattureincloud_python_sdk/models/received_document.py index 1e007e92..43629308 100644 --- a/fattureincloud_python_sdk/models/received_document.py +++ b/fattureincloud_python_sdk/models/received_document.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -19,151 +19,51 @@ import json from datetime import date -from pydantic import ( - BaseModel, - ConfigDict, - Field, - StrictBool, - StrictFloat, - StrictInt, - StrictStr, -) +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union 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 ( - ReceivedDocumentItemsListItem, -) -from fattureincloud_python_sdk.models.received_document_payments_list_item import ( - ReceivedDocumentPaymentsListItem, -) +from fattureincloud_python_sdk.models.received_document_items_list_item import ReceivedDocumentItemsListItem +from fattureincloud_python_sdk.models.received_document_payments_list_item import ReceivedDocumentPaymentsListItem from fattureincloud_python_sdk.models.received_document_type import ReceivedDocumentType from typing import Optional, Set from typing_extensions import Self - class ReceivedDocument(BaseModel): """ ReceivedDocument - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictInt] = Field(default=None, description="Received document id") type: Optional[ReceivedDocumentType] = ReceivedDocumentType.EXPENSE entity: Optional[Entity] = None - var_date: Optional[date] = Field( - default=None, - description="Received document date [defaults to today's date]", - alias="date", - ) - category: Optional[StrictStr] = Field( - default=None, description="Received document category" - ) - description: Optional[StrictStr] = Field( - default=None, description="Received document description" - ) - amount_net: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Received document total net amount" - ) - amount_vat: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Received document total vat amount" - ) - amount_withholding_tax: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Received document withholding tax amount" - ) - amount_other_withholding_tax: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Received document other withholding tax amount" - ) - amount_gross: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="[Read Only] Received document total gross amount" - ) - amortization: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Received document amortization value" - ) - rc_center: Optional[StrictStr] = Field( - default=None, description="Received document revenue center" - ) - invoice_number: Optional[StrictStr] = Field( - default=None, description="Received document invoice number" - ) - is_marked: Optional[StrictBool] = Field( - default=None, description="Received document is marked" - ) - is_detailed: Optional[StrictBool] = Field( - default=None, description="Received document has items" - ) - e_invoice: Optional[StrictBool] = Field( - default=None, description="[Read Only] Received document is an e-invoice" - ) - next_due_date: Optional[date] = Field( - default=None, - description="[Read Only] Received document date of the next not paid payment", - ) + var_date: Optional[date] = Field(default=None, description="Received document date [defaults to today's date]", alias="date") + category: Optional[StrictStr] = Field(default=None, description="Received document category") + description: Optional[StrictStr] = Field(default=None, description="Received document description") + amount_net: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Received document total net amount") + amount_vat: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Received document total vat amount") + amount_withholding_tax: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Received document withholding tax amount") + amount_other_withholding_tax: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Received document other withholding tax amount") + amount_gross: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="[Read Only] Received document total gross amount") + amortization: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Received document amortization value") + rc_center: Optional[StrictStr] = Field(default=None, description="Received document revenue center") + invoice_number: Optional[StrictStr] = Field(default=None, description="Received document invoice number") + is_marked: Optional[StrictBool] = Field(default=None, description="Received document is marked") + is_detailed: Optional[StrictBool] = Field(default=None, description="Received document has items") + e_invoice: Optional[StrictBool] = Field(default=None, description="[Read Only] Received document is an e-invoice") + next_due_date: Optional[date] = Field(default=None, description="[Read Only] Received document date of the next not paid payment") currency: Optional[Currency] = None - tax_deductibility: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Received document tax deducibility percentage" - ) - vat_deductibility: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Received document vat deducibility percentage" - ) + tax_deductibility: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Received document tax deducibility percentage") + vat_deductibility: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Received document vat deducibility percentage") items_list: Optional[List[ReceivedDocumentItemsListItem]] = None payments_list: Optional[List[ReceivedDocumentPaymentsListItem]] = None - attachment_url: Optional[StrictStr] = Field( - default=None, - description="[Temporary] [Read Only] Received document url of the attached file", - ) - attachment_preview_url: Optional[StrictStr] = Field( - default=None, - description="[Temporary] [Read Only] Received document url of the attachment preview", - ) - auto_calculate: Optional[StrictBool] = Field( - default=None, - description="Received document total items amount and total payments amount can differ if this field is set to false", - ) - attachment_token: Optional[StrictStr] = Field( - default=None, - description="[Write Only] Received document attachment token returned by POST /received_documents/attachment", - ) - locked: Optional[StrictBool] = Field( - default=None, description="Received Document can't be edited" - ) - created_at: Optional[StrictStr] = Field( - default=None, description="Received document creation date" - ) - updated_at: Optional[StrictStr] = Field( - default=None, description="Received document last update date" - ) - __properties: ClassVar[List[str]] = [ - "id", - "type", - "entity", - "date", - "category", - "description", - "amount_net", - "amount_vat", - "amount_withholding_tax", - "amount_other_withholding_tax", - "amount_gross", - "amortization", - "rc_center", - "invoice_number", - "is_marked", - "is_detailed", - "e_invoice", - "next_due_date", - "currency", - "tax_deductibility", - "vat_deductibility", - "items_list", - "payments_list", - "attachment_url", - "attachment_preview_url", - "auto_calculate", - "attachment_token", - "locked", - "created_at", - "updated_at", - ] + attachment_url: Optional[StrictStr] = Field(default=None, description="[Temporary] [Read Only] Received document url of the attached file") + attachment_preview_url: Optional[StrictStr] = Field(default=None, description="[Temporary] [Read Only] Received document url of the attachment preview") + auto_calculate: Optional[StrictBool] = Field(default=None, description="Received document total items amount and total payments amount can differ if this field is set to false") + attachment_token: Optional[StrictStr] = Field(default=None, description="[Write Only] Received document attachment token returned by POST /received_documents/attachment") + locked: Optional[StrictBool] = Field(default=None, description="Received Document can't be edited") + created_at: Optional[StrictStr] = Field(default=None, description="Received document creation date") + updated_at: Optional[StrictStr] = Field(default=None, description="Received document last update date") + __properties: ClassVar[List[str]] = ["id", "type", "entity", "date", "category", "description", "amount_net", "amount_vat", "amount_withholding_tax", "amount_other_withholding_tax", "amount_gross", "amortization", "rc_center", "invoice_number", "is_marked", "is_detailed", "e_invoice", "next_due_date", "currency", "tax_deductibility", "vat_deductibility", "items_list", "payments_list", "attachment_url", "attachment_preview_url", "auto_calculate", "attachment_token", "locked", "created_at", "updated_at"] model_config = ConfigDict( populate_by_name=True, @@ -171,6 +71,7 @@ class ReceivedDocument(BaseModel): 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)) @@ -199,14 +100,12 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. """ - excluded_fields: Set[str] = set( - [ - "amount_gross", - "next_due_date", - "attachment_url", - "attachment_preview_url", - ] - ) + excluded_fields: Set[str] = set([ + "amount_gross", + "next_due_date", + "attachment_url", + "attachment_preview_url", + ]) _dict = self.model_dump( by_alias=True, @@ -215,24 +114,24 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of entity if self.entity: - _dict["entity"] = self.entity.to_dict() + _dict['entity'] = self.entity.to_dict() # override the default output from pydantic by calling `to_dict()` of currency if self.currency: - _dict["currency"] = self.currency.to_dict() + _dict['currency'] = self.currency.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in items_list (list) _items = [] if self.items_list: for _item_items_list in self.items_list: if _item_items_list: _items.append(_item_items_list.to_dict()) - _dict["items_list"] = _items + _dict['items_list'] = _items # override the default output from pydantic by calling `to_dict()` of each item in payments_list (list) _items = [] if self.payments_list: for _item_payments_list in self.payments_list: if _item_payments_list: _items.append(_item_payments_list.to_dict()) - _dict["payments_list"] = _items + _dict['payments_list'] = _items return _dict @classmethod @@ -244,64 +143,38 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "type": ( - obj.get("type") - if obj.get("type") is not None - else ReceivedDocumentType.EXPENSE - ), - "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"), - "amount_net": obj.get("amount_net"), - "amount_vat": obj.get("amount_vat"), - "amount_withholding_tax": obj.get("amount_withholding_tax"), - "amount_other_withholding_tax": obj.get("amount_other_withholding_tax"), - "amount_gross": obj.get("amount_gross"), - "amortization": obj.get("amortization"), - "rc_center": obj.get("rc_center"), - "invoice_number": obj.get("invoice_number"), - "is_marked": obj.get("is_marked"), - "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["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["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"), - "attachment_token": obj.get("attachment_token"), - "locked": obj.get("locked"), - "created_at": obj.get("created_at"), - "updated_at": obj.get("updated_at"), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "type": obj.get("type") if obj.get("type") is not None else ReceivedDocumentType.EXPENSE, + "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"), + "amount_net": obj.get("amount_net"), + "amount_vat": obj.get("amount_vat"), + "amount_withholding_tax": obj.get("amount_withholding_tax"), + "amount_other_withholding_tax": obj.get("amount_other_withholding_tax"), + "amount_gross": obj.get("amount_gross"), + "amortization": obj.get("amortization"), + "rc_center": obj.get("rc_center"), + "invoice_number": obj.get("invoice_number"), + "is_marked": obj.get("is_marked"), + "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["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["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"), + "attachment_token": obj.get("attachment_token"), + "locked": obj.get("locked"), + "created_at": obj.get("created_at"), + "updated_at": obj.get("updated_at") + }) return _obj + + diff --git a/fattureincloud_python_sdk/models/received_document_info.py b/fattureincloud_python_sdk/models/received_document_info.py index 88e52ccb..25af7674 100644 --- a/fattureincloud_python_sdk/models/received_document_info.py +++ b/fattureincloud_python_sdk/models/received_document_info.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,48 +22,24 @@ from typing import Any, ClassVar, Dict, List, Optional 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 ( - ReceivedDocumentInfoDefaultValues, -) -from fattureincloud_python_sdk.models.received_document_info_items_default_values import ( - ReceivedDocumentInfoItemsDefaultValues, -) +from fattureincloud_python_sdk.models.received_document_info_default_values import ReceivedDocumentInfoDefaultValues +from fattureincloud_python_sdk.models.received_document_info_items_default_values import ReceivedDocumentInfoItemsDefaultValues from fattureincloud_python_sdk.models.vat_type import VatType from typing import Optional, Set from typing_extensions import Self - class ReceivedDocumentInfo(BaseModel): """ ReceivedDocumentInfo - """ # noqa: E501 - + """ # noqa: E501 default_values: Optional[ReceivedDocumentInfoDefaultValues] = None items_default_values: Optional[ReceivedDocumentInfoItemsDefaultValues] = None - countries_list: Optional[List[StrictStr]] = Field( - default=None, description="Countries list" - ) - currencies_list: Optional[List[Currency]] = Field( - default=None, description="Currencies list" - ) - categories_list: Optional[List[StrictStr]] = Field( - default=None, description="Categories list" - ) - payment_accounts_list: Optional[List[Optional[PaymentAccount]]] = Field( - default=None, description="Payments accounts list" - ) - vat_types_list: Optional[List[Optional[VatType]]] = Field( - default=None, description="Vat types list" - ) - __properties: ClassVar[List[str]] = [ - "default_values", - "items_default_values", - "countries_list", - "currencies_list", - "categories_list", - "payment_accounts_list", - "vat_types_list", - ] + countries_list: Optional[List[StrictStr]] = Field(default=None, description="Countries list") + currencies_list: Optional[List[Currency]] = Field(default=None, description="Currencies list") + categories_list: Optional[List[StrictStr]] = Field(default=None, description="Categories list") + payment_accounts_list: Optional[List[Optional[PaymentAccount]]] = Field(default=None, description="Payments accounts list") + vat_types_list: Optional[List[Optional[VatType]]] = Field(default=None, description="Vat types list") + __properties: ClassVar[List[str]] = ["default_values", "items_default_values", "countries_list", "currencies_list", "categories_list", "payment_accounts_list", "vat_types_list"] model_config = ConfigDict( populate_by_name=True, @@ -71,6 +47,7 @@ class ReceivedDocumentInfo(BaseModel): 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)) @@ -95,7 +72,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -104,31 +82,31 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of default_values if self.default_values: - _dict["default_values"] = self.default_values.to_dict() + _dict['default_values'] = self.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() + _dict['items_default_values'] = self.items_default_values.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in currencies_list (list) _items = [] if self.currencies_list: for _item_currencies_list in self.currencies_list: if _item_currencies_list: _items.append(_item_currencies_list.to_dict()) - _dict["currencies_list"] = _items + _dict['currencies_list'] = _items # override the default output from pydantic by calling `to_dict()` of each item in payment_accounts_list (list) _items = [] if self.payment_accounts_list: for _item_payment_accounts_list in self.payment_accounts_list: if _item_payment_accounts_list: _items.append(_item_payment_accounts_list.to_dict()) - _dict["payment_accounts_list"] = _items + _dict['payment_accounts_list'] = _items # override the default output from pydantic by calling `to_dict()` of each item in vat_types_list (list) _items = [] if self.vat_types_list: for _item_vat_types_list in self.vat_types_list: if _item_vat_types_list: _items.append(_item_vat_types_list.to_dict()) - _dict["vat_types_list"] = _items + _dict['vat_types_list'] = _items return _dict @classmethod @@ -140,40 +118,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "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["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["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 - ), - } - ) + _obj = cls.model_validate({ + "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["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["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 e4dc37bf..93f1f51b 100644 --- a/fattureincloud_python_sdk/models/received_document_info_default_values.py +++ b/fattureincloud_python_sdk/models/received_document_info_default_values.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -23,12 +23,10 @@ from typing import Optional, Set from typing_extensions import Self - class ReceivedDocumentInfoDefaultValues(BaseModel): """ Received document default values - """ # noqa: E501 - + """ # noqa: E501 detailed: Optional[StrictBool] = None __properties: ClassVar[List[str]] = ["detailed"] @@ -38,6 +36,7 @@ class ReceivedDocumentInfoDefaultValues(BaseModel): 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)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -80,5 +80,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"detailed": obj.get("detailed")}) + _obj = cls.model_validate({ + "detailed": obj.get("detailed") + }) return _obj + + 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 c89def4b..df16df21 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 @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -23,15 +23,11 @@ from typing import Optional, Set from typing_extensions import Self - class ReceivedDocumentInfoItemsDefaultValues(BaseModel): """ Received document items default values - """ # noqa: E501 - - vat: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Vat default value" - ) + """ # noqa: E501 + vat: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Vat default value") __properties: ClassVar[List[str]] = ["vat"] model_config = ConfigDict( @@ -40,6 +36,7 @@ class ReceivedDocumentInfoItemsDefaultValues(BaseModel): 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)) @@ -64,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -82,5 +80,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"vat": obj.get("vat")}) + _obj = cls.model_validate({ + "vat": obj.get("vat") + }) return _obj + + 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 21542614..fbdec1bf 100644 --- a/fattureincloud_python_sdk/models/received_document_items_list_item.py +++ b/fattureincloud_python_sdk/models/received_document_items_list_item.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,53 +24,21 @@ from typing import Optional, Set from typing_extensions import Self - class ReceivedDocumentItemsListItem(BaseModel): """ ReceivedDocumentItemsListItem - """ # noqa: E501 - - id: Optional[StrictInt] = Field( - default=None, description="Received document item id" - ) - product_id: Optional[StrictInt] = Field( - default=None, description="Received document product id" - ) - code: Optional[StrictStr] = Field( - default=None, description="Received document item product code" - ) - name: Optional[StrictStr] = Field( - default=None, description="Received document item product name" - ) - measure: Optional[StrictStr] = Field( - default=None, description="Received document item measure" - ) - net_price: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Received document item product net price" - ) - category: Optional[StrictStr] = Field( - default=None, description="Received document item product category" - ) - qty: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Received document item quantity" - ) + """ # noqa: E501 + id: Optional[StrictInt] = Field(default=None, description="Received document item id") + product_id: Optional[StrictInt] = Field(default=None, description="Received document product id") + code: Optional[StrictStr] = Field(default=None, description="Received document item product code") + name: Optional[StrictStr] = Field(default=None, description="Received document item product name") + measure: Optional[StrictStr] = Field(default=None, description="Received document item measure") + net_price: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Received document item product net price") + category: Optional[StrictStr] = Field(default=None, description="Received document item product category") + qty: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Received document item quantity") vat: Optional[VatType] = None - stock: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, - description="Received document item product number of items in stock", - ) - __properties: ClassVar[List[str]] = [ - "id", - "product_id", - "code", - "name", - "measure", - "net_price", - "category", - "qty", - "vat", - "stock", - ] + stock: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Received document item product number of items in stock") + __properties: ClassVar[List[str]] = ["id", "product_id", "code", "name", "measure", "net_price", "category", "qty", "vat", "stock"] model_config = ConfigDict( populate_by_name=True, @@ -78,6 +46,7 @@ class ReceivedDocumentItemsListItem(BaseModel): 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)) @@ -102,7 +71,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -111,7 +81,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of vat if self.vat: - _dict["vat"] = self.vat.to_dict() + _dict['vat'] = self.vat.to_dict() return _dict @classmethod @@ -123,22 +93,18 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "product_id": obj.get("product_id"), - "code": obj.get("code"), - "name": obj.get("name"), - "measure": obj.get("measure"), - "net_price": obj.get("net_price"), - "category": obj.get("category"), - "qty": obj.get("qty"), - "vat": ( - VatType.from_dict(obj["vat"]) - if obj.get("vat") is not None - else None - ), - "stock": obj.get("stock"), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "product_id": obj.get("product_id"), + "code": obj.get("code"), + "name": obj.get("name"), + "measure": obj.get("measure"), + "net_price": obj.get("net_price"), + "category": obj.get("category"), + "qty": obj.get("qty"), + "vat": VatType.from_dict(obj["vat"]) if obj.get("vat") is not None else None, + "stock": obj.get("stock") + }) return _obj + + 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 587130b9..31705c2d 100644 --- a/fattureincloud_python_sdk/models/received_document_payments_list_item.py +++ b/fattureincloud_python_sdk/models/received_document_payments_list_item.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -22,42 +22,22 @@ from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union from fattureincloud_python_sdk.models.payment_account import PaymentAccount -from fattureincloud_python_sdk.models.received_document_payments_list_item_payment_terms import ( - ReceivedDocumentPaymentsListItemPaymentTerms, -) +from fattureincloud_python_sdk.models.received_document_payments_list_item_payment_terms import ReceivedDocumentPaymentsListItemPaymentTerms from typing import Optional, Set from typing_extensions import Self - class ReceivedDocumentPaymentsListItem(BaseModel): """ ReceivedDocumentPaymentsListItem - """ # noqa: E501 - - id: Optional[StrictInt] = Field( - default=None, description="Received document payment id" - ) - amount: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Received document payment total amount" - ) + """ # noqa: E501 + id: Optional[StrictInt] = Field(default=None, description="Received document payment id") + amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Received document payment total amount") due_date: Optional[date] = Field(default=None, description="Due date") - paid_date: Optional[date] = Field( - default=None, description="Received document payment paid date" - ) + paid_date: Optional[date] = Field(default=None, description="Received document payment paid date") payment_terms: Optional[ReceivedDocumentPaymentsListItemPaymentTerms] = None - status: Optional[StrictStr] = Field( - default=None, description="Received document payment status" - ) + status: Optional[StrictStr] = Field(default=None, description="Received document payment status") payment_account: Optional[PaymentAccount] = None - __properties: ClassVar[List[str]] = [ - "id", - "amount", - "due_date", - "paid_date", - "payment_terms", - "status", - "payment_account", - ] + __properties: ClassVar[List[str]] = ["id", "amount", "due_date", "paid_date", "payment_terms", "status", "payment_account"] model_config = ConfigDict( populate_by_name=True, @@ -65,6 +45,7 @@ class ReceivedDocumentPaymentsListItem(BaseModel): 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)) @@ -89,7 +70,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -98,10 +80,10 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of payment_terms if self.payment_terms: - _dict["payment_terms"] = self.payment_terms.to_dict() + _dict['payment_terms'] = self.payment_terms.to_dict() # override the default output from pydantic by calling `to_dict()` of payment_account if self.payment_account: - _dict["payment_account"] = self.payment_account.to_dict() + _dict['payment_account'] = self.payment_account.to_dict() return _dict @classmethod @@ -113,25 +95,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "amount": obj.get("amount"), - "due_date": obj.get("due_date"), - "paid_date": obj.get("paid_date"), - "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["payment_account"]) - if obj.get("payment_account") is not None - else None - ), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "amount": obj.get("amount"), + "due_date": obj.get("due_date"), + "paid_date": obj.get("paid_date"), + "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["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 90c16b10..67136c8d 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 @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,16 +24,11 @@ from typing import Optional, Set from typing_extensions import Self - class ReceivedDocumentPaymentsListItemPaymentTerms(BaseModel): """ ReceivedDocumentPaymentsListItemPaymentTerms - """ # noqa: E501 - - days: Optional[StrictInt] = Field( - default=None, - description="Received document payment number of days by which the payment must be made", - ) + """ # noqa: E501 + days: Optional[StrictInt] = Field(default=None, description="Received document payment number of days by which the payment must be made") type: Optional[PaymentTermsType] = PaymentTermsType.STANDARD __properties: ClassVar[List[str]] = ["days", "type"] @@ -43,6 +38,7 @@ class ReceivedDocumentPaymentsListItemPaymentTerms(BaseModel): 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)) @@ -67,7 +63,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -85,14 +82,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "days": obj.get("days"), - "type": ( - obj.get("type") - if obj.get("type") is not None - else PaymentTermsType.STANDARD - ), - } - ) + _obj = cls.model_validate({ + "days": obj.get("days"), + "type": obj.get("type") if obj.get("type") is not None else PaymentTermsType.STANDARD + }) return _obj + + diff --git a/fattureincloud_python_sdk/models/received_document_totals.py b/fattureincloud_python_sdk/models/received_document_totals.py index 6937ec01..dc77ca23 100644 --- a/fattureincloud_python_sdk/models/received_document_totals.py +++ b/fattureincloud_python_sdk/models/received_document_totals.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -23,42 +23,18 @@ from typing import Optional, Set from typing_extensions import Self - class ReceivedDocumentTotals(BaseModel): """ ReceivedDocumentTotals - """ # noqa: E501 - - amount_net: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Received document total net amount" - ) - amount_vat: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Received document total vat amount" - ) - amount_gross: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Received document total gross amount" - ) - amount_withholding_tax: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Received document withholding tax amount" - ) - amount_other_withholding_tax: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Received document other withholding tax amount" - ) - amount_due: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Received document total amount due" - ) - payments_sum: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Received document payments sum" - ) - __properties: ClassVar[List[str]] = [ - "amount_net", - "amount_vat", - "amount_gross", - "amount_withholding_tax", - "amount_other_withholding_tax", - "amount_due", - "payments_sum", - ] + """ # noqa: E501 + amount_net: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Received document total net amount") + amount_vat: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Received document total vat amount") + amount_gross: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Received document total gross amount") + amount_withholding_tax: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Received document withholding tax amount") + amount_other_withholding_tax: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Received document other withholding tax amount") + amount_due: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Received document total amount due") + payments_sum: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Received document payments sum") + __properties: ClassVar[List[str]] = ["amount_net", "amount_vat", "amount_gross", "amount_withholding_tax", "amount_other_withholding_tax", "amount_due", "payments_sum"] model_config = ConfigDict( populate_by_name=True, @@ -66,6 +42,7 @@ class ReceivedDocumentTotals(BaseModel): 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)) @@ -90,7 +67,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -108,15 +86,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "amount_net": obj.get("amount_net"), - "amount_vat": obj.get("amount_vat"), - "amount_gross": obj.get("amount_gross"), - "amount_withholding_tax": obj.get("amount_withholding_tax"), - "amount_other_withholding_tax": obj.get("amount_other_withholding_tax"), - "amount_due": obj.get("amount_due"), - "payments_sum": obj.get("payments_sum"), - } - ) + _obj = cls.model_validate({ + "amount_net": obj.get("amount_net"), + "amount_vat": obj.get("amount_vat"), + "amount_gross": obj.get("amount_gross"), + "amount_withholding_tax": obj.get("amount_withholding_tax"), + "amount_other_withholding_tax": obj.get("amount_other_withholding_tax"), + "amount_due": obj.get("amount_due"), + "payments_sum": obj.get("payments_sum") + }) return _obj + + diff --git a/fattureincloud_python_sdk/models/received_document_type.py b/fattureincloud_python_sdk/models/received_document_type.py index 312fa4bd..47e7a4d4 100644 --- a/fattureincloud_python_sdk/models/received_document_type.py +++ b/fattureincloud_python_sdk/models/received_document_type.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -27,12 +27,14 @@ class ReceivedDocumentType(str, Enum): """ allowed enum values """ - EXPENSE = "expense" - PASSIVE_CREDIT_NOTE = "passive_credit_note" - PASSIVE_DELIVERY_NOTE = "passive_delivery_note" - SELF_INVOICE = "self_invoice" + EXPENSE = 'expense' + PASSIVE_CREDIT_NOTE = 'passive_credit_note' + PASSIVE_DELIVERY_NOTE = 'passive_delivery_note' + SELF_INVOICE = 'self_invoice' @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of ReceivedDocumentType from a JSON string""" return cls(json.loads(json_str)) + + diff --git a/fattureincloud_python_sdk/models/schedule_email_request.py b/fattureincloud_python_sdk/models/schedule_email_request.py index d28721fd..0784fc48 100644 --- a/fattureincloud_python_sdk/models/schedule_email_request.py +++ b/fattureincloud_python_sdk/models/schedule_email_request.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,10 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class ScheduleEmailRequest(BaseModel): - """ """ # noqa: E501 - + """ + + """ # noqa: E501 data: Optional[EmailSchedule] = None __properties: ClassVar[List[str]] = ["data"] @@ -37,6 +37,7 @@ class ScheduleEmailRequest(BaseModel): 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)) @@ -61,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -70,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -82,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - EmailSchedule.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 8595cc12..ccd407e5 100644 --- a/fattureincloud_python_sdk/models/send_e_invoice_request.py +++ b/fattureincloud_python_sdk/models/send_e_invoice_request.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -20,21 +20,15 @@ from pydantic import BaseModel, ConfigDict 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, -) +from fattureincloud_python_sdk.models.send_e_invoice_request_data import SendEInvoiceRequestData +from fattureincloud_python_sdk.models.send_e_invoice_request_options import SendEInvoiceRequestOptions from typing import Optional, Set from typing_extensions import Self - class SendEInvoiceRequest(BaseModel): """ SendEInvoiceRequest - """ # noqa: E501 - + """ # noqa: E501 data: Optional[SendEInvoiceRequestData] = None options: Optional[SendEInvoiceRequestOptions] = None __properties: ClassVar[List[str]] = ["data", "options"] @@ -45,6 +39,7 @@ class SendEInvoiceRequest(BaseModel): 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)) @@ -69,7 +64,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -78,10 +74,10 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() # override the default output from pydantic by calling `to_dict()` of options if self.options: - _dict["options"] = self.options.to_dict() + _dict['options'] = self.options.to_dict() return _dict @classmethod @@ -93,18 +89,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "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 - ), - } - ) + _obj = cls.model_validate({ + "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 20c48739..3157c035 100644 --- a/fattureincloud_python_sdk/models/send_e_invoice_request_data.py +++ b/fattureincloud_python_sdk/models/send_e_invoice_request_data.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -23,20 +23,12 @@ from typing import Optional, Set from typing_extensions import Self - class SendEInvoiceRequestData(BaseModel): """ SendEInvoiceRequestData - """ # noqa: E501 - - cassa_type: Optional[StrictStr] = Field( - default=None, - description="Value of TipoCassa used (optional, override the company default value).", - ) - withholding_tax_causal: Optional[StrictStr] = Field( - default=None, - description="Value of CausalePagamento used (optional, override the company default value).", - ) + """ # noqa: E501 + cassa_type: Optional[StrictStr] = Field(default=None, description="Value of TipoCassa used (optional, override the company default value).") + withholding_tax_causal: Optional[StrictStr] = Field(default=None, description="Value of CausalePagamento used (optional, override the company default value).") __properties: ClassVar[List[str]] = ["cassa_type", "withholding_tax_causal"] model_config = ConfigDict( @@ -45,6 +37,7 @@ class SendEInvoiceRequestData(BaseModel): 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)) @@ -69,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -87,10 +81,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "cassa_type": obj.get("cassa_type"), - "withholding_tax_causal": obj.get("withholding_tax_causal"), - } - ) + _obj = cls.model_validate({ + "cassa_type": obj.get("cassa_type"), + "withholding_tax_causal": obj.get("withholding_tax_causal") + }) return _obj + + 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 c52d609f..02f555fa 100644 --- a/fattureincloud_python_sdk/models/send_e_invoice_request_options.py +++ b/fattureincloud_python_sdk/models/send_e_invoice_request_options.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -23,16 +23,11 @@ from typing import Optional, Set from typing_extensions import Self - class SendEInvoiceRequestOptions(BaseModel): """ SendEInvoiceRequestOptions - """ # noqa: E501 - - dry_run: Optional[StrictBool] = Field( - default=None, - description="If set to true the e-invoice will not be sent to the SDI.", - ) + """ # noqa: E501 + dry_run: Optional[StrictBool] = Field(default=None, description="If set to true the e-invoice will not be sent to the SDI.") __properties: ClassVar[List[str]] = ["dry_run"] model_config = ConfigDict( @@ -41,6 +36,7 @@ class SendEInvoiceRequestOptions(BaseModel): 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)) @@ -65,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -83,5 +80,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"dry_run": obj.get("dry_run")}) + _obj = cls.model_validate({ + "dry_run": obj.get("dry_run") + }) return _obj + + diff --git a/fattureincloud_python_sdk/models/send_e_invoice_response.py b/fattureincloud_python_sdk/models/send_e_invoice_response.py index 38a0f464..dc7f8a56 100644 --- a/fattureincloud_python_sdk/models/send_e_invoice_response.py +++ b/fattureincloud_python_sdk/models/send_e_invoice_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -20,18 +20,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from fattureincloud_python_sdk.models.send_e_invoice_response_data import ( - SendEInvoiceResponseData, -) +from fattureincloud_python_sdk.models.send_e_invoice_response_data import SendEInvoiceResponseData from typing import Optional, Set from typing_extensions import Self - class SendEInvoiceResponse(BaseModel): """ SendEInvoiceResponse - """ # noqa: E501 - + """ # noqa: E501 data: Optional[SendEInvoiceResponseData] = None __properties: ClassVar[List[str]] = ["data"] @@ -41,6 +37,7 @@ class SendEInvoiceResponse(BaseModel): 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)) @@ -65,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -74,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -86,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - SendEInvoiceResponseData.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 67ce9e3b..f3fdd2cd 100644 --- a/fattureincloud_python_sdk/models/send_e_invoice_response_data.py +++ b/fattureincloud_python_sdk/models/send_e_invoice_response_data.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -23,16 +23,12 @@ from typing import Optional, Set from typing_extensions import Self - class SendEInvoiceResponseData(BaseModel): """ SendEInvoiceResponseData - """ # noqa: E501 - + """ # noqa: E501 name: Optional[StrictStr] = Field(default=None, description="Response message.") - var_date: Optional[StrictStr] = Field( - default=None, description="E-invoice sent date.", alias="date" - ) + var_date: Optional[StrictStr] = Field(default=None, description="E-invoice sent date.", alias="date") __properties: ClassVar[List[str]] = ["name", "date"] model_config = ConfigDict( @@ -41,6 +37,7 @@ class SendEInvoiceResponseData(BaseModel): 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)) @@ -65,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -83,5 +81,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"name": obj.get("name"), "date": obj.get("date")}) + _obj = cls.model_validate({ + "name": obj.get("name"), + "date": obj.get("date") + }) return _obj + + diff --git a/fattureincloud_python_sdk/models/sender_email.py b/fattureincloud_python_sdk/models/sender_email.py index fe7361e7..706462d3 100644 --- a/fattureincloud_python_sdk/models/sender_email.py +++ b/fattureincloud_python_sdk/models/sender_email.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -23,12 +23,10 @@ from typing import Optional, Set from typing_extensions import Self - class SenderEmail(BaseModel): """ SenderEmail - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictInt] = Field(default=None, description="Sender email id") email: Optional[StrictStr] = Field(default=None, description="Sender email address") __properties: ClassVar[List[str]] = ["id", "email"] @@ -39,6 +37,7 @@ class SenderEmail(BaseModel): 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)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -81,5 +81,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"id": obj.get("id"), "email": obj.get("email")}) + _obj = cls.model_validate({ + "id": obj.get("id"), + "email": obj.get("email") + }) return _obj + + diff --git a/fattureincloud_python_sdk/models/show_totals_mode.py b/fattureincloud_python_sdk/models/show_totals_mode.py index 488d0ded..aeefa2f6 100644 --- a/fattureincloud_python_sdk/models/show_totals_mode.py +++ b/fattureincloud_python_sdk/models/show_totals_mode.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -27,11 +27,13 @@ class ShowTotalsMode(str, Enum): """ allowed enum values """ - NONE = "none" - NETS = "nets" - ALL = "all" + NONE = 'none' + NETS = 'nets' + ALL = 'all' @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of ShowTotalsMode from a JSON string""" return cls(json.loads(json_str)) + + diff --git a/fattureincloud_python_sdk/models/supplier.py b/fattureincloud_python_sdk/models/supplier.py index 2ccd0d04..28053076 100644 --- a/fattureincloud_python_sdk/models/supplier.py +++ b/fattureincloud_python_sdk/models/supplier.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,88 +24,35 @@ from typing import Optional, Set from typing_extensions import Self - class Supplier(BaseModel): """ Supplier - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictInt] = Field(default=None, description="Supplier id") code: Optional[StrictStr] = Field(default=None, description="Supplier code") name: Optional[StrictStr] = Field(default=None, description="Supplier name") type: Optional[SupplierType] = None - first_name: Optional[StrictStr] = Field( - default=None, description="Supplier first name" - ) - last_name: Optional[StrictStr] = Field( - default=None, description="Supplier last name" - ) - contact_person: Optional[StrictStr] = Field( - default=None, description="Supplier contact person" - ) - vat_number: Optional[StrictStr] = Field( - default=None, description="Supplier vat number" - ) + first_name: Optional[StrictStr] = Field(default=None, description="Supplier first name") + last_name: Optional[StrictStr] = Field(default=None, description="Supplier last name") + contact_person: Optional[StrictStr] = Field(default=None, description="Supplier contact person") + vat_number: Optional[StrictStr] = Field(default=None, description="Supplier vat number") tax_code: Optional[StrictStr] = Field(default=None, description="Supplier tax code") - address_street: Optional[StrictStr] = Field( - default=None, description="Supplier street address" - ) - address_postal_code: Optional[StrictStr] = Field( - default=None, description="Supplier postal code" - ) + address_street: Optional[StrictStr] = Field(default=None, description="Supplier street address") + address_postal_code: Optional[StrictStr] = Field(default=None, description="Supplier postal code") address_city: Optional[StrictStr] = Field(default=None, description="Supplier city") - address_province: Optional[StrictStr] = Field( - default=None, description="Supplier province" - ) - address_extra: Optional[StrictStr] = Field( - default=None, description="Supplier address extra info" - ) + address_province: Optional[StrictStr] = Field(default=None, description="Supplier province") + address_extra: Optional[StrictStr] = Field(default=None, description="Supplier address extra info") country: Optional[StrictStr] = Field(default=None, description="Supplier country") - country_iso: Optional[StrictStr] = Field( - default=None, description="Supplier country iso code" - ) + country_iso: Optional[StrictStr] = Field(default=None, description="Supplier country iso code") email: Optional[StrictStr] = Field(default=None, description="Supplier email") - certified_email: Optional[StrictStr] = Field( - default=None, description="Supplier certified email" - ) + certified_email: Optional[StrictStr] = Field(default=None, description="Supplier certified email") phone: Optional[StrictStr] = Field(default=None, description="Supplier phone") fax: Optional[StrictStr] = Field(default=None, description="Supplier fax") notes: Optional[StrictStr] = Field(default=None, description="Supplier extra notes") - bank_iban: Optional[StrictStr] = Field( - default=None, description="Supplier bank IBAN" - ) - created_at: Optional[StrictStr] = Field( - default=None, description="Supplier creation date" - ) - updated_at: Optional[StrictStr] = Field( - default=None, description="Supplier last update date" - ) - __properties: ClassVar[List[str]] = [ - "id", - "code", - "name", - "type", - "first_name", - "last_name", - "contact_person", - "vat_number", - "tax_code", - "address_street", - "address_postal_code", - "address_city", - "address_province", - "address_extra", - "country", - "country_iso", - "email", - "certified_email", - "phone", - "fax", - "notes", - "bank_iban", - "created_at", - "updated_at", - ] + bank_iban: Optional[StrictStr] = Field(default=None, description="Supplier bank IBAN") + created_at: Optional[StrictStr] = Field(default=None, description="Supplier creation date") + updated_at: Optional[StrictStr] = Field(default=None, description="Supplier last update date") + __properties: ClassVar[List[str]] = ["id", "code", "name", "type", "first_name", "last_name", "contact_person", "vat_number", "tax_code", "address_street", "address_postal_code", "address_city", "address_province", "address_extra", "country", "country_iso", "email", "certified_email", "phone", "fax", "notes", "bank_iban", "created_at", "updated_at"] model_config = ConfigDict( populate_by_name=True, @@ -113,6 +60,7 @@ class Supplier(BaseModel): 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)) @@ -137,7 +85,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -155,32 +104,32 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "code": obj.get("code"), - "name": obj.get("name"), - "type": obj.get("type"), - "first_name": obj.get("first_name"), - "last_name": obj.get("last_name"), - "contact_person": obj.get("contact_person"), - "vat_number": obj.get("vat_number"), - "tax_code": obj.get("tax_code"), - "address_street": obj.get("address_street"), - "address_postal_code": obj.get("address_postal_code"), - "address_city": obj.get("address_city"), - "address_province": obj.get("address_province"), - "address_extra": obj.get("address_extra"), - "country": obj.get("country"), - "country_iso": obj.get("country_iso"), - "email": obj.get("email"), - "certified_email": obj.get("certified_email"), - "phone": obj.get("phone"), - "fax": obj.get("fax"), - "notes": obj.get("notes"), - "bank_iban": obj.get("bank_iban"), - "created_at": obj.get("created_at"), - "updated_at": obj.get("updated_at"), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "code": obj.get("code"), + "name": obj.get("name"), + "type": obj.get("type"), + "first_name": obj.get("first_name"), + "last_name": obj.get("last_name"), + "contact_person": obj.get("contact_person"), + "vat_number": obj.get("vat_number"), + "tax_code": obj.get("tax_code"), + "address_street": obj.get("address_street"), + "address_postal_code": obj.get("address_postal_code"), + "address_city": obj.get("address_city"), + "address_province": obj.get("address_province"), + "address_extra": obj.get("address_extra"), + "country": obj.get("country"), + "country_iso": obj.get("country_iso"), + "email": obj.get("email"), + "certified_email": obj.get("certified_email"), + "phone": obj.get("phone"), + "fax": obj.get("fax"), + "notes": obj.get("notes"), + "bank_iban": obj.get("bank_iban"), + "created_at": obj.get("created_at"), + "updated_at": obj.get("updated_at") + }) return _obj + + diff --git a/fattureincloud_python_sdk/models/supplier_type.py b/fattureincloud_python_sdk/models/supplier_type.py index 7eeb7fb6..39df874c 100644 --- a/fattureincloud_python_sdk/models/supplier_type.py +++ b/fattureincloud_python_sdk/models/supplier_type.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -27,12 +27,14 @@ class SupplierType(str, Enum): """ allowed enum values """ - COMPANY = "company" - PERSON = "person" - PA = "pa" - CONDO = "condo" + COMPANY = 'company' + PERSON = 'person' + PA = 'pa' + CONDO = 'condo' @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of SupplierType from a JSON string""" return cls(json.loads(json_str)) + + diff --git a/fattureincloud_python_sdk/models/tax_profile.py b/fattureincloud_python_sdk/models/tax_profile.py index 3e4111fb..99582cf6 100644 --- a/fattureincloud_python_sdk/models/tax_profile.py +++ b/fattureincloud_python_sdk/models/tax_profile.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -18,106 +18,38 @@ import re # noqa: F401 import json -from pydantic import ( - BaseModel, - ConfigDict, - Field, - StrictBool, - StrictFloat, - StrictInt, - StrictStr, -) +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union from fattureincloud_python_sdk.models.vat_type import VatType from typing import Optional, Set from typing_extensions import Self - class TaxProfile(BaseModel): """ TaxProfile - """ # noqa: E501 - - company_type: Optional[StrictStr] = Field( - default=None, description="The company type" - ) - company_subtype: Optional[StrictStr] = Field( - default=None, description="The company subtype" - ) + """ # noqa: E501 + company_type: Optional[StrictStr] = Field(default=None, description="The company type") + company_subtype: Optional[StrictStr] = Field(default=None, description="The company subtype") profession: Optional[StrictStr] = Field(default=None, description="The profession") regime: Optional[StrictStr] = Field(default=None, description="The applied regime") - rivalsa_name: Optional[StrictStr] = Field( - default=None, description="The name of the rivalsa" - ) - default_rivalsa: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="The default rivalsa amount" - ) - cassa_name: Optional[StrictStr] = Field( - default=None, description="The name of the cassa" - ) - default_cassa: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="The default cassa amount" - ) - default_cassa_taxable: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="The default taxable amount for the cassa" - ) - cassa2_name: Optional[StrictStr] = Field( - default=None, description="The name of the second cassa" - ) - default_cassa2: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="The default second cassa amount" - ) - default_cassa2_taxable: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="The default taxable amount for the second cassa" - ) - default_withholding_tax: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="The default withholding tax" - ) - default_withholding_tax_taxable: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="The default taxable amount for the withholding tax" - ) - default_other_withholding_tax: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="The default other withholding tax" - ) - enasarco: Optional[StrictBool] = Field( - default=None, description="If it has enasarco" - ) - enasarco_type: Optional[StrictStr] = Field( - default=None, description="The enasarco type" - ) - contributions_percentage: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="The contributions percentage" - ) - profit_coefficient: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="The profit coefficient" - ) - med: Optional[StrictBool] = Field( - default=None, description="If the health card system is active" - ) + rivalsa_name: Optional[StrictStr] = Field(default=None, description="The name of the rivalsa") + default_rivalsa: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The default rivalsa amount") + cassa_name: Optional[StrictStr] = Field(default=None, description="The name of the cassa") + default_cassa: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The default cassa amount") + default_cassa_taxable: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The default taxable amount for the cassa") + cassa2_name: Optional[StrictStr] = Field(default=None, description="The name of the second cassa") + default_cassa2: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The default second cassa amount") + default_cassa2_taxable: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The default taxable amount for the second cassa") + default_withholding_tax: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The default withholding tax") + default_withholding_tax_taxable: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The default taxable amount for the withholding tax") + default_other_withholding_tax: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The default other withholding tax") + enasarco: Optional[StrictBool] = Field(default=None, description="If it has enasarco") + enasarco_type: Optional[StrictStr] = Field(default=None, description="The enasarco type") + contributions_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The contributions percentage") + profit_coefficient: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The profit coefficient") + med: Optional[StrictBool] = Field(default=None, description="If the health card system is active") default_vat: Optional[VatType] = None - __properties: ClassVar[List[str]] = [ - "company_type", - "company_subtype", - "profession", - "regime", - "rivalsa_name", - "default_rivalsa", - "cassa_name", - "default_cassa", - "default_cassa_taxable", - "cassa2_name", - "default_cassa2", - "default_cassa2_taxable", - "default_withholding_tax", - "default_withholding_tax_taxable", - "default_other_withholding_tax", - "enasarco", - "enasarco_type", - "contributions_percentage", - "profit_coefficient", - "med", - "default_vat", - ] + __properties: ClassVar[List[str]] = ["company_type", "company_subtype", "profession", "regime", "rivalsa_name", "default_rivalsa", "cassa_name", "default_cassa", "default_cassa_taxable", "cassa2_name", "default_cassa2", "default_cassa2_taxable", "default_withholding_tax", "default_withholding_tax_taxable", "default_other_withholding_tax", "enasarco", "enasarco_type", "contributions_percentage", "profit_coefficient", "med", "default_vat"] model_config = ConfigDict( populate_by_name=True, @@ -125,6 +57,7 @@ class TaxProfile(BaseModel): 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)) @@ -149,7 +82,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -158,7 +92,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of default_vat if self.default_vat: - _dict["default_vat"] = self.default_vat.to_dict() + _dict['default_vat'] = self.default_vat.to_dict() return _dict @classmethod @@ -170,37 +104,29 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "company_type": obj.get("company_type"), - "company_subtype": obj.get("company_subtype"), - "profession": obj.get("profession"), - "regime": obj.get("regime"), - "rivalsa_name": obj.get("rivalsa_name"), - "default_rivalsa": obj.get("default_rivalsa"), - "cassa_name": obj.get("cassa_name"), - "default_cassa": obj.get("default_cassa"), - "default_cassa_taxable": obj.get("default_cassa_taxable"), - "cassa2_name": obj.get("cassa2_name"), - "default_cassa2": obj.get("default_cassa2"), - "default_cassa2_taxable": obj.get("default_cassa2_taxable"), - "default_withholding_tax": obj.get("default_withholding_tax"), - "default_withholding_tax_taxable": obj.get( - "default_withholding_tax_taxable" - ), - "default_other_withholding_tax": obj.get( - "default_other_withholding_tax" - ), - "enasarco": obj.get("enasarco"), - "enasarco_type": obj.get("enasarco_type"), - "contributions_percentage": obj.get("contributions_percentage"), - "profit_coefficient": obj.get("profit_coefficient"), - "med": obj.get("med"), - "default_vat": ( - VatType.from_dict(obj["default_vat"]) - if obj.get("default_vat") is not None - else None - ), - } - ) + _obj = cls.model_validate({ + "company_type": obj.get("company_type"), + "company_subtype": obj.get("company_subtype"), + "profession": obj.get("profession"), + "regime": obj.get("regime"), + "rivalsa_name": obj.get("rivalsa_name"), + "default_rivalsa": obj.get("default_rivalsa"), + "cassa_name": obj.get("cassa_name"), + "default_cassa": obj.get("default_cassa"), + "default_cassa_taxable": obj.get("default_cassa_taxable"), + "cassa2_name": obj.get("cassa2_name"), + "default_cassa2": obj.get("default_cassa2"), + "default_cassa2_taxable": obj.get("default_cassa2_taxable"), + "default_withholding_tax": obj.get("default_withholding_tax"), + "default_withholding_tax_taxable": obj.get("default_withholding_tax_taxable"), + "default_other_withholding_tax": obj.get("default_other_withholding_tax"), + "enasarco": obj.get("enasarco"), + "enasarco_type": obj.get("enasarco_type"), + "contributions_percentage": obj.get("contributions_percentage"), + "profit_coefficient": obj.get("profit_coefficient"), + "med": obj.get("med"), + "default_vat": VatType.from_dict(obj["default_vat"]) if obj.get("default_vat") is not None else None + }) return _obj + + diff --git a/fattureincloud_python_sdk/models/transform_issued_document_response.py b/fattureincloud_python_sdk/models/transform_issued_document_response.py index 59bc8b26..4b89beb8 100644 --- a/fattureincloud_python_sdk/models/transform_issued_document_response.py +++ b/fattureincloud_python_sdk/models/transform_issued_document_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -21,18 +21,14 @@ from pydantic import BaseModel, ConfigDict 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, -) +from fattureincloud_python_sdk.models.issued_document_options import IssuedDocumentOptions from typing import Optional, Set from typing_extensions import Self - class TransformIssuedDocumentResponse(BaseModel): """ TransformIssuedDocumentResponse - """ # noqa: E501 - + """ # noqa: E501 data: Optional[IssuedDocument] = None options: Optional[IssuedDocumentOptions] = None __properties: ClassVar[List[str]] = ["data", "options"] @@ -43,6 +39,7 @@ class TransformIssuedDocumentResponse(BaseModel): 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)) @@ -67,7 +64,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -76,10 +74,10 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() # override the default output from pydantic by calling `to_dict()` of options if self.options: - _dict["options"] = self.options.to_dict() + _dict['options'] = self.options.to_dict() return _dict @classmethod @@ -91,18 +89,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "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 - ), - } - ) + _obj = cls.model_validate({ + "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 6121aedc..5fb62209 100644 --- a/fattureincloud_python_sdk/models/upload_archive_attachment_response.py +++ b/fattureincloud_python_sdk/models/upload_archive_attachment_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class UploadArchiveAttachmentResponse(BaseModel): """ UploadArchiveAttachmentResponse - """ # noqa: E501 - + """ # noqa: E501 data: Optional[AttachmentData] = None __properties: ClassVar[List[str]] = ["data"] @@ -39,6 +37,7 @@ class UploadArchiveAttachmentResponse(BaseModel): 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)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -72,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -84,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - AttachmentData.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 ca46d38e..13871115 100644 --- a/fattureincloud_python_sdk/models/upload_f24_attachment_response.py +++ b/fattureincloud_python_sdk/models/upload_f24_attachment_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class UploadF24AttachmentResponse(BaseModel): """ UploadF24AttachmentResponse - """ # noqa: E501 - + """ # noqa: E501 data: Optional[AttachmentData] = None __properties: ClassVar[List[str]] = ["data"] @@ -39,6 +37,7 @@ class UploadF24AttachmentResponse(BaseModel): 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)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -72,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -84,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - AttachmentData.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 19fdda49..a48dd148 100644 --- a/fattureincloud_python_sdk/models/upload_issued_document_attachment_response.py +++ b/fattureincloud_python_sdk/models/upload_issued_document_attachment_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class UploadIssuedDocumentAttachmentResponse(BaseModel): """ UploadIssuedDocumentAttachmentResponse - """ # noqa: E501 - + """ # noqa: E501 data: Optional[AttachmentData] = None __properties: ClassVar[List[str]] = ["data"] @@ -39,6 +37,7 @@ class UploadIssuedDocumentAttachmentResponse(BaseModel): 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)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -72,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -84,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - AttachmentData.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 006a8c7f..3d5200f4 100644 --- a/fattureincloud_python_sdk/models/upload_received_document_attachment_response.py +++ b/fattureincloud_python_sdk/models/upload_received_document_attachment_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -24,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class UploadReceivedDocumentAttachmentResponse(BaseModel): """ UploadReceivedDocumentAttachmentResponse - """ # noqa: E501 - + """ # noqa: E501 data: Optional[AttachmentData] = None __properties: ClassVar[List[str]] = ["data"] @@ -39,6 +37,7 @@ class UploadReceivedDocumentAttachmentResponse(BaseModel): 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)) @@ -63,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -72,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -84,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - AttachmentData.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 4a32bd04..1a9b491b 100644 --- a/fattureincloud_python_sdk/models/user.py +++ b/fattureincloud_python_sdk/models/user.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -23,12 +23,10 @@ from typing import Optional, Set from typing_extensions import Self - class User(BaseModel): """ User - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictInt] = Field(default=None, description="User id") name: Optional[StrictStr] = Field(default=None, description="User full name") first_name: Optional[StrictStr] = Field(default=None, description="User first name") @@ -36,15 +34,7 @@ class User(BaseModel): email: Optional[StrictStr] = Field(default=None, description="User email address") hash: Optional[StrictStr] = Field(default=None, description="User hash") picture: Optional[StrictStr] = Field(default=None, description="User picture") - __properties: ClassVar[List[str]] = [ - "id", - "name", - "first_name", - "last_name", - "email", - "hash", - "picture", - ] + __properties: ClassVar[List[str]] = ["id", "name", "first_name", "last_name", "email", "hash", "picture"] model_config = ConfigDict( populate_by_name=True, @@ -52,6 +42,7 @@ class User(BaseModel): 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)) @@ -76,7 +67,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -94,15 +86,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "name": obj.get("name"), - "first_name": obj.get("first_name"), - "last_name": obj.get("last_name"), - "email": obj.get("email"), - "hash": obj.get("hash"), - "picture": obj.get("picture"), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name"), + "first_name": obj.get("first_name"), + "last_name": obj.get("last_name"), + "email": obj.get("email"), + "hash": obj.get("hash"), + "picture": obj.get("picture") + }) return _obj + + diff --git a/fattureincloud_python_sdk/models/user_company_role.py b/fattureincloud_python_sdk/models/user_company_role.py index f09a892d..43d900cb 100644 --- a/fattureincloud_python_sdk/models/user_company_role.py +++ b/fattureincloud_python_sdk/models/user_company_role.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -27,11 +27,13 @@ class UserCompanyRole(str, Enum): """ allowed enum values """ - MASTER = "master" - SUBACCOUNT = "subaccount" - EMPLOYEE = "employee" + MASTER = 'master' + SUBACCOUNT = 'subaccount' + EMPLOYEE = 'employee' @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of UserCompanyRole from a JSON string""" return cls(json.loads(json_str)) + + diff --git a/fattureincloud_python_sdk/models/vat_item.py b/fattureincloud_python_sdk/models/vat_item.py index 521d3495..2ca4e7f3 100644 --- a/fattureincloud_python_sdk/models/vat_item.py +++ b/fattureincloud_python_sdk/models/vat_item.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -23,18 +23,12 @@ from typing import Optional, Set from typing_extensions import Self - class VatItem(BaseModel): """ VatItem - """ # noqa: E501 - - amount_net: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Vat item net amount" - ) - amount_vat: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="Vat item vat amount" - ) + """ # noqa: E501 + amount_net: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Vat item net amount") + amount_vat: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Vat item vat amount") __properties: ClassVar[List[str]] = ["amount_net", "amount_vat"] model_config = ConfigDict( @@ -43,6 +37,7 @@ class VatItem(BaseModel): 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)) @@ -67,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -85,7 +81,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - {"amount_net": obj.get("amount_net"), "amount_vat": obj.get("amount_vat")} - ) + _obj = cls.model_validate({ + "amount_net": obj.get("amount_net"), + "amount_vat": obj.get("amount_vat") + }) return _obj + + diff --git a/fattureincloud_python_sdk/models/vat_kind.py b/fattureincloud_python_sdk/models/vat_kind.py index ec43e0cc..464ad010 100644 --- a/fattureincloud_python_sdk/models/vat_kind.py +++ b/fattureincloud_python_sdk/models/vat_kind.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -27,11 +27,13 @@ class VatKind(str, Enum): """ allowed enum values """ - I = "I" - D = "D" - S = "S" + I = 'I' + D = 'D' + S = 'S' @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of VatKind from a JSON string""" return cls(json.loads(json_str)) + + diff --git a/fattureincloud_python_sdk/models/vat_type.py b/fattureincloud_python_sdk/models/vat_type.py index 586e47b1..f201078c 100644 --- a/fattureincloud_python_sdk/models/vat_type.py +++ b/fattureincloud_python_sdk/models/vat_type.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -18,65 +18,26 @@ import re # noqa: F401 import json -from pydantic import ( - BaseModel, - ConfigDict, - Field, - StrictBool, - StrictFloat, - StrictInt, - StrictStr, -) +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union from typing import Optional, Set from typing_extensions import Self - class VatType(BaseModel): """ VatType - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictInt] = Field(default=None, description="Vat type id") - value: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="[Read Only] Vat type percentual value" - ) - description: Optional[StrictStr] = Field( - default=None, description="Vat type short description" - ) - notes: Optional[StrictStr] = Field( - default=None, description="Vat type notes shown in documents" - ) - e_invoice: Optional[StrictBool] = Field( - default=None, description="Vat type is usable for e-invoices" - ) - ei_type: Optional[StrictStr] = Field( - default=None, description="Vat type e-invoice type (natura)" - ) - ei_description: Optional[StrictStr] = Field( - default=None, description="Vat type e-invoice description" - ) - editable: Optional[StrictBool] = Field( - default=None, description="[Read Only] Is the vat type is editable." - ) - is_disabled: Optional[StrictBool] = Field( - default=None, description="Is the vat type disabled" - ) - default: Optional[StrictBool] = Field( - default=None, description="If the vat type is default" - ) - __properties: ClassVar[List[str]] = [ - "id", - "value", - "description", - "notes", - "e_invoice", - "ei_type", - "ei_description", - "editable", - "is_disabled", - "default", - ] + value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="[Read Only] Vat type percentual value") + description: Optional[StrictStr] = Field(default=None, description="Vat type short description") + notes: Optional[StrictStr] = Field(default=None, description="Vat type notes shown in documents") + e_invoice: Optional[StrictBool] = Field(default=None, description="Vat type is usable for e-invoices") + ei_type: Optional[StrictStr] = Field(default=None, description="Vat type e-invoice type (natura)") + ei_description: Optional[StrictStr] = Field(default=None, description="Vat type e-invoice description") + editable: Optional[StrictBool] = Field(default=None, description="[Read Only] Is the vat type is editable.") + is_disabled: Optional[StrictBool] = Field(default=None, description="Is the vat type disabled") + default: Optional[StrictBool] = Field(default=None, description="If the vat type is default") + __properties: ClassVar[List[str]] = ["id", "value", "description", "notes", "e_invoice", "ei_type", "ei_description", "editable", "is_disabled", "default"] model_config = ConfigDict( populate_by_name=True, @@ -84,6 +45,7 @@ class VatType(BaseModel): 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)) @@ -109,11 +71,9 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * OpenAPI `readOnly` fields are excluded. """ - excluded_fields: Set[str] = set( - [ - "editable", - ] - ) + excluded_fields: Set[str] = set([ + "editable", + ]) _dict = self.model_dump( by_alias=True, @@ -131,18 +91,18 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "value": obj.get("value"), - "description": obj.get("description"), - "notes": obj.get("notes"), - "e_invoice": obj.get("e_invoice"), - "ei_type": obj.get("ei_type"), - "ei_description": obj.get("ei_description"), - "editable": obj.get("editable"), - "is_disabled": obj.get("is_disabled"), - "default": obj.get("default"), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "value": obj.get("value"), + "description": obj.get("description"), + "notes": obj.get("notes"), + "e_invoice": obj.get("e_invoice"), + "ei_type": obj.get("ei_type"), + "ei_description": obj.get("ei_description"), + "editable": obj.get("editable"), + "is_disabled": obj.get("is_disabled"), + "default": obj.get("default") + }) return _obj + + 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 a810dc6b..d635d16a 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 @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -20,21 +20,15 @@ from pydantic import BaseModel, ConfigDict 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, -) +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 from typing import Optional, Set from typing_extensions import Self - class VerifyEInvoiceXmlErrorResponse(BaseModel): """ VerifyEInvoiceXmlErrorResponse - """ # noqa: E501 - + """ # noqa: E501 error: Optional[VerifyEInvoiceXmlErrorResponseError] = None extra: Optional[VerifyEInvoiceXmlErrorResponseExtra] = None __properties: ClassVar[List[str]] = ["error", "extra"] @@ -45,6 +39,7 @@ class VerifyEInvoiceXmlErrorResponse(BaseModel): 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)) @@ -69,7 +64,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -78,10 +74,10 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of error if self.error: - _dict["error"] = self.error.to_dict() + _dict['error'] = self.error.to_dict() # override the default output from pydantic by calling `to_dict()` of extra if self.extra: - _dict["extra"] = self.extra.to_dict() + _dict['extra'] = self.extra.to_dict() return _dict @classmethod @@ -93,18 +89,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "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 - ), - } - ) + _obj = cls.model_validate({ + "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 d442d341..f1904678 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 @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -20,22 +20,16 @@ from pydantic import BaseModel, ConfigDict, 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, -) +from fattureincloud_python_sdk.models.verify_e_invoice_xml_error_response_error_validation_result import VerifyEInvoiceXmlErrorResponseErrorValidationResult from typing import Optional, Set from typing_extensions import Self - class VerifyEInvoiceXmlErrorResponseError(BaseModel): """ VerifyEInvoiceXmlErrorResponseError - """ # noqa: E501 - + """ # 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 = ConfigDict( @@ -44,6 +38,7 @@ class VerifyEInvoiceXmlErrorResponseError(BaseModel): 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)) @@ -68,7 +63,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -77,7 +73,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of validation_result if self.validation_result: - _dict["validation_result"] = self.validation_result.to_dict() + _dict['validation_result'] = self.validation_result.to_dict() return _dict @classmethod @@ -89,16 +85,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "message": obj.get("message"), - "validation_result": ( - VerifyEInvoiceXmlErrorResponseErrorValidationResult.from_dict( - obj["validation_result"] - ) - if obj.get("validation_result") is not None - else None - ), - } - ) + _obj = cls.model_validate({ + "message": obj.get("message"), + "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 9d2be685..e02bc7e7 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 @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -23,12 +23,10 @@ from typing import Optional, Set from typing_extensions import Self - class VerifyEInvoiceXmlErrorResponseErrorValidationResult(BaseModel): """ VerifyEInvoiceXmlErrorResponseErrorValidationResult - """ # noqa: E501 - + """ # noqa: E501 xml_errors: Optional[List[StrictStr]] = None __properties: ClassVar[List[str]] = ["xml_errors"] @@ -38,6 +36,7 @@ class VerifyEInvoiceXmlErrorResponseErrorValidationResult(BaseModel): 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)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -80,5 +80,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"xml_errors": obj.get("xml_errors")}) + _obj = cls.model_validate({ + "xml_errors": obj.get("xml_errors") + }) return _obj + + 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 bc0c388a..870323da 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 @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -23,12 +23,10 @@ from typing import Optional, Set from typing_extensions import Self - class VerifyEInvoiceXmlErrorResponseExtra(BaseModel): """ VerifyEInvoiceXmlErrorResponseExtra - """ # noqa: E501 - + """ # noqa: E501 errors: Optional[List[StrictStr]] = None __properties: ClassVar[List[str]] = ["errors"] @@ -38,6 +36,7 @@ class VerifyEInvoiceXmlErrorResponseExtra(BaseModel): 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)) @@ -62,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -80,5 +80,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"errors": obj.get("errors")}) + _obj = cls.model_validate({ + "errors": obj.get("errors") + }) return _obj + + 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 87ad4358..db849f45 100644 --- a/fattureincloud_python_sdk/models/verify_e_invoice_xml_response.py +++ b/fattureincloud_python_sdk/models/verify_e_invoice_xml_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -20,18 +20,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from fattureincloud_python_sdk.models.verify_e_invoice_xml_response_data import ( - VerifyEInvoiceXmlResponseData, -) +from fattureincloud_python_sdk.models.verify_e_invoice_xml_response_data import VerifyEInvoiceXmlResponseData from typing import Optional, Set from typing_extensions import Self - class VerifyEInvoiceXmlResponse(BaseModel): """ VerifyEInvoiceXmlResponse - """ # noqa: E501 - + """ # noqa: E501 data: Optional[VerifyEInvoiceXmlResponseData] = None __properties: ClassVar[List[str]] = ["data"] @@ -41,6 +37,7 @@ class VerifyEInvoiceXmlResponse(BaseModel): 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)) @@ -65,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -74,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -86,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - VerifyEInvoiceXmlResponseData.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "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 ee65b356..3ffc8ece 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 @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -23,15 +23,11 @@ from typing import Optional, Set from typing_extensions import Self - class VerifyEInvoiceXmlResponseData(BaseModel): """ VerifyEInvoiceXmlResponseData - """ # noqa: E501 - - success: Optional[StrictBool] = Field( - default=None, description="Determine if the invoice XML is valid." - ) + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Determine if the invoice XML is valid.") __properties: ClassVar[List[str]] = ["success"] model_config = ConfigDict( @@ -40,6 +36,7 @@ class VerifyEInvoiceXmlResponseData(BaseModel): 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)) @@ -64,7 +61,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -82,5 +80,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"success": obj.get("success")}) + _obj = cls.model_validate({ + "success": obj.get("success") + }) return _obj + + diff --git a/fattureincloud_python_sdk/models/verify_webhooks_subscription.py b/fattureincloud_python_sdk/models/verify_webhooks_subscription.py index e0cf5444..6a51c40a 100644 --- a/fattureincloud_python_sdk/models/verify_webhooks_subscription.py +++ b/fattureincloud_python_sdk/models/verify_webhooks_subscription.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -20,21 +20,15 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from fattureincloud_python_sdk.models.webhooks_subscription_verification_method import ( - WebhooksSubscriptionVerificationMethod, -) +from fattureincloud_python_sdk.models.webhooks_subscription_verification_method import WebhooksSubscriptionVerificationMethod from typing import Optional, Set from typing_extensions import Self - class VerifyWebhooksSubscription(BaseModel): """ VerifyWebhooksSubscription - """ # noqa: E501 - - id: Optional[StrictStr] = Field( - default=None, description="Webhooks subscription id" - ) + """ # noqa: E501 + id: Optional[StrictStr] = Field(default=None, description="Webhooks subscription id") verification_method: Optional[WebhooksSubscriptionVerificationMethod] = None __properties: ClassVar[List[str]] = ["id", "verification_method"] @@ -44,6 +38,7 @@ class VerifyWebhooksSubscription(BaseModel): 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)) @@ -68,7 +63,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -86,7 +82,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - {"id": obj.get("id"), "verification_method": obj.get("verification_method")} - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "verification_method": obj.get("verification_method") + }) return _obj + + diff --git a/fattureincloud_python_sdk/models/verify_webhooks_subscription_request.py b/fattureincloud_python_sdk/models/verify_webhooks_subscription_request.py index 6b191f68..6c71a710 100644 --- a/fattureincloud_python_sdk/models/verify_webhooks_subscription_request.py +++ b/fattureincloud_python_sdk/models/verify_webhooks_subscription_request.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -20,18 +20,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from fattureincloud_python_sdk.models.verify_webhooks_subscription import ( - VerifyWebhooksSubscription, -) +from fattureincloud_python_sdk.models.verify_webhooks_subscription import VerifyWebhooksSubscription from typing import Optional, Set from typing_extensions import Self - class VerifyWebhooksSubscriptionRequest(BaseModel): """ VerifyWebhooksSubscriptionRequest - """ # noqa: E501 - + """ # noqa: E501 data: Optional[VerifyWebhooksSubscription] = None __properties: ClassVar[List[str]] = ["data"] @@ -41,6 +37,7 @@ class VerifyWebhooksSubscriptionRequest(BaseModel): 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)) @@ -65,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -74,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of data if self.data: - _dict["data"] = self.data.to_dict() + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -86,13 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "data": ( - VerifyWebhooksSubscription.from_dict(obj["data"]) - if obj.get("data") is not None - else None - ) - } - ) + _obj = cls.model_validate({ + "data": VerifyWebhooksSubscription.from_dict(obj["data"]) if obj.get("data") is not None else None + }) return _obj + + diff --git a/fattureincloud_python_sdk/models/webhooks_subscription.py b/fattureincloud_python_sdk/models/webhooks_subscription.py index d18add4e..d8ed4b40 100644 --- a/fattureincloud_python_sdk/models/webhooks_subscription.py +++ b/fattureincloud_python_sdk/models/webhooks_subscription.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -21,44 +21,22 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional from fattureincloud_python_sdk.models.event_type import EventType -from fattureincloud_python_sdk.models.webhooks_subscription_config import ( - WebhooksSubscriptionConfig, -) -from fattureincloud_python_sdk.models.webhooks_subscription_verification_method import ( - WebhooksSubscriptionVerificationMethod, -) +from fattureincloud_python_sdk.models.webhooks_subscription_config import WebhooksSubscriptionConfig +from fattureincloud_python_sdk.models.webhooks_subscription_verification_method import WebhooksSubscriptionVerificationMethod from typing import Optional, Set from typing_extensions import Self - class WebhooksSubscription(BaseModel): """ WebhooksSubscription - """ # noqa: E501 - - id: Optional[StrictStr] = Field( - default=None, description="Webhooks subscription id" - ) - sink: Optional[StrictStr] = Field( - default=None, description="Webhooks callback uri." - ) - verified: Optional[StrictBool] = Field( - default=None, - description="[Read Only] True if the webhooks subscription has been verified.", - ) - types: Optional[List[EventType]] = Field( - default=None, description="Webhooks events types." - ) + """ # noqa: E501 + id: Optional[StrictStr] = Field(default=None, description="Webhooks subscription id") + sink: Optional[StrictStr] = Field(default=None, description="Webhooks callback uri.") + verified: Optional[StrictBool] = Field(default=None, description="[Read Only] True if the webhooks subscription has been verified.") + types: Optional[List[EventType]] = Field(default=None, description="Webhooks events types.") config: Optional[WebhooksSubscriptionConfig] = None verification_method: Optional[WebhooksSubscriptionVerificationMethod] = None - __properties: ClassVar[List[str]] = [ - "id", - "sink", - "verified", - "types", - "config", - "verification_method", - ] + __properties: ClassVar[List[str]] = ["id", "sink", "verified", "types", "config", "verification_method"] model_config = ConfigDict( populate_by_name=True, @@ -66,6 +44,7 @@ class WebhooksSubscription(BaseModel): 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)) @@ -90,7 +69,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -99,7 +79,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of config if self.config: - _dict["config"] = self.config.to_dict() + _dict['config'] = self.config.to_dict() return _dict @classmethod @@ -111,18 +91,14 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "sink": obj.get("sink"), - "verified": obj.get("verified"), - "types": obj.get("types"), - "config": ( - WebhooksSubscriptionConfig.from_dict(obj["config"]) - if obj.get("config") is not None - else None - ), - "verification_method": obj.get("verification_method"), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "sink": obj.get("sink"), + "verified": obj.get("verified"), + "types": obj.get("types"), + "config": WebhooksSubscriptionConfig.from_dict(obj["config"]) if obj.get("config") is not None else None, + "verification_method": obj.get("verification_method") + }) return _obj + + diff --git a/fattureincloud_python_sdk/models/webhooks_subscription_config.py b/fattureincloud_python_sdk/models/webhooks_subscription_config.py index ea987188..f03bf1fd 100644 --- a/fattureincloud_python_sdk/models/webhooks_subscription_config.py +++ b/fattureincloud_python_sdk/models/webhooks_subscription_config.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -20,18 +20,14 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from fattureincloud_python_sdk.models.webhooks_subscription_mapping import ( - WebhooksSubscriptionMapping, -) +from fattureincloud_python_sdk.models.webhooks_subscription_mapping import WebhooksSubscriptionMapping from typing import Optional, Set from typing_extensions import Self - class WebhooksSubscriptionConfig(BaseModel): """ WebhooksSubscriptionConfig - """ # noqa: E501 - + """ # noqa: E501 mapping: Optional[WebhooksSubscriptionMapping] = None __properties: ClassVar[List[str]] = ["mapping"] @@ -41,6 +37,7 @@ class WebhooksSubscriptionConfig(BaseModel): 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)) @@ -65,7 +62,8 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([]) + excluded_fields: Set[str] = set([ + ]) _dict = self.model_dump( by_alias=True, @@ -83,5 +81,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"mapping": obj.get("mapping")}) + _obj = cls.model_validate({ + "mapping": obj.get("mapping") + }) return _obj + + diff --git a/fattureincloud_python_sdk/models/webhooks_subscription_mapping.py b/fattureincloud_python_sdk/models/webhooks_subscription_mapping.py index 5a09a7a2..5311a727 100644 --- a/fattureincloud_python_sdk/models/webhooks_subscription_mapping.py +++ b/fattureincloud_python_sdk/models/webhooks_subscription_mapping.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -27,10 +27,12 @@ class WebhooksSubscriptionMapping(str, Enum): """ allowed enum values """ - BINARY = "binary" - STRUCTURED = "structured" + BINARY = 'binary' + STRUCTURED = 'structured' @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of WebhooksSubscriptionMapping from a JSON string""" return cls(json.loads(json_str)) + + diff --git a/fattureincloud_python_sdk/models/webhooks_subscription_verification_method.py b/fattureincloud_python_sdk/models/webhooks_subscription_verification_method.py index 52c67942..b17bdb57 100644 --- a/fattureincloud_python_sdk/models/webhooks_subscription_verification_method.py +++ b/fattureincloud_python_sdk/models/webhooks_subscription_verification_method.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -27,10 +27,12 @@ class WebhooksSubscriptionVerificationMethod(str, Enum): """ allowed enum values """ - HEADER = "header" - QUERY = "query" + HEADER = 'header' + QUERY = 'query' @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of WebhooksSubscriptionVerificationMethod from a JSON string""" return cls(json.loads(json_str)) + + diff --git a/fattureincloud_python_sdk/oauth2/scopes.py b/fattureincloud_python_sdk/oauth2/scopes.py index a4ba64be..06720a0a 100644 --- a/fattureincloud_python_sdk/oauth2/scopes.py +++ b/fattureincloud_python_sdk/oauth2/scopes.py @@ -1,136 +1,135 @@ from enum import Enum - class Scope(Enum): # Read permission to the Clients registry - ENTITY_CLIENTS_READ = "entity.clients:r" + ENTITY_CLIENTS_READ = 'entity.clients:r' # Write permission to the Clients registry - ENTITY_CLIENTS_ALL = "entity.clients:a" + ENTITY_CLIENTS_ALL = 'entity.clients:a' # Read permission to the Suppliers registry - ENTITY_SUPPLIERS_READ = "entity.suppliers:r" + ENTITY_SUPPLIERS_READ = 'entity.suppliers:r' # Write permission to the Suppliers registry - ENTITY_SUPPLIERS_ALL = "entity.suppliers:a" + ENTITY_SUPPLIERS_ALL = 'entity.suppliers:a' # Read permission to the Products - PRODUCTS_READ = "products:r" + PRODUCTS_READ = 'products:r' # Write permission to the Products - PRODUCTS_ALL = "products:a" + PRODUCTS_ALL = 'products:a' # Read permission to the issued Invoices - ISSUED_DOCUMENTS_INVOICES_READ = "issued_documents.invoices:r" + ISSUED_DOCUMENTS_INVOICES_READ = 'issued_documents.invoices:r' # Read permission to the issued Credit Notes - ISSUED_DOCUMENTS_CREDIT_NOTES_READ = "issued_documents.credit_notes:r" + ISSUED_DOCUMENTS_CREDIT_NOTES_READ = 'issued_documents.credit_notes:r' # Read permission to the issued Receipts - ISSUED_DOCUMENTS_RECEIPTS_READ = "issued_documents.receipts:r" + ISSUED_DOCUMENTS_RECEIPTS_READ = 'issued_documents.receipts:r' # Read permission to the issued Orders - ISSUED_DOCUMENTS_ORDERS_READ = "issued_documents.orders:r" + ISSUED_DOCUMENTS_ORDERS_READ = 'issued_documents.orders:r' # Read permission to the issued Quotes - ISSUED_DOCUMENTS_QUOTES_READ = "issued_documents.quotes:r" + ISSUED_DOCUMENTS_QUOTES_READ = 'issued_documents.quotes:r' # Read permission to the issued Proformas - ISSUED_DOCUMENTS_PROFORMAS_READ = "issued_documents.proformas:r" + ISSUED_DOCUMENTS_PROFORMAS_READ = 'issued_documents.proformas:r' # Read permission to the issued Delivery Notes - ISSUED_DOCUMENTS_DELIVERY_NOTES_READ = "issued_documents.delivery_notes:r" + ISSUED_DOCUMENTS_DELIVERY_NOTES_READ = 'issued_documents.delivery_notes:r' # Read permission to the issued Work Reports - ISSUED_DOCUMENTS_WORK_REPORTS_READ = "issued_documents.work_reports:r" + ISSUED_DOCUMENTS_WORK_REPORTS_READ = 'issued_documents.work_reports:r' # Read permission to the issued Supplier Orders - ISSUED_DOCUMENTS_SUPPLIER_ORDERS_READ = "issued_documents.supplier_orders:r" + ISSUED_DOCUMENTS_SUPPLIER_ORDERS_READ = 'issued_documents.supplier_orders:r' # Read permission to the issued Self Invoices - ISSUED_DOCUMENTS_SELF_INVOICES_READ = "issued_documents.self_invoices:r" + ISSUED_DOCUMENTS_SELF_INVOICES_READ = 'issued_documents.self_invoices:r' # Write permission to the issued Invoices - ISSUED_DOCUMENTS_INVOICES_ALL = "issued_documents.invoices:a" + ISSUED_DOCUMENTS_INVOICES_ALL = 'issued_documents.invoices:a' # Write permission to the issued Credit Notes - ISSUED_DOCUMENTS_CREDIT_NOTES_ALL = "issued_documents.credit_notes:a" + ISSUED_DOCUMENTS_CREDIT_NOTES_ALL = 'issued_documents.credit_notes:a' # Write permission to the issued issued Receipts - ISSUED_DOCUMENTS_RECEIPTS_ALL = "issued_documents.receipts:a" + ISSUED_DOCUMENTS_RECEIPTS_ALL = 'issued_documents.receipts:a' # Write permission to the issued Orders - ISSUED_DOCUMENTS_ORDERS_ALL = "issued_documents.orders:a" + ISSUED_DOCUMENTS_ORDERS_ALL = 'issued_documents.orders:a' # Write permission to the issued Quotes - ISSUED_DOCUMENTS_QUOTES_ALL = "issued_documents.quotes:a" + ISSUED_DOCUMENTS_QUOTES_ALL = 'issued_documents.quotes:a' # Write permission to the issued Proformas - ISSUED_DOCUMENTS_PROFORMAS_ALL = "issued_documents.proformas:a" + ISSUED_DOCUMENTS_PROFORMAS_ALL = 'issued_documents.proformas:a' # Write permission to the issued Delivery Notes - ISSUED_DOCUMENTS_DELIVERY_NOTES_ALL = "issued_documents.delivery_notes:a" + ISSUED_DOCUMENTS_DELIVERY_NOTES_ALL = 'issued_documents.delivery_notes:a' # Write permission to the issued Work Reports - ISSUED_DOCUMENTS_WORK_REPORTS_ALL = "issued_documents.work_reports:a" + ISSUED_DOCUMENTS_WORK_REPORTS_ALL = 'issued_documents.work_reports:a' # Write permission to the issued Supplier Orders - ISSUED_DOCUMENTS_SUPPLIER_ORDERS_ALL = "issued_documents.supplier_orders:a" + ISSUED_DOCUMENTS_SUPPLIER_ORDERS_ALL = 'issued_documents.supplier_orders:a' # Write permission to the issued Self Invoices - ISSUED_DOCUMENTS_SELF_INVOICES_ALL = "issued_documents.self_invoices:a" + ISSUED_DOCUMENTS_SELF_INVOICES_ALL = 'issued_documents.self_invoices:a' # Read permission to the Received Documents - RECEIVED_DOCUMENTS_READ = "received_documents:r" + RECEIVED_DOCUMENTS_READ = 'received_documents:r' # Write permission to the Received Documents - RECEIVED_DOCUMENTS_ALL = "received_documents:a" + RECEIVED_DOCUMENTS_ALL = 'received_documents:a' # Read permission to the Stock movements - STOCK_READ = "stock:r" + STOCK_READ = 'stock:r' # Write permission to the Stock movements - STOCK_ALL = "stock:a" + STOCK_ALL = 'stock:a' # Read permission to the Receipts - RECEIPTS_READ = "receipts:r" + RECEIPTS_READ = 'receipts:r' # Write permission to the Receipts - RECEIPTS_ALL = "receipts:a" + RECEIPTS_ALL = 'receipts:a' # Read permission to the Calendar - CALENDAR_READ = "calendar:r" + CALENDAR_READ = 'calendar:r' # Write permission to the Calendar - CALENDAR_ALL = "calendar:a" + CALENDAR_ALL = 'calendar:a' # Read permission to the Taxes - TAXES_READ = "taxes:r" + TAXES_READ = 'taxes:r' # Write permission to the Taxes - TAXES_ALL = "taxes:a" + TAXES_ALL = 'taxes:a' # Read permission to the Archive Documents - ARCHIVE_READ = "archive:r" + ARCHIVE_READ = 'archive:r' # Read permission to the Archive Documents - ARCHIVE_ALL = "archive:a" + ARCHIVE_ALL = 'archive:a' # Read permission to the Emails - EMAILS_READ = "emails:r" + EMAILS_READ = 'emails:r' # Read permission to the Cashbook - CASHBOOK_READ = "cashbook:r" + CASHBOOK_READ = 'cashbook:r' # Write permission to the Cashbook - CASHBOOK_ALL = "cashbook:a" + CASHBOOK_ALL = 'cashbook:a' # Read permission to the Settings - SETTINGS_READ = "settings:r" + SETTINGS_READ = 'settings:r' # Write permission to the Settings - SETTINGS_ALL = "settings:a" + SETTINGS_ALL = 'settings:a' # Read permission to the company Situation - SITUATION_READ = "situation:r" + SITUATION_READ = 'situation:r' diff --git a/fattureincloud_python_sdk/rest.py b/fattureincloud_python_sdk/rest.py index fe8936c3..990fdca0 100644 --- a/fattureincloud_python_sdk/rest.py +++ b/fattureincloud_python_sdk/rest.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 @@ -80,19 +80,22 @@ def __init__(self, configuration) -> None: "ca_cert_data": configuration.ca_cert_data, } if configuration.assert_hostname is not None: - pool_args["assert_hostname"] = configuration.assert_hostname + pool_args['assert_hostname'] = ( + configuration.assert_hostname + ) if configuration.retries is not None: - pool_args["retries"] = configuration.retries + pool_args['retries'] = configuration.retries if configuration.tls_server_name: - pool_args["server_hostname"] = configuration.tls_server_name + pool_args['server_hostname'] = configuration.tls_server_name + if configuration.socket_options is not None: - 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 + pool_args['maxsize'] = configuration.connection_pool_maxsize # https pool manager self.pool_manager: urllib3.PoolManager @@ -100,7 +103,6 @@ def __init__(self, configuration) -> None: if configuration.proxy: 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) @@ -118,7 +120,7 @@ def request( headers=None, body=None, post_params=None, - _request_timeout=None, + _request_timeout=None ): """Perform requests. @@ -135,7 +137,15 @@ def request( (connection, read) timeouts. """ method = method.upper() - assert method in ["GET", "HEAD", "DELETE", "POST", "PUT", "PATCH", "OPTIONS"] + assert method in [ + 'GET', + 'HEAD', + 'DELETE', + 'POST', + 'PUT', + 'PATCH', + 'OPTIONS' + ] if post_params and body: raise ApiValueError( @@ -149,18 +159,25 @@ def request( if _request_timeout: if isinstance(_request_timeout, (int, float)): timeout = urllib3.Timeout(total=_request_timeout) - elif isinstance(_request_timeout, tuple) and len(_request_timeout) == 2: + elif ( + isinstance(_request_timeout, tuple) + and len(_request_timeout) == 2 + ): timeout = urllib3.Timeout( - connect=_request_timeout[0], read=_request_timeout[1] + connect=_request_timeout[0], + read=_request_timeout[1] ) try: # For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE` - if method in ["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): + content_type = headers.get('Content-Type') + if ( + not content_type + or re.search('json', content_type, re.IGNORECASE) + ): request_body = None if body is not None: request_body = json.dumps(body) @@ -170,9 +187,9 @@ def request( body=request_body, timeout=timeout, headers=headers, - preload_content=False, + preload_content=False ) - elif content_type == "application/x-www-form-urlencoded": + elif content_type == 'application/x-www-form-urlencoded': r = self.pool_manager.request( method, url, @@ -180,18 +197,15 @@ def request( encode_multipart=False, timeout=timeout, headers=headers, - preload_content=False, + preload_content=False ) - elif content_type == "multipart/form-data": + elif content_type == 'multipart/form-data': # must del headers['Content-Type'], or the correct # Content-Type which generated by urllib3 will be # overwritten. - del headers["Content-Type"] + del headers['Content-Type'] # Ensures that dict objects are serialized - post_params = [ - (a, json.dumps(b)) if isinstance(b, dict) else (a, b) - for a, b in post_params - ] + post_params = [(a, json.dumps(b)) if isinstance(b, dict) else (a,b) for a, b in post_params] r = self.pool_manager.request( method, url, @@ -199,7 +213,7 @@ def request( encode_multipart=True, timeout=timeout, headers=headers, - preload_content=False, + preload_content=False ) # Pass a `string` parameter directly in the body to support # other content types than JSON when `body` argument is @@ -211,11 +225,9 @@ def request( body=body, timeout=timeout, headers=headers, - preload_content=False, + preload_content=False ) - elif headers["Content-Type"].startswith("text/") and isinstance( - body, bool - ): + elif headers['Content-Type'].startswith('text/') and isinstance(body, bool): request_body = "true" if body else "false" r = self.pool_manager.request( method, @@ -223,8 +235,7 @@ def request( body=request_body, preload_content=False, timeout=timeout, - headers=headers, - ) + headers=headers) else: # Cannot generate the request from given parameters msg = """Cannot prepare a request message for provided @@ -239,7 +250,7 @@ def request( fields={}, timeout=timeout, headers=headers, - preload_content=False, + preload_content=False ) except urllib3.exceptions.SSLError as e: msg = "\n".join([type(e).__name__, str(e)]) diff --git a/pyproject.toml b/pyproject.toml index 21a6c295..e8f8f31e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,23 +1,29 @@ -[tool.poetry] +[project] name = "fattureincloud_python_sdk" -version = "2.1.3" +version = "2.1.4" description = "Fatture in Cloud API v2 - API Reference" -authors = ["Fatture in Cloud "] -license = "MIT" +authors = [ + {name = "Fatture in Cloud",email = "info@fattureincloud.it"}, +] +license = { text = "MIT" } readme = "README.md" -repository = "https://github.com/fattureincloud/fattureincloud-python-sdk" keywords = ["OpenAPI", "OpenAPI-Generator", "Fatture in Cloud API v2 - API Reference"] -include = ["fattureincloud_python_sdk/py.typed"] +requires-python = ">=3.9" -[tool.poetry.dependencies] -python = "^3.8" +dependencies = [ + "urllib3 (>=2.1.0,<3.0.0)", + "python-dateutil (>=2.8.2)", + "pydantic (>=2)", + "typing-extensions (>=4.7.1)", +] -urllib3 = ">= 1.25.3, < 3.0.0" -python-dateutil = ">= 2.8.2" -pydantic = ">= 2" -typing-extensions = ">= 4.7.1" +[project.urls] +Repository = "https://github.com/fattureincloud/fattureincloud-python-sdk" + +[tool.poetry] +requires-poetry = ">=2.0" -[tool.poetry.dev-dependencies] +[tool.poetry.group.dev.dependencies] pytest = ">= 7.2.1" pytest-cov = ">= 2.8.1" tox = ">= 3.9.0" diff --git a/requirements.txt b/requirements.txt index 7702b503..6cbb2b98 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -urllib3 >= 1.26.8, < 3.0.0 +urllib3 >= 2.1.0, < 3.0.0 python_dateutil >= 2.8.2 pydantic >= 2 typing-extensions >= 4.7.1 diff --git a/sdk-version.yaml b/sdk-version.yaml index f82ddaa2..405cd995 100644 --- a/sdk-version.yaml +++ b/sdk-version.yaml @@ -1,2 +1,2 @@ info: - version: 2.1.3 + version: 2.1.4 diff --git a/setup.py b/setup.py index e19be108..8f209aef 100644 --- a/setup.py +++ b/setup.py @@ -1,18 +1,17 @@ # coding: utf-8 """ -Fatture in Cloud API v2 - API Reference + 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. + Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. -The version of the OpenAPI document: 2.1.5 -Contact: info@fattureincloud.it -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 2.1.8 + Contact: info@fattureincloud.it + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 - from setuptools import setup, find_packages # noqa: H301 # To install the library, run the following @@ -22,21 +21,19 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools NAME = "fattureincloud-python-sdk" -VERSION = "2.1.3" -PYTHON_REQUIRES = ">= 3.7" +VERSION = "2.1.4" +PYTHON_REQUIRES = ">= 3.9" REQUIRES = [ - "urllib3 >= 1.26.8, < 3.0.0", + "urllib3 >= 2.1.0, < 3.0.0", "python-dateutil >= 2.8.2", "pydantic >= 2", "typing-extensions >= 4.7.1", ] - def readme(): - with open("README.md") as f: + with open('README.md') as f: return f.read() - file = readme() setup( @@ -46,19 +43,12 @@ def readme(): author="Fatture in Cloud", author_email="info@fattureincloud.it", url="https://github.com/fattureincloud/fattureincloud-python-sdk", - keywords=[ - "fattureincloud", - "fatture in cloud", - "fatture", - "fic", - "fattureincloud sdk", - "fatture in cloud sdk", - ], + keywords=["fattureincloud", "fatture in cloud", "fatture", "fic", "fattureincloud sdk", "fatture in cloud sdk"], install_requires=REQUIRES, packages=find_packages(exclude=["test", "tests"]), include_package_data=True, license="MIT", - long_description_content_type="text/markdown", + long_description_content_type='text/markdown', long_description=file, # noqa: E501 package_data={"fattureincloud_python_sdk": ["py.typed"]}, )